/* 
 * Decafly — Bookkeeping Service Stylesheet 
 * Premium Elegant Minimalist Design
 * Colors: Black #0A0A0A + Gold #C9A84C
 */

/* ==========================================================================
   1. CSS Custom Properties
   ========================================================================== */
:root {
    --bg: #0A0A0A;
    --bg-card: #141414;
    --bg-subtle: #1A1A1A;
    --bg-footer: #050505;

    --gold: #C9A84C;
    --gold-bright: #E2C471;
    --gold-dim: rgba(201, 168, 76, 0.3);
    --gold-faint: rgba(201, 168, 76, 0.1);

    --white: #FFFFFF;
    --gray: #A0A0A0;
    --gray-light: #e0e0e0;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    --pad-section: 110px;
    --radius: 2px;

    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --t-fast: 0.25s;
    --t-normal: 0.4s;
    --t-slow: 0.8s;
}

/* ==========================================================================
   2. Reset & Base
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--white);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.nav-open {
    overflow: hidden;
}

::selection {
    background-color: var(--gold);
    color: var(--bg);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: var(--pad-section) 5%;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    color: var(--gold);
    text-align: center;
    margin-bottom: 70px;
    letter-spacing: 2px;
}

/* ==========================================================================
   3. Page Loader
   ========================================================================== */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.6s var(--ease), visibility 0.6s;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    animation: pulse-gold 1.5s ease-in-out infinite;
}

@keyframes pulse-gold {
    0%, 100% { opacity: 0.4; transform: scale(0.95); }
    50%      { opacity: 1;   transform: scale(1.05); }
}

/* ==========================================================================
   4. Scroll Reveal Animations
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* Translatable elements smooth transition */
[data-i18n] {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* ==========================================================================
   5. Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color var(--t-normal), padding var(--t-normal), border-color var(--t-normal);
    background-color: rgba(10, 10, 10, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background-color: rgba(10, 10, 10, 0.96);
    border-bottom: 1px solid var(--gold-faint);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    transition: padding var(--t-normal);
}

.navbar.scrolled .nav-container {
    padding: 10px 40px;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-logo img {
    height: 85px;
    width: auto;
    object-fit: contain;
    transition: height var(--t-normal), transform var(--t-fast);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.nav-logo:hover img {
    transform: scale(1.03);
}

.navbar.scrolled .nav-logo img {
    height: 65px;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gray-light);
    position: relative;
    padding: 4px 0;
    transition: color var(--t-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--t-fast) var(--ease);
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Language Switch */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-btn {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--gray);
    cursor: pointer;
    padding: 4px 6px;
    transition: color var(--t-fast);
}

.lang-btn:hover {
    color: var(--gold-bright);
}

.lang-btn.active {
    color: var(--gold);
    font-weight: 600;
}

.lang-divider {
    color: rgba(201, 168, 76, 0.3);
    font-size: 0.8rem;
    user-select: none;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle-line {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--gold);
    transition: transform var(--t-normal), opacity var(--t-normal);
    transform-origin: center;
}

.nav-toggle.active .nav-toggle-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.nav-toggle.active .nav-toggle-line:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active .nav-toggle-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   6. Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.65) 50%,
        rgba(10, 10, 10, 0.9) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 24px;
}

.hero-slogan {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 2.8rem;
    font-weight: 500;
    letter-spacing: 3px;
    line-height: 1.3;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-family: var(--font-body);
    color: var(--gray-light);
    font-weight: 300;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    margin-bottom: 48px;
}

.hero-cta {
    display: inline-block;
    padding: 16px 42px;
    border: 1px solid var(--gold);
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color var(--t-normal), border-color var(--t-normal);
}

.hero-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-normal) var(--ease);
}

.hero-cta:hover {
    color: var(--bg);
    border-color: var(--gold-bright);
}

.hero-cta:hover::before {
    transform: scaleX(1);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(180deg, var(--gold), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50%      { opacity: 1;   transform: scaleY(1); }
}

/* ==========================================================================
   7. Parallax Dividers
   ========================================================================== */
.parallax-divider {
    position: relative;
    height: 350px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.parallax-divider::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.parallax-divider::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.08), transparent);
    pointer-events: none;
}

/* ==========================================================================
   8. Competence Section
   ========================================================================== */
.competence {
    background: var(--bg);
}

.competence-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.comp-card {
    background: var(--bg-card);
    border: 1px solid var(--gold-dim);
    border-radius: var(--radius);
    padding: 50px 36px;
    text-align: center;
    transition: border-color var(--t-normal), transform var(--t-normal), box-shadow var(--t-normal);
}

.comp-card:hover {
    border-color: var(--gold);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(201, 168, 76, 0.06);
}

.comp-icon {
    color: var(--gold);
    margin-bottom: 28px;
    display: flex;
    justify-content: center;
}

.comp-icon svg {
    opacity: 0.85;
    transition: opacity var(--t-fast);
}

.comp-card:hover .comp-icon svg {
    opacity: 1;
}

.comp-title {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.comp-desc {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--gray-light);
    line-height: 1.8;
}

/* ==========================================================================
   9. Pricing Section
   ========================================================================== */
.pricing {
    background: var(--bg-subtle);
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 40px 32px;
    transition: border-color var(--t-normal), transform var(--t-normal), box-shadow var(--t-normal);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    border-color: var(--gold-dim);
    transform: translateY(-4px);
}

