/* ============================================
   C21 Grub & Social — Stylesheet
   Classic & Elegant · Emerald + Cream
   ============================================ */

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

:root {
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --cream-50: #faf9f6;
    --cream-100: #f5f2eb;
    --cream-200: #ebe5d8;
    --gold: #c9a84c;
    --gold-light: #d4a574;
    --text-dark: #1a1a1a;
    --text-mid: #3d3d3d;
    --text-light: #6b6b6b;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--cream-50);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

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

/* --- Typography --- */
.section-eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--emerald-700);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--emerald-900);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 560px;
    line-height: 1.8;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--emerald-800);
    color: #fff;
    border-color: var(--emerald-800);
}

.btn--primary:hover {
    background-color: var(--emerald-700);
    border-color: var(--emerald-700);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(6, 95, 70, 0.25);
}

.btn--ghost {
    background-color: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--ghost:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn--outline {
    background-color: transparent;
    color: var(--emerald-800);
    border-color: var(--emerald-800);
}

.btn--outline:hover {
    background-color: var(--emerald-800);
    color: #fff;
    transform: translateY(-2px);
}

.btn--full {
    width: 100%;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    transition: all var(--transition);
}

.nav.scrolled {
    background-color: rgba(250, 249, 246, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--cream-200);
}

.nav.scrolled .nav__logo-text {
    color: var(--emerald-900);
}

.nav.scrolled .nav__link {
    color: var(--text-mid);
}

.nav.scrolled .nav__link:hover {
    color: var(--emerald-800);
}

.nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav__logo-mark {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    background-color: var(--emerald-800);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all var(--transition);
}

.nav.scrolled .nav__logo-mark {
    background-color: var(--emerald-800);
}

.nav__logo-text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    transition: color var(--transition);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition);
    letter-spacing: 0.02em;
}

.nav__link:hover {
    color: #fff;
}

.nav__link--cta {
    padding: 8px 20px;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: #fff;
    transition: all var(--transition);
}

.nav__link--cta:hover {
    background-color: #fff;
    color: var(--emerald-900);
}

/* Mobile Toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav__toggle-bar {
    width: 22px;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: all var(--transition);
}

.nav.scrolled .nav__toggle-bar {
    background-color: var(--emerald-900);
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.pexels.com/photos/1070460/pexels-photo-1070460.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1.05); }
    to { transform: scale(1.12); }
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(6, 78, 59, 0.82) 0%,
        rgba(6, 95, 70, 0.70) 50%,
        rgba(4, 50, 38, 0.85) 100%
    );
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 120px 24px 80px;
    max-width: 780px;
}

.hero__card {
    background-color: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(16px);
    border-radius: 8px;
    padding: 56px 48px;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.2);
    animation: fadeUp 1s ease-out 0.3s both;
}

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

.hero__eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--emerald-700);
    margin-bottom: 16px;
}

.hero__headline {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 600;
    line-height: 1.3;
    color: var(--emerald-900);
    margin-bottom: 20px;
}

.hero__subhead {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 32px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Floating Stat Cards */
.hero__stats {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    padding: 0 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background-color: rgba(250, 249, 246, 0.95);
    backdrop-filter: blur(12px);
    padding: 18px 24px;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    animation: fadeUp 1s ease-out both;
    flex: 1;
    min-width: 200px;
    max-width: 280px;
}

.stat-card--1 { animation-delay: 0.6s; }
.stat-card--2 { animation-delay: 0.8s; }
.stat-card--3 { animation-delay: 1.0s; }

.stat-card__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--emerald-800);
    border-radius: 8px;
    color: #fff;
    flex-shrink: 0;
}

.stat-card__number {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--emerald-900);
    line-height: 1.2;
}

.stat-card__label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: 130px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

.hero__scroll svg {
    color: rgba(255, 255, 255, 0.6);
}

/* --- About Section --- */
.about {
    padding: 120px 0;
    background-color: var(--cream-50);
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about__image-wrap {
    position: relative;
}

.about__image {
    border-radius: 8px;
    width: 100%;
    height: 500px;
    object-fit: cover;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.about__image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background-color: var(--emerald-800);
    border-radius: 8px;
    z-index: -1;
    opacity: 0.15;
}

.about__content {
    padding: 16px 0;
}

.about__text {
    font-size: 1rem;
    color: var(--text-mid);
    line-height: 1.9;
    margin-bottom: 20px;
}

.about__values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 36px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
}

.value-item svg {
    color: var(--emerald-700);
    flex-shrink: 0;
}

/* --- Offerings Section --- */
.offerings {
    padding: 120px 0;
    background-color: var(--cream-100);
}

.offerings__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.offering-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: all var(--transition);
}

.offering-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.offering-card__image-wrap {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.offering-card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.offering-card:hover .offering-card__image-wrap img {
    transform: scale(1.08);
}

.offering-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 78, 59, 0.6), transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--transition);
}

