@import url('fonts.css');

/* ==========================================================================
   Chillee Limited — site styles
   Colours come from the logo: Chillee red on white, with charcoal and stone.
   ========================================================================== */

:root {
  --red: #c11015;
  --red-dark: #9a0c12;
  --red-bright: #e3262d;
  --red-tint: #fbeaea;
  --ink: #17181b;
  --ink-2: #222429;
  --ink-3: #2e3036;
  --stone: #f6f3ee;
  --stone-2: #ece6dd;
  --white: #ffffff;
  --text: #2a2c31;
  --muted: #62656d;
  --muted-light: rgba(255, 255, 255, 0.72);
  --line: rgba(23, 24, 27, 0.1);
  --line-light: rgba(255, 255, 255, 0.14);

  --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Montserrat', system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(23, 24, 27, 0.06);
  --shadow: 0 10px 30px rgba(23, 24, 27, 0.1);
  --shadow-lg: 0 24px 60px rgba(23, 24, 27, 0.18);
  --shadow-red: 0 10px 28px rgba(193, 16, 23, 0.35);

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7rem);
  --header-h: 84px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 0.2s;
  --slow: 0.6s;
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--stone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.25rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p {
  margin: 0 0 1.1em;
}

a {
  color: var(--red);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--fast) ease;
}

a:hover {
  color: var(--red-dark);
}

:focus-visible {
  outline: 3px solid var(--red-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--red);
  color: var(--white);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--red);
  color: var(--white);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top var(--fast) ease;
}

.skip-link:focus {
  top: 1rem;
  color: var(--white);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section);
}

.section--white { background: var(--white); }
.section--dark {
  background: var(--ink);
  color: var(--muted-light);
}
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.section--dark .eyebrow,
.page-hero .eyebrow,
.hero .eyebrow { color: #ff6b70; }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .eyebrow { justify-content: center; }

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  line-height: 1.7;
  color: var(--muted);
}

.section--dark .lead { color: var(--muted-light); }

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--red);
  --btn-fg: var(--white);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 2px solid var(--btn-bg);
  border-radius: var(--radius-pill);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform var(--fast) var(--ease),
    box-shadow var(--fast) ease,
    background-color var(--fast) ease,
    border-color var(--fast) ease,
    color var(--fast) ease;
}

/* Sheen that sweeps across on hover */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}

.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}

.btn:hover::after { transform: translateX(120%); }

.btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: none;
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  transition: transform var(--fast) var(--ease);
}

.btn:hover .icon-arrow { transform: translateX(4px); }

.btn--ghost {
  --btn-fg: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn--ghost:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.btn--outline {
  --btn-fg: var(--ink);
  background: transparent;
  border-color: var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn--white {
  --btn-bg: var(--white);
  --btn-fg: var(--red);
}

.btn--white:hover {
  color: var(--red-dark);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--red);
}

.text-link svg {
  width: 1em;
  height: 1em;
  transition: transform var(--fast) var(--ease);
}

.text-link:hover svg { transform: translateX(4px); }

/* ---------- Scroll progress bar ---------- */

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-bright));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: var(--white);
  transition:
    background-color 0.35s ease,
    box-shadow 0.35s ease,
    backdrop-filter 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(23, 24, 27, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
  transition: height 0.35s var(--ease);
}

.site-header.is-scrolled .header-inner { height: 70px; }

.brand {
  display: inline-flex;
  flex-shrink: 0;
  transition: transform var(--fast) var(--ease);
}

.brand img {
  width: 172px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  transition: width 0.35s var(--ease);
}

.site-header.is-scrolled .brand img { width: 148px; }

.brand:hover { transform: scale(1.04) rotate(-1.5deg); }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  position: relative;
  display: block;
  padding: 0.6rem 0.95rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--fast) ease, background-color var(--fast) ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0.95rem;
  right: 0.95rem;
  bottom: 0.3rem;
  height: 2px;
  background: var(--red-bright);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.main-nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.main-nav a:hover::after,
.main-nav a[aria-current='page']::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-phone {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-decoration: none;
  color: var(--white);
}

