/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --cream: #f8f5f0;
    --cream-light: #fdfbf7;
    --gold: #b8965a;
    --gold-light: #d4b878;
    --gold-dark: #9a7d44;
    --navy: #1e2a3a;
    --navy-light: #2c3e50;
    --navy-dark: #15202e;
    --text: #2a2a2a;
    --text-light: #5a5a5a;
    --white: #ffffff;
    --border: rgba(184, 150, 90, 0.25);
    --border-strong: rgba(184, 150, 90, 0.5);
    --max-width: 1200px;
    --transition: 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Jost', sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    font-weight: 300;
}
h1, h2, h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== NAVBAR ===== */
#navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    background: rgba(248, 245, 240, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition);
}
#navbar.scrolled {
    background: rgba(248, 245, 240, 0.97);
    box-shadow: 0 2px 20px rgba(30, 42, 58, 0.08);
}
.nav-container {
    max-width: var(--max-width); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 32px;
}
.nav-brand { display: flex; align-items: center; }
.brand-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem; font-weight: 600; letter-spacing: 2px;
    color: var(--navy);
}
.brand-accent { color: var(--gold); font-weight: 700; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-link {
    font-size: 0.9rem; font-weight: 400; letter-spacing: 1px;
    text-transform: uppercase; color: var(--text-light);
    transition: var(--transition); position: relative; padding: 4px 0;
}
.nav-link::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 1px; background: var(--gold);
    transition: var(--transition);
}
.nav-link:hover { color: var(--gold); }
.nav-link:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 20px; }

/* Language Switcher */
.lang-switcher { position: relative; }
.lang-btn {
    background: none; border: 1px solid var(--border);
    color: var(--text-light); padding: 6px 14px;
    font-family: 'Jost', sans-serif; font-size: 0.8rem; font-weight: 500;
    letter-spacing: 1px; cursor: pointer; border-radius: 2px;
    transition: var(--transition);
}
.lang-btn:hover { border-color: var(--gold); color: var(--gold); }
.lang-dropdown {
    position: absolute; top: 100%; right: 0;
    background: var(--cream-light); border: 1px solid var(--border);
    border-radius: 2px; min-width: 160px;
    box-shadow: 0 8px 30px rgba(30, 42, 58, 0.12);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: var(--transition); margin-top: 8px; overflow: hidden;
}
.lang-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option {
    display: block; padding: 10px 16px; font-size: 0.85rem;
    color: var(--text); border-bottom: 1px solid rgba(184,150,90,0.1);
    transition: var(--transition);
}
.lang-option:hover { background: var(--cream); color: var(--gold); }
.lang-option:last-child { border-bottom: none; }

/* Burger */
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { width: 24px; height: 2px; background: var(--navy); transition: var(--transition); }
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* ===== HERO ===== */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    justify-content: center; position: relative; text-align: center;
    padding: 120px 32px 80px;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
    color: var(--white);
}
.hero-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 60% 40%, rgba(184,150,90,0.12) 0%, transparent 60%);
    pointer-events: none;
}
.hero-content { max-width: 820px; position: relative; z-index: 2; }
.hero-badge {
    display: inline-block; padding: 8px 22px;
    border: 1px solid rgba(184,150,90,0.5); border-radius: 2px;
    font-size: 0.9rem; letter-spacing: 2.2px; text-transform: uppercase;
    color: var(--gold-light); margin-bottom: 32px; font-weight: 700;
}
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 500;
    letter-spacing: 1px; margin-bottom: 14px; color: var(--white);
}
.hero-brand {
    font-family: 'Jost', sans-serif; font-size: 1rem;
    color: rgba(255,255,255,0.7); margin-bottom: 28px; letter-spacing: 0.5px;
}
.hero-brand strong { color: var(--gold-light); font-weight: 600; }
.hero-text {
    font-size: 1.15rem; color: rgba(255,255,255,0.82);
    line-height: 1.8; max-width: 660px; margin: 0 auto 36px; font-weight: 300;
}
.hero-cta-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.hero-sub {
    font-size: 1.08rem; color: rgba(255,255,255,0.62);
    max-width: 620px; margin: 0 auto; line-height: 1.8; font-weight: 300;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block; padding: 14px 36px;
    font-family: 'Jost', sans-serif; font-size: 0.85rem;
    font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
    border-radius: 2px; transition: var(--transition); cursor: pointer;
    border: 1.5px solid transparent;
}
.btn-gold {
    background: var(--gold); color: var(--white); border-color: var(--gold);
}
.btn-gold:hover {
    background: var(--gold-dark); border-color: var(--gold-dark);
    transform: translateY(-2px); box-shadow: 0 8px 24px rgba(184,150,90,0.35);
}
.btn-outline-gold {
    background: transparent; color: var(--gold-light); border-color: var(--gold);
}
.btn-outline-gold:hover {
    background: rgba(184,150,90,0.1); transform: translateY(-2px);
}

/* ===== SECTIONS ===== */
.section {
    padding: 100px 32px; max-width: var(--max-width); margin: 0 auto;
}
.section-alt { max-width: none; background: var(--cream-light);
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.section-alt > .section-header,
.section-alt > .cards-grid { max-width: var(--max-width); margin-left: auto; margin-right: auto; }

/* Center the two Property Tax columns */
.section-alt .cards-grid { max-width: 900px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-left: auto; margin-right: auto; }
.section-dark {
    background: var(--navy); color: var(--white);
    max-width: none; padding: 100px 32px;
}
.section-dark > .section-header,
.section-dark > .expertise-intro,
.section-dark > .cards-grid { max-width: var(--max-width); margin-left: auto; margin-right: auto; }

.section-header { text-align: center; margin-bottom: 64px; }
.section-eyebrow {
    font-size: 0.78rem; letter-spacing: 3px; text-transform: uppercase;
    color: var(--gold); font-weight: 500; margin-bottom: 14px;
}
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 500;
    color: var(--navy); letter-spacing: 0.5px;
}
.section-header.light .section-eyebrow { color: var(--gold-light); }
.section-header.light .section-title { color: var(--white); }

