/* ========================================
   Sunrise Bakery 168 — Custom Styles
   ======================================== */

/* --- Base & Utilities --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

::selection {
    background: #9A1B3B;
    color: #fefdfb;
}

/* --- Fixed Background Geometric Shapes --- */
.geo-shapes {
    z-index: 0;
}

.geo-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
}

.geo-circle--1 {
    width: 400px;
    height: 400px;
    background: #9A1B3B;
    top: 10%;
    right: -100px;
}

.geo-circle--2 {
    width: 250px;
    height: 250px;
    background: #e06055;
    bottom: 20%;
    left: -80px;
}

.geo-circle--3 {
    width: 150px;
    height: 150px;
    background: #f4a3b8;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.geo-diamond {
    position: absolute;
    width: 60px;
    height: 60px;
    background: #9A1B3B;
    opacity: 0.04;
    transform: rotate(45deg);
}

.geo-diamond--1 {
    top: 30%;
    left: 10%;
}

.geo-diamond--2 {
    bottom: 25%;
    right: 8%;
    width: 40px;
    height: 40px;
}

.geo-stripe {
    position: absolute;
    height: 3px;
    background: linear-gradient(90deg, transparent, #9A1B3B, transparent);
    opacity: 0.05;
    border-radius: 2px;
}

.geo-stripe--1 {
    width: 200px;
    top: 40%;
    right: 5%;
    transform: rotate(-15deg);
}

.geo-stripe--2 {
    width: 150px;
    bottom: 35%;
    left: 3%;
    transform: rotate(10deg);
    background: linear-gradient(90deg, transparent, #e06055, transparent);
}

/* --- Navbar --- */
.nav-header {
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

.nav-header.scrolled {
    background: rgba(254, 253, 251, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(154, 27, 59, 0.1), 0 4px 20px rgba(154, 27, 59, 0.06);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #9A1B3B;
    border-radius: 1px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #9A1B3B;
    color: #fefdfb;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.7rem 1.5rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background: #7a1530;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(154, 27, 59, 0.3);
}

/* --- Hero --- */
.hero-gradient {
    background: linear-gradient(135deg, #2a070f 0%, #5c0f24 25%, #9A1B3B 50%, #d43263 75%, #e06055 100%);
}

.hero-geo {
    position: absolute;
    opacity: 0.15;
}

.hero-geo--circle1 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 2px solid rgba(254, 163, 184, 0.3);
    top: -100px;
    right: -150px;
}

.hero-geo--circle2 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(251, 173, 176, 0.15);
    bottom: 10%;
    left: -50px;
}

.hero-geo--square1 {
    width: 120px;
    height: 120px;
    background: rgba(251, 191, 216, 0.12);
    top: 20%;
    left: 8%;
    transform: rotate(25deg);
    border-radius: 12px;
}

.hero-geo--square2 {
    width: 80px;
    height: 80px;
    background: rgba(244, 163, 184, 0.1);
    bottom: 25%;
    right: 10%;
    transform: rotate(-15deg);
    border-radius: 8px;
}

.hero-geo--triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(251, 173, 176, 0.1);
    top: 15%;
    right: 20%;
    transform: rotate(20deg);
}

.hero-geo--dots {
    width: 100px;
    height: 100px;
    background-image: radial-gradient(circle, rgba(254, 163, 184, 0.4) 1px, transparent 1px);
    background-size: 12px 12px;
    bottom: 30%;
    left: 15%;
}

.hero-badge {
    animation: fadeInDown 0.8s ease-out both;
}

.hero-title {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-ctas {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-scroll {
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* Hero CTAs */
.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    background: #fefdfb;
    color: #9A1B3B;
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-hero-primary:hover {
    background: #f9a8a8;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #fefdfb;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 2rem;
    border-radius: 9999px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-hero-secondary:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* --- Menu Cards --- */
.menu-card {
    opacity: 1;
}

.menu-card:hover .menu-card-inner {
    transform: translateY(-4px);
}

.menu-card-inner {
    transition: transform 0.5s ease;
}

/* --- Process Steps --- */
.process-step {
    position: relative;
}

/* --- Gallery Scroll --- */
.gallery-scroll {
    display: flex;
    gap: 16px;
    animation: scrollGallery 40s linear infinite;
}

@keyframes scrollGallery {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Scroll Reveal --- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-up {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal-left {
        opacity: 0;
        transform: translateX(-40px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal-right {
        opacity: 0;
        transform: translateX(40px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal-up.revealed,
    .reveal-left.revealed,
    .reveal-right.revealed {
        opacity: 1;
        transform: none;
    }
}

/* --- Mobile Menu --- */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.mobile-menu.open {
    max-height: 400px;
    padding: 0.5rem 0;
}

.mobile-nav-link {
    display: block;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.75rem;
    }

    .hero-geo--circle1 {
        width: 300px;
        height: 300px;
    }

    .hero-geo--circle2 {
        width: 200px;
        height: 200px;
    }

    .hero-geo--square1 {
        width: 80px;
        height: 80px;
    }

    .hero-geo--square2 {
        display: none;
    }

    .hero-geo--triangle {
        display: none;
    }

    .geo-circle--1 {
        width: 250px;
        height: 250px;
    }

    .geo-circle--2 {
        width: 150px;
        height: 150px;
    }

    .geo-diamond {
        display: none;
    }

    .geo-stripe {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2.25rem;
    }
}
