/* ========================================
   The Sweet Hayvin — Stylesheet
   Classic & Elegant | Charcoal + Coral
======================================== */

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

:root {
    --charcoal: #1a1a1a;
    --charcoal-light: #2d2d2d;
    --charcoal-mid: #3a3a3a;
    --coral: #C75B39;
    --coral-light: #d4785a;
    --coral-dark: #a84828;
    --coral-pale: #f5e6e0;
    --cream: #faf8f6;
    --cream-dark: #f0ece6;
    --warm-gray: #6b6560;
    --warm-gray-light: #9a9490;
    --white: #ffffff;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --shadow-sm: 0 1px 3px rgba(26, 26, 26, 0.08);
    --shadow-md: 0 4px 20px rgba(26, 26, 26, 0.1);
    --shadow-lg: 0 8px 40px rgba(26, 26, 26, 0.12);
    --shadow-xl: 0 16px 60px rgba(26, 26, 26, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --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(--charcoal);
    background-color: var(--cream);
    line-height: 1.7;
    -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;
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.2;
    color: var(--charcoal);
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    color: var(--charcoal);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--warm-gray);
    max-width: 600px;
    line-height: 1.8;
}

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

.btn-primary {
    background: var(--coral);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(199, 91, 57, 0.3);
}

.btn-primary:hover {
    background: var(--coral-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(199, 91, 57, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

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

.navbar.scrolled {
    background: rgba(250, 248, 246, 0.95);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    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: 10px;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    transition: color var(--transition);
}

.navbar.scrolled .nav-logo {
    color: var(--charcoal);
}

.nav-logo-icon {
    color: var(--coral);
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--coral);
    transition: width var(--transition);
}

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

.nav-links a:hover {
    color: var(--white);
}

.navbar.scrolled .nav-links a {
    color: var(--warm-gray);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--charcoal);
}

.nav-cta {
    padding: 10px 24px !important;
    background: var(--coral);
    color: var(--white) !important;
    border-radius: 50px;
    font-weight: 500 !important;
}

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

.nav-cta:hover {
    background: var(--coral-dark) !important;
    transform: translateY(-1px);
}

.navbar.scrolled .nav-cta {
    color: var(--white) !important;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition);
    border-radius: 2px;
}

.navbar.scrolled .nav-toggle span {
    background: var(--charcoal);
}

.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);
}

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 26, 0.75) 0%,
        rgba(26, 26, 26, 0.55) 50%,
        rgba(26, 26, 26, 0.4) 100%
    );
}

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

.hero-card {
    max-width: 680px;
    padding: 48px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-greeting {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--coral-light);
    margin-bottom: 20px;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 500;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 24px;
}

.hero-headline em {
    font-style: italic;
    color: var(--coral-light);
}

.hero-subheadline {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 520px;
}

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

/* Floating Stat Cards */
.hero-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.stat-card {
    padding: 24px 32px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 140px;
    transition: all var(--transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 600;
    color: var(--coral-light);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

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

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

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

.about-image-wrap img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-image-accent {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: var(--coral-pale);
    border-radius: var(--radius-lg);
    z-index: -1;
}

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

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

.about-signature {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--cream-dark);
    display: flex;
    align-items: center;
    gap: 24px;
}

.signature-name {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--charcoal);
}

.signature-line {
    font-size: 0.85rem;
    color: var(--warm-gray-light);
    letter-spacing: 0.05em;
}

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

.menu .section-label {
    color: var(--coral-light);
}

.menu .section-title {
    color: var(--white);
}

.menu .section-subtitle {
    color: rgba(255, 255, 255, 0.6);
}

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

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

/* Menu Tabs */
.menu-categories {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.menu-tab {
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    transition: all var(--transition);
}

.menu-tab:hover {
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
}

.menu-tab.active {
    background: var(--coral);
    color: var(--white);
    border-color: var(--coral);
}

/* Menu Panels */
.menu-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.menu-panel.active {
    display: block;
}

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

.menu-item {
    padding: 28px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(199, 91, 57, 0.3);
    transform: translateY(-2px);
}

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

.menu-item-header h3 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--white);
}

.menu-item-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--coral-light);
    background: rgba(199, 91, 57, 0.15);
    padding: 4px 10px;
    border-radius: 50px;
    white-space: nowrap;
}