.header-phone small {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.header-phone strong {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.1rem;
  font-weight: 700;
  transition: color var(--fast) ease;
}

.header-phone svg {
  width: 1rem;
  height: 1rem;
  color: var(--red-bright);
}

.header-phone:hover { color: var(--white); }
.header-phone:hover strong { color: #ff8a8e; }
.header-phone:hover svg { animation: ring 0.6s ease; }

.header-cta .btn { padding: 0.75rem 1.3rem; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  cursor: pointer;
  transition: background-color var(--fast) ease, transform var(--fast) ease;
}

.nav-toggle:hover { background: var(--red); }
.nav-toggle:active { transform: scale(0.94); }

.nav-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s ease, top 0.3s var(--ease);
}

.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }

.nav-open .nav-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- Home hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(100vh, 920px);
  padding-block: calc(var(--header-h) + 3rem) 5rem;
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
  animation: hero-zoom 18s ease-out both;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(17, 18, 21, 0.92) 0%, rgba(17, 18, 21, 0.72) 45%, rgba(17, 18, 21, 0.35) 100%),
    linear-gradient(0deg, rgba(17, 18, 21, 0.7) 0%, transparent 40%);
}

.hero-content {
  max-width: 760px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: italic;
  color: #ff6b70;
}

.hero .lead {
  max-width: 620px;
  margin-bottom: 2.25rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero .btn-row { margin-bottom: 2.75rem; }

.tick-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tick-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.98rem;
}

.tick-list svg {
  width: 26px;
  height: 26px;
  padding: 5px;
  color: var(--white);
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: var(--white);
  transform: translateX(-50%);
  transition: background-color var(--fast) ease, border-color var(--fast) ease;
}

.hero-scroll:hover {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.hero-scroll svg {
  width: 18px;
  height: 18px;
  animation: nudge 2s ease-in-out infinite;
}

/* Hero entrance (pure CSS, so nothing waits on the script) */
.hero-content > * {
  animation: rise 0.9s var(--ease) both;
}

.hero-content > :nth-child(2) { animation-delay: 0.1s; }
.hero-content > :nth-child(3) { animation-delay: 0.2s; }
.hero-content > :nth-child(4) { animation-delay: 0.3s; }
.hero-content > :nth-child(5) { animation-delay: 0.4s; }

/* ---------- Inner page hero ---------- */

.page-hero {
  position: relative;
  padding-block: calc(var(--header-h) + clamp(3.5rem, 8vw, 6rem)) clamp(3.5rem, 7vw, 5.5rem);
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}

.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-zoom 18s ease-out both;
}

/* Shows more of the top of a banner photo (the bricklaying photo, so the bricklayer's head isn't cut off) */
.page-hero-media--top img {
  object-position: 50% 20%;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(17, 18, 21, 0.94) 0%, rgba(17, 18, 21, 0.78) 55%, rgba(17, 18, 21, 0.5) 100%);
}

.page-hero h1 {
  max-width: 820px;
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.page-hero .lead {
  max-width: 640px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
}

.page-hero .container > * {
  animation: rise 0.9s var(--ease) both;
}

.page-hero .container > :nth-child(2) { animation-delay: 0.1s; }
.page-hero .container > :nth-child(3) { animation-delay: 0.2s; }
.page-hero .container > :nth-child(4) { animation-delay: 0.3s; }

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted-light);
}

.breadcrumb li + li::before {
  content: '/';
  margin-right: 0.5rem;
  opacity: 0.5;
}

.breadcrumb a {
  color: var(--white);
  text-decoration: none;
}

.breadcrumb a:hover { color: #ff8a8e; }

/* ---------- Cards with a mouse-follow glow ---------- */

.glow {
  --mx: 50%;
  --my: 50%;
  position: relative;
  isolation: isolate;
}

.glow::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(193, 16, 23, 0.1), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.glow:hover::before { opacity: 1; }

/* ---------- Service lists (home) ---------- */

.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: stretch;
}

.intro-grid .section-head { margin-bottom: 0; }

.list-card {
  padding: clamp(1.75rem, 3vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.35s ease;
}

.list-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(193, 16, 23, 0.25);
}

.list-card-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
  color: var(--red);
  background: var(--red-tint);
  border-radius: 16px;
  transition: transform 0.4s var(--ease), background-color 0.3s ease, color 0.3s ease;
}

