/* ===== CSS VARIABLES ===== */
:root {
    /* navy / gold / white palette */
    --color-primary: #132f45;          /* darker gray-navy */
    --color-primary-light: #244a63;    /* darker supporting blue */
    --color-primary-dark: #0b1d2d;     /* deeper navy */
    --color-accent: #d4af37;           /* gold */
    --color-accent-light: #e2c77b;
    --color-accent-dark: #a88f2a;
    --color-bg: #ffffff;
    --color-surface: #ffffff;
    --color-text: #1a2e42;
    --color-text-light: #555555;
    --color-text-on-dark: #ffffff;
    --color-border: #dddddd;

    --font-display: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);

    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== RESET & BASE ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
p { margin-bottom: 1rem; text-wrap: pretty; }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--spacing-md); }

h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-primary);
    text-wrap: balance;
}

a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
a:hover { text-decoration: underline; }

/* ===== NAVIGATION ===== */
.navbar {
    position: sticky; top: 0; background: var(--color-primary);
    color: var(--color-text-on-dark);
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.4);
}

.nav-wrapper { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; }

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-on-dark);
}

.nav-menu { display: flex; list-style: none; gap: 2rem; align-items: center; }
.nav-menu a {
    font-weight: 500; font-size: 0.925rem; color: var(--color-text-on-dark);
    position: relative;
    padding: 0.5rem 0;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--color-accent); }
.nav-menu a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--color-accent); transition: var(--transition-base); }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }

.mobile-menu-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.mobile-menu-toggle span { width: 24px; height: 2px; background: var(--color-text-on-dark); transition: var(--transition-base); }

@media (max-width: 768px) {
    .mobile-menu-toggle { display: flex; }
    .nav-menu {
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column;
        background: var(--color-primary);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .nav-menu.active { max-height: 500px; }
    .nav-menu a { padding: 1rem var(--spacing-md); }
}

/* ===== HERO ===== */
.hero {
    position: relative;
    padding: 2.5rem 0 2rem;
    background: var(--color-primary);
    color: var(--color-text-on-dark);
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-pattern {
    position: absolute; inset: 0; opacity: 0.05;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.1) 35px, rgba(255,255,255,.1) 70px);
}
.hero-content { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.hero-title { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 600; margin-bottom: 1rem; color: var(--color-text-on-dark); letter-spacing: 0.02em; }

@media (min-width: 992px) {
    .hero-title { font-size: 2.6rem; }
}
.hero-title .highlight { display: block; color: var(--color-accent); margin-top: 0.6rem; font-size: 1.2rem; margin-bottom: 1.5rem; }
.hero-subtitle { font-size: 1.1rem; color: #ffffff; margin-bottom: 0.25rem; line-height: 1.7; font-weight: 400; text-wrap: balance; max-width: 680px; margin-left: auto; margin-right: auto; }

/* ===== BUTTONS ===== */
.cta-button, .cta-button-secondary {
    display: inline-block; padding: 1rem 2.5rem; border-radius: 8px; font-weight: 500; font-size: 0.925rem; text-decoration: none; transition: var(--transition-base);
}
.cta-button { background: var(--color-accent); color: var(--color-primary-dark); border: none; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.cta-button:hover { background: var(--color-accent-light); transform: translateY(-3px); }
.cta-button-secondary { background: var(--color-bg); color: var(--color-primary); border: 2px solid var(--color-primary); }
.cta-button-secondary:hover { background: var(--color-primary); color: var(--color-text-on-dark); }

/* ===== SECTIONS ===== */
.section-title { text-align: center; margin-bottom: 0.5rem; font-size: 1.5rem; }
@media (min-width: 992px) { .section-title { font-size: 1.75rem; } }
.section-subtitle { font-size: 1.075rem; text-align: center; color: var(--color-text-light); max-width: 700px; margin: 0 auto 3rem; }

.value-prop { padding: 1.25rem 0 0; background: var(--color-surface); }
.value-prop .lead-text { margin-bottom: 0; }

.services-overview { padding: 1.75rem 0 var(--spacing-md); background: var(--color-bg); }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 0; justify-items: center; max-width: 1040px; margin-left: auto; margin-right: auto; }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }
.service-card { background: var(--color-surface); padding: 1.75rem; max-width: 520px; width: 100%; border-radius: 12px; border: 1px solid var(--color-border); transition: var(--transition-base); animation: fadeIn 0.6s ease backwards; }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--color-accent); }
.service-icon { color: var(--color-accent); margin-bottom: 1.5rem; }
.service-card h3 { font-size: 1.375rem; margin-bottom: 1rem; color: var(--color-text); }
.service-card p { color: var(--color-text-light); margin-bottom: 1.5rem; line-height: 1.7; }
.service-link { color: var(--color-accent); font-weight: 500; display: inline-flex; align-items: center; }
.service-link:hover { color: var(--color-accent-dark); text-decoration: underline; }

