/* Randy's Donuts landing page stylesheet.
   Brand fonts (Radiora + Filson Pro) are self-hosted from ../fonts/. */


/* Brand fonts */

@font-face {
    font-family: "Radiora";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/Radiora/Web-PS Radiora.woff2") format("woff2");
}

@font-face {
    font-family: "Filson Pro";
    font-style: italic;
    font-weight: 300;
    font-display: swap;
    src: url("../fonts/Filson Pro/FilsonProLightItalic.otf") format("opentype");
}

@font-face {
    font-family: "Filson Pro";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/Filson Pro/FilsonProRegular.otf") format("opentype");
}

@font-face {
    font-family: "Filson Pro";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/Filson Pro/FilsonProMedium.otf") format("opentype");
}

@font-face {
    font-family: "Filson Pro";
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url("../fonts/Filson Pro/FilsonProBlack.otf") format("opentype");
}


/* Reset */

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

html,
body {
    margin: 0;
    padding: 0;
}

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

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

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

button {
    font: inherit;
    cursor: pointer;
}


/* Design tokens */

:root {
    --orange: #FF4E00;
    --orange-hover: #E64600;
    --dark-chocolate: #2E1200;
    --chocolate: #612E1F;
    --cream: #FAF7ED;
    --white: #FFFFFF;
    --hairline: #E5E7EB;

    --font-display: "Radiora", Georgia, serif;
    --font-body: "Filson Pro", system-ui, -apple-system, "Segoe UI", sans-serif;

    --container-max: 1216px;
    --section-pad-y: 80px;
    --section-pad-x: 64px;

    --radius-card: 8px;
    --radius-pill: 60px;
    --radius-button-sm: 4px;

    --shadow-card: 0 4px 6px rgba(0, 0, 0, 0.10);
    --shadow-soft: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-header: 0 1px 2px -1px rgba(0, 0, 0, 0.10), 0 1px 3px rgba(0, 0, 0, 0.10);

    --transition-fast: 150ms ease;

    --header-height: 145px;
}


/* Base typography */

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 28px;
    font-weight: 400;
    color: var(--dark-chocolate);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* Container */

.container {
    width: 100%;
    max-width: calc(var(--container-max) + (var(--section-pad-x) * 2));
    margin-inline: auto;
    padding-inline: var(--section-pad-x);
}


/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 48px;
    border: 2px solid transparent;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 900;
    line-height: 24px;
    text-transform: uppercase;
    letter-spacing: 0.91px;
    text-align: center;
    cursor: pointer;
    transition:
        background-color var(--transition-fast),
        color var(--transition-fast),
        border-color var(--transition-fast),
        transform 100ms ease;
    -webkit-tap-highlight-color: transparent;
}

.btn:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 3px;
}

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

.btn--orange-solid {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}
.btn--orange-solid:hover {
    background: var(--orange-hover);
    border-color: var(--orange-hover);
}

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

.btn--white-solid {
    background: var(--white);
    color: var(--orange);
    border-color: var(--white);
}
.btn--white-solid:hover {
    background: var(--cream);
    border-color: var(--cream);
}

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

.btn--small {
    padding: 7px 19px;
    font-size: 14px;
    font-weight: 500;
    line-height: 21px;
    letter-spacing: 0;
    border-radius: var(--radius-button-sm);
    border-width: 0;
}


/* Site header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow-header);
    padding: 20px 0;
}

.site-header__toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
}

.site-header__toggle:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 6px;
    border-radius: 2px;
}

.site-header__toggle-bar {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--dark-chocolate);
    border-radius: 2px;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 36px;
    min-height: 88px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
}

.site-logo img {
    height: 104px;
    width: auto;
}

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

.site-nav__list {
    display: flex;
    align-items: center;
    gap: 36px;
}

.site-nav__list a {
    color: var(--dark-chocolate);
    font-size: 19px;
    font-weight: 900;
    line-height: 24px;
    transition: color var(--transition-fast);
}

.site-nav__list a:hover {
    color: var(--orange);
}

.site-nav__list a:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 4px;
    border-radius: 2px;
}

.site-header__cta {
    font-size: 18px;
}


/* Hero */

.hero {
    background: var(--orange);
    padding: 64px 0;
    overflow: hidden;
}

.hero__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
}

.hero__content {
    flex: 0 1 608px;
    padding: 40px 0;
}

.hero__title {
    margin: 0 0 24px 0;
    font-family: var(--font-display);
    font-size: 85px;
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.hero__title-line {
    display: block;
}

.hero__title-line--white {
    color: var(--white);
}

.hero__title-line--brown {
    color: var(--dark-chocolate);
}

.hero__lede {
    max-width: 440px;
    margin: 0 0 24px 0;
    color: var(--white);
    font-size: 18px;
    line-height: 28px;
    font-weight: 425;
}

.hero__cta-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.hero__locations {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--white);
    font-size: 18px;
    line-height: 28px;
}