.list-card-icon svg { width: 28px; height: 28px; }

.list-card:hover .list-card-icon {
  transform: rotate(-8deg) scale(1.06);
  background: var(--red);
  color: var(--white);
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.9rem;
  border-bottom: 1px dashed var(--line);
  font-weight: 500;
}

.check-list li:last-child { border-bottom: 0; }

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* ---------- Service cards (home) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s var(--ease), box-shadow 0.4s ease;
}

.service-card:hover {
  color: inherit;
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--stone-2);
}

.service-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.service-card:hover .service-card-media img { transform: scale(1.08); }

.service-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(23, 24, 27, 0.45), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover .service-card-media::after { opacity: 1; }

.service-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.6rem 1.6rem 1.75rem;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  transition: color var(--fast) ease;
}

.service-card:hover h3 { color: var(--red); }

.service-card p {
  color: var(--muted);
  font-size: 0.98rem;
}

.service-card .text-link { margin-top: auto; }
.service-card:hover .text-link svg { transform: translateX(4px); }

/* ---------- Areas ---------- */

.areas {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

/* The mascot picture is a red circle on a white square; rounding it hides the white corners */
.areas-mascot {
  width: clamp(140px, 18vw, 220px);
  border-radius: 50%;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
  animation: bob 5s ease-in-out infinite;
}

.areas h2 { margin-bottom: 1.5rem; }

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  background: var(--ink-3);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-pill);
  transition: background-color var(--fast) ease, border-color var(--fast) ease, transform var(--fast) var(--ease);
}

.chip-list li svg {
  width: 15px;
  height: 15px;
  color: var(--red-bright);
  transition: color var(--fast) ease;
}

.chip-list li:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-2px);
}

.chip-list li:hover svg { color: var(--white); }

.chip-list li.chip--all {
  background: var(--red);
  border-color: var(--red);
}

.chip-list li.chip--all svg { color: var(--white); }

/* ---------- Split layout (why choose us) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.split + .split { margin-top: var(--section); }

.split--reverse .split-media { order: 2; }

.split-media {
  position: relative;
}

.split-media > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.split-media::before {
  content: '';
  position: absolute;
  inset: auto -18px -18px auto;
  width: 55%;
  height: 55%;
  z-index: -1;
  border-radius: var(--radius);
  background: repeating-linear-gradient(-45deg, var(--red) 0 2px, transparent 2px 12px);
  opacity: 0.35;
}

.split-badge {
  position: absolute;
  left: -1.25rem;
  bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.3rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: bob 6s ease-in-out infinite;
}

.split-badge strong {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--red);
}

.split-badge span {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.mosaic img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease), box-shadow 0.5s ease;
}

.mosaic img:nth-child(2) { transform: translateY(2rem); }
.mosaic img:nth-child(4) { transform: translateY(2rem); }

.mosaic img:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.mosaic img:nth-child(2):hover,
.mosaic img:nth-child(4):hover { transform: translateY(calc(2rem - 4px)) scale(1.02); }

/* ---------- Testimonials ---------- */

.quote-grid {
  columns: 3 320px;
  column-gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.quote-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 clamp(1.25rem, 2.5vw, 1.75rem);
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  break-inside: avoid;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.35s ease;
}

.quote-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(193, 16, 23, 0.25);
}

.quote-card blockquote {
  margin: 0 0 1.5rem;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ink);
}

.quote-card blockquote p:last-child { margin-bottom: 0; }

.quote-card figcaption {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 0.85rem;
  row-gap: 0.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  line-height: 1.3;
}

.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  background: var(--red);
  border-radius: 50%;
}

.quote-card cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  color: var(--ink);
}

.quote-card small {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Sits on its own line, under the name and place */
.quote-card .text-link {
  grid-column: 2;
  font-size: 0.8rem;
}

.quote-feature {
  position: relative;
  padding: clamp(2rem, 4vw, 2.75rem);
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.quote-feature::before {
  content: '\201C';
  position: absolute;
  top: -0.35em;
  left: 1.5rem;
  font-family: var(--font-heading);
  font-size: 7rem;
  line-height: 1;
  color: var(--red);
}

.quote-feature blockquote {
  margin: 0 0 1.25rem;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  line-height: 1.6;
}

.quote-feature cite {
  font-style: normal;
  font-weight: 700;
}

.quote-feature small { color: var(--muted-light); }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 5rem);
  color: var(--white);
  background: var(--red);
  overflow: hidden;
  isolation: isolate;
}