/* Home page cards are intentionally tighter than inner-page cards */
.services-overview .service-card { padding: 1.2rem; max-width: 470px; }
.services-overview .service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.services-overview .service-icon { margin-bottom: 0.9rem; }
.services-overview .service-icon svg { width: 52px; height: 52px; }
.services-overview .service-card h3 { font-size: 1.12rem; margin-bottom: 0.6rem; }
.services-overview .service-card p { margin-bottom: 0.9rem; line-height: 1.55; font-size: 0.95rem; flex-grow: 1; }

/* Home page spacing overrides to avoid cramped stacking after hero copy changes */
.home-hero { padding: 5rem 0 3.75rem; }
.home-hero .hero-content { max-width: 900px; }
.home-hero .hero-title {
    margin-bottom: 0;
    line-height: 1.2;
    color: var(--color-text-on-dark);
    font-size: 2.2rem;
    font-weight: 500;
    font-family: 'Syne', sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@media (min-width: 992px) {
    .home-hero .hero-title { font-size: 3.4rem; }
}

.home-intro { padding: 2rem 0 1.25rem; }
.home-intro .section-title { color: var(--color-accent); font-weight: 600; font-size: 1.35rem; }
.home-intro .value-content { max-width: 780px; margin: 0 auto; }
.home-intro .lead-text {
    margin-bottom: 0;
    text-align: center;
    font-size: 1.04rem;
    line-height: 1.68;
}

.home-services { padding-top: 2rem; }
.home-services .services-grid { gap: 2rem; max-width: 1120px; }
.home-services .services-grid > .service-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
}

@media (min-width: 992px) {
    .home-services .service-card h3 { min-height: 2.6em; }
    .home-services .service-card p { min-height: 5.2em; }
}

/* CTA wrapper centering and spacing */
.cta-box { max-width: 700px; margin: 0 auto; text-align: center; padding: 3rem; }

/* ===== DIFFERENTIATORS ===== */
.differentiators { padding: var(--spacing-lg) 0; background: var(--color-bg); }
.diff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.diff-card { background: var(--color-surface); padding: 2rem; border-radius: 8px; border-left: 4px solid var(--color-accent); border: 1px solid var(--color-border); border-left: 4px solid var(--color-accent); }
.diff-card h3 { font-size: 1.1rem; margin-bottom: 0.75rem; color: var(--color-primary); }
.diff-card p { color: var(--color-text-light); line-height: 1.7; margin: 0; }

/* ===== CTA SECTION ===== */
.cta-section { padding: var(--spacing-lg) 0; background: var(--color-primary); color: white; text-align: center; }
.cta-content h2 { font-size: 1.75rem; margin-bottom: 1rem; color: white; }
.cta-content p { font-size: 1.05rem; margin-bottom: 2rem; max-width: 700px; margin-left: auto; margin-right: auto; color: rgba(255,255,255,0.9); }

/* ===== LEAD MAGNET ===== */
.lead-magnet {
    padding: 3.25rem 0;
    background: #f7f8fa;
}

.lead-content {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.lead-text h2 {
    font-size: 1.55rem;
    color: var(--color-primary);
    margin-bottom: 0.9rem;
    line-height: 1.35;
}

.lead-text p {
    font-size: 1.02rem;
    color: var(--color-text-light);
    margin: 0 auto 1.5rem;
    max-width: 700px;
    line-height: 1.7;
}

.lead-button {
    margin-top: 0.25rem;
}

@media (max-width: 640px) {
    .lead-magnet { padding: 2.5rem 0; }
    .lead-text h2 { font-size: 1.28rem; }
    .lead-text p { font-size: 0.97rem; }
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-primary-dark);
    color: rgba(255,255,255,0.88);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-grid,
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.25rem;
    margin-bottom: 2.25rem;
}

.footer-col h4,
.footer-section h4 {
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 0.85rem;
}

.footer-col ul,
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li,
.footer-section li {
    margin-bottom: 0.45rem;
}

.footer-logo {
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin-bottom: 0.65rem;
}

.footer a {
    color: rgba(255,255,255,0.86);
    text-decoration: none;
}

.footer a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.14);
    padding-top: 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 1.25rem;
}

@media (max-width: 768px) {
    .footer-bottom-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .footer-links {
        gap: 1rem;
    }
}

@media (max-width: 640px) { .diff-grid { grid-template-columns: 1fr; } }

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* utility */
p, .hero-subtitle, .lead-text, .testimonial-text { overflow-wrap: break-word; }
h1, h2, h3, h4, h5, h6 { hyphens: none; }
.gold-text { color: var(--color-accent); font-weight: 600; font-size: 3.3rem; }
.hero-emphasis { color: var(--color-accent); font-weight: 600; }
