/*
Theme Name: Escapes on the Go
Theme URI: https://escapesonthego.com
Author: Gage Larsen
Description: Custom theme for escapesonthego.com — at-home escape room experiences from a family in Payson, Utah.
Version: 1.2.1
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: escapes-on-the-go
*/

:root {
    /* Sampled from EscapesLogo.png */
    --navy: #011f3d;
    --gold: #fdc94d;
    --teal: #53979c;
    --white: #ffffff;

    /* Derived. Explicit hex, not color-mix(), so the palette stays greppable
       and works without modern color-function support. */
    --navy-line: #16405f;   /* hairlines on dark */
    --cream: #f7f4ee;       /* light page ground */
    --cream-line: #e2dcd0;  /* hairlines on light */
    --teal-deep: #2c6165;   /* teal dark enough for small text on cream */
    --muted: #46596b;       /* secondary text on light */
    --muted-dark: #b9c6d3;  /* secondary text on navy */
    --error: #ffb4a8;       /* notify form error message, on navy */
    --gold-hover: #fdd873;  /* primary button hover state */
    --alert: #8a3310;       /* location warning text, on light */
    --alert-bg: #fbeee6;    /* location warning ground */
    --alert-line: #e8c9b4;  /* location warning hairline */

    --wrap: 72rem;
    --wrap-narrow: 56rem;
    --radius: 1rem;
    --radius-pill: 999px;

    --font-display: "Fraunces", ui-serif, Georgia, serif;
    --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
}

/* 1. Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
p,
ul {
    margin: 0;
}

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

/* 2. Base */
html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background: var(--cream);
    color: var(--navy);
    line-height: 1.6;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

/* 3. Headings */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    letter-spacing: -0.01em;
    line-height: 1.1;
}

/* 4. Skip link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 100;
    padding: 0.75rem 1.5rem;
    background: var(--gold);
    color: var(--navy);
    text-decoration: none;
    font-weight: 500;
}

.skip-link:focus {
    top: 0;
    left: 0;
}

/* 5. Wrap */
.wrap {
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: 1.5rem;
}

/* 6. Section */
.section {
    padding-block: 5rem;
}

.section--dark {
    background: var(--navy);
    color: var(--cream);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
    color: var(--white);
}

.section--dark a {
    color: var(--gold);
}

/* 7. Display headings */
.display {
    font-family: var(--font-display);
}

.display--xl {
    font-size: clamp(2.75rem, 7vw, 4.5rem);
}

.display--lg {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
}

.display--md {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

/* 8. Eyebrow */
.eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--teal-deep);
}

.section--dark .eyebrow {
    color: var(--gold);
}

/* 9. Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: var(--radius-pill);
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 150ms, color 150ms;
}

.btn--primary {
    background: var(--gold);
    color: var(--navy);
}

.btn--primary:hover {
    background: var(--gold-hover);
}

.btn--ghost {
    background: transparent;
    color: inherit;
    box-shadow: inset 0 0 0 1px currentColor;
}

/* 10. Focus */
:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

/* 11. Prose */
.prose {
    max-width: 65ch;
}

.prose p + p {
    margin-top: 1.25em;
}

.prose a {
    color: var(--teal-deep);
}

/* 12. Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* 13. Site header & nav */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--cream);
    border-bottom: 1px solid var(--cream-line);
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
    .site-header {
        background: rgba(247, 244, 238, 0.85); /* --cream at 85% */
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
    }
}

.site-nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 1rem;
    gap: 2rem;
}

.site-brand {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.site-brand__mark {
    height: 2.25rem;
    width: auto;
}

.site-brand__name {
    font-family: var(--font-display);
    font-size: 1.125rem;
}

.site-nav__links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

@media (max-width: 47.9375rem) {
    .site-nav__links {
        display: none;
    }
}

.site-nav__link {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.875rem;
}

.site-nav__link:hover,
.site-nav__link.is-current {
    color: var(--teal-deep);
}

.site-nav__link.is-current {
    font-weight: 500;
}

.site-nav__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: var(--radius-pill);
    padding: 0.75rem 1.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    background: var(--navy);
    color: var(--gold);
}