.cta-band::before,
.cta-band::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.cta-band::before {
  width: 520px;
  height: 520px;
  right: -140px;
  top: -260px;
}

.cta-band::after {
  width: 320px;
  height: 320px;
  left: -120px;
  bottom: -200px;
}

.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-band h2 {
  max-width: 640px;
  margin: 0 0 0.5rem;
  color: var(--white);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.cta-band .eyebrow { color: rgba(255, 255, 255, 0.85); }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

/* Icon on the left, label / detail / note stacked on the right */
.contact-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  column-gap: 1.5rem;
  row-gap: 0.3rem;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.35s ease;
}

a.contact-card:hover {
  color: var(--text);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(193, 16, 23, 0.3);
}

.contact-card .list-card-icon {
  grid-row: 1 / span 3;
  margin-bottom: 0;
}
a.contact-card:hover .list-card-icon {
  transform: rotate(-8deg) scale(1.06);
  background: var(--red);
  color: var(--white);
}

.contact-card small {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-card strong {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  line-height: 1.3;
  color: var(--ink);
  transition: color var(--fast) ease;
}

/* The email address is long, so its size follows the card's width (minus the
   icon column) and it always fits on one line. Never larger than the phone numbers. */
.contact-card--email { container-type: inline-size; }

.contact-card--email strong {
  font-size: min(1.45rem, calc((100cqi - 5rem) / 12.5));
  white-space: nowrap;
}

a.contact-card:hover strong { color: var(--red); }

.contact-card span { color: var(--muted); font-size: 0.95rem; }

.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.hours th,
.hours td {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.hours th { font-weight: 600; color: var(--ink); }
.hours td { text-align: right; color: var(--muted); }
.hours tr:last-child th,
.hours tr:last-child td { border-bottom: 0; }

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  border-top: 3px solid var(--red);
  background: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-sm);
}

.steps li::before {
  content: '0' counter(step);
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--red);
}

.steps h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ---------- Gallery ---------- */

.gallery-nav {
  position: sticky;
  top: 70px;
  z-index: 50;
  background: rgba(246, 243, 238, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.gallery-nav ul {
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0.9rem 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.gallery-nav ul::-webkit-scrollbar { display: none; }

.gallery-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  transition: background-color var(--fast) ease, color var(--fast) ease, border-color var(--fast) ease, transform var(--fast) var(--ease);
}

.gallery-nav a span {
  font-size: 0.75rem;
  padding: 0.05rem 0.45rem;
  border-radius: var(--radius-pill);
  background: var(--stone-2);
  color: var(--muted);
  transition: inherit;
}

.gallery-nav a:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-1px);
}

.gallery-nav a.is-active {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.gallery-nav a.is-active span {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.gallery-section + .gallery-section {
  border-top: 1px solid var(--line);
}

.gallery-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}

.gallery-head > div { max-width: 680px; }
.gallery-head h2 { margin-bottom: 0.4rem; }
.gallery-head .tagline {
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--red);
}
.gallery-head p:last-child { margin-bottom: 0; color: var(--muted); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  grid-auto-flow: dense;
  gap: 0.9rem;
}

.gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--stone-2);
  cursor: zoom-in;
}

.gallery-item.is-tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.4s ease;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 36px no-repeat,
    rgba(193, 16, 23, 0.45);
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 0.35s ease, transform 0.35s var(--ease);
}

.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.07); }

.gallery-item:hover::after,
.gallery-item:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

/* Lightbox */

.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--white);
  background: rgba(12, 12, 14, 0.94);
}

.lightbox::backdrop { background: transparent; }

.lightbox[open] { animation: fade-in 0.3s ease both; }

