/* ==========================================
   AI Candy Sweets - Brand Theme
   ========================================== */

:root {
    --primary: #ED207A;          /* Brand Pink */
    --primary-light: #FDE7F1;
    --primary-dark: #C4106A;
    --secondary: #F58468;        /* Brand Orange */
    --secondary-light: #FEF0EC;
    --accent: #3A9BB5;           /* Brand Teal */
    --accent-light: #E1F1F7;
    --mint: #3A9BB5;
    --mint-light: #D9EEF3;

    --bg-white: #ffffff;
    --bg-cream: #FFEBCE;         /* Brand Cream */
    --bg-light: #FFF5E0;
    --bg-pink: #FDE7F1;

    --text-dark: #121212;        /* Brand Dark Charcoal */
    --text-body: #2A2A2A;
    --text-muted: #6B6B6B;
    --text-light: #9E9E9E;

    --border-color: #F5D9B5;
    --border-medium: #E8C99A;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.12);

    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;

    --font-heading: 'Bebas Neue', Impact, sans-serif;
    --font-body: 'Montserrat Alternates', 'Montserrat', -apple-system, sans-serif;
}

/* ==========================================
   Base
   ========================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-cream);
    color: var(--text-body);
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    line-height: 1.15;
    letter-spacing: 0.04em;
    font-weight: 400; /* Bebas Neue only has regular weight */
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

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

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

.text-accent {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================
   Navbar
   ========================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    padding: 1rem 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.site-header.scrolled .navbar {
    padding: 0.6rem 0;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-dark);
}

.logo-icon {
    color: var(--primary);
    font-size: 1.5rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--text-dark);
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
}

.logo-img-footer {
    height: 52px;
    /* logo likely has light/white treatment for dark backgrounds */
    filter: brightness(0) invert(1);
}

#mainNav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
}

#mainNav a {
    color: var(--text-body);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

#mainNav a:hover { color: var(--primary); }

.btn-nav {
    background: var(--primary) !important;
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600 !important;
}

