/* ── Douglas Bakery — Stylesheet ── */

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

:root {
    --plum:       #6B3A5D;
    --plum-dark:  #4E2A44;
    --plum-light: #8B5A7A;
    --plum-bg:    #FDF0F5;
    --amber:      #E8A84C;
    --amber-dark: #D4922E;
    --amber-light:#F5D4A8;
    --cream:      #FDF8F0;
    --cream-dark: #F5EDE0;
    --text:       #2D1F2B;
    --text-light: #6B5568;
    --white:      #FFFFFF;
    --radius-sm:  10px;
    --radius-md:  18px;
    --radius-lg:  28px;
    --radius-xl:  40px;
    --shadow-sm:  0 2px 8px rgba(107,58,93,0.06);
    --shadow-md:  0 8px 30px rgba(107,58,93,0.10);
    --shadow-lg:  0 16px 50px rgba(107,58,93,0.14);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

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

/* ── Typography ── */
h1, h2, h3 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; line-height: 1.15; }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--plum);
    margin-bottom: 14px;
}
.section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--amber);
    border-radius: 2px;
}

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

.text-amber { color: var(--amber-dark); }

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
}

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

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    border-radius: var(--radius-xl);
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-amber {
    background: var(--amber);
    color: var(--text);
    box-shadow: 0 4px 16px rgba(232,168,76,0.35);
}
.btn-amber:hover {
    background: var(--amber-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232,168,76,0.45);
}

.btn-outline {
    background: transparent;
    color: var(--plum);
    border: 2px solid var(--plum);
}
.btn-outline:hover {
    background: var(--plum);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-sm { padding: 10px 22px; font-size: 0.875rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-full { justify-content: center; width: 100%; }

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253,248,240,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(107,58,93,0.06);
    transition: all var(--transition);
}
.nav.scrolled {
    background: rgba(253,248,240,0.95);
    box-shadow: var(--shadow-sm);
}

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

.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'DM Serif Display', serif;
    font-size: 1.25rem;
    color: var(--plum);
    font-weight: 400;
}
.nav-logo-icon {
    color: var(--amber);
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    transition: color var(--transition);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--amber);
    border-radius: 2px;
    transition: width var(--transition);
}
.nav-links a:hover { color: var(--plum); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--plum);
    border-radius: 2px;
    transition: all var(--transition);
}
.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 {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 72px;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 60px 0 120px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--plum-bg);
    color: var(--plum);
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 28px;
    width: fit-content;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 480px;
}

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

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-num {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    color: var(--plum);
}
.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
}
.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(107,58,93,0.15);
}

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

.hero-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 6/7;
}

.hero-float-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-md);
    animation: float 4s ease-in-out infinite;
}
.hero-float-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--plum-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--plum);
    flex-shrink: 0;
}
.float-icon-cup { background: var(--amber-light); color: var(--amber-dark); }
.hero-float-card div strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text);
}
.hero-float-card div span {
    font-size: 0.75rem;
    color: var(--text-light);
}

.hero-float-card:nth-child(2) {
    bottom: 60px;
    left: -30px;
}
.hero-float-card:nth-child(3) {
    top: 60px;
    right: -20px;
    animation-delay: -2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}
.hero-wave svg { display: block; width: 100%; height: auto; }

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

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

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 5/6;
}

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -40px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--cream);
}
.about-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.about-accent {
    position: absolute;
    top: -20px;
    right: -10px;
    color: var(--amber);
    opacity: 0.4;
}

.about-content { padding: 20px 0; }
.about-text {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

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

.about-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.about-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--plum-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--plum);
    flex-shrink: 0;
}
.about-feature strong {
    display: block;
    font-family: 'DM Serif Display', serif;
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 2px;
}
.about-feature span {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ── Menu ── */
.menu {
    padding: 100px 0;
    background: var(--plum-bg);
}

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

.menu-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.menu-card-img {
    overflow: hidden;
    aspect-ratio: 4/3;
}
.menu-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.menu-card:hover .menu-card-img img { transform: scale(1.05); }

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

.menu-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.menu-card-top h3 {
    font-size: 1.3rem;
    color: var(--text);
}

.menu-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--amber-light);
    color: var(--amber-dark);
    padding: 4px 12px;
    border-radius: var(--radius-xl);
}
.menu-tag-plum {
    background: var(--plum-bg);
    color: var(--plum);
}

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

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

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

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.gallery-item:hover { box-shadow: var(--shadow-md); }
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

.gallery-item--tall  { grid-column: span 4; grid-row: span 2; }
.gallery-item--tall img { aspect-ratio: 2/3; }
.gallery-item--wide { grid-column: span 5; }
.gallery-item--wide img { aspect-ratio: 7/3; }
.gallery-item:not(.gallery-item--tall):not(.gallery-item--wide) img { aspect-ratio: 4/3; }

