/*
Theme Name: CSSDA Theme
Theme URI: https://cssda.org
Author: CSSDA Developer
Description: Custom ACF-powered theme for China Schools Speech & Debate Association. Fully editable via ACF Free. Local fonts, no Google Fonts.
Version: 1.0.0
Text Domain: cssda
*/

/* ==========================================================================
   0. LOCAL FONTS
   Place your .woff2 / .woff files in /assets/fonts/
   Update font-family names + file paths below to match your files.
   ========================================================================== */

@font-face {
  font-family: 'CSSDAHeading';
  src: url('./assets/fonts/heading-font.woff2') format('woff2'),
       url('./assets/fonts/heading-font.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'CSSDAHeading';
  src: url('./assets/fonts/heading-font-medium.woff2') format('woff2'),
       url('./assets/fonts/heading-font-medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'CSSDABody';
  src: url('./assets/fonts/body-font-regular.woff2') format('woff2'),
       url('./assets/fonts/body-font-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'CSSDABody';
  src: url('./assets/fonts/body-font-medium.woff2') format('woff2'),
       url('./assets/fonts/body-font-medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'CSSDABody';
  src: url('./assets/fonts/body-font-bold.woff2') format('woff2'),
       url('./assets/fonts/body-font-bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES — EDIT THESE TO CHANGE ENTIRE SITE
   ========================================================================== */

:root {
  /* ---- Colors ---- */
  --color-primary:        #1A3A5C;   /* Deep navy */
  --color-primary-light:  #2A5A8C;   /* Lighter navy */
  --color-primary-dark:   #0F2440;   /* Darker navy */
  --color-accent:         #C8362E;   /* China red accent */
  --color-accent-light:   #E04A42;
  --color-accent-dark:    #A02820;

  --color-white:          #FFFFFF;
  --color-off-white:      #F7F8FA;
  --color-light-grey:     #EEF0F4;
  --color-mid-grey:       #B0B8C4;
  --color-dark-grey:      #5A6472;
  --color-text:           #2C3340;
  --color-text-light:     #6B7580;
  --color-black:          #1A1D24;

  --color-success:        #2D8A56;
  --color-warning:        #D4930A;
  --color-error:          #C8362E;

  /* ---- Typography ---- */
  --font-heading:         'CSSDAHeading', Georgia, 'Times New Roman', serif;
  --font-body:            'CSSDABody', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* ---- Font Sizes (clamp for fluid) ---- */
  --fs-hero:              clamp(2.25rem, 4vw + 1rem, 3.75rem);
  --fs-h1:                clamp(2rem, 3vw + 0.5rem, 3rem);
  --fs-h2:                clamp(1.5rem, 2vw + 0.5rem, 2.25rem);
  --fs-h3:                clamp(1.25rem, 1.5vw + 0.25rem, 1.5rem);
  --fs-h4:                clamp(1.1rem, 1vw + 0.25rem, 1.25rem);
  --fs-body:              clamp(1rem, 0.5vw + 0.75rem, 1.125rem);
  --fs-body-sm:           clamp(0.875rem, 0.4vw + 0.65rem, 0.9375rem);
  --fs-caption:           clamp(0.75rem, 0.3vw + 0.55rem, 0.8125rem);
  --fs-button:            0.9375rem;

  /* ---- Line Heights ---- */
  --lh-heading:           1.2;
  --lh-body:              1.7;
  --lh-tight:             1.4;

  /* ---- Spacing ---- */
  --space-xs:             0.5rem;
  --space-sm:             1rem;
  --space-md:             1.5rem;
  --space-lg:             2.5rem;
  --space-xl:             4rem;
  --space-2xl:            6rem;
  --space-3xl:            8rem;

  /* ---- Layout ---- */
  --container-max:        1200px;
  --container-narrow:     800px;
  --container-wide:       1400px;
  --container-padding:    clamp(1.25rem, 4vw, 3rem);

  /* ---- Borders & Radius ---- */
  --radius-sm:            4px;
  --radius-md:            8px;
  --radius-lg:            12px;
  --radius-xl:            20px;
  --border-thin:          1px solid var(--color-light-grey);
  --border-accent:        3px solid var(--color-accent);

  /* ---- Shadows ---- */
  --shadow-sm:            0 1px 3px rgba(26,58,92,0.06);
  --shadow-md:            0 4px 12px rgba(26,58,92,0.08);
  --shadow-lg:            0 8px 30px rgba(26,58,92,0.12);
  --shadow-card:          0 2px 8px rgba(26,58,92,0.06);

  /* ---- Transitions ---- */
  --transition-fast:      150ms ease;
  --transition-base:      250ms ease;
  --transition-slow:      400ms ease;
}

/* ==========================================================================
   2. 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);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   3. TYPOGRAPHY UTILITY CLASSES
   ========================================================================== */

.t-hero       { font-family: var(--font-heading); font-size: var(--fs-hero); font-weight: 700; line-height: var(--lh-heading); }
.t-h1         { font-family: var(--font-heading); font-size: var(--fs-h1);   font-weight: 700; line-height: var(--lh-heading); }
.t-h2         { font-family: var(--font-heading); font-size: var(--fs-h2);   font-weight: 700; line-height: var(--lh-heading); }
.t-h3         { font-family: var(--font-heading); font-size: var(--fs-h3);   font-weight: 500; line-height: var(--lh-heading); }
.t-h4         { font-family: var(--font-heading); font-size: var(--fs-h4);   font-weight: 500; line-height: var(--lh-tight); }
.t-body       { font-size: var(--fs-body);    line-height: var(--lh-body); }
.t-body-sm    { font-size: var(--fs-body-sm); line-height: var(--lh-body); }
.t-caption    { font-size: var(--fs-caption); line-height: var(--lh-tight); color: var(--color-text-light); }
.t-uppercase  { text-transform: uppercase; letter-spacing: 0.08em; font-weight: 500; }
.t-center     { text-align: center; }
.t-primary    { color: var(--color-primary); }
.t-accent     { color: var(--color-accent); }
.t-light      { color: var(--color-text-light); }
.t-white      { color: var(--color-white); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: var(--lh-heading);
  color: var(--color-black);
}

h1 { font-size: var(--fs-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 500; }
h4 { font-size: var(--fs-h4); font-weight: 500; }

p + p { margin-top: var(--space-sm); }

/* ==========================================================================
   4. LAYOUT CLASSES
   ========================================================================== */

.l-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

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

.l-container--wide {
  max-width: var(--container-wide);
}

.l-section {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.l-section--sm {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.l-section--lg {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.l-grid {
  display: grid;
  gap: var(--space-lg);
}

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

.l-flex {
  display: flex;
  gap: var(--space-md);
}

.l-flex--center   { align-items: center; justify-content: center; }
.l-flex--between   { align-items: center; justify-content: space-between; }
.l-flex--col       { flex-direction: column; }
.l-flex--wrap      { flex-wrap: wrap; }

/* ==========================================================================
   5. COMPONENT CLASSES
   ========================================================================== */

/* --- Buttons --- */
.c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8125rem 1.75rem;
  font-family: var(--font-body);
  font-size: var(--fs-button);
  font-weight: 600;
  line-height: 1;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.c-btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.c-btn--primary:hover {
  background-color: var(--color-primary-light);
  border-color: var(--color-primary-light);
  color: var(--color-white);
}

.c-btn--accent {
  background-color: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

.c-btn--accent:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-white);
}

.c-btn--outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.c-btn--outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.c-btn--ghost {
  background-color: transparent;
  color: var(--color-primary);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}

.c-btn--ghost:hover {
  color: var(--color-accent);
}

.c-btn--sm {
  padding: 0.5rem 1.125rem;
  font-size: var(--fs-caption);
}

.c-btn--lg {
  padding: 1rem 2.25rem;
  font-size: var(--fs-body);
}

/* --- Cards --- */
.c-card {
  background: var(--color-white);
  border: var(--border-thin);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: box-shadow var(--transition-base);
}

.c-card:hover {
  box-shadow: var(--shadow-md);
}

.c-card--elevated {
  border: none;
  box-shadow: var(--shadow-card);
}

.c-card--elevated:hover {
  box-shadow: var(--shadow-lg);
}

.c-card--accent-top {
  border-top: var(--border-accent);
}

/* --- Badges / Tags --- */
.c-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  background: var(--color-light-grey);
  color: var(--color-dark-grey);
}

.c-tag--primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.c-tag--accent {
  background: var(--color-accent);
  color: var(--color-white);
}

/* --- Dividers --- */
.c-divider {
  border: none;
  height: 1px;
  background: var(--color-light-grey);
  margin: var(--space-lg) 0;
}

.c-divider--accent {
  height: 3px;
  background: var(--color-accent);
  width: 60px;
}

/* ==========================================================================
   6. HEADER / NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: var(--border-thin);
  transition: box-shadow var(--transition-base);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}

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

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

.site-logo__text {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

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

.site-nav__link {
  display: block;
  padding: 0.5rem 1rem;
  font-size: var(--fs-body-sm);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--color-primary);
  background: var(--color-off-white);
}

.site-nav__cta {
  margin-left: 0.75rem;
}

/* Mobile hamburger */
.site-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.site-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: all var(--transition-fast);
}

/* ==========================================================================
   7. HERO SECTION
   ========================================================================== */

.s-hero {
  position: relative;
  padding: var(--space-3xl) 0;
  background: var(--color-off-white);
  overflow: hidden;
}

.s-hero--dark {
  background: var(--color-primary);
  color: var(--color-white);
}

.s-hero--dark h1,
.s-hero--dark h2,
.s-hero--dark .t-hero {
  color: var(--color-white);
}

.s-hero--image {
  background-size: cover;
  background-position: center;
  color: var(--color-white);
}

.s-hero--image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,36,64,0.7), rgba(15,36,64,0.85));
}

.s-hero--image .l-container {
  position: relative;
  z-index: 1;
}

.s-hero__content {
  max-width: 720px;
}

.s-hero__tag {
  display: inline-block;
  margin-bottom: var(--space-md);
}

.s-hero__title {
  margin-bottom: var(--space-md);
}

.s-hero__subtitle {
  font-size: var(--fs-h4);
  font-weight: 400;
  line-height: var(--lh-body);
  opacity: 0.85;
  margin-bottom: var(--space-lg);
}

.s-hero__actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* ==========================================================================
   8. PAGE SECTIONS (reusable)
   ========================================================================== */

/* --- Text Block --- */
.s-text-block {
  padding: var(--space-2xl) 0;
}

.s-text-block__eyebrow {
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.s-text-block__title {
  margin-bottom: var(--space-md);
}

.s-text-block__body {
  max-width: var(--container-narrow);
}

.s-text-block__body p {
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

/* --- Feature Grid (what we do / core values) --- */
.s-features {
  padding: var(--space-2xl) 0;
  background: var(--color-off-white);
}

.s-features__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

.s-features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.s-feature-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border-top: var(--border-accent);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.s-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.s-feature-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-sm);
  color: var(--color-accent);
}

.s-feature-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.s-feature-card__text {
  font-size: var(--fs-body-sm);
  color: var(--color-text-light);
  line-height: var(--lh-body);
}

/* --- Timeline / Table --- */
.s-timeline {
  padding: var(--space-2xl) 0;
}

.s-timeline__table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-md);
}

.s-timeline__table th {
  text-align: left;
  font-family: var(--font-heading);
  font-size: var(--fs-body-sm);
  font-weight: 700;
  color: var(--color-primary);
  padding: 0.75rem 1rem;
  background: var(--color-off-white);
  border-bottom: 2px solid var(--color-primary);
}

.s-timeline__table td {
  padding: 0.875rem 1rem;
  font-size: var(--fs-body-sm);
  border-bottom: var(--border-thin);
  vertical-align: top;
}

.s-timeline__table td:first-child {
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
  width: 180px;
}

.s-timeline__table tr:last-child td {
  border-bottom: none;
}

/* --- Pull Quote --- */
.s-pullquote {
  padding: var(--space-xl) 0;
  background: var(--color-primary);
  color: var(--color-white);
}

.s-pullquote__text {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: var(--lh-heading);
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* --- CTA Banner --- */
.s-cta {
  padding: var(--space-xl) 0;
  background: var(--color-off-white);
  text-align: center;
}

.s-cta--dark {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

.s-cta--dark h2,
.s-cta--dark h3 {
  color: var(--color-white);
}

.s-cta__title {
  margin-bottom: var(--space-sm);
}

.s-cta__text {
  max-width: 600px;
  margin: 0 auto var(--space-md);
  color: var(--color-text-light);
}

.s-cta--dark .s-cta__text {
  color: rgba(255,255,255,0.75);
}

/* --- Gallery Grid --- */
.s-gallery {
  padding: var(--space-2xl) 0;
}

.s-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-sm);
}

.s-gallery__item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-light-grey);
}