.btn-nav:hover { background: var(--primary-dark) !important; }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* Admin Bar */
.admin-bar {
    background: var(--text-dark);
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.admin-bar .container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.admin-bar-label { color: var(--secondary); font-weight: 600; }
.admin-bar a { color: rgba(255,255,255,0.8); }
.admin-bar a:hover { color: white; }
.admin-logout { color: #ef5350 !important; }

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border: 2px solid transparent;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover { background: var(--primary-dark); color: white; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(237,32,122,0.35); }

.btn-secondary {
    background: var(--bg-white);
    color: var(--text-dark);
    border-color: var(--border-color);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; }

.btn-white {
    background: white;
    color: var(--primary);
    border-color: white;
}
.btn-white:hover { background: var(--primary-light); transform: translateY(-2px); }

.btn-danger { background: #ef5350; color: white; }
.btn-danger:hover { background: #e53935; color: white; }

.btn-warning { background: var(--secondary); color: white; }
.btn-warning:hover { background: #f57c00; color: white; }

.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn-small { padding: 0.4rem 1rem; font-size: 0.8rem; }
.btn-block { width: 100%; justify-content: center; }

/* ==========================================
   Hero
   ========================================== */
.hero {
    position: relative;
    padding: 10rem 0 6rem;
    background: linear-gradient(135deg, var(--bg-pink) 0%, var(--bg-cream) 40%, var(--secondary-light) 100%);
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

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

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: radial-gradient(circle, var(--primary) 1px, transparent 1px);
    background-size: 30px 30px;
}

.hero .container { position: relative; z-index: 1; }

.hero-content {
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.hero h1 { margin-bottom: 1.5rem; }

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 550px;
    line-height: 1.8;
}

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

/* Video Hero */
.hero.hero-video {
    background: #121212;
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.65) 0%, rgba(18, 18, 18, 0.4) 50%, rgba(18, 18, 18, 0.55) 100%);
    z-index: 0;
}

.hero.hero-video .hero-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.hero.hero-video h1 {
    color: white;
}

.hero.hero-video .text-accent {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero.hero-video .hero-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

.hero.hero-video .btn-outline {
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
}

.hero.hero-video .btn-outline:hover {
    background: white;
    color: var(--text-dark);
    border-color: white;
}

/* Page Hero */
.page-hero {
    padding: 9rem 0 4rem;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-pink) 0%, var(--bg-cream) 50%, var(--accent-light) 100%);
}

.page-hero h1 { margin-bottom: 1rem; }

.page-hero > .container > p,
.page-hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Page Hero with Background Image */
.page-hero-img {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #121212;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(18, 18, 18, 0.78) 0%, rgba(18, 18, 18, 0.58) 50%, rgba(18, 18, 18, 0.68) 100%);
}

.page-hero-img .container {
    position: relative;
    z-index: 1;
}

.page-hero-img h1 {
    color: white;
}

.page-hero-img .text-accent {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero-img .section-tag {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
}

.page-hero-img p {
    color: rgba(255, 255, 255, 0.85);
}

/* Specialty Card Images */
.specialty-img {
    width: 100%;
    height: 180px;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.specialty-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

/* About Story Image */
.about-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.about-image-card.has-img {
    overflow: hidden;
    background: none;
}

/* CTA with Background Image */
.cta-img {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.cta-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            135deg,
            transparent 25%, transparent 25%
        ),
        repeating-linear-gradient(
            -45deg,
            rgba(255,255,255,0.03) 0px,
            rgba(255,255,255,0.03) 1px,
            transparent 1px,
            transparent 14px
        ),
        linear-gradient(135deg, rgba(18, 18, 18, 0.88) 0%, rgba(18, 18, 18, 0.94) 50%, rgba(18, 18, 18, 0.88) 100%);
}

.cta-img .cta-content {
    position: relative;
    z-index: 1;
}

/* ==========================================
   Sections
   ========================================== */
section { padding: 5rem 0; }

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

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { color: var(--text-muted); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

.section-cta { text-align: center; margin-top: 2.5rem; }

/* ==========================================
   Specialties
   ========================================== */
.specialties { background: var(--bg-white); }

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

.specialty-card {
    background: var(--bg-cream);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.specialty-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.specialty-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.specialty-card h3 { margin-bottom: 0.75rem; font-family: var(--font-heading); }
.specialty-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* ==========================================
   Gallery
   ========================================== */
.featured-gallery { background: var(--bg-cream); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-grid-home {
    grid-template-columns: repeat(4, 1fr);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    background: var(--border-color);
}

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

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1rem 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay p { font-size: 0.9rem; margin-bottom: 0.25rem; }

.gallery-cat {
    font-size: 0.7rem;
    background: rgba(255,255,255,0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Gallery Filters */
.gallery-section { background: var(--bg-white); }

.gallery-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-cream);
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.filter-btn:hover { color: var(--primary); border-color: var(--primary); }
.filter-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

.filter-count {
    font-size: 0.7rem;
    background: rgba(0,0,0,0.1);
    padding: 0.1rem 0.5rem;
    border-radius: 20px;
}

.filter-btn.active .filter-count { background: rgba(255,255,255,0.3); }

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem;
}

.lightbox.active { display: flex; }

.lightbox img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox p {
    color: rgba(255,255,255,0.8);
    margin-top: 1rem;
    font-size: 0.95rem;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}

/* ==========================================
   Why Us
   ========================================== */
.why-us { background: var(--bg-white); }

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

.why-card {
    background: var(--bg-cream);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.why-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.why-card h3 { margin-bottom: 0.5rem; }
.why-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ==========================================
   Testimonials
   ========================================== */
.testimonials { background: var(--bg-cream); }

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

.testimonial-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.testimonial-card:hover { box-shadow: var(--shadow-md); }

.testimonial-stars {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.testimonial-card > p {
    font-size: 0.95rem;
    color: var(--text-body);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.testimonial-author strong { display: block; font-size: 0.9rem; color: var(--text-dark); }
.testimonial-author span { font-size: 0.8rem; color: var(--text-muted); }

/* ==========================================
   About
   ========================================== */
.about-story { background: var(--bg-white); }
.about-baker { background: var(--bg-cream); }

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.about-content h2 { margin-bottom: 1.5rem; }
.about-content p { margin-bottom: 1rem; line-height: 1.9; }

.about-image-card {
    border-radius: var(--radius-lg);
    aspect-ratio: 4/5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-values { background: var(--bg-cream); }

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

.value-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.value-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.3rem;
}

.value-card h3 { margin-bottom: 0.5rem; }
.value-card p { font-size: 0.85rem; color: var(--text-muted); }

/* Flavors */
.about-flavors { background: var(--bg-white); }

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

.flavor-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-cream);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.flavor-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.flavor-emoji { font-size: 2.5rem; display: block; margin-bottom: 0.75rem; }
.flavor-card h4 { font-family: var(--font-heading); margin-bottom: 0.5rem; font-size: 1.1rem; }
.flavor-card p { font-size: 0.85rem; color: var(--text-muted); }

/* ==========================================
   Image Break
   ========================================== */
.image-break {
    position: relative;
    padding: 6rem 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    text-align: center;
}

.image-break-overlay {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            -45deg,
            rgba(255,255,255,0.03) 0px,
            rgba(255,255,255,0.03) 1px,
            transparent 1px,
            transparent 14px
        ),
        linear-gradient(135deg, rgba(18, 18, 18, 0.72) 0%, rgba(18, 18, 18, 0.55) 100%);
}

.image-break .container {
    position: relative;
    z-index: 1;
}

.image-break-content h2 {
    color: white;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.image-break-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
}

/* ==========================================
   CTA
   ========================================== */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--accent) 100%);
    padding: 5rem 0;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 { color: white; margin-bottom: 1rem; }
.cta-content p { color: rgba(255,255,255,0.85); margin-bottom: 2rem; font-size: 1.1rem; }
.cta .text-accent { -webkit-text-fill-color: var(--bg-cream); }

/* ==========================================
   Contact
   ========================================== */
.contact-section { background: var(--bg-white); padding: 4rem 0; }

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

.contact-info h2 { margin-bottom: 1rem; }
.contact-info > p { color: var(--text-muted); margin-bottom: 2rem; line-height: 1.8; }

.contact-cards { display: flex; flex-direction: column; gap: 1rem; }

.contact-card {
    display: flex;
    gap: 1rem;
    align-items: start;
    padding: 1rem;
    background: var(--bg-cream);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.contact-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-card h4 { font-size: 0.9rem; font-family: var(--font-body); margin-bottom: 0.15rem; }
.contact-card p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* Contact Form */
.contact-form-wrap {
    background: var(--bg-cream);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--bg-white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(237,32,122,0.12);
}

.form-group small { display: block; margin-top: 0.25rem; color: var(--text-light); font-size: 0.8rem; }

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

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.file-input {
    padding: 0.5rem !important;
    border-style: dashed !important;
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.alert-error { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }

/* ==========================================
   Login
   ========================================== */
.login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-pink), var(--bg-cream));
}

.login-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-xl);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 { margin: 0.5rem 0; }
.login-header p { color: var(--text-muted); font-size: 0.9rem; }

/* ==========================================
   Admin Dashboard
   ========================================== */
.admin-dashboard {
    padding: 7rem 0 3rem;
    min-height: 80vh;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-header h1 { font-size: 1.75rem; }
.dashboard-header p { color: var(--text-muted); font-size: 0.95rem; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-info { display: flex; flex-direction: column; }
.stat-card .stat-number { font-size: 1.5rem; font-weight: 800; color: var(--text-dark); line-height: 1; }
.stat-card .stat-label { font-size: 0.8rem; color: var(--text-muted); }

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.dashboard-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.dashboard-card h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dark);
}

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

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-cream);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-body);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.action-btn:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }

