/* ============================================
   The Maine Scoop Company — Stylesheet
   Classic & Elegant | Emerald + Cream
   ============================================ */

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

:root {
    --emerald-900: #042f23;
    --emerald-800: #064e3b;
    --emerald-700: #065f46;
    --emerald-600: #047857;
    --emerald-500: #059669;
    --emerald-400: #10b981;
    
    --cream-50: #faf9f6;
    --cream-100: #f5f0e8;
    --cream-200: #ece4d4;
    --cream-300: #e0d5c0;
    
    --gold-400: #d4a574;
    --gold-500: #c49a6c;
    --gold-600: #b8894f;
    
    --text-dark: #1a1a1a;
    --text-medium: #3d3d3d;
    --text-light: #6b6b6b;
    --text-white: #f5f0e8;
    
    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s 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;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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 ---------- */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
}

em {
    font-style: italic;
}

.section-label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--emerald-600);
    margin-bottom: 16px;
}

.section-label--light {
    color: var(--gold-400);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--emerald-800);
    margin-bottom: 24px;
}

.section-title--light {
    color: var(--cream-50);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 16px 32px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background-color: var(--emerald-700);
    color: var(--cream-50);
}

.btn-primary:hover {
    background-color: var(--emerald-800);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(6, 78, 59, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--cream-50);
    border: 1.5px solid rgba(245, 240, 232, 0.5);
}

.btn-outline:hover {
    background-color: rgba(245, 240, 232, 0.1);
    border-color: var(--cream-50);
}

.btn-light {
    background-color: var(--cream-50);
    color: var(--emerald-800);
}

.btn-light:hover {
    background-color: var(--cream-100);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--cream-50);
    border: 1.5px solid rgba(245, 240, 232, 0.5);
}

.btn-outline-light:hover {
    background-color: rgba(245, 240, 232, 0.1);
    border-color: var(--cream-50);
}

.btn-lg {
    padding: 20px 40px;
    font-size: 0.85rem;
}

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

.nav.scrolled {
    background-color: rgba(6, 47, 35, 0.95);
    backdrop-filter: blur(12px);
    padding: 14px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--cream-50);
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 500;
}

.nav-logo-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo-text {
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.8);
    transition: color var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold-400);
    transition: width var(--transition);
}

.nav-link:hover {
    color: var(--cream-50);
}

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

.nav-cta {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-400);
    border: 1px solid var(--gold-400);
    padding: 10px 20px;
    border-radius: 4px;
    transition: all var(--transition);
}

.nav-cta:hover {
    background-color: var(--gold-400);
    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 span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--cream-50);
    transition: all var(--transition);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background-color: var(--emerald-900);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu-link {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--cream-50);
    transition: color var(--transition);
}

.mobile-menu-link:hover {
    color: var(--gold-400);
}

.mobile-menu-cta {
    margin-top: 16px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-400);
    border: 1px solid var(--gold-400);
    padding: 14px 32px;
    border-radius: 4px;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--emerald-900);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(4, 47, 35, 0.92) 0%,
        rgba(6, 78, 59, 0.85) 50%,
        rgba(4, 47, 35, 0.78) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 24px 80px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-400);
    margin-bottom: 32px;
    padding: 10px 20px;
    border: 1px solid rgba(212, 165, 116, 0.3);
    border-radius: 50px;
    background-color: rgba(212, 165, 116, 0.08);
}

.hero-headline {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    color: var(--cream-50);
    font-weight: 300;
    line-height: 1.05;
    margin-bottom: 28px;
    max-width: 800px;
}

.hero-accent {
    color: var(--gold-400);
    font-weight: 400;
}

.hero-subhead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(245, 240, 232, 0.75);
    max-width: 560px;
    line-height: 1.8;
    margin-bottom: 48px;
    font-weight: 300;
}

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

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 0;
    background-color: rgba(245, 240, 232, 0.07);
    border: 1px solid rgba(245, 240, 232, 0.12);
    border-radius: 8px;
    padding: 28px 40px;
    backdrop-filter: blur(8px);
    max-width: 680px;
}

.hero-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-stat-number {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--gold-400);
    line-height: 1.2;
}

.hero-stat-label {
    font-size: 0.75rem;
    color: rgba(245, 240, 232, 0.65);
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.hero-stat-divider {
    width: 1px;
    height: 48px;
    background-color: rgba(245, 240, 232, 0.15);
    flex-shrink: 0;
}

/* ---------- Divider ---------- */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--emerald-600);
}

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

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

.about-image-wrap {
    position: relative;
}

.about-image-main {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(6, 78, 59, 0.15);
}

.about-image-main img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.about-image-float {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 55%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
    border: 4px solid var(--cream-50);
}

.about-image-float img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.about-float-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background-color: var(--emerald-800);
    color: var(--cream-50);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 4px;
}

.about-content {
    padding-top: 20px;
}

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

