/* ============================================
   Rory's Mini Donuts & More — Stylesheet
   ============================================ */

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

:root {
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --cream-50:  #faf8f4;
    --cream-100: #f5f0e8;
    --cream-200: #ede4d4;
    --cream-300: #e0d0b8;
    --gold-400:  #d4a373;
    --gold-500:  #c4915e;
    --gold-600:  #b07d4a;
    --stone-50:  #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-400: #a8a29e;
    --stone-500: #78716c;
    --stone-600: #57534e;
    --stone-700: #44403c;
    --stone-800: #292524;
    --stone-900: #1c1917;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --shadow-sm: 0 1px 2px rgba(6,78,59,0.06);
    --shadow-md: 0 4px 16px rgba(6,78,59,0.08);
    --shadow-lg: 0 12px 40px rgba(6,78,59,0.12);
    --shadow-xl: 0 24px 60px rgba(6,78,59,0.14);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--stone-800);
    background: var(--cream-50);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

ul { list-style: none; }

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

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    color: var(--emerald-900);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-500);
    margin-bottom: 16px;
}

.section-label.light { color: var(--cream-300); }

.section-heading {
    font-size: clamp(2rem, 4vw, 3.25rem);
    margin-bottom: 20px;
}

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

.section-sub {
    font-size: 1.1rem;
    color: var(--stone-600);
    max-width: 560px;
    margin: 0 auto;
}

.text-center { text-align: center; }

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--emerald-700);
    border-color: var(--emerald-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

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

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

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

/* ---------- HEADER ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250,248,244,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--cream-200);
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--emerald-900);
    line-height: 1;
}

.logo-dot {
    display: block;
    font-size: 0.7rem;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold-500);
}

.logo-text-light { color: var(--cream-100); }

/* NAV */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--stone-700);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--emerald-800);
    background: rgba(6,78,59,0.06);
}

.nav-cta {
    background: var(--emerald-800);
    color: #fff !important;
    margin-left: 8px;
}

.nav-cta:hover {
    background: var(--emerald-700);
    color: #fff !important;
}

/* HAMBURGER */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    align-items: center;
    justify-content: center;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--emerald-900);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger { position: relative; }
.hamburger::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 0;
}
.hamburger::after {
    content: '';
    position: absolute;
    top: 7px;
    left: 0;
}

.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 {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--cream-100);
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.7;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(6,78,59,0.08);
    color: var(--emerald-800);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 28px;
    border: 1px solid rgba(6,78,59,0.12);
}

.hero-headline {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    color: var(--emerald-900);
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

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

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

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--emerald-800);
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--stone-500);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--cream-300);
}

/* HERO IMAGES */
.hero-image-col {
    position: relative;
    height: 640px;
}

.hero-img-main {
    position: absolute;
    top: 0;
    right: 0;
    width: 82%;
    height: 85%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

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

.hero-img-accent {
    position: absolute;
    bottom: 8%;
    left: 0;
    width: 52%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--cream-100);
}

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

.hero-img-float {
    position: absolute;
    top: 5%;
    left: 10%;
    width: 35%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--cream-100);
    transform: rotate(3deg);
}

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

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* ---------- ABOUT ---------- */
.about {
    padding: 100px 0;
    background: var(--cream-50);
}

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

.about-image-stack {
    position: relative;
    height: 580px;
}

.about-img-primary {
    position: absolute;
    top: 0;
    left: 0;
    width: 72%;
    height: 82%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-img-primary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-img-secondary {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 52%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--cream-50);
}

.about-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-accent-box {
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
    background: var(--emerald-800);
    color: var(--cream-100);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.about-accent-box svg {
    flex-shrink: 0;
}

.about-accent-box span {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--cream-200);
}

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

.about-body {
    font-size: 1.05rem;
    color: var(--stone-600);
    line-height: 1.75;
    margin-bottom: 20px;
}

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

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--stone-700);
}

.about-feature-icon {
    width: 36px;
    height: 36px;
    background: rgba(6,78,59,0.08);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 56px;
}

.menu-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--cream-200);
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.menu-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

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

.menu-card-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--emerald-800);
    color: var(--cream-50);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 100px;
}

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

.menu-card-body h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--emerald-900);
}

.menu-card-body p {
    font-size: 0.9rem;
    color: var(--stone-600);
    line-height: 1.65;
}