.s-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.s-gallery__item:hover img {
  transform: scale(1.05);
}

.s-gallery__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-sm);
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: var(--color-white);
  font-size: var(--fs-caption);
}

/* --- Results Archive --- */
.s-results {
  padding: var(--space-2xl) 0;
  background: var(--color-off-white);
}

.s-results__item {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: var(--border-thin);
}

.s-results__year {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--color-primary);
  min-width: 80px;
}

.s-results__detail {
  font-size: var(--fs-body-sm);
  color: var(--color-text);
}

/* --- Team / Person Cards --- */
.s-team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-md);
}

.s-team-card {
  text-align: center;
  padding: var(--space-md);
}

.s-team-card__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-sm);
  background: var(--color-light-grey);
}

.s-team-card__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-body);
  color: var(--color-primary);
}

.s-team-card__role {
  font-size: var(--fs-caption);
  color: var(--color-text-light);
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */

.site-footer {
  background: var(--color-black);
  color: rgba(255,255,255,0.6);
  padding: var(--space-xl) 0 var(--space-lg);
}

.site-footer a {
  color: rgba(255,255,255,0.75);
}

.site-footer a:hover {
  color: var(--color-white);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.site-footer__brand {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.site-footer__desc {
  font-size: var(--fs-body-sm);
  max-width: 320px;
}

.site-footer__heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--fs-body-sm);
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-footer__links {
  list-style: none;
}

.site-footer__links li + li {
  margin-top: 0.5rem;
}

.site-footer__links a {
  font-size: var(--fs-body-sm);
}

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-caption);
}

