/* ───────────────────────────────────────────
   Bennys Gorditas — Styles
   ─────────────────────────────────────────── */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 300;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #1a2e28;
    background-color: #FDFBF7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #064E3B;
    color: #FDFBF7;
    padding: 0.5rem 1rem;
    z-index: 1000;
    font-size: 0.875rem;
    border-radius: 0 0 4px 4px;
}

.skip-link:focus {
    top: 0;
}

/* ───────────────────────────────────────────
   Layout
   ─────────────────────────────────────────── */

.page-wrapper {
    min-height: 100vh;
}

/* ───────────────────────────────────────────
   Typography
   ─────────────────────────────────────────── */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #064E3B;
    margin-bottom: 1.5rem;
}

.eyebrow .line {
    display: block;
    width: 2rem;
    height: 1px;
    background: #064E3B;
}

.section-heading {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 400;
    line-height: 1.15;
    color: #1a2e28;
    margin-bottom: 1.5rem;
}

.section-sub {
    font-size: 1rem;
    line-height: 1.75;
    color: #4a5e58;
    max-width: 480px;
}

.italic-accent {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-weight: 400;
}

/* ───────────────────────────────────────────
   Buttons
   ─────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 0;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #064E3B;
    color: #FDFBF7;
    border: 1px solid #064E3B;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: #043828;
    border-color: #043828;
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: #1a2e28;
    border: 1px solid #c8d5cf;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    border-color: #064E3B;
    color: #064E3B;
    transform: translateY(-1px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 0.8125rem;
}

/* ───────────────────────────────────────────
   Header / Navigation
   ─────────────────────────────────────────── */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(253, 251, 247, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(10, 58, 43, 0.08);
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 1px 20px rgba(10, 58, 43, 0.06);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #064E3B;
    color: #FDFBF7;
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.logo-text {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.125rem;
    color: #1a2e28;
    letter-spacing: 0.01em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.8125rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #4a5e58;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #064E3B;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #064E3B;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    color: #064E3B !important;
    border: 1px solid #064E3B;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s ease !important;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: #064E3B;
    color: #FDFBF7 !important;
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hamburger {
    display: block;
    width: 20px;
    height: 1px;
    background: #1a2e28;
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 1px;
    background: #1a2e28;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ───────────────────────────────────────────
   Hero
   ─────────────────────────────────────────── */

.hero {
    min-height: 100vh;
    padding: 120px 2rem 80px;
    background: #FDFBF7;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(135deg, #F8F3E8 0%, #F2EBD8 100%);
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 0;
}

.hero-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 520px;
}

.hero-headline {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    color: #1a2e28;
    margin-bottom: 1.5rem;
}

.hero-sub {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #4a5e58;
    margin-bottom: 2.5rem;
    max-width: 420px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    min-height: 560px;
}

.hero-card {
    position: relative;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(6, 78, 59, 0.12);
}

.hero-card--main img {
    width: 100%;
    height: 560px;
    object-fit: cover;
}

.card-label {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(253, 251, 247, 0.92);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #064E3B;
}

.card-label-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #064E3B;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Floating stat cards */
.float-card {
    position: absolute;
    background: #FDFBF7;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 12px 40px rgba(6, 78, 59, 0.1);
    border: 1px solid rgba(10, 58, 43, 0.08);
    z-index: 2;
}

.float-card--1 {
    bottom: -30px;
    left: -40px;
}

.float-card--2 {
    top: 40px;
    right: -30px;
}

.float-card-number {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.25rem;
    color: #064E3B;
    margin-bottom: 0.375rem;
}

.float-card-label {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4a5e58;
    line-height: 1.6;
}

.float-card-sub {
    font-weight: 300;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.8125rem;
}

.hero-divider {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: 3rem;
}

.divider-line {
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #c8d5cf, transparent);
}

/* ───────────────────────────────────────────
   About
   ─────────────────────────────────────────── */

.about {
    padding: 120px 2rem;
    background: #FDFBF7;
}

.about-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.about-text {
    max-width: 640px;
    margin-bottom: 4rem;
}

.about-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.about-body p {
    font-size: 0.9375rem;
    line-height: 1.85;
    color: #4a5e58;
}

.about-body p + p {
    margin-top: 1.25rem;
}

.about-stats {
    display: flex;
    gap: 0;
    border-top: 1px solid rgba(10, 58, 43, 0.1);
    padding-top: 3rem;
}

.stat-divider {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(10, 58, 43, 0.1);
}

.stat-item {
    flex: 1;
    padding: 0 2rem;
    position: relative;
}

.stat-item:not(:last-child) {
    border-right: 1px solid rgba(10, 58, 43, 0.1);
}

.stat-label {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #064E3B;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.375rem;
    color: #1a2e28;
}

/* ───────────────────────────────────────────
   Specialties
   ─────────────────────────────────────────── */

.specialties {
    padding: 120px 2rem;
    background: #F8F3E8;
}

.specialties-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    max-width: 640px;
    margin-bottom: 4rem;
}

.specialties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.specialty-card {
    position: relative;
    display: block;
    group: true;
    background: #FDFBF7;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid rgba(10, 58, 43, 0.06);
}

.specialty-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(6, 78, 59, 0.1);
}