.recent-list { display: flex; flex-direction: column; gap: 0.25rem; }

.recent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border-radius: 8px;
    transition: var(--transition);
    color: var(--text-body);
}

.recent-item:hover { background: var(--bg-cream); }
.recent-item.unread { font-weight: 600; }
.recent-item.unread::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.recent-info { display: flex; flex-direction: column; }
.recent-info strong { font-size: 0.9rem; color: var(--text-dark); }
.recent-info span { font-size: 0.8rem; color: var(--text-muted); }
.recent-date { font-size: 0.8rem; color: var(--text-light); }

/* Admin Table */
.admin-table { overflow-x: auto; background: white; border-radius: var(--radius); border: 1px solid var(--border-color); }
.admin-table table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; padding: 0.75rem 1rem; background: var(--bg-cream); font-weight: 600; font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid var(--border-color); }
.admin-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border-color); font-size: 0.9rem; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg-cream); }

.row-unread { background: var(--primary-light); }
.badge-new { background: var(--primary); color: white; font-size: 0.65rem; padding: 0.15rem 0.5rem; border-radius: 20px; margin-left: 0.5rem; font-weight: 600; text-transform: uppercase; }

/* Detail Row */
.detail-row {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    align-items: baseline;
}

.detail-row:last-child { border-bottom: none; }

