/* ===================================
   Hershberger's Bakery - Styles
   Palette: Plum + Amber
   =================================== */

:root {
    --plum-deep: #4A1942;
    --plum-rich: #6B2D5B;
    --plum-medium: #8B3A72;
    --plum-light: #C4789A;
    --plum-pale: #F5E6EF;
    
    --amber-deep: #B8600A;
    --amber-rich: #E8852E;
    --amber-bright: #F4A84D;
    --amber-light: #FDD9A8;
    --amber-pale: #FFF5E6;
    
    --cream: #FFFAF5;
    --cream-dark: #F5EDE4;
    --charcoal: #2D2429;
    --text-dark: #1A1417;
    --text-medium: #5C4A54;
    --text-light: #8A7582;
    
    --font-display: 'Abril Fatface', cursive;
    --font-body: 'DM Sans', sans-serif;
    
    --shadow-sm: 0 2px 8px rgba(74, 25, 66, 0.08);
    --shadow-md: 0 8px 30px rgba(74, 25, 66, 0.12);
    --shadow-lg: 0 20px 60px rgba(74, 25, 66, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

/* ===================================
   Geometric Background Blobs
   =================================== */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    z-index: -1;
    pointer-events: none;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--plum-light);
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--amber-bright);
    bottom: 10%;
    left: -150px;
    animation: float 25s ease-in-out infinite reverse;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: var(--plum-pale);
    top: 50%;
    right: 10%;
    animation: float 18s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    text-transform: none;
    letter-spacing: 0.01em;
}

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

.btn-primary:hover {
    background: var(--plum-rich);
    border-color: var(--plum-rich);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-small {
    padding: 10px 24px;
    font-size: 0.85rem;
}

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

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s ease;
}

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

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--plum-deep);
}

.logo-dot {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--amber-rich);
}

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

.nav-links a {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-medium);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--amber-rich);
    transition: width 0.3s ease;
}

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

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--plum-deep);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--plum-deep);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(74, 25, 66, 0.85) 0%,
        rgba(107, 45, 91, 0.7) 50%,
        rgba(74, 25, 66, 0.6) 100%
    );
    z-index: 1;
}

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

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

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    padding: 120px 0 80px;
    margin-left: 8%;
}

.hero-badge {
    display: inline-block;
    background: var(--amber-bright);
    color: var(--plum-deep);
    padding: 8px 20px;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    line-height: 1.1;
    color: #fff;
    margin-bottom: 24px;
}

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

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 480px;
}

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

/* Hero Floating Card */
.hero-card {
    position: absolute;
    right: 8%;
    bottom: 12%;
    z-index: 2;
    width: 280px;
}

.hero-card-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.hero-card-badge {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.hero-card-badge span {
    background: var(--plum-deep);
    color: #fff;
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Geometric Shapes */
.geo-shape {
    position: absolute;
    z-index: 2;
}

.shape-1 {
    width: 120px;
    height: 120px;
    background: var(--amber-bright);
    border-radius: 50%;
    top: 20%;
    right: 28%;
    opacity: 0.6;
}

.shape-2 {
    width: 80px;
    height: 80px;
    background: var(--plum-light);
    transform: rotate(45deg);
    bottom: 25%;
    right: 35%;
    opacity: 0.5;
}

/* ===================================
   Section Styles
   =================================== */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--amber-deep);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--plum-deep);
    line-height: 1.2;
    margin-bottom: 24px;
}

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

/* ===================================
   About Section
   =================================== */
.about {
    padding: 120px 0;
    position: relative;
}

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

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

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-accent {
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--amber-bright);
    border-radius: var(--radius-lg);
    bottom: -40px;
    right: -40px;
    z-index: -1;
    opacity: 0.4;
}

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

.about-features {
    display: flex;
    gap: 32px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.feature-item span {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--plum-deep);
}

/* ===================================
   Menu Section
   =================================== */
.menu {
    padding: 120px 0;
    background: var(--plum-deep);
    position: relative;
    overflow: hidden;
}

.menu::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: var(--plum-rich);
    border-radius: 50%;
    opacity: 0.3;
}

