/* ============================================
   Ken's Hiwasse Dairy Freeze — Stylesheet
   Colors: Plum (#7B2CBF) + Amber (#F59E0B)
   Fonts: Fredoka (headings) + Nunito (body)
============================================ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Nunito', 'Segoe UI', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #2D1B4E;
    background-color: #FDF4FF;
    -webkit-font-smoothing: antialiased;
}

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

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

ul {
    list-style: none;
}

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

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: #7B2CBF;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    z-index: 1000;
    font-weight: 700;
}
.skip-link:focus {
    top: 16px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: #2D1B4E;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.text-plum { color: #7B2CBF; }
.text-amber { color: #D97706; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 50px;
    border: 2.5px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: #F59E0B;
    color: #2D1B4E;
    border-color: #F59E0B;
}
.btn-primary:hover, .btn-primary:focus-visible {
    background: #D97706;
    border-color: #D97706;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border-color: #fff;
}
.btn-secondary:hover, .btn-secondary:focus-visible {
    background: #fff;
    color: #7B2CBF;
    transform: translateY(-2px);
}

.btn-plum {
    background: #7B2CBF;
    color: #fff;
    border-color: #7B2CBF;
}
.btn-plum:hover, .btn-plum:focus-visible {
    background: #5A1896;
    border-color: #5A1896;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(123, 44, 191, 0.4);
}

.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-small { padding: 10px 20px; font-size: 0.9rem; }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

/* ---------- Section Tags ---------- */
.section-tag {
    display: inline-block;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7B2CBF;
    background: rgba(123, 44, 191, 0.1);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 12px;
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(253, 244, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid rgba(123, 44, 191, 0.1);
    transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(123, 44, 191, 0.15);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #2D1B4E;
    line-height: 1.2;
}
.logo-accent { color: #7B2CBF; }
.logo-icon { flex-shrink: 0; }

/* Navigation */
.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 8px;
}
.primary-nav a {
    font-weight: 700;
    font-size: 0.95rem;
    color: #2D1B4E;
    padding: 8px 14px;
    border-radius: 50px;
    transition: all 0.25s ease;
}
.primary-nav a:hover,
.primary-nav a:focus-visible {
    background: rgba(123, 44, 191, 0.1);
    color: #7B2CBF;
}

/* Nav Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}
.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2.5px;
    background: #2D1B4E;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.hamburger::before,
.hamburger::after {
    content: '';
    position: relative;
}
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}
.nav-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    background: #7B2CBF;
    overflow: hidden;
    padding-top: 80px;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(45, 27, 78, 0.88) 0%,
        rgba(123, 44, 191, 0.82) 50%,
        rgba(90, 24, 150, 0.85) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 24px 100px;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.2);
    border: 1.5px solid rgba(245, 158, 11, 0.5);
    color: #FCD34D;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero h1 {
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hero-sub {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.stat {
    text-align: center;
}
.stat-num {
    display: block;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #F59E0B;
}
.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}
.stat-divider {
    width: 2px;
    height: 36px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
}

.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    z-index: 2;
    line-height: 0;
}
.hero-wave svg {
    width: 100%;
    height: 80px;
}

/* ---------- About ---------- */
.about {
    padding: 80px 0 100px;
    background: #FDF4FF;
}

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

.about-images {
    position: relative;
}
.img-main {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(123, 44, 191, 0.2);
}
.img-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}
.img-secondary {
    position: absolute;
    bottom: -30px;
    right: -20px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(123, 44, 191, 0.25);
    border: 4px solid #FDF4FF;
}
.img-secondary img {
    width: 240px;
    height: 180px;
    object-fit: cover;
}
.about-badge {
    position: absolute;
    top: -16px;
    left: -16px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #F59E0B;
    color: #2D1B4E;
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 18px;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

.about-text h2 {
    margin-bottom: 20px;
}
.about-text > p {
    color: #4A3066;
    margin-bottom: 16px;
    font-size: 1.05rem;
}
.about-features {
    margin-top: 28px;
    display: grid;
    gap: 14px;
}
.about-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: #2D1B4E;
    font-size: 1.05rem;
}
.about-features svg {
    flex-shrink: 0;
    color: #7B2CBF;
}

/* ---------- Menu ---------- */
.menu {
    padding: 80px 0 100px;
    background: #fff;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}
.section-header h2 {
    margin-bottom: 16px;
}
.section-header p {
    color: #4A3066;
    font-size: 1.05rem;
}

.menu-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 48px;
}