.about-features {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-feature {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.about-feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(6, 78, 59, 0.08);
    border: 1px solid rgba(6, 78, 59, 0.15);
    border-radius: 8px;
    color: var(--emerald-700);
}

.about-feature strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--emerald-800);
    margin-bottom: 4px;
}

.about-feature span {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ---------- Menu ---------- */
.menu {
    padding: 120px 0;
    background-color: var(--cream-100);
}

.menu-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.menu-intro {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
}

.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

.menu-tab {
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 14px 28px;
    border: 1.5px solid var(--emerald-600);
    border-radius: 50px;
    background: transparent;
    color: var(--emerald-700);
    cursor: pointer;
    transition: all var(--transition);
}

.menu-tab:hover {
    background-color: rgba(6, 78, 59, 0.06);
}

.menu-tab.active {
    background-color: var(--emerald-700);
    border-color: var(--emerald-700);
    color: var(--cream-50);
}

.menu-panel {
    display: none;
}

.menu-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.menu-card {
    background-color: var(--cream-50);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all var(--transition);
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(6, 78, 59, 0.12);
}

.menu-card-img {
    height: 200px;
    overflow: hidden;
}

.menu-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.menu-card-body {
    padding: 28px;
}

.menu-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.menu-card-header h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--emerald-800);
}

.menu-card-tag {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold-600);
    background-color: rgba(196, 154, 108, 0.12);
    padding: 4px 10px;
    border-radius: 50px;
}

.menu-card-body p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
}

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

.gallery-header {
    text-align: center;
    margin-bottom: 56px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 260px);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4, 47, 35, 0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay span {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--cream-50);
    font-weight: 500;
}

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

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

/* ---------- Visit ---------- */
.visit {
    padding: 120px 0;
    background-color: var(--cream-100);
}

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

.visit-detail {
    display: flex;
    gap: 20px;
    margin-bottom: 32px;
}

.visit-detail-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(6, 78, 59, 0.08);
    border: 1px solid rgba(6, 78, 59, 0.15);
    border-radius: 8px;
    color: var(--emerald-700);
}

.visit-detail strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--emerald-800);
    margin-bottom: 6px;
}

.visit-detail p {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.7;
}

.visit-detail a {
    color: var(--emerald-600);
    transition: color var(--transition);
}

.visit-detail a:hover {
    color: var(--emerald-800);
}

.visit-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    min-height: 480px;
}

.map-placeholder {
    width: 100%;
    min-height: 480px;
}

/* ---------- CTA ---------- */
.cta {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(4, 47, 35, 0.93) 0%,
        rgba(6, 78, 59, 0.88) 100%
    );
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.cta-content .section-title {
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.1rem;
    color: rgba(245, 240, 232, 0.75);
    line-height: 1.8;
    margin-bottom: 40px;
    font-weight: 300;
}

.cta-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(245, 240, 232, 0.1);
}

.footer-brand p {
    font-size: 0.88rem;
    color: rgba(245, 240, 232, 0.6);
    line-height: 1.8;
    margin-top: 16px;
    max-width: 280px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--cream-50);
}

.footer-logo-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-links,
.footer-contact,
.footer-hours {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links strong,
.footer-contact strong,
.footer-hours strong {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold-400);
}

.footer-links a {
    font-size: 0.88rem;
    color: rgba(245, 240, 232, 0.6);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--cream-50);
}

.footer-contact p,
.footer-hours p {
    font-size: 0.88rem;
    color: rgba(245, 240, 232, 0.6);
    line-height: 1.8;
}

.footer-contact a {
    color: rgba(245, 240, 232, 0.6);
    transition: color var(--transition);
}

.footer-contact a:hover {
    color: var(--gold-400);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(245, 240, 232, 0.4);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .about-grid {
        gap: 48px;
    }
    
    .gallery-grid {
        grid-template-rows: repeat(2, 220px);
    }
    
    .gallery-item--large {
        grid-column: span 6;
        grid-row: span 2;
    }
    
    .gallery-item--wide {
        grid-column: span 6;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-content {
        padding: 120px 24px 60px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
        padding: 24px;
        text-align: center;
    }
    
    .hero-stat-divider {
        width: 48px;
        height: 1px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .about-image-float {
        right: -16px;
        bottom: -24px;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    
    .gallery-item--large {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .gallery-item--wide {
        grid-column: span 2;
    }
    
    .gallery-item,
    .gallery-item--large,
    .gallery-item--wide {
        height: 220px;
    }
    
    .visit-grid {
        grid-template-columns: 1fr;
    }
    
    .visit-map {
        min-height: 320px;
        order: -1;
    }
    
    .map-placeholder {
        min-height: 320px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2.4rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        justify-content: center;
        width: 100%;
    }
    
    .menu-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .menu-tab {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item--large,
    .gallery-item--wide {
        grid-column: span 1;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