/* ==========================================================================
   10. UTILITY / BACKGROUND CLASSES
   ========================================================================== */

.u-bg-white      { background-color: var(--color-white); }
.u-bg-off-white  { background-color: var(--color-off-white); }
.u-bg-light-grey { background-color: var(--color-light-grey); }
.u-bg-primary    { background-color: var(--color-primary); }
.u-bg-dark       { background-color: var(--color-black); }

.u-mt-xs  { margin-top: var(--space-xs); }
.u-mt-sm  { margin-top: var(--space-sm); }
.u-mt-md  { margin-top: var(--space-md); }
.u-mt-lg  { margin-top: var(--space-lg); }
.u-mt-xl  { margin-top: var(--space-xl); }
.u-mt-2xl { margin-top: var(--space-2xl); }

.u-mb-xs  { margin-bottom: var(--space-xs); }
.u-mb-sm  { margin-bottom: var(--space-sm); }
.u-mb-md  { margin-bottom: var(--space-md); }
.u-mb-lg  { margin-bottom: var(--space-lg); }
.u-mb-xl  { margin-bottom: var(--space-xl); }
.u-mb-2xl { margin-bottom: var(--space-2xl); }

.u-pt-0   { padding-top: 0; }
.u-pb-0   { padding-bottom: 0; }

.u-hidden { display: none !important; }
.u-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   11. RESPONSIVE
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .l-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile */
@media (max-width: 768px) {
  .l-grid--2,
  .l-grid--3,
  .l-grid--4 { grid-template-columns: 1fr; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: var(--space-sm) var(--container-padding);
    border-bottom: var(--border-thin);
    box-shadow: var(--shadow-md);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav__cta {
    margin-left: 0;
    margin-top: var(--space-xs);
  }

  .site-nav-toggle {
    display: block;
  }

  .s-hero {
    padding: var(--space-xl) 0;
  }

  .s-hero__actions {
    flex-direction: column;
  }

  .s-timeline__table td:first-child {
    white-space: normal;
    width: auto;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .site-footer__bottom {
    flex-direction: column;
    gap: var(--space-xs);
    text-align: center;
  }

  .s-gallery__grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .s-results__item {
    flex-direction: column;
    gap: var(--space-xs);
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .c-btn--lg {
    width: 100%;
    justify-content: center;
  }

  .s-pullquote__text {
    font-size: var(--fs-h3);
  }
}