.lightbox-figure {
  display: grid;
  place-items: center;
  gap: 1rem;
  height: 100%;
  margin: 0;
  padding: 4.5rem 5rem 2rem;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: calc(100vh - 9rem);
  width: auto;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.lightbox-figure img.is-changing { animation: zoom-in 0.35s var(--ease) both; }

.lightbox-figure figcaption {
  max-width: 720px;
  text-align: center;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.lightbox-count {
  position: absolute;
  top: 1.4rem;
  left: 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
}

.lightbox-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background-color var(--fast) ease, border-color var(--fast) ease, transform var(--fast) var(--ease);
}

.lightbox-btn svg { width: 22px; height: 22px; }

.lightbox-btn:hover {
  background: var(--red);
  border-color: var(--red);
}

.lightbox-btn:active { transform: scale(0.92); }

.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lightbox-next { right: 1rem; top: 50%; translate: 0 -50%; }

/* ---------- News ---------- */

.news-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 2.25rem;
  list-style: none;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(var(--red), rgba(193, 16, 23, 0.1));
  border-radius: 2px;
}

.timeline > li {
  position: relative;
  margin-bottom: 1.5rem;
}

.timeline > li::before {
  content: '';
  position: absolute;
  left: calc(-2.25rem + 3px);
  top: 2.1rem;
  width: 14px;
  height: 14px;
  background: var(--white);
  border: 3px solid var(--red);
  border-radius: 50%;
  transition: background-color var(--fast) ease, transform var(--fast) var(--ease);
}

.timeline > li:hover::before {
  background: var(--red);
  transform: scale(1.25);
}

.news-card {
  padding: 1.75rem 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.35s ease;
}

.news-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow);
  border-color: rgba(193, 16, 23, 0.25);
}

.news-card h2 {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

.news-card p { color: var(--muted); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.9rem;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 0.2rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--red);
  background: var(--red-tint);
  border-radius: var(--radius-pill);
}

.tags li.tag--place {
  color: var(--ink);
  background: var(--stone-2);
}

.sidebar-card {
  position: sticky;
  top: calc(70px + 1.5rem);
  padding: 2rem;
  color: var(--muted-light);
  background: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.sidebar-card h2 {
  font-size: 1.5rem;
  color: var(--white);
}

.sidebar-card img {
  width: 96px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.sidebar-card .btn { width: 100%; margin-top: 0.5rem; }

/* ---------- Footer ---------- */

.site-footer {
  color: var(--muted-light);
  background: #111215;
  font-size: 0.95rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3.5rem, 7vw, 5rem);
}

.footer-brand img {
  width: 170px;
  margin-bottom: 1.5rem;
}

.footer-brand p { max-width: 440px; }

.site-footer h2 {
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
}

.footer-list {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.footer-list li { margin-bottom: 0.7rem; }

.footer-list small {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
  background-image: linear-gradient(var(--red-bright), var(--red-bright));
  background-size: 0 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.35s var(--ease), color var(--fast) ease;
}

.site-footer a:hover {
  color: var(--white);
  background-size: 100% 2px;
}

.site-footer .hours th,
.site-footer .hours td {
  padding: 0.45rem 0;
  border-color: var(--line-light);
  color: var(--muted-light);
  font-weight: 500;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line-light);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom p { margin: 0; }

/* ---------- Back to top ---------- */

.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--red);
  box-shadow: var(--shadow-red);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease), visibility 0.3s, background-color var(--fast) ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover { background: var(--red-dark); transform: translateY(-3px); }
