
/* BASE CSS & TYPOGRAPHY */
:root {
    --bg-color: #Fdfdfc;
    --text-primary: #1A1A1A;
    --text-secondary: #4A4F54;
    --accent-gold: #C5A059;
    --accent-gold-hover: #b08d4a;
    --navy-dark: #0A1424;
    --navy-light: #15243B;
    --border-color: #E2E1DF;
    --grid-line: rgba(10, 20, 36, 0.05);
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Nunito Sans', sans-serif;
    
    --container-width: 1280px;
    --section-pad-y: 120px;
    --section-pad-y-mobile: 60px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 400; line-height: 1.1; color: var(--navy-dark); }
h1 { font-size: clamp(3rem, 6vw, 5.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h4 { font-size: 1.5rem; }
p { font-size: 1.125rem; color: var(--text-secondary); max-width: 70ch; margin-bottom: 1.5rem; }
a { color: var(--accent-gold); text-decoration: none; transition: 0.3s ease; }

.container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 5%; }

/* UTILITIES */
.text-gold { color: var(--accent-gold); }
.text-navy { color: var(--navy-dark); }
.bg-navy { background-color: var(--navy-dark); color: white; }
.bg-navy h2, .bg-navy h3, .bg-navy p { color: white; }
.bg-navy p { color: rgba(255,255,255,0.8); }

.grid-bg {
    background-image: 
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* BUTTONS */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 1rem 2rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em;
    font-weight: 600; border: 1px solid var(--navy-dark); cursor: pointer; transition: all 0.4s ease;
    background: transparent; color: var(--navy-dark); position: relative; overflow: hidden;
}
.btn::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: var(--navy-dark); transition: all 0.4s ease; z-index: -1;
}
.btn:hover::before { left: 0; }
.btn:hover { color: white; border-color: var(--navy-dark); }

.btn-gold { border-color: var(--accent-gold); color: var(--accent-gold); }
.btn-gold::before { background: var(--accent-gold); }
.btn-gold:hover { color: var(--navy-dark); }

/* HEADER & NAV */
header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(253, 253, 252, 1);
    border-bottom: 1px solid var(--border-color); padding: 1rem 0; transition: 0.3s;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-heading); font-size: 2rem; color: var(--navy-dark); font-weight: 600; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--navy-dark); font-weight: 600; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-gold); }
.hamburger { display: none; flex-direction: column; gap: 6px; cursor: pointer; }
.hamburger span { width: 30px; height: 2px; background: var(--navy-dark); transition: 0.3s; }

/* LAYOUTS & MODULES */
.section { padding: var(--section-pad-y) 0; }
.section-sm { padding: calc(var(--section-pad-y) / 2) 0; }

/* HERO EDITORIAL */
.hero-editorial {
    min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; 
    align-items: center; padding-top: 80px;
}
.hero-text { padding-right: 5%; }
.hero-text h1 { margin-bottom: 1.5rem; }
.hero-text .lead { font-size: 1.25rem; font-family: var(--font-heading); font-style: italic; color: var(--accent-gold); margin-bottom: 2rem; }
.hero-image-wrap { position: relative; height: 80vh; overflow: hidden; }
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-image-wrap::after {
    content: ''; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,0.2); margin: 2rem;
}

/* STATS BAR */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.stat-item { padding: 3rem 2rem; border-right: 1px solid var(--border-color); text-align: center; }
.stat-item:last-child { border-right: none; }
.stat-number { font-family: var(--font-heading); font-size: 4rem; color: var(--navy-dark); line-height: 1; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-secondary); }

/* ASYMMETRICAL SPLIT */
.split-section { display: grid; grid-template-columns: 5fr 7fr; gap: 4rem; align-items: stretch; }
.split-section.reverse { grid-template-columns: 7fr 5fr; }
.split-image { height: 100%; min-height: 500px; object-fit: cover; width: 100%; }
.split-content { display: flex; flex-direction: column; justify-content: center; }
.split-content .overline { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-gold); margin-bottom: 1rem; display: block;}

/* SERVICE CARDS - EDITORIAL STYLE */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 4rem; }
.service-card { border: 1px solid var(--border-color); padding: 3rem; transition: 0.4s; background: white; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(10,20,36,0.08); border-color: transparent; }
.service-card-icon { font-size: 2.5rem; color: var(--accent-gold); margin-bottom: 2rem; font-family: var(--font-heading); font-style: italic;}
.service-card h3 { margin-bottom: 1rem; font-size: 2rem; }
.service-card .btn-link { margin-top: 2rem; display: inline-flex; align-items: center; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--navy-dark); font-weight: 600; }
.service-card .btn-link::after { content: '→'; margin-left: 0.5rem; transition: 0.3s; }
.service-card:hover .btn-link::after { transform: translateX(5px); color: var(--accent-gold); }

