/* ============================================================
   Crave & Co — styles.css
   Red & white family-friendly theme
   Mobile-first responsive design
   ============================================================ */

/* ===== Google Fonts: Titan One (display) + Nunito (body) ===== */
@import url('https://fonts.googleapis.com/css2?family=Titan+One&family=Nunito:wght@400;600;700;800;900&display=swap');

/* ===== CSS Custom Properties ===== */
:root {
    --red:          #D91020;
    --red-dark:     #A8000D;
    --red-light:    #FF3347;
    --red-pale:     #FFF0F0;
    --gold:         #FFD234;
    --white:        #FFFFFF;
    --off-white:    #FFF8F8;
    --text-dark:    #1A0000;
    --text-mid:     #6B1A1A;
    --border:       #F5D5D5;

    --shadow-sm:    0 4px 16px rgba(217, 16, 32, 0.12);
    --shadow-md:    0 8px 30px rgba(217, 16, 32, 0.18);
    --shadow-lg:    0 16px 50px rgba(217, 16, 32, 0.22);

    --radius:       20px;
    --radius-sm:    12px;
    --ease:         cubic-bezier(0.4, 0, 0.2, 1);
    --transition:   0.3s var(--ease);

    --font-display: 'Titan One', cursive;
    --font-body:    'Nunito', sans-serif;
}

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

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

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

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

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

ul {
    list-style: none;
}

/* ===== Fixed Header ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 20px rgba(217, 16, 32, 0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    height: 68px;
}

/* Logo */
.logo-link {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--red);
    transition: transform var(--transition), box-shadow var(--transition);
}

.logo:hover {
    transform: scale(1.08) rotate(-6deg);
    box-shadow: 0 0 0 5px rgba(217, 16, 32, 0.18);
}

/* Desktop nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-links a {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.92rem;
    color: var(--text-dark);
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    letter-spacing: 0.02em;
    transition: background var(--transition), color var(--transition);
}

.nav-links a:hover {
    background: var(--red);
    color: var(--white);
}

/* ===== Hamburger Button ===== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.hamburger:hover {
    background: var(--red-pale);
}

.hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--red);
    border-radius: 3px;
    transition: transform 0.35s var(--ease), opacity 0.35s ease;
    transform-origin: center;
}

/* Animated X state */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    background-color: var(--red);
    background-image:
        radial-gradient(circle at 18% 55%, rgba(255, 255, 255, 0.09) 0%, transparent 50%),
        radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 45%);
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 110px 1.5rem 80px;
    text-align: center;
    overflow: hidden;
}

/* Dot-grid texture */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.14) 1.5px, transparent 1.5px);
    background-size: 34px 34px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    width: 100%;
    animation: fadeUp 0.85s var(--ease) both;
}

/* Pill badge */
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    font-weight: 800;
    font-size: 0.88rem;
    padding: 0.45rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.06em;
    animation: fadeUp 0.85s 0.1s var(--ease) both;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 9vw, 5.2rem);
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 1.2rem;
    animation: fadeUp 0.85s 0.2s var(--ease) both;
}

.hero-highlight {
    color: var(--gold);
    text-shadow: 2px 3px 0 rgba(0, 0, 0, 0.12);
}

.hero p {
    font-size: clamp(1rem, 2.8vw, 1.2rem);
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    margin-bottom: 2.4rem;
    animation: fadeUp 0.85s 0.3s var(--ease) both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeUp 0.85s 0.4s var(--ease) both;
}

/* Wave divider */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
    pointer-events: none;
}

.hero-wave svg {
    width: 100%;
    height: 70px;
}