.specialty-card-image {
    overflow: hidden;
    aspect-ratio: 4/3;
}

.specialty-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.specialty-card:hover .specialty-card-image img {
    transform: scale(1.05);
}

.specialty-card-body {
    padding: 1.75rem;
}

.specialty-card-title {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.375rem;
    color: #1a2e28;
    margin-bottom: 0.625rem;
}

.specialty-card-desc {
    font-size: 0.875rem;
    line-height: 1.75;
    color: #4a5e58;
}

.specialty-card-arrow {
    position: absolute;
    top: 1.75rem;
    right: 1.75rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #c8d5cf;
    color: #064E3B;
    transition: all 0.3s ease;
}

.specialty-card:hover .specialty-card-arrow {
    background: #064E3B;
    border-color: #064E3B;
    color: #FDFBF7;
}

/* ───────────────────────────────────────────
   Gallery
   ─────────────────────────────────────────── */

.gallery {
    padding: 120px 2rem;
    background: #FDFBF7;
}

.gallery-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    max-width: 640px;
    margin-bottom: 4rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    gap: 1rem;
}

.gallery-item {
    overflow: hidden;
    position: relative;
}

.gallery-item--large {
    grid-column: span 7;
}

.gallery-item--tall {
    grid-column: span 5;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(6, 78, 59, 0);
    transition: background 0.3s ease;
}

.gallery-item:hover::after {
    background: rgba(6, 78, 59, 0.04);
}

/* ───────────────────────────────────────────
   Visit / Contact
   ─────────────────────────────────────────── */

.visit {
    padding: 120px 2rem;
    background: #064E3B;
    color: #FDFBF7;
}

.visit-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.visit-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.visit .eyebrow {
    color: rgba(253, 251, 247, 0.6);
}

.visit .eyebrow .line {
    background: rgba(253, 251, 247, 0.3);
}

.visit .section-heading {
    color: #FDFBF7;
}