/* METHODOLOGY TIMELINE (Vertical, elegant) */
.methodology-list { max-width: 800px; margin: 4rem auto 0; position: relative; }
.methodology-list::before { content: ''; position: absolute; left: 24px; top: 0; bottom: 0; width: 1px; background: var(--accent-gold); }
.method-step { position: relative; padding-left: 5rem; margin-bottom: 4rem; }
.method-step::before { 
    content: counter(step-counter, decimal-leading-zero); counter-increment: step-counter;
    position: absolute; left: 0; top: 0; width: 50px; height: 50px; background: var(--bg-color); border: 1px solid var(--accent-gold);
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading);
    color: var(--accent-gold); font-size: 1.2rem;
}
body { counter-reset: step-counter; }

/* DIAGNOSIS TABLE */
.diagnosis-table { width: 100%; border-collapse: collapse; margin-top: 2rem; }
.diagnosis-table th, .diagnosis-table td { padding: 1.5rem; border-bottom: 1px solid var(--border-color); text-align: left; }
.diagnosis-table th { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 400; color: var(--navy-dark); width: 33%; }
.diagnosis-table tr:hover td { background: rgba(10,20,36,0.02); }

/* FOOTER */
footer { background: var(--navy-dark); color: white; padding: 6rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 4rem; margin-bottom: 4rem; }
.footer-brand h2 { color: white; margin-bottom: 1rem; }
.footer-brand p { color: rgba(255,255,255,0.6); }
.footer-links h4 { color: white; margin-bottom: 1.5rem; font-size: 1.2rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.footer-links a:hover { color: var(--accent-gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; display: flex; justify-content: space-between; font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* MOBILE RESPONSIVENESS */
@media (max-width: 1024px) {
    .hero-editorial { grid-template-columns: 1fr; text-align: center; padding-top: 120px; }
    .hero-text { padding-right: 0; margin-bottom: 3rem; }
    .hero-image-wrap { height: 50vh; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); border-left: none; border-right: none; }
    .stat-item { border-bottom: 1px solid var(--border-color); border-right: 1px solid var(--border-color); }
    .stat-item:nth-child(even) { border-right: none; }
    .stat-item:nth-last-child(-n+2) { border-bottom: none; }
    .split-section, .split-section.reverse { grid-template-columns: 1fr; gap: 2rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
    .section { padding: var(--section-pad-y-mobile) 0; }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .nav-links { 
        position: fixed; top: 70px; left: -100%; width: 100%; height: calc(100vh - 70px); 
        background: white; flex-direction: column; align-items: center; justify-content: center; 
        transition: 0.4s ease; padding: 2rem;
    }
    .nav-links.active { left: 0; }
    .hamburger { display: flex; }
    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .services-grid { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: 1fr; }
    .stat-item { border-right: none !important; border-bottom: 1px solid var(--border-color); }
    .stat-item:last-child { border-bottom: none; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .method-step { padding-left: 0; padding-top: 4rem; }
    .methodology-list::before { display: none; }
    .method-step::before { left: 50%; transform: translateX(-50%); }
    .diagnosis-table th, .diagnosis-table td { display: block; width: 100%; }
    .diagnosis-table tr { display: block; border: 1px solid var(--border-color); margin-bottom: 1rem; padding: 1rem; }
    .diagnosis-table th { border-bottom: none; padding-bottom: 0.5rem; color: var(--accent-gold); }
    .diagnosis-table td { border-bottom: none; padding-top: 0; }
}

/* EXTRA MOBILE OPTIMIZATIONS */
@media (max-width: 768px) {
    .nav-links a {
        padding: 1rem;
        display: block;
        width: 100%;
        text-align: center;
        font-size: 1.1rem;
    }
    .btn {
        width: 100%;
        padding: 1.2rem;
        text-align: center;
    }
    .hamburger {
        padding: 10px;
    }
    .hero-editorial {
        padding-top: 100px;
    }
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .split-image {
        min-height: 300px;
    }
    .service-card {
        padding: 2rem;
    }
}