.menu-card {
    background: #FDF4FF;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(123, 44, 191, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(123, 44, 191, 0.2);
}
.card-img {
    overflow: hidden;
    height: 200px;
}
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.menu-card:hover .card-img img {
    transform: scale(1.05);
}
.card-body {
    padding: 28px;
}
.card-body h3 {
    margin-bottom: 10px;
    color: #2D1B4E;
}
.card-body > p {
    color: #4A3066;
    font-size: 0.95rem;
    margin-bottom: 16px;
}
.card-list {
    display: grid;
    gap: 8px;
}
.card-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #2D1B4E;
}
.card-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #F59E0B;
    border-radius: 50%;
    flex-shrink: 0;
}

.menu-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(123, 44, 191, 0.08);
    border: 1.5px solid rgba(123, 44, 191, 0.15);
    border-radius: 16px;
    padding: 20px 24px;
    color: #4A3066;
    font-size: 0.95rem;
    max-width: 700px;
    margin: 0 auto;
}
.menu-note svg {
    flex-shrink: 0;
    color: #7B2CBF;
    margin-top: 2px;
}

/* ---------- Reviews ---------- */
.reviews {
    padding: 80px 0 100px;
    background: #FDF4FF;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.review-card {
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(123, 44, 191, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}
.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(123, 44, 191, 0.15);
    border-color: rgba(123, 44, 191, 0.15);
}
.review-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}
.review-text {
    color: #4A3066;
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 20px;
    font-style: italic;
}
.review-author {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #7B2CBF;
}

/* ---------- Visit ---------- */
.visit {
    padding: 80px 0 100px;
    background: #fff;
}

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

.visit-info h2 {
    margin-bottom: 16px;
}
.visit-intro {
    color: #4A3066;
    font-size: 1.05rem;
    margin-bottom: 36px;
}

.contact-details {
    display: grid;
    gap: 28px;
    margin-bottom: 36px;
}
.contact-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
}
.contact-item dt {
    width: 44px;
    height: 44px;
    background: rgba(123, 44, 191, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-item dt span {
    display: block;
    font-weight: 800;
    font-size: 0.8rem;
    margin-top: 8px;
    color: #2D1B4E;
}
.contact-item dd p {
    color: #4A3066;
    font-size: 0.95rem;
    line-height: 1.6;
}
.contact-item dd p strong {
    color: #2D1B4E;
}
.contact-item dd a {
    color: #7B2CBF;
    font-weight: 700;
    transition: color 0.2s;
}
.contact-item dd a:hover {
    color: #5A1896;
    text-decoration: underline;
}
.hours-note {
    font-size: 0.85rem !important;
    color: #8B6AAF !important;
    font-style: italic;
    margin-top: 4px;
}

.visit-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.visit-map {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(123, 44, 191, 0.15);
}
.map-photo {
    width: 100%;
    height: 400px;
    object-fit: cover;
}
.map-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(123, 44, 191, 0.9), rgba(90, 24, 150, 0.85));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    padding: 32px;
}
.map-placeholder svg {
    color: #F59E0B;
}
.map-placeholder p {
    color: #fff;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.5;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #2D1B4E;
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
}
.footer-grid h4 {
    color: #F59E0B;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 280px;
}
.footer-links ul {
    display: grid;
    gap: 12px;
}
.footer-links a {
    font-weight: 600;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: #F59E0B;
}
.footer-contact p {
    font-size: 0.95rem;
    line-height: 1.7;
}
.footer-contact a {
    color: #F59E0B;
    font-weight: 700;
    transition: color 0.2s;
}
.footer-contact a:hover {
    color: #FCD34D;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}
.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s;
}
.footer-bottom a:hover {
    color: #F59E0B;
}

/* ---------- Back to Top ---------- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: #7B2CBF;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(123, 44, 191, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all 0.3s ease;
    z-index: 50;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: #5A1896;
    transform: translateY(-2px);
}

/* ---------- 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) {
    .about-grid,
    .visit-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .about-images {
        max-width: 500px;
        margin: 0 auto;
    }
    .menu-categories,
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    .primary-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: #FDF4FF;
        padding: 80px 32px 32px;
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 100;
    }
    .primary-nav.open {
        transform: translateX(0);
    }
    .primary-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    .primary-nav a {
        padding: 14px 16px;
        font-size: 1.05rem;
        border-radius: 12px;
    }
    .primary-nav .btn {
        margin-top: 16px;
        justify-content: center;
    }

    .hero {
        min-height: 85vh;
    }
    .hero-content {
        padding: 40px 24px 80px;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .hero-stats {
        gap: 16px;
    }
    .stat-divider {
        display: none;
    }

    .menu-categories,
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    .img-secondary {
        right: 10px;
        bottom: -20px;
    }
    .img-secondary img {
        width: 180px;
        height: 140px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    .hero h1 {
        font-size: 1.9rem;
    }
    .about, .menu, .reviews, .visit {
        padding: 60px 0 72px;
    }
}