.hero__locations-icon {
    width: 25px;
    height: 25px;
    flex-shrink: 0;
}

.hero__media {
    flex: 0 0 584px;
    max-width: 584px;
}

.hero__media img {
    width: 100%;
    height: 730px;
    max-height: calc(100vh - var(--header-height) - 128px);
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
}


/* Banner section ("Your Move") */

.banner-section {
    position: relative;
    background-color: var(--white);
    background-image: url("../images/pattern-brand.png");
    background-repeat: repeat;
    padding: 80px 0;
}

.banner-section__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 64px;
}

.banner-section__image {
    width: 100%;
    max-width: 1216px;
    height: auto;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}


/* Section header (shared) */

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

.section-header__title {
    margin: 0 0 16px 0;
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 400;
    line-height: 1.05;
    text-transform: uppercase;
}

.section-header__title--brown {
    color: var(--dark-chocolate);
}

.section-header__title--orange {
    color: var(--orange);
}

.section-header__lede {
    margin: 0;
    color: var(--dark-chocolate);
    font-size: 18px;
    line-height: 28px;
}


/* Menu section + donut cards */

.menu-section {
    background: var(--cream);
    padding: 80px 0;
}

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

.donut-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.donut-card__media {
    height: 256px;
    overflow: hidden;
}

.donut-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.donut-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
    gap: 8px;
}

.donut-card__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--dark-chocolate);
}

.donut-card__desc {
    margin: 0 0 16px 0;
    flex: 1;
    color: var(--dark-chocolate);
    font-size: 18px;
    line-height: 28px;
}

.donut-card .btn--small {
    align-self: flex-start;
    margin-top: auto;
}

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


/* Why Randy's */

.why-section {
    background: var(--white);
    padding: 80px 0;
}

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

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    padding: 32px;
}

.feature__icon {
    width: auto;
    height: 90px;
    max-width: 110px;
    object-fit: contain;
}

.feature__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--dark-chocolate);
}

.feature__desc {
    margin: 0;
    color: var(--dark-chocolate);
    font-size: 18px;
    line-height: 28px;
}


/* Reviews */

.reviews-section {
    background: var(--cream);
    padding: 80px 0;
}

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

.review-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px;
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.review-card__stars {
    color: var(--orange);
    font-size: 32px;
    line-height: 1;
    letter-spacing: 2px;
}

.review-card__quote {
    margin: 0;
    flex: 1;
    color: var(--dark-chocolate);
    font-size: 18px;
    line-height: 28px;
    font-style: italic;
    font-weight: 350;
}

.review-card__cite {
    color: var(--dark-chocolate);
    font-size: 16px;
    font-weight: 900;
    line-height: 24px;
    font-style: normal;
}


/* Final CTA */

.cta-section {
    position: relative;
    background: var(--white);
    padding: 80px 0;
    overflow: hidden;
}

.cta-section__decoration {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: auto;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.cta-section__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
}

.cta-section__title {
    margin: 0;
    max-width: 820px;
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 400;
    line-height: 1.05;
    text-transform: uppercase;
}

.cta-section__title span {
    display: inline;
}

.cta-section__title--orange {
    color: var(--orange);
}

.cta-section__title--brown {
    color: var(--dark-chocolate);
}

.cta-section__lede {
    margin: 0;
    max-width: 820px;
    color: var(--dark-chocolate);
    font-size: 18px;
    line-height: 28px;
}

.cta-section__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}


/* Footer */

.site-footer {
    background: var(--chocolate);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr 1fr;
    gap: 32px;
    padding-bottom: 32px;
}

.footer-brand__logo {
    width: 120px;
    height: auto;
    margin-bottom: 8px;
}

.footer-brand__tag {
    margin: 0;
    color: var(--white);
    font-size: 14px;
    line-height: 21px;
}

.footer-col__title {
    margin: 0 0 16px 0;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.15;
    text-transform: uppercase;
    color: var(--white);
}

.footer-col__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col__list a,
.footer-col__phone {
    color: var(--white);
    font-size: 14px;
    line-height: 21px;
    transition: opacity var(--transition-fast);
}

.footer-col__list a:hover,
.footer-col__phone:hover {
    opacity: 0.7;
}

.footer-col__list a:focus-visible,
.footer-col__phone:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 4px;
    border-radius: 2px;
}

.footer-col__strong {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 900;
    line-height: 18px;
}