.detail-row label {
    min-width: 120px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.message-body {
    background: var(--bg-cream);
    padding: 1rem;
    border-radius: var(--radius);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Admin Gallery */
.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.admin-photo-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.admin-photo-img {
    position: relative;
    aspect-ratio: 1;
}

.admin-photo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--secondary);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.admin-photo-info { padding: 0.75rem; }
.admin-photo-caption { font-size: 0.85rem; font-weight: 500; margin-bottom: 0.25rem; color: var(--text-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-photo-cat { font-size: 0.75rem; color: var(--text-muted); }

.admin-photo-actions {
    padding: 0 0.75rem 0.75rem;
    display: flex;
    gap: 0.35rem;
}

/* Categories */
.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.category-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: var(--bg-cream);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.category-delete {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0 2px;
}

.category-delete:hover { color: #ef5350; }

.add-category-form {
    display: flex;
    gap: 0.5rem;
}

.add-category-form input {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.85rem;
}

.add-category-form input:focus { outline: none; border-color: var(--primary); }

/* ==========================================
   Footer
   ========================================== */
.site-footer {
    background: var(--text-dark);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.footer-logo .logo-icon { color: var(--primary); font-size: 1.5rem; }
.footer-logo .logo-text { color: white; font-family: var(--font-heading); font-size: 1.4rem; font-weight: 400; letter-spacing: 0.06em; }

.footer-about p { font-size: 0.9rem; line-height: 1.8; margin-bottom: 1.25rem; }

.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); }

.footer-links h4, .footer-contact h4 {
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-links a:hover { color: white; }

.footer-contact p { font-size: 0.9rem; margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.6rem; }
.footer-contact a { color: rgba(255,255,255,0.7); }
.footer-contact a:hover { color: white; }

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 1024px) {
    .specialties-grid,
    .why-grid,
    .values-grid,
    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    .gallery-grid,
    .gallery-grid-home,
    .admin-gallery-grid { grid-template-columns: repeat(3, 1fr); }

    .about-grid { grid-template-columns: 1fr; }
    .about-image { order: -1; }
    .about-image-card { aspect-ratio: 16/9; }

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

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

    #mainNav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: white;
        box-shadow: var(--shadow-xl);
        transition: right 0.3s ease;
        z-index: 999;
        padding: 5rem 2rem 2rem;
    }

    #mainNav.active { right: 0; }

    #mainNav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    #mainNav a { font-size: 1.1rem; }

    .hero { min-height: auto; padding: 8rem 0 4rem; }

    .image-break { background-attachment: scroll; padding: 4rem 0; }
    .image-break-content h2 { font-size: 1.6rem; }

    .testimonials-grid,
    .flavors-grid { grid-template-columns: 1fr; }

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

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

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

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

@media (max-width: 480px) {
    .specialties-grid,
    .why-grid,
    .values-grid,
    .stats-grid { grid-template-columns: 1fr; }

    .gallery-grid,
    .gallery-grid-home { grid-template-columns: 1fr; }

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

    .hero-cta { flex-direction: column; }
    .hero h1 { font-size: 1.75rem; }

    .dashboard-header { flex-direction: column; align-items: flex-start; }
}