@media (max-width: 39.9375rem) {
    .site-nav__pill {
        display: none;
    }
}

.pulse-dot {
    display: inline-block;
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background: var(--gold);
    animation: otg-pulse 2s ease-in-out infinite;
}

@keyframes otg-pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.nav-toggle {
    display: flex;
    align-items: center;
}

@media (min-width: 48rem) {
    .nav-toggle {
        display: none;
    }
}

.nav-toggle__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    list-style: none;
    color: var(--navy);
    cursor: pointer;
}

.nav-toggle__button::-webkit-details-marker {
    display: none;
}

.nav-toggle__bars {
    position: relative;
    display: block;
    width: 1.5rem;
    height: 2px;
    background: currentColor;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
}

.nav-toggle__bars::before {
    top: -6px;
}

.nav-toggle__bars::after {
    top: 6px;
}

.nav-toggle__panel {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--cream);
    border-top: 1px solid var(--cream-line);
}

.nav-toggle__panel a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--navy);
    text-decoration: none;
}

/* 14. Site footer */
.site-footer {
    background: var(--navy);
    color: var(--cream);
    margin-top: 6rem;
}

.site-footer__grid {
    display: grid;
    gap: 2rem;
    padding-block: 3rem;
    grid-template-columns: 1fr;
}

@media (min-width: 48rem) {
    .site-footer__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.site-footer__heading {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted-dark);
    font-weight: 500;
}

.site-footer__list {
    list-style: none;
    display: grid;
    gap: 0.5rem;
    padding: 0;
    margin-top: 0.75rem;
    font-size: 0.875rem;
}

.site-footer__list a {
    color: var(--cream);
    text-decoration: none;
}

.site-footer__list a:hover {
    color: var(--gold);
}

.site-footer__muted {
    color: var(--muted-dark);
}

.site-footer__social {
    display: flex;
    gap: 1rem;
    padding-top: 0.5rem;
}

.site-footer__legal {
    border-top: 1px solid var(--navy-line);
}

.site-footer__legal p {
    font-size: 0.75rem;
    color: var(--muted-dark);
    padding-block: 1rem;
}

.site-footer__blurb {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--muted-dark);
    max-width: 20rem;
}

/* ---------------------------------------------------------------------- */
/* Experience card                                                        */
/* ---------------------------------------------------------------------- */

.card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--navy);
    color: var(--cream);
    box-shadow: 0 10px 30px rgb(1 31 61 / 0.15);
}

.card__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms;
}

.card:hover .card__media img {
    transform: scale(1.05);
}

.card__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--navy) 30%, rgb(1 31 61 / 0.8) 60%, transparent); /* rgb(1 31 61) = --navy, at 80% */
}

.card__body {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 1.5rem;
    text-shadow: 0 1px 2px rgb(0 0 0 / 0.6);
}

.card__badge {
    display: inline-flex;
    background: rgb(253 201 77 / 0.2); /* rgb(253 201 77) = --gold, at 20% */
    color: var(--gold);
    box-shadow: inset 0 0 0 1px rgb(253 201 77 / 0.4); /* rgb(253 201 77) = --gold, at 40% */
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: var(--radius-pill);
}

.card__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--white);
}

.card__tagline {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: var(--cream);
}

.card__description {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.6;
}

.card__cta {
    margin-top: 1rem;
}

.card-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

@media (min-width: 40rem) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 64rem) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------------------------------------------------------------------- */
/* City Puzzle Packs                                                      */
/* ---------------------------------------------------------------------- */
/* A pack is a product, not a teaser: it has to carry specs, contents, a
   price and a location warning, so it uses a light card in normal flow
   rather than .card, whose body is absolutely positioned over its image. */
.pack-list {
    display: grid;
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.pack {
    display: grid;
    gap: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: inset 0 0 0 1px var(--cream-line), 0 10px 30px rgb(1 31 61 / 0.08);
}

@media (min-width: 56rem) {
    .pack {
        grid-template-columns: 2fr 3fr;
        align-items: stretch;
    }
}

.pack__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--navy);
}

