/* ============================================
   Sun Bakery — Stylesheet
   Palette: Burgundy (#781F2E) + Blush (#F9A8D4)
   ============================================ */

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

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

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #FFF8F0;
    overflow-x: hidden;
}

img, svg {
    display: block;
    max-width: 100%;
}

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

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

label {
    font-weight: 500;
    font-size: 0.875rem;
    color: #4A3F3F;
}

/* ---------- UTILITIES ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    background: #781F2E;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0 0 8px 8px;
    z-index: 1000;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* ---------- SECTION HEADERS ---------- */
.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #781F2E;
    background: rgba(120, 31, 46, 0.08);
    border: 1px solid rgba(120, 31, 46, 0.2);
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.section-subtitle,
.about__text,
.visit__text,
.contact__desc {
    font-size: 1.0625rem;
    color: #5A4A4A;
    line-height: 1.7;
    max-width: 560px;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 50px;
    padding: 0.8125rem 1.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn--primary {
    background: #781F2E;
    color: #fff;
    box-shadow: 0 4px 16px rgba(120, 31, 46, 0.3);
}

.btn--primary:hover {
    background: #5E1824;
    box-shadow: 0 6px 24px rgba(120, 31, 46, 0.4);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
}

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

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

/* ---------- BACKGROUND SHAPES ---------- */
.bg-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.06;
}

.bg-shape--circle-1 {
    width: 600px;
    height: 600px;
    background: #781F2E;
    border-radius: 50%;
    top: -200px;
    right: -150px;
}

.bg-shape--circle-2 {
    width: 400px;
    height: 400px;
    background: #F9A8D4;
    border-radius: 50%;
    bottom: 10%;
    left: -100px;
}

.bg-shape--rect-1 {
    width: 300px;
    height: 300px;
    background: #781F2E;
    top: 50%;
    right: -80px;
    transform: rotate(45deg);
    opacity: 0.03;
}

/* ---------- NAVBAR ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 248, 240, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(120, 31, 46, 0.08);
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 24px rgba(120, 31, 46, 0.08);
}

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

.navbar__logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #781F2E;
}

.navbar__logo-text {
    letter-spacing: -0.01em;
}

.navbar__links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.navbar__links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: #4A3F3F;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
}

.navbar__links a:hover {
    background: rgba(120, 31, 46, 0.07);
    color: #781F2E;
}

.navbar__menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    color: #781F2E;
    transition: background 0.2s ease;
}

.navbar__menu-btn:hover {
    background: rgba(120, 31, 46, 0.07);
}

.navbar__menu-icon {
    transition: transform 0.3s ease;
}

/* Mobile menu open state */
.navbar__menu-btn[aria-expanded="true"] .navbar__menu-icon {
    transform: rotate(90deg);
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 7rem 0 0;
    overflow: hidden;
    background: linear-gradient(135deg, #781F2E 0%, #5E1824 50%, #3D1018 100%);
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__content {
    color: #fff;
    padding: 2rem 0 4rem;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #F9A8D4;
    background: rgba(249, 168, 212, 0.12);
    border: 1px solid rgba(249, 168, 212, 0.25);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.hero__headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero__headline em {
    font-style: italic;
    color: #F9A8D4;
}

.hero__description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 480px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero__hero-card {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 480px;
    aspect-ratio: 520 / 620;
}

.hero__hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stat Cards */
.stat-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    z-index: 2;
}

.stat-card--primary {
    bottom: 18%;
    left: -12%;
}

.stat-card--accent {
    top: 12%;
    right: -8%;
    background: #F9A8D4;
    color: #5E1824;
}

.stat-card--warm {
    bottom: 5%;
    right: -4%;
    background: #FDF0E8;
}

.stat-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card--primary .stat-card__icon {
    background: rgba(120, 31, 46, 0.1);
    color: #781F2E;
}

.stat-card--accent .stat-card__icon {
    background: rgba(94, 24, 36, 0.15);
    color: #5E1824;
}

.stat-card--warm .stat-card__icon {
    background: rgba(120, 31, 46, 0.08);
    color: #781F2E;
}

.stat-card__number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-card--accent .stat-card__number {
    color: #5E1824;
}

.stat-card__label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #7A6A6A;
    line-height: 1.3;
}

.stat-card--accent .stat-card__label {
    color: #781F2E;
}

.hero__accent-bar {
    height: 6px;
    background: linear-gradient(90deg, #F9A8D4 0%, #FCE4EC 50%, #781F2E 100%);
    flex-shrink: 0;
}

/* ---------- MENU ---------- */
.menu {
    position: relative;
    z-index: 1;
    padding: 6rem 0;
    background: #FFF8F0;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

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

.menu__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.menu-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(120, 31, 46, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(120, 31, 46, 0.12);
}

.menu-card__img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 400 / 280;
}

.menu-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.menu-card__tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: #781F2E;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
}

.menu-card__tag--blush {
    background: #F9A8D4;
    color: #5E1824;
}

.menu-card__body {
    padding: 1.5rem;
}

.menu-card__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.menu-card__desc {
    font-size: 0.9375rem;
    color: #6A5A5A;
    line-height: 1.65;
}

/* ---------- ABOUT ---------- */
.about {
    position: relative;
    z-index: 1;
    padding: 6rem 0;
    background: #FDF0E8;
}

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

.about__visual {
    position: relative;
}

.about__image-stack {
    position: relative;
    min-height: 560px;
}

.about__image-main {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(120, 31, 46, 0.15);
    width: 100%;
    aspect-ratio: 500 / 600;
}

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

.about__image-float {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(120, 31, 46, 0.2);
    border: 4px solid #FDF0E8;
    width: 55%;
    aspect-ratio: 300 / 220;
}

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

.about__accent-shape {
    position: absolute;
    top: -2rem;
    right: 2rem;
    width: 120px;
    height: 120px;
    background: #F9A8D4;
    border-radius: 24px;
    transform: rotate(15deg);
    z-index: -1;
    opacity: 0.5;
}

.about__content {
    padding: 1rem 0;
}

.about__text {
    margin-bottom: 1.25rem;
}

.about__values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #3A2A2A;
}

