/* ============================================
   Good Ground — Styles
   Clean minimalist · Midnight blue + Mint
   ============================================ */

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

:root {
    --midnight:    #0a1628;
    --midnight-lt: #132240;
    --mint:        #7ecba2;
    --mint-light:  #b8e6cc;
    --mint-pale:   #e8f5ed;
    --cream:       #f7f8f6;
    --white:       #ffffff;
    --gray-100:    #f0f1ef;
    --gray-200:    #e2e4e0;
    --gray-400:    #9a9e96;
    --gray-600:    #5c6159;
    --gray-800:    #2a2e28;
    --font-serif:  'Instrument Serif', Georgia, serif;
    --font-sans:   'Inter', system-ui, -apple-system, sans-serif;
    --ease:        cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--gray-800);
    background: var(--cream);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Skip Link ---------- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--midnight);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 0 0 6px 6px;
    z-index: 200;
    font-size: 0.875rem;
}
.skip-link:focus { top: 0; }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(247, 248, 246, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    transition: box-shadow 0.4s var(--ease);
}
.site-header.scrolled { box-shadow: 0 1px 20px rgba(10, 22, 40, 0.06); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--midnight);
    letter-spacing: -0.01em;
}
.logo-mark {
    width: 28px;
    height: 28px;
    color: var(--mint);
}

/* Nav */
.main-nav { display: flex; align-items: center; }
.nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}
.nav-list a {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gray-600);
    transition: color 0.25s var(--ease);
    position: relative;
}
.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--mint);
    transition: width 0.3s var(--ease);
}
.nav-list a:hover { color: var(--midnight); }
.nav-list a:hover::after { width: 100%; }

/* Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--midnight);
}
.icon-close { display: none; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 100px;
    border: 1px solid transparent;
    transition: all 0.3s var(--ease);
    cursor: pointer;
}
.btn-primary {
    background: var(--midnight);
    color: var(--white);
    border-color: var(--midnight);
}
.btn-primary:hover {
    background: var(--midnight-lt);
    border-color: var(--midnight-lt);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(10, 22, 40, 0.2);
}
.btn-ghost {
    background: transparent;
    color: var(--midnight);
    border-color: var(--gray-200);
}
.btn-ghost:hover {
    border-color: var(--midnight);
    background: var(--midnight);
    color: var(--white);
}
.btn-small { padding: 10px 20px; font-size: 0.75rem; }

/* ---------- Hero ---------- */
.hero {
    padding-top: 72px;
    background: var(--cream);
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    min-height: calc(100vh - 72px);
    padding: 64px 0 80px;
}
.hero-content { padding-right: 16px; }

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 24px;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--midnight);
    margin-bottom: 28px;
    letter-spacing: -0.02em;
}
.hero-headline em {
    font-style: italic;
    color: var(--mint);
}
.hero-headline .accent {
    display: block;
    color: var(--midnight);
    font-size: 0.65em;
    letter-spacing: 0.02em;
    margin-top: 4px;
}

.hero-sub {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--gray-600);
    max-width: 440px;
    margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.hero-image-wrap {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(10, 22, 40, 0.12);
}
.hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 4px 20px rgba(10, 22, 40, 0.06);
}
.hero-card-label {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mint);
}
.hero-card-hours {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--midnight);
}
.hero-card-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--gray-600);
    transition: color 0.25s var(--ease);
}
.hero-card-phone:hover { color: var(--midnight); }

/* Hero Divider */
.hero-divider {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.hero-divider::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: var(--gray-200);
}

/* ---------- Intro Strip ---------- */
.intro-strip {
    background: var(--midnight);
    padding: 0;
}
.intro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.intro-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 36px 40px;
    border-right: 1px solid rgba(126, 203, 162, 0.15);
}
.intro-item:last-child { border-right: none; }
.intro-label {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    color: var(--mint);
    white-space: nowrap;
    flex-shrink: 0;
}
.intro-sep {
    width: 24px;
    height: 1px;
    background: var(--mint);
    opacity: 0.4;
    flex-shrink: 0;
}
.intro-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

/* ---------- Section Shared ---------- */
.section-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mint);
    margin-bottom: 16px;
}
.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--midnight);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}
.section-desc {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--gray-600);
    max-width: 520px;
}

/* ---------- Products ---------- */
.products {
    padding: 120px 0;
    background: var(--cream);
}
.section-header { margin-bottom: 64px; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}
.product-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.product-card:hover {
    box-shadow: 0 16px 48px rgba(10, 22, 40, 0.1);
    transform: translateY(-4px);
}
.product-card-img {
    overflow: hidden;
    aspect-ratio: 4 / 3;
}
.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.product-card:hover .product-card-img img { transform: scale(1.04); }

.product-card-body { padding: 28px 32px 32px; }
.product-card-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--midnight);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.product-card-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--gray-600);
}