.menu-item p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
}

.menu-footer {
    text-align: center;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-footer p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

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

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

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.gallery-item--large img {
    height: 100%;
    min-height: 500px;
}

.gallery-item:not(.gallery-item--large) img {
    height: 240px;
}

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

.gallery-item--wide img {
    height: 240px;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 24px;
    background: linear-gradient(transparent, rgba(26, 26, 26, 0.7));
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0;
    transition: opacity var(--transition);
}

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

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

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

.visit-detail {
    display: flex;
    gap: 20px;
    padding: 28px 0;
    border-bottom: 1px solid rgba(26, 26, 26, 0.08);
}

.visit-detail:first-child {
    padding-top: 0;
}

.visit-detail:last-child {
    border-bottom: none;
}

.visit-detail-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--coral-pale);
    border-radius: var(--radius-sm);
    color: var(--coral);
}

.visit-detail h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--warm-gray-light);
    margin-bottom: 6px;
}

.visit-detail p,
.visit-detail a {
    font-size: 1rem;
    color: var(--charcoal);
    line-height: 1.7;
}

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

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 480px;
}

.map-placeholder iframe {
    width: 100%;
    height: 100%;
}

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

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

.contact-text {
    font-size: 1.05rem;
    color: var(--warm-gray);
    line-height: 1.8;
    margin-bottom: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--charcoal);
    background: var(--white);
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--coral);
    box-shadow: 0 0 0 3px rgba(199, 91, 57, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-note {
    font-size: 0.8rem;
    color: var(--warm-gray-light);
    margin-top: 12px;
    text-align: center;
}

.form-success {
    display: none;
    text-align: center;
    padding: 60px 40px;
    animation: fadeIn 0.5s ease;
}

.form-success.show {
    display: block;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--coral-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--coral);
}

.form-success h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.form-success p {
    color: var(--warm-gray);
    font-size: 1.05rem;
}

/* Contact Aside */
.contact-aside {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-card {
    padding: 32px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.contact-card p {
    font-size: 0.95rem;
    color: var(--warm-gray);
    line-height: 1.8;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--cream-dark);
    font-size: 0.9rem;
}

.contact-list li:last-child {
    border-bottom: none;
}

.contact-list-label {
    font-weight: 500;
    color: var(--warm-gray);
    flex-shrink: 0;
}

.contact-list-value {
    color: var(--charcoal);
    text-align: right;
}

.contact-list-value a {
    color: var(--coral);
    transition: color var(--transition);
}

.contact-list-value a:hover {
    color: var(--coral-dark);
}

.contact-card--accent {
    background: var(--charcoal);
    color: var(--white);
}

.contact-card--accent h3 {
    color: var(--white);
}

.contact-card--accent p {
    color: rgba(255, 255, 255, 0.65);
}

/* ---------- Footer ---------- */
.footer {
    padding: 80px 0 40px;
    background: var(--charcoal);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-logo-icon {
    color: var(--coral);
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.8;
}

.footer-links h4,
.footer-hours h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
}

.footer-links ul,
.footer-hours ul {
    list-style: none;
}

.footer-links li,
.footer-hours li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--coral-light);
}

.footer-hours li {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--charcoal);
        flex-direction: column;
        justify-content: center;
        gap: 24px;
        padding: 40px;
        transition: right var(--transition);
        box-shadow: var(--shadow-xl);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        color: rgba(255, 255, 255, 0.8) !important;
        font-size: 1.1rem;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .hero-card {
        padding: 32px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .stat-card {
        flex: 1;
        min-width: 0;
        padding: 20px 24px;
    }

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

    .about-image-wrap img {
        height: 350px;
    }

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

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

    .gallery-item--large img {
        min-height: 300px;
    }

    .gallery-item:not(.gallery-item--large) img {
        height: 200px;
    }

    .gallery-item--wide img {
        height: 200px;
    }

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

    .visit-map {
        height: 300px;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

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

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

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

    .hero-card {
        padding: 24px;
    }

    .hero-stats {
        flex-direction: column;
    }

    .stat-card {
        width: 100%;
    }

    .menu-categories {
        gap: 8px;
    }

    .menu-tab {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}
