/*
 * site.css: the only stylesheet for caseyscoffeebar.com.
 *
 * Sections, in order:
 *   1. Tokens        colours, fonts, spacing (custom properties)
 *   2. Fonts         @font-face for self-hosted fonts
 *   3. Base          reset and element defaults
 *   4. Layout        container, columns, spacers
 *   5. Components    one block per component: "=== Component: <name> ==="
 *   6. Pages         page-specific rules: "=== Page: <path> ==="
 *   7. Utilities     a handful of helpers
 *
 * Breakpoints (Elementor defaults on the original; media queries can't use custom properties):
 *   mobile  <= 767px    tablet 768px-1024px    desktop >= 1025px
 *   Container: 1140px boxed with 10px column padding (content 1120px).
 *
 * Editing: change tokens to restyle the site; add new components as new blocks;
 * add modifier classes (.button--x) instead of changing a component for one page.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (from the original's Elementor kit and computed styles) */
  --color-brown: #5c392c;          /* buttons, big headings, burger */
  --color-text: #272727;           /* body text, nav, small headings */
  --color-muted: #797675;          /* hero tagline */
  --color-bg: #ffffff;
  --color-panel-grey: rgb(121 118 117 / 0.25);  /* About: left column (#79767540) */
  --color-panel-brown: rgb(92 57 44 / 0.376);   /* About: right column (#5C392C60) */
  --color-on-brown: #ffffff;

  /* Typography: Arial everywhere; Roboto 500 only in the mobile dropdown menu */
  --font-body: Arial, Helvetica, sans-serif;
  --font-menu-mobile: "Roboto", Arial, sans-serif;
  --text-base: 16px;
  --leading-body: 24px;
  --text-hero: 52px;       /* H1 CASEY'S COFFEE BAR */
  --text-tagline: 20px;
  --text-kicker: 22px;     /* "About us", "Our menu", "Get in touch" */
  --text-title: 38px;      /* section titles */
  --text-button: 18px;

  /* Spacing and shape */
  --container: 1140px;
  --col-pad: 10px;
  --widget-gap: 20px;      /* Elementor widget spacing */
  --radius-button: 10px;
  --map-shadow: 4px 4px 15px 0 rgb(0 0 0 / 0.5);

  /* Motion */
  --duration: 300ms;
  --ease: ease;
}

/* ============ 2. Fonts ============ */
/* Roboto 500 (Google Font, OFL), latin subset, self-hosted. Used by the mobile dropdown menu only. */
@font-face { font-family: "Roboto"; src: url("/assets/fonts/roboto-500-latin.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* ============ 3. Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: var(--text-base); line-height: var(--leading-body); color: var(--color-text); background: var(--color-bg); }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-body); line-height: 1; margin: 0; }
p { margin: 0 0 1em; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-brown); outline-offset: 2px; }

/* ============ 4. Layout ============ */
/* Boxed row: 1140px max, columns with 10px padding (Elementor boxed section). */
.container { width: 100%; max-width: var(--container); margin-inline: auto; display: flex; flex-wrap: wrap; }
.col { width: 100%; padding: var(--col-pad); display: flex; flex-direction: column; }
.col--middle { justify-content: center; }
@media (min-width: 768px) {
  .col--half { width: 50%; }
}
/* Widgets inside a column are 20px apart (Elementor widget spacing). */
.stack > * + * { margin-top: var(--widget-gap); }

/* Vertical spacers between sections (Elementor spacer widget + 20px column padding). */
.spacer { height: 95px; }
.spacer--sm { height: 35px; }

/* ============ 5. Components ============ */

/* === Component: skip-link === */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 8px 16px; background: var(--color-bg); }
.skip-link:focus { left: 16px; }

/* === Component: site-header ===
 * 50px white gap above the header; desktop and tablet stick to the top once scrolled
 * (Elementor Pro sticky: desktop + tablet only). Mobile is not sticky.
 */
.site-header-spacer { height: 50px; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--color-bg); }
.site-header__inner { max-width: var(--container); margin-inline: auto; display: flex; flex-wrap: wrap; }
.site-header__logo, .site-header__nav, .site-header__cta { padding: var(--col-pad); display: flex; align-items: center; }
.site-header__logo { width: 25%; }
.site-header__logo a { display: block; }
.site-header__nav { width: 49.332%; justify-content: center; }
.site-header__cta { width: 25%; justify-content: flex-end; }

.nav-toggle { display: none; }
.site-nav__list { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 13px 20px; font-size: 18px; font-weight: 700; line-height: 20px; color: var(--color-text); text-decoration: none; }

@media (max-width: 1024px) {
  .site-header__logo { width: 100%; justify-content: center; }
  .site-header__nav { width: 75%; }
  .site-header__cta { width: 25%; }
}