.menu .section-label {
    color: var(--amber-bright);
}

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

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 64px;
}

.menu-card {
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
}

.menu-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
}

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

.menu-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.menu-card-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--amber-bright);
    color: var(--plum-deep);
    padding: 6px 14px;
    border-radius: var(--radius-xl);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

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

.menu-card-content h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 10px;
}

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

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

.menu-cta .btn-primary {
    background: var(--amber-bright);
    color: var(--plum-deep);
    border-color: var(--amber-bright);
}

.menu-cta .btn-primary:hover {
    background: var(--amber-rich);
    border-color: var(--amber-rich);
}

/* ===================================
   Gallery Section
   =================================== */
.gallery {
    padding: 120px 0;
}

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

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.gallery-item:nth-child(1) { grid-column: 1 / 5; grid-row: 1 / 3; }
.gallery-item:nth-child(2) { grid-column: 5 / 9; grid-row: 1 / 2; }
.gallery-item:nth-child(3) { grid-column: 9 / 13; grid-row: 1 / 2; }
.gallery-item:nth-child(4) { grid-column: 5 / 8; grid-row: 2 / 3; }
.gallery-item:nth-child(5) { grid-column: 8 / 13; grid-row: 2 / 3; }

/* ===================================
   Contact Section
   =================================== */
.contact {
    padding: 120px 0;
    background: var(--cream-dark);
    position: relative;
}

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

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

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    width: 52px;
    height: 52px;
    background: var(--plum-deep);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--amber-bright);
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
}

.contact-item a {
    color: var(--plum-deep);
    font-weight: 600;
}

.contact-item a:hover {
    color: var(--amber-deep);
}

/* Contact Form */
.contact-form-wrapper {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--plum-deep);
    margin-bottom: 8px;
}

.form-note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 32px;
}

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

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-medium);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--cream-dark);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--cream);
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--plum-medium);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(107, 45, 91, 0.1);
}

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

.form-success {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.form-success p {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
}

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

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--charcoal);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 40px;
}

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

.footer-brand .logo-text {
    color: #fff;
}

.footer-brand p {
    margin-top: 16px;
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-links h4,
.footer-hours h4 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--amber-bright);
    margin-bottom: 20px;
}

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

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

.footer-links a:hover {
    color: var(--amber-bright);
}

.footer-hours li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.9rem;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 1024px) {
    .hero-content {
        margin-left: 5%;
    }
    
    .hero-card {
        right: 5%;
        width: 220px;
    }
    
    .about-grid,
    .contact-grid {
        gap: 48px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(3, 200px);
    }
    
    .gallery-item:nth-child(1) { grid-column: 1 / 4; grid-row: 1 / 3; }
    .gallery-item:nth-child(2) { grid-column: 4 / 7; grid-row: 1 / 2; }
    .gallery-item:nth-child(3) { grid-column: 1 / 4; grid-row: 2 / 3; }
    .gallery-item:nth-child(4) { grid-column: 4 / 7; grid-row: 2 / 4; }
    .gallery-item:nth-child(5) { grid-column: 1 / 4; grid-row: 3 / 4; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--cream);
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        padding: 40px;
        box-shadow: var(--shadow-lg);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }
    
    .hero {
        min-height: auto;
        padding: 140px 0 80px;
    }
    
    .hero-content {
        margin-left: 0;
        text-align: center;
        padding: 0 24px;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-card {
        display: none;
    }
    
    .geo-shape {
        display: none;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image img {
        height: 350px;
    }
    
    .about-accent {
        display: none;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 180px);
    }
    
    .gallery-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1 / 2; }
    .gallery-item:nth-child(2) { grid-column: 1 / 2; grid-row: 2 / 3; }
    .gallery-item:nth-child(3) { grid-column: 2 / 3; grid-row: 2 / 3; }
    .gallery-item:nth-child(4) { grid-column: 1 / 2; grid-row: 3 / 4; }
    .gallery-item:nth-child(5) { grid-column: 2 / 3; grid-row: 3 / 4; }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 32px 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .about-features {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(5, 200px);
    }
    
    .gallery-item:nth-child(n) {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}