/* ---------- WHY US ---------- */
.why-us {
    position: relative;
    padding: 100px 0;
    background: var(--emerald-900);
    overflow: hidden;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 56px;
    position: relative;
    z-index: 1;
}

.why-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition);
}

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

.why-card-num {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(212,163,115,0.3);
    line-height: 1;
    margin-bottom: 16px;
}

.why-card h3 {
    font-size: 1.15rem;
    color: var(--cream-50);
    margin-bottom: 12px;
}

.why-card p {
    font-size: 0.9rem;
    color: rgba(245,240,232,0.7);
    line-height: 1.7;
}

/* ---------- VISIT ---------- */
.visit {
    padding: 100px 0;
    background: var(--cream-50);
}

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

.visit-details {
    margin: 32px 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.visit-details li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1rem;
    color: var(--stone-700);
}

.visit-details a {
    color: var(--emerald-700);
    font-weight: 600;
    transition: var(--transition);
}

.visit-details a:hover { color: var(--emerald-900); }

.visit-icon {
    flex-shrink: 0;
    color: var(--emerald-700);
}

.visit-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
}

.visit-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    height: 460px;
    border: 4px solid var(--cream-200);
}

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

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

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

.contact-body {
    font-size: 1.05rem;
    color: var(--stone-600);
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 520px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--stone-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--stone-800);
    background: #fff;
    border: 1.5px solid var(--cream-300);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    transition: var(--transition);
    outline: none;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--emerald-600);
    box-shadow: 0 0 0 3px rgba(5,150,105,0.12);
}

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

.form-success {
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 18px;
    background: rgba(6,78,59,0.06);
    border: 1px solid rgba(6,78,59,0.15);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--emerald-800);
}

.form-success.visible { display: flex; }

/* Contact Sidebar */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--cream-200);
}

.contact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--emerald-900);
}

.quick-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quick-info li {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.qi-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--stone-400);
}

.qi-value {
    font-size: 0.95rem;
    color: var(--stone-700);
}

.quick-info a {
    color: var(--emerald-700);
    font-weight: 600;
    transition: var(--transition);
}

.quick-info a:hover { color: var(--emerald-900); }

.contact-card-accent {
    background: var(--emerald-800);
    border: none;
    color: var(--cream-100);
}

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

.card-accent-icon {
    margin-bottom: 16px;
    color: var(--gold-400);
}

.hours-note {
    font-size: 0.9rem;
    color: rgba(245,240,232,0.7);
    line-height: 1.65;
    margin-bottom: 16px;
}

.contact-accent-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212,163,115,0.15);
    color: var(--gold-400);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 100px;
    border: 1px solid rgba(212,163,115,0.25);
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: var(--stone-900);
    color: var(--cream-200);
    padding: 72px 0 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--stone-400);
    line-height: 1.7;
    margin-top: 16px;
    max-width: 300px;
}

.footer-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--stone-500);
    margin-bottom: 20px;
}

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

.footer-links a,
.footer-contact a {
    font-size: 0.9rem;
    color: var(--stone-400);
    transition: var(--transition);
}

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

.footer-contact li {
    font-size: 0.9rem;
    color: var(--stone-400);
    line-height: 1.6;
}

.footer-bottom {
    padding: 24px 0;
}

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

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--stone-500);
}

/* ---------- ANIMATIONS ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

@media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(24px); }
    .reveal.revealed { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-image-col {
        height: 480px;
        max-width: 520px;
        margin: 0 auto;
    }

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

    .about-image-stack {
        height: 420px;
        max-width: 480px;
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .visit-map {
        height: 360px;
    }

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

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(250,248,244,0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--cream-200);
        padding: 16px 24px 24px;
        transform: translateY(-110%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }

    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .main-nav a {
        display: block;
        padding: 12px 16px;
        font-size: 1rem;
    }

    .nav-cta {
        margin-left: 0;
        text-align: center;
        margin-top: 8px;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-image-col {
        height: 380px;
    }

    .hero-stats {
        gap: 16px;
    }

    .about-image-stack { height: 360px; }

    .about-features { grid-template-columns: 1fr; }

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

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

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

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

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

@media (max-width: 480px) {
    .hero-image-col { height: 320px; }
    .hero-img-float { display: none; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { justify-content: center; }
    .visit-cta-group { flex-direction: column; }
    .visit-cta-group .btn { justify-content: center; }
}