@media (min-width: 56rem) {
    .pack__media {
        aspect-ratio: auto;
        height: 100%;
    }
}

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

.pack__body {
    padding: 1.75rem;
}

@media (min-width: 56rem) {
    .pack__body {
        padding: 2.25rem;
    }
}

.pack__title {
    margin-top: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--navy);
}

.pack__tagline {
    margin-top: 0.375rem;
    font-size: 1rem;
    color: var(--teal-deep);
}

.pack__description {
    margin-top: 0.875rem;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--navy);
}

.pack__specs {
    display: grid;
    gap: 0.5rem;
    margin-top: 1.25rem;
    /* padding, not padding-top: the browser's default 40px inline-start on a
       <ul> survives list-style:none, and would inset these rows from the
       hairline above them. Same reason .site-footer__list zeroes it. */
    padding: 1.25rem 0 0;
    border-top: 1px solid var(--cream-line);
    list-style: none;
    font-size: 0.875rem;
    color: var(--navy);
}

.pack__spec-label {
    display: inline-block;
    min-width: 5.5rem;
    color: var(--muted);
}

.pack__contents {
    margin-top: 1.25rem;
}

.pack__contents-heading {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.pack__contents ul {
    margin-top: 0.5rem;
    padding-left: 1.125rem;
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--navy);
}

/* The buyer's last chance to notice the pack is location-locked, so it sits
   directly above the Buy button rather than up with the description. */
.pack__warning {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-top: 1.5rem;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    background: var(--alert-bg);
    box-shadow: inset 0 0 0 1px var(--alert-line);
    color: var(--alert);
    font-size: 0.875rem;
    line-height: 1.6;
}

.pack__warning-mark {
    flex: none;
    display: grid;
    place-items: center;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.0625rem;
    border-radius: var(--radius-pill);
    background: var(--alert);
    color: var(--alert-bg);
    font-size: 0.75rem;
    font-weight: 700;
}

.pack__buy {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--cream-line);
}

.pack__price {
    font-family: var(--font-display);
    font-size: 1.75rem;
    line-height: 1.1;
    color: var(--navy);
}

.pack__price-note {
    display: block;
    margin-top: 0.25rem;
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    color: var(--muted);
}

.pack__buy .btn,
.pack__buy .badge-soft {
    margin-left: auto;
}

.pack-steps {
    display: grid;
    gap: 1.25rem;
    margin-top: 2rem;
    padding: 0;
    list-style: none;
    max-width: 65ch;
}

.pack-steps li {
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: 1rem;
    align-items: baseline;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.pack-steps__num {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-pill);
    background: rgb(253 201 77 / 0.15); /* rgb(253 201 77) = --gold, at 15% */
    box-shadow: inset 0 0 0 1px rgb(253 201 77 / 0.4);
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 0.9375rem;
}

/* The refunds copy is the only long-form list on the site, and Stripe's
   terms-of-service checkbox points straight at it, so it has to read well. */
.prose ul {
    margin-top: 0.75rem;
    padding-left: 1.25rem;
    display: grid;
    gap: 0.625rem;
    line-height: 1.7;
}

.prose p + ul,
.prose ul + p {
    margin-top: 1.25em;
}

/* ---------------------------------------------------------------------- */
/* The Dispatch signup form                                               */
/* ---------------------------------------------------------------------- */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.notify {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 28rem;
    margin: 2.5rem auto 0;
}

@media (min-width: 40rem) {
    .notify {
        flex-direction: row;
    }
}

.notify__input {
    flex: 1;
    border-radius: var(--radius-pill);
    border: 0;
    padding: 0.75rem 1.25rem;
    font: inherit;
    font-size: 0.875rem;
    background: var(--cream);
    color: var(--navy);
}

.notify--on-light .notify__input {
    border: 1px solid var(--cream-line);
}

.notify__pot {
    display: none;
}