.pricing-card.featured {
    border-top: 3px solid var(--gold);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.pricing-card.featured:hover {
    border-color: var(--gold);
    border-top-color: var(--gold-bright);
}

.pricing-card-header {
    margin-bottom: 28px;
}

.pricing-card-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--white);
    line-height: 1.4;
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
    flex-grow: 1;
}

.pricing-features li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--gray-light);
    line-height: 1.5;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 600;
}

.pricing-price {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--gold);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.pricing-card:not(.featured) .pricing-price {
    font-size: 1.4rem;
    margin-top: auto;
}

.pricing-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color var(--t-fast), gap var(--t-fast);
}

.pricing-cta::after {
    content: '→';
    transition: transform var(--t-fast);
}

.pricing-cta:hover {
    color: var(--gold-bright);
}

.pricing-cta:hover::after {
    transform: translateX(5px);
}

/* ==========================================================================
   10. Contact Section
   ========================================================================== */
.contact {
    background: var(--bg);
}

.contact-intro {
    text-align: center;
    max-width: 600px;
    margin: -40px auto 60px;
    color: var(--gray);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: start;
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    background: var(--bg-card);
    border: 1px solid rgba(201, 168, 76, 0.15);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 14px 18px;
    border-radius: var(--radius);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.1);
}

.form-group.has-error input,
.form-group.has-error textarea {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.15) !important;
}

.field-error {
    font-size: 0.78rem;
    color: #e74c3c;
    margin-top: 2px;
    display: none;
    font-weight: 400;
}

.form-group.has-error .field-error {
    display: block;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.form-submit {
    background: var(--gold);
    color: var(--bg);
    border: none;
    padding: 16px 40px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: var(--radius);
    align-self: flex-start;
    transition: background var(--t-fast), transform var(--t-fast);
}

.form-submit:hover {
    background: var(--gold-bright);
    transform: translateY(-2px);
}

.form-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.form-status {
    display: none;
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 400;
    transition: opacity 0.4s ease;
}

.form-status.success {
    display: block;
    background: rgba(46, 204, 113, 0.08);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

.form-status.error {
    display: block;
    background: rgba(231, 76, 60, 0.08);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
}

/* Company Info */
.contact-info {
    padding-top: 10px;
}

.info-block {
    background: var(--bg-card);
    border: 1px solid rgba(201, 168, 76, 0.1);
    border-radius: var(--radius);
    padding: 40px 36px;
}

.info-company {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 28px;
    letter-spacing: 1px;
}

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-list li {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gray);
    font-weight: 500;
}

.info-value {
    font-size: 1rem;
    color: var(--white);
    font-weight: 300;
}

.info-link {
    color: var(--gold) !important;
    transition: color var(--t-fast);
}

.info-link:hover {
    color: var(--gold-bright) !important;
}

/* ==========================================================================
   11. Footer
   ========================================================================== */
.footer {
    background: var(--bg-footer);
    border-top: 1px solid var(--gold-faint);
    padding: 50px 5% 30px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    opacity: 0.7;
    margin-bottom: 8px;
}

.footer-company {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--gray);
    letter-spacing: 1px;
}

.footer-email {
    color: var(--gold);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: color var(--t-fast);
}

.footer-email:hover {
    color: var(--gold-bright);
}

.footer-copy {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.25);
    margin-top: 16px;
}

/* ==========================================================================
   12. Responsive — Tablet (≤ 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    :root {
        --pad-section: 80px;
    }

    .nav-container {
        padding: 14px 24px;
    }

    .competence-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .comp-card:last-child {
        grid-column: 1 / -1;
        max-width: 500px;
        justify-self: center;
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .pricing-card.featured {
        grid-column: 1 / -1;
        max-width: 100%;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* ==========================================================================
   13. Responsive — Mobile (≤ 768px)
   ========================================================================== */
@media (max-width: 768px) {
    :root {
        --pad-section: 60px;
    }

    /* Mobile Nav */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 48px;
        transition: right var(--t-normal) var(--ease);
    }

    .nav-menu.open {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 28px;
    }

    .nav-link {
        font-size: 1.2rem;
        letter-spacing: 3px;
    }

    /* Hero Mobile */
    .hero-slogan {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        padding: 14px 32px;
        font-size: 0.8rem;
    }

    .hero-bg {
        background-attachment: scroll;
    }

    /* Parallax Mobile */
    .parallax-divider {
        height: 200px;
        background-attachment: scroll;
    }

    /* Competence Mobile */
    .competence-grid {
        grid-template-columns: 1fr;
    }

    .comp-card:last-child {
        grid-column: auto;
        max-width: none;
    }

    .comp-card {
        padding: 36px 28px;
    }

    /* Pricing Mobile */
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        grid-column: auto;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 50px;
    }

    /* Contact Mobile */
    .contact-intro {
        margin: -30px auto 40px;
    }

    .form-submit {
        width: 100%;
        text-align: center;
    }

    .info-block {
        padding: 30px 24px;
    }
}

/* ==========================================================================
   14. Responsive — Small Mobile (≤ 480px)
   ========================================================================== */
@media (max-width: 480px) {
    .hero-slogan {
        font-size: 1.5rem;
    }

    .nav-container {
        padding: 12px 16px;
    }

    .section-padding {
        padding: var(--pad-section) 16px;
    }
}

/* ==========================================================================
   15. Print Styles
   ========================================================================== */
@media print {
    .navbar, .parallax-divider, .hero-scroll-indicator, .page-loader {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero {
        min-height: auto;
        padding: 40px 0;
    }
}