.footer-col__address {
    margin: 0 0 16px 0;
    font-size: 14px;
    line-height: 21px;
    font-style: normal;
}

.footer-col__phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 425;
}

.footer-col__phone-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.footer-col__muted {
    margin: 0;
    font-size: 14px;
    line-height: 21px;
    font-style: italic;
    font-weight: 350;
}

.footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.20);
    padding: 25px 0;
    text-align: center;
}

.footer-legal p {
    margin: 0;
    font-size: 14px;
    line-height: 21px;
}

.footer-legal a {
    color: var(--white);
    transition: opacity var(--transition-fast);
}

.footer-legal a:hover {
    opacity: 0.7;
}

.footer-legal a:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 4px;
    border-radius: 2px;
}

.footer-legal__sep {
    margin: 0 8px;
    opacity: 0.6;
}


/* ===== Tablet and below (max-width: 1023px) ===== */

@media (max-width: 1023px) {

    :root {
        --section-pad-x: 32px;
        --section-pad-y: 64px;
    }

    /* Header: 3-up row — logo | hamburger | Order Online */

    .site-header__inner {
        justify-content: space-between;
    }

    .site-logo img {
        height: 72px;
    }

    .site-header__toggle {
        display: inline-flex;
    }

    .site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    .site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(2) {
        opacity: 0;
    }

    .site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }

    .site-header__cta {
        padding: 12px 24px;
        font-size: 14px;
        letter-spacing: 0.7px;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0 var(--section-pad-x);
        background: var(--white);
        border-bottom: 1px solid var(--hairline);
        box-shadow: var(--shadow-header);
        max-height: 0;
        overflow: hidden;
        transition: max-height 200ms ease, padding 200ms ease;
    }

    .site-nav--open {
        max-height: 80vh;
        padding: 16px var(--section-pad-x) 24px;
    }

    .site-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .site-nav__list li + li {
        border-top: 1px solid var(--hairline);
    }

    .site-nav__list a {
        display: block;
        padding: 14px 0;
    }

    /* Hero stacks; image moves below text */

    .hero {
        padding-top: 64px;
    }

    .hero__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 48px;
    }

    .hero__content {
        flex: 1 1 auto;
        max-width: none;
        padding: 0;
    }

    .hero__title {
        font-size: 56px;
    }

    .hero__lede {
        max-width: 640px;
    }

    .hero__media {
        flex: 1 1 auto;
        max-width: 100%;
    }

    .hero__media img {
        height: auto;
        max-height: 560px;
    }

    /* Section headings smaller */

    .section-header__title,
    .cta-section__title {
        font-size: 36px;
    }

    /* Card grids: 2-up */

    .menu-grid,
    .features-grid,
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer: 2x2 */

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


/* ===== Mobile (max-width: 639px) ===== */

@media (max-width: 639px) {

    :root {
        --section-pad-x: 20px;
        --section-pad-y: 48px;
    }

    /* Tighter header */

    .site-logo img {
        height: 88px;
    }

    .site-header__cta {
        padding: 10px 18px;
        font-size: 13px;
        letter-spacing: 0.6px;
    }

    /* Hero: smaller type, shorter image */

    .hero {
        padding: 48px 0 56px;
    }

    .hero__title {
        font-size: 42px;
    }

    .hero__lede,
    .section-header__lede,
    .cta-section__lede,
    .review-card__quote,
    .donut-card__desc,
    .feature__desc {
        font-size: 16px;
        line-height: 24px;
    }

    .hero__media img {
        max-height: 420px;
    }

    /* CTAs stack full-width */

    .hero__cta-group,
    .cta-section__buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .hero__cta-group .btn,
    .cta-section__buttons .btn {
        width: 100%;
    }

    /* Section headings smaller still */

    .section-header__title,
    .cta-section__title {
        font-size: 28px;
        line-height: 1.1;
    }

    .section-header {
        margin-bottom: 32px;
    }

    /* All card grids collapse to single column */

    .menu-grid,
    .features-grid,
    .reviews-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Banner section: tighter */

    .banner-section__inner {
        gap: 40px;
    }

    /* CTA donut decoration overwhelms tiny screens — hide */

    .cta-section__decoration {
        display: none;
    }

    /* Footer tweaks */

    .site-footer {
        padding-top: 48px;
    }

    .footer-legal p {
        line-height: 1.8;
    }

    .footer-legal__sep {
        margin: 0 4px;
    }
}


/* ===== Desktop and up (min-width: 1024px) ===== */

@media (min-width: 1024px) {

    .site-logo {
        margin-right: auto;
    }

    .hero {
        min-height: calc(100vh - var(--header-height));
        display: flex;
        align-items: center;
    }
}