.offering-card:hover .offering-card__overlay {
    opacity: 1;
}

.offering-card__overlay svg {
    color: #fff;
}

.offering-card__body {
    padding: 28px;
}

.offering-card__title {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--emerald-900);
    margin-bottom: 10px;
}

.offering-card__desc {
    font-size: 0.925rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* --- Gallery Section --- */
.gallery {
    padding: 120px 0;
    background-color: var(--cream-50);
}

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

.gallery__item {
    border-radius: 8px;
    overflow: hidden;
}

.gallery__item--wide {
    grid-column: span 8;
}

.gallery__item:not(.gallery__item--wide) {
    grid-column: span 4;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
    min-height: 240px;
}

.gallery__item:hover img {
    transform: scale(1.05);
}

/* --- Visit Section --- */
.visit {
    padding: 120px 0;
    background-color: var(--emerald-900);
    color: #fff;
}

.visit__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.visit .section-eyebrow {
    color: var(--gold-light);
}

.visit .section-title {
    color: #fff;
}

.visit__text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.9;
    margin-bottom: 40px;
}

.visit__details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.visit__detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.visit__icon {
    color: var(--gold-light);
    flex-shrink: 0;
    margin-top: 2px;
}

.visit__detail-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 4px;
}

.visit__detail-value {
    display: block;
    font-size: 1rem;
    color: #fff;
    line-height: 1.6;
}

.visit__detail-value a {
    color: #fff;
    transition: color var(--transition);
}

.visit__detail-value a:hover {
    color: var(--gold-light);
}

.visit__map {
    border-radius: 8px;
    overflow: hidden;
    min-height: 400px;
    background-color: var(--emerald-800);
}

.visit__map-placeholder {
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--emerald-800), var(--emerald-900));
}

.visit__map-placeholder svg {
    color: var(--gold-light);
}

.visit__map-placeholder p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.7;
}

/* --- Contact Section --- */
.contact {
    padding: 120px 0;
    background-color: var(--cream-100);
}

.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact__text-body {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.9;
    margin-top: 20px;
}

/* Form */
.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-mid);
    margin-bottom: 8px;
}

.form__input {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-dark);
    background-color: #fff;
    border: 1.5px solid var(--cream-200);
    border-radius: 4px;
    transition: all var(--transition);
    outline: none;
}

.form__input:focus,
.form__select:focus {
    border-color: var(--emerald-700);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form__input::placeholder {
    color: var(--text-light);
}

.form__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__success {
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 18px;
    background-color: rgba(5, 150, 105, 0.08);
    border: 1px solid rgba(5, 150, 105, 0.2);
    border-radius: 4px;
    color: var(--emerald-800);
    font-size: 0.9rem;
    font-weight: 500;
}

.form__success svg {
    flex-shrink: 0;
    color: var(--emerald-700);
}

.form__success.show {
    display: flex;
}

/* --- Footer --- */
.footer {
    background-color: var(--emerald-900);
    color: #fff;
    padding: 80px 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 60px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    text-decoration: none;
}

.footer__logo-mark {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    background-color: var(--emerald-700);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.footer__logo-text {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 500;
    color: #fff;
}

.footer__tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    max-width: 280px;
}

.footer__heading {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 20px;
}

.footer__links ul,
.footer__hours ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__links li a,
.footer__hours li {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    transition: color var(--transition);
    line-height: 1.5;
}

.footer__links li a:hover {
    color: #fff;
}

.hours__day {
    display: block;
    color: rgba(255, 255, 255, 0.65);
}

.hours__time {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer__bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
}

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background-color: var(--emerald-900);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu__close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    padding: 8px;
}

.mobile-menu__list {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-menu__link {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition);
}

.mobile-menu__link:hover {
    color: #fff;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .about__grid,
    .visit__grid,
    .contact__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about__image {
        height: 400px;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .gallery__item--wide {
        grid-column: span 12;
    }

    .gallery__item:not(.gallery__item--wide) {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    .nav__links {
        display: none;
    }

    .nav__toggle {
        display: flex;
    }

    .hero__card {
        padding: 40px 28px;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .hero__stats {
        flex-direction: column;
        align-items: center;
        bottom: 20px;
        padding: 0 20px;
    }

    .stat-card {
        max-width: 100%;
        width: 100%;
    }

    .offerings__grid {
        grid-template-columns: 1fr;
    }

    .gallery__item:not(.gallery__item--wide) {
        grid-column: span 12;
    }

    .gallery__item img {
        min-height: 200px;
    }

    .about__values {
        grid-template-columns: 1fr;
    }

    .form__row {
        grid-template-columns: 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .hero__card {
        padding: 32px 20px;
    }

    .container {
        padding: 0 16px;
    }

    .about,
    .offerings,
    .gallery,
    .visit,
    .contact {
        padding: 80px 0;
    }
}

/* --- Animations on scroll --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
