/* ===========================================
   caff catering - Mobile-First CSS
   =========================================== */

/* Fonts */
@font-face {
    font-family: 'Open Sans';
    src: url('public/assets/fonts/OpenSans-Regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url('public/assets/fonts/OpenSans-Bold-webfont.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url('public/assets/fonts/OpenSans-Light-webfont.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Open Sans';
    src: url('public/assets/fonts/OpenSans-LightItalic-webfont.woff') format('woff');
    font-weight: 300;
    font-style: italic;
}

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

:root {
    --color-black: black;
    --color-white: white;
    --spacing: 2rem;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: 'Open Sans', system-ui, sans-serif;
    line-height: 1.6;
    user-select: none;
    -webkit-font-smoothing: antialiased;
}

/* Section Base */
.section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* iOS-specific fixes */
@supports (-webkit-touch-callout: none) {
    html {
        scroll-snap-type: none;
    }

    .section {
        scroll-snap-align: none;
        scroll-snap-stop: normal;
    }
}

.section-content {
    width: 100%;
    height: 100%;
    padding: var(--spacing);
    padding-bottom: max(var(--spacing), env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.content-upper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
}

.content-lower {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
}

.cta-group {
    margin-top: auto;
}

/* Colors */
.bg-dark {
    background-color: var(--color-black);
    color: var(--color-white);
}

.bg-light {
    background-color: var(--color-white);
    color: var(--color-black);
}

/* Typography */
h1 {
    font-size: 2rem;
    margin: 0 0 1rem 0;
}

h2 {
    font-size: 1.5rem;
    margin: 0;
}

h3 {
    font-size: 1.25rem;
    margin: 0;
}

p {
    margin: 0.5rem 0;
}

.heading-group {
    margin: 1rem 0;
}

.heading-group h2 {
    margin: 0;
}

.heading-group .subtitle {
    display: block;
    margin: 0;
}

.subtitle {
    font-weight: 300;
    font-style: italic;
    display: block;
}

/* Links */
.bg-light a {
    color: var(--color-black);
    text-decoration: underline;
    text-decoration-color: rgba(0, 0, 0, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s;
}

.bg-light a:hover {
    text-decoration-color: rgba(0, 0, 0, 1);
}

.bg-dark a {
    color: var(--color-white);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s;
}

.bg-dark a:hover {
    text-decoration-color: rgba(255, 255, 255, 1);
}

/* Buttons */
.cta-button {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    font-family: 'Open Sans', system-ui, sans-serif;
    border: 2px solid;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    margin: 0.5rem 0;
}

.bg-light .cta-button {
    background-color: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
}

.bg-light .cta-button:hover {
    background-color: transparent;
    color: var(--color-black);
}

.bg-dark .cta-button {
    background-color: var(--color-white);
    color: var(--color-black);
    border-color: var(--color-white);
}

.bg-dark .cta-button:hover {
    background-color: transparent;
    color: var(--color-white);
}

/* Horizontal Rules */
hr {
    width: 100%;
    border: none;
    border-top: 1px solid;
    margin: 1rem 0;
    flex-shrink: 0;
}

.bg-light hr {
    border-color: var(--color-black);
}

.bg-dark hr {
    border-color: var(--color-white);
}

/* Hero */
.hero-logo {
    width: 250px;
    max-width: 80%;
}

/* What We Offer */
.offerings-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: grid;
    gap: 0.5rem 0;
}

.offerings-list.two-col {
    grid-template-columns: 1fr 1fr;
}

.offerings-list .span-two {
    grid-column: 1 / 3;
}

.offerings-list li {
    padding: 0.25rem 0;
}

/* How to Book */
.event-details {
    text-align: left;
    margin: 1rem 0;
    margin-left: 1.25rem;
}

.event-details li {
    padding: 0.25rem 0;
}

/* FAQs */
#faqs .section-content {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

#faqs .content-upper {
    flex-shrink: 0; /* Prevent content from being squeezed */
}

.faq-list {
    width: 100%;
    max-width: 800px;
    padding-bottom: 1rem; /* Extra space at bottom for last item */
}

.faq-item {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: margin 0.3s ease;
}

.faq-item summary {
    font-weight: bold;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    padding: 0.5rem 0;
    margin: 0;
    animation: fadeIn 0.3s;
}

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

/* Get in Touch */
.footer-logo {
    width: 150px;
    margin-bottom: 1rem;
}

.email-link {
    text-decoration: none !important;
    margin: 1rem 0;
}

.email-link h3 {
    margin: 0;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s;
}

.email-link:hover h3 {
    text-decoration-color: rgba(255, 255, 255, 1);
}

.insta-icon {
    width: var(--spacing);
    margin: 1rem 0;
}

.fhr-badge {
    width: 150px;
    filter: grayscale(100%);
    transition: filter 0.5s;
    border: 1px solid var(--color-white);
    border-radius: 5px;
    margin: 1rem;
}

.fhr-badge:hover {
    filter: grayscale(0%);
}

/* Responsive */
.mobile-only {
    display: flex;
}

.desktop-only {
    display: none;
}

/* Small screens */
@media (max-width: 375px) {
:root {
--spacing: 1.25rem;
}

h1 {
font-size: 1.5rem;
    margin-bottom: 0.75rem;
    }

h2 {
    font-size: 1.25rem;
}

.heading-group {
    margin: 0.75rem 0;
}

p {
    font-size: 0.85rem;
    margin: 0.35rem 0;
}

.offerings-list {
    font-size: 0.85rem;
    gap: 0;
    margin: 0.75rem 0;
}

.offerings-list li {
padding: 0.15rem 0;
}

.event-details {
font-size: 0.85rem;
    margin: 0.75rem 0;
}

.event-details li {
padding: 0.15rem 0;
}

    hr {
        margin: 0.75rem 0;
    }

    .faq-item {
        margin-bottom: 0.5rem;
        padding-bottom: 0.25rem;
    }

    .faq-item summary {
        font-size: 0.85rem;
    }

    .faq-item p {
        font-size: 0.8rem;
        padding: 0.35rem 0;
    }

    .fhr-badge {
        width: 100px;
    }

    .cta-button {
        font-size: 0.85rem;
        padding: 0.6rem 1.5rem;
    }

    .cta-group {
        margin-top: 0.75rem;
    }

    .cta-group p {
    margin: 0.35rem 0;
    }

    /* Hide subtitle text above CTAs on small screens */
    .cta-subtitle {
    display: none;
    }

    /* Hide sample menus CTA on small screens */
    .sample-menus-cta {
    display: none;
    }

    #what-we-offer .cta-group .subtitle {
        display: none;
    }
}

/* Tablets and Desktop */
@media (min-width: 768px) {
.hero-logo {
width: 25vw;
}

.section-content {
    max-width: 800px;
}

    .faq-item {
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
    }

    .faq-item summary {
        font-size: 1.125rem;
    }

    .faq-item p {
        font-size: 1.05rem;
        line-height: 1.6;
    }

    .fhr-badge {
        max-width: 200px;
    }

    /* Hide mobile, show desktop */
    .mobile-only {
        display: none;
    }

    .desktop-only {
        display: flex;
    }

    /* Two Column Layout */
    .two-col-wrapper {
        width: 100%;
        height: 100svh;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .col {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .col .section-content {
        max-height: 80vh;
        max-width: 400px;
        /* Switch to grid layout for aligned rows */
        display: grid;
        grid-template-rows: auto 1fr auto 1fr auto;
        /* [h1] [content-upper] [hr] [content-lower] [cta-group] */
        gap: 0;
    }

    /* Reset flex properties since we're using grid */
    .col .section-content .content-upper,
    .col .section-content .content-lower {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Align columns to edges */
    .col:first-child .section-content {
        margin-left: auto;
        margin-right: 0;
    }

    .col:last-child .section-content {
        margin-right: auto;
        margin-left: 0;
    }
}