/* ===== Buttons ===== */
.btn {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 1rem;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    letter-spacing: 0.02em;
    display: inline-block;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

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

.btn:active {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--white);
    color: var(--red);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: var(--gold);
    color: var(--text-dark);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2.5px solid rgba(255, 255, 255, 0.65);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--red);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.btn-white:hover {
    background: var(--gold);
    color: var(--text-dark);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

/* ===== Featured Section ===== */
.featured {
    padding: 5rem 1.25rem 4.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-header {
    text-align: center;
    margin-bottom: 2.75rem;
}

.featured-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 3rem);
    color: var(--red);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.featured-header p {
    font-size: 1.05rem;
    color: var(--text-mid);
    font-weight: 700;
}

/* Card Grid — mobile first: 1 column */
.featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* ===== Food Cards ===== */
.food-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.food-card:hover {
    transform: translateY(-8px) scale(1.015);
    box-shadow: var(--shadow-lg);
    border-color: var(--red-light);
}

.card-image-wrap {
    position: relative;
    overflow: hidden;
    height: 210px;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease);
}

.food-card:hover .card-image-wrap img {
    transform: scale(1.08);
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--red);
    color: var(--white);
    font-weight: 800;
    font-size: 0.75rem;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.card-info {
    padding: 1.2rem 1.4rem 1.4rem;
}

.card-info h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
}

.card-info p {
    font-size: 0.88rem;
    color: var(--text-mid);
    font-weight: 600;
}

/* ===== CTA / Banner Section ===== */
.cta-section {
    background-color: var(--red);
    background-image:
        radial-gradient(circle at 15% 55%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 25%, rgba(255, 255, 255, 0.06) 0%, transparent 45%);
    padding: 5rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Matching dot texture */
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.12) 1.5px, transparent 1.5px);
    background-size: 34px 34px;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    margin-bottom: 2rem;
    line-height: 1.65;
}

/* ===== Footer ===== */
footer {
    background: var(--text-dark);
    padding: 3rem 1.5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-logo img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--red);
    opacity: 0.85;
    transition: opacity var(--transition), transform var(--transition);
}

.footer-logo img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.03em;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--red-light);
}

.footer-copy p {
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.8rem;
    line-height: 1.9;
}

/* ===== Keyframe Animations ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   Responsive Breakpoints — Mobile First
   ============================================================ */

/* --- Tablet: 2-column grid, visible nav --- */
@media (min-width: 600px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-image-wrap {
        height: 230px;
    }
}

/* --- Small Desktop: show full nav, hide hamburger --- */
@media (min-width: 768px) {
    .hamburger {
        display: none;
    }

    .nav-links {
        /* Ensure desktop styles are active */
        display: flex;
        flex-direction: row;
        position: static;
        max-height: none;
        overflow: visible;
        padding: 0;
        box-shadow: none;
        background: transparent;
    }

    .nav-links li {
        width: auto;
    }

    .nav-links a {
        padding: 0.5rem 1.1rem;
        font-size: 0.92rem;
    }
}

/* --- Large Desktop: 4-column grid --- */
@media (min-width: 1024px) {
    .featured-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .nav-container {
        padding: 0 2rem;
    }
}

/* --- Mobile: hamburger menu behaviour --- */
@media (max-width: 767px) {
    .hamburger {
        display: flex;
    }

    /* Slide-down mobile menu */
    .nav-links {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--white);
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s var(--ease), box-shadow 0.3s ease;
    }

    .nav-links.open {
        max-height: 320px;
        box-shadow: 0 10px 30px rgba(217, 16, 32, 0.1);
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--red-pale);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 1rem 1.5rem;
        border-radius: 0;
        font-size: 1rem;
        text-align: left;
    }

    .nav-links a:hover {
        border-radius: 0;
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 70px;
    }
}

/* ============================================================
   CONTACT PAGE — Page Banner
   ============================================================ */
.page-banner {
    position: relative;
    background-color: var(--red);
    background-image:
        radial-gradient(circle at 18% 60%, rgba(255,255,255,0.09) 0%, transparent 50%),
        radial-gradient(circle at 85% 20%, rgba(255,255,255,0.06) 0%, transparent 45%);
    padding: 120px 1.5rem 80px;
    text-align: center;
    overflow: hidden;
}

.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.13) 1.5px, transparent 1.5px);
    background-size: 34px 34px;
    pointer-events: none;
}