/* ===== CARDS ===== */
.cards-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}
.cards-grid:has(.dark-card) { grid-template-columns: repeat(3, 1fr); }

/* Center the three About Us cards as a balanced group */
.about-cards-grid {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

.info-card {
    background: var(--cream-light); border: 1px solid var(--border);
    border-radius: 4px; padding: 40px 32px;
    transition: var(--transition); position: relative;
}
.info-card:hover {
    border-color: var(--border-strong); transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(30, 42, 58, 0.06);
}
.card-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem; color: var(--gold); font-weight: 600;
    margin-bottom: 18px; opacity: 0.7;
}
.info-card h3 {
    font-size: 1.3rem; color: var(--navy); margin-bottom: 14px;
    font-weight: 600; letter-spacing: 0.3px;
}
.info-card p {
    font-size: 1.02rem; color: var(--text-light); line-height: 1.75; font-weight: 300;
}

/* Dark cards */
.dark-card {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(184,150,90,0.2);
    color: var(--white);
}
.dark-card:hover { border-color: rgba(184,150,90,0.5); background: rgba(255,255,255,0.06);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15); }
.dark-card h3 { color: var(--white); }
.dark-card p { color: rgba(255,255,255,0.7); }

/* Expertise intro */
.expertise-intro { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.expertise-intro p { font-size: 1.1rem; color: rgba(255,255,255,0.75); line-height: 1.8; font-weight: 300; }

.process-card {
    max-width: 1000px; margin: 0 auto;
    background: var(--cream-light); border: 1px solid var(--border);
    border-radius: 4px; padding: 48px 52px;
    box-shadow: 0 8px 30px rgba(30, 42, 58, 0.04);
}
.process-card p {
    font-size: 1.05rem; color: var(--text-light); line-height: 1.8; font-weight: 300;
}
.process-intro { margin-bottom: 18px; }
.process-list {
    margin: 0 0 24px 20px; padding-left: 18px;
    color: var(--text-light); font-size: 1.02rem; line-height: 1.9; font-weight: 300;
}
.process-list li { padding-left: 6px; }

/* ===== CONTACT ===== */
.contact-section {
    background: var(--navy-dark); padding: 100px 32px; text-align: center;
}
.contact-content { max-width: 680px; margin: 0 auto; }
.contact-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--white);
    font-weight: 500; margin-bottom: 20px; letter-spacing: 0.5px;
}
.contact-text {
    font-size: 1.08rem; color: rgba(255,255,255,0.7);
    line-height: 1.8; margin-bottom: 40px; font-weight: 300;
}
.contact-cta-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.contact-info { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.contact-line { font-size: 0.9rem; color: rgba(255,255,255,0.5); letter-spacing: 0.5px; transition: var(--transition); }
a.contact-line:hover { color: var(--gold-light); }
.contact-sep { color: rgba(255,255,255,0.2); }

/* ===== FOOTER ===== */
.footer {
    background: var(--navy-dark); padding: 48px 32px;
    border-top: 1px solid rgba(184,150,90,0.15);
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; text-align: center; }
.footer-brand {
    font-family: 'Cormorant Garamond', serif; font-size: 1.3rem;
    font-weight: 600; letter-spacing: 2px; color: var(--white); margin-bottom: 20px;
}
.footer-links {
    display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
    margin-bottom: 20px;
}
.footer-links a {
    font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase;
    color: rgba(255,255,255,0.45); transition: var(--transition);
}
.footer-links a:hover { color: var(--gold-light); }
.footer-copy {
    font-size: 0.8rem; color: rgba(255,255,255,0.3); letter-spacing: 0.5px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .cards-grid:has(.dark-card) { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav-links {
        position: fixed; top: 64px; left: 0; width: 100%;
        background: rgba(248, 245, 240, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column; gap: 0;
        padding: 16px 0; border-bottom: 1px solid var(--border);
        transform: translateY(-120%); opacity: 0;
        transition: var(--transition); pointer-events: none;
    }
    .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
    .nav-link { padding: 12px 24px; width: 100%; text-align: center; }
    .nav-link::after { display: none; }
    .burger { display: flex; }
    .cards-grid { grid-template-columns: 1fr; gap: 20px; }
    .cards-grid:has(.dark-card) { grid-template-columns: 1fr; }
    .section { padding: 64px 20px; }
    .section-dark { padding: 64px 20px; }
    .contact-section { padding: 64px 20px; }
    .hero { padding: 100px 20px 64px; }
    .hero-cta-group, .contact-cta-group { flex-direction: column; align-items: stretch; }
    .btn { text-align: center; padding: 14px 24px; }
    .contact-info { gap: 8px; }
    .contact-sep { display: none; }
    .nav-container { padding: 14px 20px; }
    .brand-name { font-size: 1.15rem; }
    .lang-dropdown { right: -40px; }
}
@media (max-width: 480px) {
    .hero-badge { font-size: 0.75rem; padding: 7px 16px; font-weight: 700; }
    .hero-text { font-size: 1rem; }
    .hero-sub { font-size: 1rem; }
    .card-number { font-size: 1.6rem; }
    .info-card { padding: 32px 24px; }
    .footer-links { gap: 16px; }
}