.value-item__icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(120, 31, 46, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ---------- VISIT ---------- */
.visit {
    position: relative;
    z-index: 1;
    padding: 6rem 0;
    background: #FFF8F0;
}

.visit__card {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    border-radius: 28px;
    overflow: hidden;
    background: #781F2E;
    box-shadow: 0 24px 64px rgba(120, 31, 46, 0.25);
}

.visit__content {
    padding: 3.5rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.visit__content .section-tag {
    background: rgba(249, 168, 212, 0.15);
    border-color: rgba(249, 168, 212, 0.3);
    color: #F9A8D4;
}

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

.visit__text {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2rem;
}

.visit__info-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-block {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-block__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #F9A8D4;
    flex-shrink: 0;
}

.info-block__label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.25rem;
}

.info-block__value {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    line-height: 1.5;
}

.info-block__value a {
    color: #F9A8D4;
    transition: color 0.2s ease;
}

.info-block__value a:hover {
    color: #fff;
}

.visit__map-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
}

.visit__map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
}

.visit__map-btn {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: #781F2E;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: background 0.2s ease, transform 0.2s ease;
}

.visit__map-btn:hover {
    background: #F9A8D4;
    transform: translateY(-2px);
}

/* ---------- CONTACT ---------- */
.contact {
    position: relative;
    z-index: 1;
    padding: 6rem 0;
    background: #FDF0E8;
}

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

.contact__text .section-title {
    max-width: 480px;
}

.contact__desc {
    margin-top: 0.75rem;
}

.contact__form-wrap {
    background: #fff;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(120, 31, 46, 0.08);
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #4A3F3F;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 0.9375rem;
    color: #1a1a1a;
    background: #FFF8F0;
    border: 1.5px solid rgba(120, 31, 46, 0.15);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #A89898;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #781F2E;
    box-shadow: 0 0 0 3px rgba(120, 31, 46, 0.08);
}

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

/* Success message */
.contact__success {
    text-align: center;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.contact__success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(120, 31, 46, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact__success-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #781F2E;
}

.contact__success-text {
    font-size: 0.9375rem;
    color: #6A5A5A;
}

/* ---------- FOOTER ---------- */
.footer {
    background: #1A1A1A;
    color: #fff;
    padding: 3.5rem 0 0;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #F9A8D4;
    margin-bottom: 0.75rem;
}

.footer__tagline {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
    max-width: 260px;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer__links a {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.65);
    padding: 0.25rem 0;
    transition: color 0.2s ease;
}

.footer__links a:hover {
    color: #F9A8D4;
}

.footer__contact {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer__contact p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

.footer__contact a {
    color: #F9A8D4;
    transition: color 0.2s ease;
}

.footer__contact a:hover {
    color: #fff;
}

.footer__bottom {
    padding: 1.25rem 0;
    text-align: center;
}

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

/* ---------- SCROLL REVEAL (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

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

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .hero__grid {
        gap: 2rem;
    }

    .stat-card--primary {
        left: -4%;
    }

    .stat-card--accent {
        right: -2%;
    }

    .stat-card--warm {
        right: 2%;
    }

    .about__grid {
        gap: 2.5rem;
    }

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

    .visit__map-wrap {
        min-height: 300px;
    }

    .visit__map-img {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    /* Navbar mobile */
    .navbar__menu-btn {
        display: flex;
    }

    .navbar__links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255, 248, 240, 0.97);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 1rem 1.5rem 1.5rem;
        gap: 0.25rem;
        border-bottom: 1px solid rgba(120, 31, 46, 0.08);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    }

    .navbar__links.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .navbar__links a {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: 6rem 0 0;
    }

    .hero__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero__content {
        padding: 1rem 0 2rem;
        text-align: center;
    }

    .hero__description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__visual {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }

    .stat-card {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        display: inline-flex;
        margin: 0.5rem;
    }

    .hero__visual {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .hero__hero-card {
        max-width: 320px;
        aspect-ratio: 4 / 5;
    }

    /* Menu */
    .menu__grid {
        grid-template-columns: 1fr;
    }

    /* About */
    .about__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about__image-stack {
        min-height: 400px;
        max-width: 440px;
        margin: 0 auto;
    }

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

    /* Visit */
    .visit__content {
        padding: 2rem;
    }

    /* Contact */
    .contact__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    /* Footer */
    .footer__inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero__headline {
        font-size: 1.875rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .btn {
        padding: 0.6875rem 1.25rem;
        font-size: 0.875rem;
    }

    .hero__hero-card {
        max-width: 280px;
    }

    .stat-card {
        padding: 0.75rem 1rem;
    }

    .stat-card__icon {
        width: 36px;
        height: 36px;
    }

    .stat-card__number {
        font-size: 1.1rem;
    }
}