.visit-details {
    margin: 3rem 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.visit-detail {
    border-bottom: 1px solid rgba(253, 251, 247, 0.1);
    padding-bottom: 2rem;
}

.detail-label {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(253, 251, 247, 0.5);
    margin-bottom: 0.625rem;
}

.detail-value {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.25rem;
    color: #FDFBF7;
    line-height: 1.6;
}

.detail-value a {
    color: #FDFBF7;
    transition: color 0.2s ease;
    text-decoration: none;
    border-bottom: 1px solid rgba(253, 251, 247, 0.3);
}

.detail-value a:hover {
    color: #F8F3E8;
    border-color: #F8F3E8;
}

.hours-note {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 300;
    color: rgba(253, 251, 247, 0.5);
    margin-top: 0.25rem;
}

.visit-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.visit .btn-primary {
    background: #FDFBF7;
    color: #064E3B;
    border-color: #FDFBF7;
}

.visit .btn-primary:hover,
.visit .btn-primary:focus-visible {
    background: #F8F3E8;
    border-color: #F8F3E8;
}

.visit .btn-ghost {
    color: #FDFBF7;
    border-color: rgba(253, 251, 247, 0.3);
}

.visit .btn-ghost:hover,
.visit .btn-ghost:focus-visible {
    border-color: #FDFBF7;
    color: #FDFBF7;
}

/* Map */
.visit-map {
    position: relative;
}

.map-placeholder {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.map-inner {
    position: relative;
}

.map-bg {
    width: 100%;
    height: 450px;
    object-fit: cover;
    filter: saturate(0.7) brightness(0.85);
    transition: filter 0.4s ease;
}

.map-placeholder:hover .map-bg {
    filter: saturate(0.9) brightness(0.9);
}

.map-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(6, 78, 59, 0.25);
    gap: 0.75rem;
}

.map-pin {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FDFBF7;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.map-label {
    font-family: 'Instrument Serif', Georgia, serif;
    font-size: 1.125rem;
    color: #FDFBF7;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.map-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(253, 251, 247, 0.7);
    transition: color 0.2s ease;
    padding: 0.625rem 1.25rem;
    border: 1px solid rgba(253, 251, 247, 0.25);
    border-radius: 0;
}

.map-link:hover {
    color: #FDFBF7;
    border-color: rgba(253, 251, 247, 0.6);
}

/* ───────────────────────────────────────────
   Footer
   ─────────────────────────────────────────── */

.site-footer {
    padding: 60px 2rem;
    background: #043828;
    color: #FDFBF7;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-tagline {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(253, 251, 247, 0.5);
    max-width: 280px;
    margin-top: 1rem;
}

.footer-divider {
    height: 1px;
    background: rgba(253, 251, 247, 0.08);
    margin-bottom: 2rem;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: rgba(253, 251, 247, 0.5);
}

.footer-contact a {
    color: rgba(253, 251, 247, 0.5);
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: #FDFBF7;
}

.footer-sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(253, 251, 247, 0.2);
}

.footer-copy {
    font-size: 0.75rem;
    color: rgba(253, 251, 247, 0.3);
}

/* ───────────────────────────────────────────
   Scroll Reveal
   ─────────────────────────────────────────── */

.reveal-up {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Default state for animated elements — visible by default */
.reveal-up[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
}

.reveal-up[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ───────────────────────────────────────────
   Responsive
   ─────────────────────────────────────────── */

@media (max-width: 1024px) {
    .hero::before {
        width: 40%;
    }
    
    .hero-grid {
        gap: 2rem;
    }
    
    .specialties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-item--large {
        grid-column: span 8;
    }
    
    .gallery-item--tall {
        grid-column: span 4;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(253, 251, 247, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(10, 58, 43, 0.08);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }
    
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        padding: 100px 1.5rem 60px;
        min-height: auto;
    }
    
    .hero::before {
        display: none;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-visual {
        min-height: auto;
    }
    
    .hero-card--main img {
        height: 400px;
    }
    
    .float-card {
        display: none;
    }
    
    .about {
        padding: 80px 1.5rem;
    }
    
    .about-body {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .stat-item {
        padding: 0;
        border-right: none !important;
        border-bottom: 1px solid rgba(10, 58, 43, 0.1);
        padding-bottom: 1.5rem;
    }
    
    .stat-item:last-child {
        border-bottom: none;
    }
    
    .specialties {
        padding: 80px 1.5rem;
    }
    
    .specialties-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery {
        padding: 80px 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .gallery-item--large,
    .gallery-item--tall {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .gallery-item--tall img {
        height: 250px;
    }
    
    .visit {
        padding: 80px 1.5rem;
    }
    
    .visit-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .map-bg {
        height: 300px;
    }
    
    .footer-top {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 90px 1.25rem 50px;
    }
    
    .hero-headline {
        font-size: 2.125rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        justify-content: center;
        width: 100%;
    }
    
    .nav-inner {
        padding: 0 1.25rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item--large {
        grid-column: span 1;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal-up[data-reveal] {
        opacity: 1;
        transform: none;
    }
}