.to-top:active { transform: scale(0.92); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Contact form (sends to the Fellowship Studios form service, see contact-form.js) ---------- */

.contact-form {
  max-width: 50rem;
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form h2 {
  margin-bottom: 0.3em;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.contact-form__intro {
  color: var(--muted);
}

.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 1.75rem 0 1.25rem;
}

@media (max-width: 700px) {
  .contact-form__grid {
    grid-template-columns: 1fr;
  }
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
  color: var(--ink);
}

.field__optional {
  font-weight: 500;
  color: var(--muted);
}

.field__hint {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font: inherit;
  color: var(--ink);
  background: var(--stone);
  border: 1px solid var(--stone-2);
  border-radius: var(--radius-sm);
  transition: border-color var(--fast) ease, background-color var(--fast) ease;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--red);
  background: var(--white);
}

/* Honeypot field: off-screen so people never see it (not display: none, which some robots skip) */
.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* The ALTCHA spam check, in the fields' own shape and colours */
altcha-widget {
  display: block;
  margin-bottom: 1.25rem;
  --altcha-max-width: 100%;
  --altcha-padding: 0.8rem 1rem;
  --altcha-border-radius: var(--radius-sm);
  --altcha-border-width: 1px;
  --altcha-border-color: var(--stone-2);
  --altcha-color-base: var(--stone);
  --altcha-color-base-content: var(--ink);
  --altcha-color-primary: var(--red);
  --altcha-checkbox-border-radius: 6px;
}

/* Shown if the form can't be sent (hidden while empty) */
.contact-form__status {
  margin: 0 0 1.25rem;
  padding: 1rem 1.25rem;
  color: var(--ink);
  background: var(--red-tint);
  border: 1.5px solid var(--red);
  border-radius: var(--radius-sm);
}

.contact-form__status:empty {
  display: none;
}

.contact-form__status a {
  font-weight: 700;
}

.contact-form__status:focus {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.contact-form .btn:disabled {
  cursor: progress;
  opacity: 0.75;
  transform: none;
  box-shadow: none;
}

.contact-form__note {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Privacy policy ---------- */

.prose {
  max-width: 48rem;
}

.prose h2 {
  margin-top: 2em;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
}

.prose h2:first-of-type {
  margin-top: 0;
}

.prose ul {
  margin: 0 0 1.1em;
  padding-left: 1.3rem;
}

.prose li {
  margin-bottom: 0.5em;
}

.prose li::marker {
  color: var(--red);
}

.prose .updated {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Scroll reveal ---------- */
/* Only hidden once script.js has added .js to <html>, so content is never lost if the script fails. */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Keyframes ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

@keyframes hero-zoom {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoom-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: none; }
}

@keyframes nudge {
  0%, 100% { transform: translateY(-3px); }
  50% { transform: translateY(3px); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes ring {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-15deg); }
  40% { transform: rotate(12deg); }
  60% { transform: rotate(-8deg); }
  80% { transform: rotate(5deg); }
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .header-phone { display: none; }
  .intro-grid { grid-template-columns: 1fr 1fr; }
  .intro-grid .section-head { grid-column: 1 / -1; margin-bottom: 0.5rem; }
}

@media (max-width: 960px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .split-badge { left: 1rem; }
  .news-layout { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; }

  .contact-grid { grid-template-columns: 1fr; }

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

  .header-cta .btn { display: none; }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 1rem var(--gutter) 1.5rem;
    background: rgba(23, 24, 27, 0.98);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, transform 0.3s var(--ease), visibility 0.3s;
  }

  .site-header.is-scrolled .main-nav { top: 70px; }

  .nav-open .main-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav a {
    padding: 0.95rem 0.5rem;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--line-light);
    border-radius: 0;
  }

  .main-nav a::after { left: 0.5rem; right: auto; width: 32px; bottom: 0.5rem; }

  .main-nav .nav-call { display: block; }

  .nav-open .site-header { background: rgba(23, 24, 27, 0.98); }

  .areas { grid-template-columns: 1fr; text-align: center; }
  .areas-mascot { margin-inline: auto; }
  .areas .eyebrow { justify-content: center; }
  .chip-list { justify-content: center; }

  .lightbox-figure { padding: 4.5rem 1rem 6rem; }
  .lightbox-prev,
  .lightbox-next { top: auto; bottom: 1.25rem; translate: none; }
  .lightbox-prev { left: calc(50% - 64px); }
  .lightbox-next { right: calc(50% - 64px); }
}

@media (min-width: 861px) {
  .main-nav .nav-call { display: none; }
}

@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
  .intro-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 1.5rem; column-gap: 1.1rem; }
  .footer-main { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-bottom: 6rem; }
  .hero-scroll { display: none; }
  .btn-row .btn { flex: 1 1 100%; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .mosaic img:nth-child(2),
  .mosaic img:nth-child(4) { transform: none; }
  .cta-inner .btn-row { width: 100%; }
}

/* Small phones: contact icons sit above the text so the text gets the full width */
@media (max-width: 480px) {
  .contact-card { grid-template-columns: 1fr; }
  .contact-card .list-card-icon { grid-row: auto; margin-bottom: 0.6rem; }
  .contact-card--email strong { font-size: min(1.45rem, calc(100cqi / 12.5)); }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