/* ── Visit ── */
.visit {
    padding: 100px 0;
    background: var(--plum);
    color: var(--white);
}

.visit-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-xl);
    padding: 60px;
    border: 1px solid rgba(255,255,255,0.08);
}

.visit .section-label { color: var(--amber); }
.visit .section-title { color: var(--white); }
.visit .text-amber { color: var(--amber-light); }
.visit .visit-text {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 36px;
}

.visit-details { display: flex; flex-direction: column; gap: 24px; }

.visit-detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.visit-detail-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--amber);
    flex-shrink: 0;
}
.visit-detail strong {
    display: block;
    font-size: 0.95rem;
    color: var(--white);
    margin-bottom: 2px;
}
.visit-detail span,
.visit-detail a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.65);
}
.visit-detail a:hover { color: var(--amber); }

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

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

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

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

.contact-methods { display: flex; flex-direction: column; gap: 16px; }

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.contact-method:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
}
.contact-method-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--plum-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--plum);
    flex-shrink: 0;
}
.contact-method span {
    font-size: 1rem;
    color: var(--text);
    font-weight: 500;
}

.contact-form {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.form-group { margin-bottom: 22px; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}
.form-optional {
    font-weight: 400;
    color: var(--text-light);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--cream-dark);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--cream);
    transition: all var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--plum);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(107,58,93,0.08);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-light); opacity: 0.6; }
.form-group textarea { resize: vertical; min-height: 120px; }

.form-success {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: var(--plum-bg);
    border-radius: var(--radius-sm);
    color: var(--plum);
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 16px;
}
.form-success.show { display: flex; }
.form-success svg { flex-shrink: 0; margin-top: 2px; }

/* ── Footer ── */
.footer {
    background: var(--plum-dark);
    color: var(--white);
    padding: 60px 0 0;
}

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

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'DM Serif Display', serif;
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 14px;
}
.footer-logo-icon { color: var(--amber); }

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
    max-width: 260px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 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(--amber); }

.footer-hours {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-hours strong {
    font-size: 0.9rem;
    color: var(--white);
    margin-bottom: 4px;
}
.footer-hours span {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 28px 0;
}
.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
}
.footer-bottom a {
    color: rgba(255,255,255,0.5);
    transition: color var(--transition);
}
.footer-bottom a:hover { color: var(--amber); }

/* ── Mobile Menu Overlay ── */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(45,31,43,0.5);
    backdrop-filter: blur(4px);
}
.mobile-overlay.active { display: block; }

.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--cream);
    z-index: 1001;
    padding: 80px 32px 40px;
    transition: right var(--transition);
    box-shadow: var(--shadow-lg);
}
.mobile-menu.active { right: 0; }
.mobile-menu a {
    display: block;
    padding: 14px 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
    border-bottom: 1px solid rgba(107,58,93,0.08);
}
.mobile-menu a:hover { color: var(--plum); }
.mobile-menu .btn { margin-top: 24px; width: 100%; justify-content: center; }

/* ── Scroll Animations ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .hero-grid { gap: 40px; }
    .about-grid { gap: 50px; }
    .visit-card { padding: 40px; }
    .contact-grid { gap: 50px; }
}

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

    .hero-grid {
        grid-template-columns: 1fr;
        padding: 40px 0 100px;
        gap: 40px;
    }
    .hero-content { order: 1; text-align: center; }
    .hero-badge { margin: 0 auto 20px; }
    .hero-subtitle { margin: 0 auto 28px; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-image-wrap { order: 0; max-width: 400px; margin: 0 auto; }
    .hero-float-card:nth-child(2) { left: -10px; bottom: 40px; }
    .hero-float-card:nth-child(3) { right: -10px; top: 40px; }

    .about-grid { grid-template-columns: 1fr; gap: 60px; }
    .about-img-secondary { right: 20px; bottom: -20px; }

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

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    .gallery-item--tall { grid-column: span 2; grid-row: span 1; }
    .gallery-item--tall img { aspect-ratio: 16/9; }
    .gallery-item--wide { grid-column: span 2; }
    .gallery-item--wide img { aspect-ratio: 16/9; }

    .visit-card { grid-template-columns: 1fr; padding: 32px; }
    .visit-map { min-height: 260px; }

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

    .footer-top { grid-template-columns: 1fr; gap: 36px; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .hero-title { font-size: 2.2rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .hero-stat-divider { width: 40px; height: 1px; }
    .hero-float-card { display: none; }
    .about-img-secondary { display: none; }
    .contact-form { padding: 24px; }
}
