/* ============================================
   L'ARCHITECT CLINIC - GLOBAL STYLES
   Production-ready, mobile-first, consistent design system
   ============================================ */

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ============================================
   CSS VARIABLES - DESIGN TOKENS
   ============================================ */
:root {
    /* Colors */
    --gold: #C9A96E;
    --gold-light: #D4BC8B;
    --gold-dark: #A8864A;
    --dark: #0A0A0A;
    --dark-lighter: #141414;
    --dark-card: #1A1A1A;
    --white: #FAFAFA;
    --white-dim: #E0E0E0;
    --grey: #888888;
    --light: #F5F1EB;

    /* Transitions */
    --transition: cubic-bezier(0.16, 1, 0.3, 1);

    /* Typography Scale - Responsive */
    --fs-xs: clamp(0.65rem, 0.6rem + 0.25vw, 0.75rem);      /* 10.4px → 12px */
    --fs-sm: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);     /* 12px → 14px */
    --fs-base: clamp(0.875rem, 0.82rem + 0.3vw, 1rem);      /* 14px → 16px */
    --fs-md: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);        /* 16px → 18px */
    --fs-lg: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);         /* 19.2px → 24px */
    --fs-xl: clamp(1.8rem, 1.5rem + 1.5vw, 2.5rem);         /* 28.8px → 40px */
    --fs-2xl: clamp(2.5rem, 2rem + 2.5vw, 4rem);            /* 40px → 64px */
    --fs-3xl: clamp(3rem, 2.5rem + 3vw, 5rem);              /* 48px → 80px */

    /* Spacing Scale */
    --space-xs: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
    --space-sm: clamp(1rem, 0.8rem + 1vw, 1.5rem);
    --space-md: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
    --space-lg: clamp(2rem, 1.5rem + 2.5vw, 4rem);
    --space-xl: clamp(3rem, 2rem + 5vw, 6rem);

    /* Container widths */
    --container-sm: 600px;
    --container-md: 900px;
    --container-lg: 1200px;
    --container-xl: 1400px;

    /* Nav heights */
    --nav-height: 90px;
    --nav-height-mobile: 72px;
}

/* ============================================
   HTML & BODY
   ============================================ */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    font-size: 16px; /* Base font size for rem calculations */
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: var(--fs-base);
    line-height: 1.6;
    background: var(--dark);
    color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    line-height: 1.2;
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); }
h6 { font-size: var(--fs-base); }

p {
    line-height: 1.7;
    color: var(--white-dim);
}

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

/* ============================================
   NAVIGATION - FIXED HEADER
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 169, 110, 0.15);
    height: var(--nav-height);
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo img {
    height: 50px;
    width: auto;
}

/* Nav Links - for index.html (ul li structure) */
.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-links li {
    margin: 0;
}

.nav-links a,
.nav-links button {
    font-size: var(--fs-xs);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white-dim);
    transition: color 0.3s;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}

.nav-links a:hover,
.nav-links a.active,
.nav-links button:hover {
    color: var(--gold);
}

/* Nav Right - for other pages (flex structure) */
.nav-right {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    color: var(--grey);
    text-decoration: none;
    font-size: var(--fs-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.3s;
    font-weight: 500;
}

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

/* Nav CTA Button */
.nav-cta {
    background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-size: var(--fs-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    transition: opacity 0.3s;
}

.nav-cta:hover {
    opacity: 0.8;
}

/* Hamburger Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 8px;
}

.menu-toggle span {
    width: 26px;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s var(--transition);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

/* Logo alternative (for tratamente/tehnologii/despre) */
.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

/* ============================================
   BACK BUTTON
   ============================================ */
.back-btn {
    position: fixed;
    top: 108px;
    left: 60px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--fs-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--grey);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

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

.back-btn svg {
    transition: transform 0.3s;
}

.back-btn:hover svg {
    transform: translateX(-4px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark-lighter);
    border-top: 1px solid rgba(201, 169, 110, 0.1);
    padding: 60px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    font-size: var(--fs-sm);
    line-height: 1.8;
    color: var(--grey);
    margin-top: 16px;
}

.footer-col h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: var(--fs-md);
    font-weight: 500;
    color: var(--gold);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul li,
.footer-col ul li a {
    font-size: var(--fs-sm);
    color: var(--grey);
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--gold);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copy {
    font-size: var(--fs-xs);
    color: var(--grey);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: var(--fs-xs);
    color: var(--grey);
    transition: color 0.3s;
}

.footer-legal a:hover {
    color: var(--gold);
}

.footer-anpc {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-anpc a img {
    height: 40px;
    width: auto;
    opacity: 0.85;
    transition: opacity 0.3s;
}

.footer-anpc a:hover img {
    opacity: 1;
}

/* ============================================
   UTILITIES
   ============================================ */
.container {
    max-width: var(--container-lg);
    margin: 0 auto;
    padding: 0 60px;
}

.container-sm {
    max-width: var(--container-sm);
}

.container-md {
    max-width: var(--container-md);
}

.container-xl {
    max-width: var(--container-xl);
}

.text-center {
    text-align: center;
}

.text-gold {
    color: var(--gold);
}

.text-grey {
    color: var(--grey);
}

/* ============================================
   MOBILE RESPONSIVE - MOBILE FIRST
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --nav-height: 80px;
    }

    .nav {
        padding: 18px 40px;
    }

    .container {
        padding: 0 40px;
    }

    .back-btn {
        left: 40px;
        top: 98px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 72px;
    }

    html {
        font-size: 15px; /* Slightly smaller base for mobile */
    }

    .nav {
        padding: 16px 24px;
        height: var(--nav-height-mobile);
    }

    .nav-logo img,
    .logo img {
        height: 40px;
    }

    /* Show hamburger menu on mobile */
    .menu-toggle {
        display: flex;
    }

    /* Mobile navigation menu */
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 24px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s var(--transition);
        border-bottom: 1px solid rgba(201, 169, 110, 0.15);
        max-height: calc(100vh - var(--nav-height));
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(201, 169, 110, 0.08);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 16px 0;
        font-size: var(--fs-sm);
    }

    .nav-right {
        gap: 20px;
    }

    .nav-cta {
        -webkit-text-fill-color: var(--gold) !important;
        color: var(--gold) !important;
    }

    .back-btn {
        top: 88px;
        left: 24px;
        font-size: 10px;
        gap: 8px;
    }

    .back-btn svg {
        width: 14px;
        height: 14px;
    }

    .container {
        padding: 0 24px;
    }

    .footer {
        padding: 40px 24px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .nav {
        padding: 14px 20px;
    }

    .nav-logo img,
    .logo img {
        height: 36px;
    }

    .container {
        padding: 0 20px;
    }

    .back-btn {
        left: 20px;
        font-size: 9px;
    }

    .footer {
        padding: 32px 20px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .nav,
    .back-btn,
    .footer {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}