.page-banner-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeUp 0.8s var(--ease) both;
}

.page-tag {
    display: inline-block;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    font-weight: 800;
    font-size: 0.86rem;
    padding: 0.4rem 1.15rem;
    border-radius: 50px;
    margin-bottom: 1.1rem;
    letter-spacing: 0.06em;
    animation: fadeUp 0.8s 0.08s var(--ease) both;
}

.page-banner h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 8vw, 4rem);
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 0.9rem;
    animation: fadeUp 0.8s 0.16s var(--ease) both;
}

.page-banner p {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    animation: fadeUp 0.8s 0.24s var(--ease) both;
}

.banner-wave {
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    line-height: 0;
    pointer-events: none;
}

.banner-wave svg { width: 100%; height: 60px; }

/* ============================================================
   CONTACT PAGE — Main layout
   ============================================================ */
.contact-main {
    padding: 3rem 1.25rem 5rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* ============================================================
   CONTACT PAGE — Shared card styles
   ============================================================ */
.contact-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--border);
    animation: fadeUp 0.75s var(--ease) both;
}

.contact-card.message-card { animation-delay: 0.1s; }

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.1rem;
    border-bottom: 2px dashed var(--border);
}

.contact-card-icon { font-size: 1.6rem; line-height: 1; }

.contact-card-header h2 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    color: var(--red);
    letter-spacing: -0.01em;
}

/* ============================================================
   CONTACT PAGE — Info card
   ============================================================ */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: var(--off-white);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--red);
    transition: box-shadow var(--transition), transform var(--transition);
}

.info-item:hover {
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.info-emoji {
    font-size: 1.45rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.info-text h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--red);
    margin-bottom: 0.3rem;
}

.info-text p {
    font-size: 0.92rem;
    color: var(--text-dark);
    font-weight: 600;
    line-height: 1.55;
}

.info-text a {
    color: var(--red);
    font-weight: 700;
    transition: color var(--transition);
}

.info-text a:hover { color: var(--red-dark); text-decoration: underline; }

/* Opening hours table */
.hours-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.1rem;
}

.hours-table td { padding: 0.2rem 0; color: var(--text-dark); }

.hours-table td:first-child {
    color: var(--text-mid);
    font-weight: 700;
    width: 90px;
    padding-right: 1rem;
    white-space: nowrap;
}

/* ============================================================
   CONTACT PAGE — Message card / Form
   ============================================================ */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

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

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

.form-group label {
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--text-mid);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    font-family: var(--font-body);
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--text-dark);
    background: var(--off-white);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
    width: 100%;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    -webkit-appearance: none;
    appearance: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(107, 26, 26, 0.4);
    font-weight: 600;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(217, 16, 32, 0.12);
    background: var(--white);
}

.contact-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23D91020' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-color: var(--off-white);
    padding-right: 2.5rem;
    cursor: pointer;
}

.contact-form textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
}

.btn-submit {
    background: var(--red);
    color: var(--white);
    border: none;
    box-shadow: var(--shadow-sm);
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.3rem;
}

.btn-submit:hover {
    background: var(--red-dark);
    box-shadow: var(--shadow-md);
}

.btn-icon { font-size: 1.1rem; }

/* ============================================================
   CONTACT PAGE — Form success state
   ============================================================ */
.form-success {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
    gap: 0.75rem;
    animation: fadeUp 0.5s var(--ease) both;
}

.form-success.visible { display: flex; }

.success-emoji { font-size: 3rem; line-height: 1; }

.form-success h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--red);
}

.form-success p {
    font-size: 1rem;
    color: var(--text-mid);
    font-weight: 600;
    max-width: 340px;
}

/* Contact page responsive additions */
@media (min-width: 540px) {
    .form-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1.45fr;
        align-items: start;
    }
}

@media (min-width: 1024px) {
    .contact-card { padding: 2.5rem 2.25rem; }
}

/* ===== Reduced motion accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}