/* Mobile: not sticky; burger left, Order now right; dropdown overlays the page below. */
@media (max-width: 767px) {
  .site-header { position: relative; }
  .site-header__nav { width: 50%; justify-content: flex-start; position: static; }
  .site-header__cta { width: 50%; }

  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -5.5px; padding: 0; border: 0; background: none; cursor: pointer; }
  .nav-toggle__box { display: flex; align-items: center; justify-content: center; width: 33px; height: 33px; border-radius: 3px; background: var(--color-brown); color: var(--color-on-brown); }
  .nav-toggle__close { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

  /* Slide-down: grid row 0fr -> 1fr (align-items: stretch keeps the list clipped while it animates). */
  .site-nav { position: absolute; left: 0; right: 0; top: calc(100% - 7px); z-index: 49; display: grid; grid-template-rows: 0fr; align-items: stretch; background: var(--color-bg); transition: grid-template-rows var(--duration) var(--ease); }
  .site-nav.is-open { grid-template-rows: 1fr; }
  .site-nav__clip { overflow: hidden; min-height: 0; visibility: hidden; transition: visibility 0s linear var(--duration); }
  .site-nav.is-open .site-nav__clip { visibility: visible; transition-delay: 0s; }
  .site-nav__list { display: block; }
  .site-nav a { padding: 10px 20px; font-family: var(--font-menu-mobile); font-weight: 500; }
  .site-nav a:hover, .site-nav a:focus-visible { background: var(--color-brown); color: var(--color-on-brown); }
}

/* === Component: site-footer === */
.site-footer { padding-top: 95px; }
.site-footer__inner { max-width: var(--container); margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; font-weight: 500; }
.site-footer__copyright, .site-footer__credit { width: 50%; padding: var(--col-pad); }
.site-footer__credit { text-align: end; }
.site-footer__credit p { margin: 16px 0; }
.site-footer__credit a { text-decoration: none; }
@media (max-width: 767px) {
  .site-footer__copyright, .site-footer__credit { width: 100%; text-align: center; }
}

/* === Component: button (Order now) === */
.button { display: inline-block; padding: 15px 30px; border-radius: var(--radius-button); background: var(--color-brown); color: var(--color-on-brown); font-family: var(--font-body); font-size: var(--text-button); font-weight: 700; line-height: 1; text-align: center; text-decoration: none; transition: all var(--duration); }
.button-row { display: flex; }
.button-row--center { justify-content: center; }
@media (max-width: 767px) {
  .button-row--center-mobile { justify-content: center; }
}

/* === Component: section-heading (small kicker + large brown title, both h1 as on the original) === */
.kicker { font-size: var(--text-kicker); font-weight: 900; color: var(--color-text); }
.title { font-size: var(--text-title); font-weight: 900; color: var(--color-brown); }
.text { font-weight: 500; }
.text p { margin: 16px 0; }

/* === Component: map (keyless Google Maps iframe, greyscale like the original) === */
.map-frame { border-radius: 15px; box-shadow: var(--map-shadow); overflow: hidden; }
.map { display: block; width: 100%; height: 480px; border: 0; filter: saturate(0) hue-rotate(100deg); }

/* ============ 6. Pages ============ */

/* === Page: / (home one-pager) === */
.page-title { display: none; }
.hero__title { padding: var(--col-pad); text-align: center; font-size: var(--text-hero); font-weight: 900; color: var(--color-brown); }
.hero__tagline { margin-top: 10px; padding: var(--col-pad); text-align: center; font-size: var(--text-tagline); font-weight: 400; color: var(--color-muted); }
.hero__gap { height: 50px; }
.hero__gap--top { height: 70px; }
.hero__cta { margin-top: var(--widget-gap); }
.hero__image { margin-inline: auto; }
.hero__icons { display: flex; margin-bottom: 5px; }
.hero__icons > div { flex: 1 1 0; padding: var(--col-pad); }
.hero__icons img { margin-inline: auto; }
.hero__intro { line-height: 24px; }
@media (max-width: 767px) {
  .hero__icons { flex-direction: column; }
  .hero__intro { text-align: center; }
}

.about { display: flex; flex-wrap: wrap; }
.about__text { width: 100%; padding: 150px 75px; background: var(--color-panel-grey); text-align: center; display: flex; flex-direction: column; justify-content: center; }
.about__image { width: 100%; padding: 0; background: var(--color-panel-brown); display: flex; align-items: center; justify-content: center; }
@media (min-width: 768px) {
  .about__text, .about__image { width: 50%; }
}
@media (max-width: 1024px) {
  .about__text { padding: 75px; }
  .about__image { padding: 20px; }
}
@media (max-width: 767px) {
  .about__text { padding: 50px; }
}

.menus__title { text-align: center; }
.menus__card { display: block; margin-inline: auto; }

/* Contact and app sections sit above the decorative grey panel (Rectangle-6.png, desktop only). */
.contact-app { position: relative; }
.contact-app__panel { display: none; }
@media (min-width: 1025px) {
  .contact-app__panel { display: block; position: absolute; left: 0; top: 62px; width: 100%; height: 1267px; background: url("/wp-content/uploads/2021/09/Rectangle-6.png") no-repeat 0 0; pointer-events: none; }
}
.contact, .app { position: relative; }
.contact { z-index: 2; }
.app { z-index: 1; }
.contact__photo { margin-inline: auto; }
.app__phone { margin-inline: auto; }
.app__badges { display: block; width: fit-content; }

/* === Page: /404.html === */
.not-found { padding-top: 70px; }
.not-found__body { text-align: center; }
.not-found__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 8px; list-style: none; margin: 0; padding: 0; }
.not-found__links a { display: block; padding: 10px 12px; font-weight: 700; color: var(--color-text); }

/* ============ 7. Utilities ============ */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