.notify__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.notify__message {
    max-width: 28rem;
    margin: 1rem auto 0;
    font-size: 0.875rem;
    text-align: center;
    color: var(--muted-dark);
}

.notify__message--error {
    color: var(--error);
}

.notify__fallback {
    max-width: 28rem;
    margin: 2.5rem auto 0;
    font-size: 0.875rem;
    color: var(--muted-dark);
}

.notify__fallback a {
    color: var(--gold);
    text-decoration: underline;
}

/* ---------------------------------------------------------------------- */
/* Home page                                                              */
/* ---------------------------------------------------------------------- */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    text-align: center;
}

.hero__backdrop {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero__backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.hero__wash {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--cream), rgb(247 244 238 / 0.6), var(--cream)); /* rgb(247 244 238) = --cream, at 60% */
}

.hero__inner {
    padding-block: 6rem;
}

@media (min-width: 40rem) {
    .hero__inner {
        padding-block: 8rem;
    }
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero__lede {
    margin: 1.5rem auto 0;
    max-width: 36rem;
    font-size: 1.125rem;
    color: var(--muted);
}

.hero__actions {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.wrap--narrow {
    max-width: var(--wrap-narrow);
}

.center {
    text-align: center;
}

.section__lede {
    margin-top: 0.75rem;
    color: var(--muted);
    max-width: 40rem;
}

.center .section__lede {
    margin-inline: auto;
}

.section__lede--dark {
    color: var(--muted-dark);
}

.section__actions {
    margin-top: 2rem;
}

.split {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 48rem) {
    .split {
        grid-template-columns: repeat(2, 1fr);
    }
}

.split__body {
    margin-top: 1.25rem;
    line-height: 1.7;
    color: var(--muted-dark);
}

.split__media {
    border-radius: var(--radius);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    box-shadow: 0 20px 40px rgb(0 0 0 / 0.35);
    width: 100%;
}

.link-arrow {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.875rem;
    color: var(--gold);
    text-decoration: none;
}

.link-arrow:hover {
    text-decoration: underline;
}

.fine-print {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--muted-dark);
}

.section--narrow-dark {
    border-top: 1px solid var(--navy-line);
}

.about-split {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 48rem) {
    .about-split {
        grid-template-columns: 1fr 1.2fr;
    }
}

.about-split__media {
    border-radius: var(--radius);
    aspect-ratio: 4 / 5;
    object-fit: cover;
    width: 100%;
    box-shadow: 0 20px 40px rgb(1 31 61 / 0.2); /* rgb(1 31 61) = --navy, at 20% */
}

.about-split__body {
    margin-top: 1.25rem;
    color: var(--muted);
}

.about-split__body p {
    margin-top: 1rem;
}

.info-grid {
    display: grid;
    gap: 1.5rem;
    padding-bottom: 6rem;
}

@media (min-width: 40rem) {
    .info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.info-card {
    border-radius: var(--radius);
    background: var(--white);
    padding: 1.5rem;
    box-shadow: inset 0 0 0 1px var(--cream-line);
}

.info-card__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
}

.info-card__value {
    margin-top: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
}

.info-card__links {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
}

.info-card__links a {
    color: var(--teal-deep);
}

.fine-print--light {
    color: var(--muted);
}

.fine-print--light a {
    color: var(--teal-deep);
}

/* ---------------------------------------------------------------------- */
/* What's Next page                                                       */
/* ---------------------------------------------------------------------- */
.hero--dark .hero__backdrop img {
    opacity: 0.25;
}

.hero__lede--dark {
    color: var(--muted-dark);
}

.badge-soft {
    display: inline-flex;
    border-radius: var(--radius-pill);
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    background: var(--cream-line);
    color: var(--muted);
}

/* Rental enquiry link — shown on a card in place of the Book Now CTA while
   online booking is paused. Gold on the card's navy scrim: 10.78:1. */
.card__enquire {
    margin-top: 0.875rem;
    font-size: 0.8125rem;
}

.card__enquire a {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
}

.card__enquire a:hover {
    text-decoration: underline;
}