/* ---------- About ---------- */
.about {
    padding: 120px 0;
    background: var(--white);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}
.about-visual { border-radius: 16px; overflow: hidden; box-shadow: 0 24px 64px rgba(10, 22, 40, 0.1); }
.about-visual img { width: 100%; height: 100%; object-fit: cover; }

.about-content { padding-top: 16px; }
.about-body { margin-bottom: 40px; }
.about-body p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray-600);
    margin-bottom: 20px;
}
.about-body p:last-child { margin-bottom: 0; }

.about-values { display: flex; flex-direction: column; gap: 20px; }
.value-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    background: var(--cream);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}
.value-item .icon { color: var(--mint); margin-top: 2px; }
.value-label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--midnight);
    margin-bottom: 2px;
}
.value-desc {
    font-size: 0.8125rem;
    color: var(--gray-600);
}

/* ---------- Visit ---------- */
.visit {
    padding: 120px 0;
    background: var(--cream);
}
.visit-header { margin-bottom: 64px; }
.visit-header .section-desc { max-width: 480px; }

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.visit-info { display: flex; flex-direction: column; gap: 32px; }

.info-block h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--midnight);
    margin-bottom: 10px;
}
.info-block address {
    font-style: normal;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-600);
}
.info-block a {
    color: var(--gray-600);
    transition: color 0.25s var(--ease);
}
.info-block a:hover { color: var(--midnight); }

.hours-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}
.hours-table td {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-600);
}
.hours-table tr:last-child td { border-bottom: none; }
.hours-table td:first-child { color: var(--midnight); font-weight: 400; }
.hours-table td:last-child { text-align: right; }

.visit-map a {
    display: block;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(10, 22, 40, 0.1);
}
.visit-map img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 620 / 420;
}
.map-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    background: linear-gradient(transparent, rgba(10, 22, 40, 0.7));
    color: var(--white);
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background 0.3s var(--ease);
}
.map-overlay .icon { color: var(--mint-light); }
.visit-map a:hover .map-overlay { background: linear-gradient(transparent, rgba(10, 22, 40, 0.85)); }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--midnight);
    color: rgba(255, 255, 255, 0.5);
    padding: 64px 0 40px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 48px;
    align-items: start;
}
.logo--footer { color: var(--white); margin-bottom: 16px; }
.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.7;
    max-width: 240px;
}
.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.footer-links a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.25s var(--ease);
}
.footer-links a:hover { color: var(--mint); }
.footer-copy { text-align: right; font-size: 0.8125rem; }

/* ---------- Scroll Reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(24px); }
    .reveal.visible { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Mobile Nav Overlay ---------- */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    top: 72px;
    background: rgba(247, 248, 246, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 90;
    padding: 40px 24px;
}
.nav-overlay.open { display: flex; align-items: center; justify-content: center; }
.nav-overlay .nav-list {
    flex-direction: column;
    gap: 24px;
    text-align: center;
}
.nav-overlay .nav-list a {
    font-size: 1.125rem;
    color: var(--midnight);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero-grid { gap: 32px; }
    .about-grid { gap: 48px; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }

    /* Mobile menu */
    .menu-toggle { display: flex; align-items: center; justify-content: center; }
    .icon-menu { display: block; }
    .icon-close { display: block; }
    .main-nav { display: none; }
    .nav-overlay.open + .main-nav,
    .main-nav.mobile-open { display: flex; }
    .menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
    .menu-toggle[aria-expanded="true"] .icon-close { display: block; }

    /* Hero */
    .hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 48px 0 64px;
        gap: 40px;
    }
    .hero-content { padding-right: 0; order: 1; }
    .hero-visual { order: 2; }
    .hero-headline { font-size: clamp(2rem, 8vw, 3rem); }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }

    /* Intro strip */
    .intro-grid { grid-template-columns: 1fr; }
    .intro-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        border-right: none;
        border-bottom: 1px solid rgba(126, 203, 162, 0.15);
        padding: 24px 20px;
    }
    .intro-item:last-child { border-bottom: none; }
    .intro-sep { display: none; }

    /* Products */
    .products { padding: 80px 0; }
    .products-grid { grid-template-columns: 1fr; gap: 24px; }

    /* About */
    .about { padding: 80px 0; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-visual { border-radius: 12px; }
    .about-visual img { aspect-ratio: 4 / 3; }

    /* Visit */
    .visit { padding: 80px 0; }
    .visit-grid { grid-template-columns: 1fr; gap: 40px; }

    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    .footer-brand p { max-width: none; }
    .footer-copy { text-align: center; }
}

@media (max-width: 480px) {
    .hero-headline { font-size: clamp(1.75rem, 9vw, 2.5rem); }
    .section-title { font-size: clamp(1.75rem, 7vw, 2.25rem); }
    .product-card-body { padding: 20px 24px 24px; }
}
