/* ============================================================
   Sunbury College — main stylesheet
   Modern, clean, photography-led. Maroon primary.
   ============================================================ */

:root {
  /* Brand */
  --maroon: #7a1d48;
  --maroon-deep: #5a1336;
  --maroon-bright: #9a2a5e;
  --maroon-tint: #f5e8ee;
  --gold: #c89b3c;
  --gold-soft: #e6c97a;

  /* Neutrals */
  --ink: #1a1a1f;
  --ink-soft: #3d3d44;
  --ink-muted: #6b6b73;
  --line: #e6e3de;
  --line-soft: #f0ede8;
  --cream: #faf7f2;
  --cream-deep: #f3efe7;
  --white: #ffffff;

  /* Surfaces */
  --bg: var(--white);
  --bg-cream: var(--cream);
  --bg-dark: var(--ink);

  /* Type */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-display: 'Fraunces', 'Times New Roman', Georgia, serif;

  /* Layout */
  --container: 1240px;
  --container-narrow: 960px;
  --gutter: clamp(1rem, 3vw, 2rem);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 180ms var(--ease);
  --t: 280ms var(--ease);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(20, 20, 24, 0.05), 0 2px 8px rgba(20, 20, 24, 0.04);
  --shadow: 0 4px 14px rgba(20, 20, 24, 0.06), 0 10px 30px rgba(20, 20, 24, 0.05);
  --shadow-lg: 0 12px 40px rgba(20, 20, 24, 0.12);
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, picture, video, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
a { color: var(--maroon); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--maroon-bright); }
ul, ol { list-style: none; }

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 400; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 400; letter-spacing: -0.015em; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); font-weight: 500; }
h4 { font-size: 1.15rem; font-weight: 600; font-family: var(--font-sans); letter-spacing: -0.005em; }
h5 { font-size: 0.95rem; font-weight: 600; font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 600; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--maroon);
  margin-bottom: 1rem;
}
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink); }
.muted { color: var(--ink-muted); }

/* ===== Layout primitives ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.bg-cream { background: var(--cream); }
.bg-cream-deep { background: var(--cream-deep); }
.bg-maroon { background: var(--maroon); color: var(--cream); }
.bg-maroon h1, .bg-maroon h2, .bg-maroon h3, .bg-maroon h4 { color: var(--white); }
.bg-ink { background: var(--ink); color: rgba(255,255,255,0.85); }
.bg-ink h1, .bg-ink h2, .bg-ink h3 { color: var(--white); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem; font-weight: 600;
  border-radius: 999px;
  transition: all var(--t-fast);
  white-space: nowrap;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--maroon); color: var(--white); }
.btn-primary:hover { background: var(--maroon-deep); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--maroon); color: var(--maroon); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--white); color: var(--white); }
.btn-link { padding: 0; background: none; color: var(--maroon); font-weight: 600; }
.btn-link::after { content: ' \2192'; transition: transform var(--t-fast); display: inline-block; margin-left: 4px; }
.btn-link:hover::after { transform: translateX(4px); }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.utility-bar { background: var(--ink); color: rgba(255,255,255,0.8); font-size: 0.82rem; padding: 0.45rem 0; }
.utility-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.utility-bar a { color: rgba(255,255,255,0.8); }
.utility-bar a:hover { color: var(--white); }
.utility-bar .quick-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.utility-bar .phone { font-weight: 600; color: var(--white); }

.header-main { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 0; gap: 2rem; }
.brand { display: flex; align-items: center; gap: 0.85rem; flex-shrink: 0; }
.brand img { height: 48px; width: auto; }
.brand-text { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; color: var(--ink); line-height: 1.15; }
.brand-text small { display: block; font-size: 0.7rem; font-family: var(--font-sans); color: var(--ink-muted); letter-spacing: 0.05em; text-transform: uppercase; }

.primary-nav { display: flex; align-items: center; gap: 0.25rem; }
.primary-nav > li { position: relative; }
.primary-nav > li > a {
  display: block; padding: 0.7rem 1rem;
  color: var(--ink); font-weight: 500; font-size: 0.95rem;
  border-radius: var(--radius-sm); transition: all var(--t-fast);
}
.primary-nav > li > a:hover, .primary-nav > li.active > a { color: var(--maroon); background: var(--maroon-tint); }
.has-dropdown > a::after {
  content: ''; display: inline-block; margin-left: 0.4rem;
  width: 0.45em; height: 0.45em;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.dropdown {
  position: absolute; top: 100%; left: 0;
  min-width: 240px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
  z-index: 10;
}
.has-dropdown:hover > .dropdown, .has-dropdown:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: 0.6rem 0.85rem;
  color: var(--ink); font-size: 0.92rem;
  border-radius: var(--radius-sm); font-weight: 500;
}
.dropdown a:hover { background: var(--cream); color: var(--maroon); }
.dropdown-wide { min-width: 540px; padding: 1.25rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.25rem 1.5rem; left: 50%; transform: translateX(-50%) translateY(8px); }
.has-dropdown:hover > .dropdown-wide, .has-dropdown:focus-within > .dropdown-wide { transform: translateX(-50%) translateY(0); }

.header-cta { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all var(--t); }

@media (max-width: 1100px) {
  .primary-nav, .header-cta .btn-secondary { display: none; }
  .nav-toggle { display: flex; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  .primary-nav {
    position: fixed; top: 0; right: 0;
    height: 100vh; width: min(420px, 90%);
    background: var(--white);
    flex-direction: column; align-items: stretch;
    padding: 6rem 1.5rem 2rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--t);
    box-shadow: var(--shadow-lg);
    gap: 0;
  }
  body.nav-open .primary-nav { display: flex; transform: translateX(0); }
  .primary-nav > li { border-bottom: 1px solid var(--line-soft); }
  .primary-nav > li > a { padding: 1rem 0.5rem; font-size: 1.05rem; }
  .has-dropdown > a::after { float: right; transition: transform var(--t-fast); }
  .has-dropdown.open > a::after { transform: translateY(-2px) rotate(225deg); }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; background: var(--cream);
    border-radius: var(--radius-sm); margin: 0 0 0.5rem;
    padding: 0.5rem; display: none;
  }
  .has-dropdown.open > .dropdown { display: block; }
  .dropdown-wide { grid-template-columns: 1fr; min-width: 0; }
}

/* ===== Hero ===== */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; overflow: hidden; color: var(--white); }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(125deg, rgba(122, 29, 72, 0.85) 0%, rgba(26, 26, 31, 0.55) 60%, rgba(26, 26, 31, 0.35) 100%); }
.hero-content { position: relative; z-index: 1; width: 100%; padding: clamp(4rem, 8vw, 6rem) 0; }
.hero h1 { color: var(--white); max-width: 18ch; }
.hero .eyebrow { color: var(--gold-soft); }
.hero p { color: rgba(255,255,255,0.92); font-size: 1.2rem; max-width: 48ch; margin: 1.25rem 0 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Page hero */
.page-hero { position: relative; padding: clamp(5rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem); background: var(--maroon); color: var(--white); overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%), radial-gradient(circle at 20% 80%, rgba(0,0,0,0.2) 0%, transparent 50%); }
.page-hero .container { position: relative; }
.page-hero .eyebrow { color: var(--gold-soft); }
.page-hero h1 { color: var(--white); max-width: 20ch; }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 56ch; font-size: 1.15rem; margin-top: 1rem; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-bottom: 1.5rem; }
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span::before { content: '/'; margin-right: 0.4rem; opacity: 0.5; }

.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head.left { text-align: left; margin-left: 0; }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform var(--t), box-shadow var(--t), border-color var(--t); display: flex; flex-direction: column; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--maroon-tint); }
.card-image { aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream); }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.card:hover .card-image img { transform: scale(1.04); }
.card-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; gap: 0.75rem; }
.card-body h3 { font-size: 1.3rem; }
.card-body p { color: var(--ink-muted); font-size: 0.95rem; flex: 1; }
.card-body .btn-link { margin-top: 0.5rem; align-self: flex-start; }

.feature { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 4rem); }
.feature.reverse { grid-template-columns: 1fr 1.1fr; }
.feature.reverse .feature-text { order: 2; }
.feature-image { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; }
.feature-image img { width: 100%; height: 100%; object-fit: cover; }
.feature-text h2 { margin-bottom: 1.25rem; }
.feature-text .btn { margin-top: 1.5rem; }
@media (max-width: 800px) {
  .feature, .feature.reverse { grid-template-columns: 1fr; }
  .feature.reverse .feature-text { order: 0; }
}

.value-tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center; transition: all var(--t); }
.value-tile:hover { border-color: var(--maroon); transform: translateY(-3px); box-shadow: var(--shadow); }
.value-tile .value-icon { width: 56px; height: 56px; margin: 0 auto 1.25rem; border-radius: 50%; background: var(--maroon-tint); display: flex; align-items: center; justify-content: center; color: var(--maroon); }
.value-tile h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--maroon); }
.value-tile p { font-size: 0.95rem; color: var(--ink-muted); }

.stat-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 2rem; padding: 2.5rem 0; }
.stat-item .stat-num { font-family: var(--font-display); font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 400; color: var(--maroon); line-height: 1; display: block; }
.bg-maroon .stat-item .stat-num, .bg-ink .stat-item .stat-num { color: var(--gold-soft); }
.stat-item .stat-label { display: block; margin-top: 0.5rem; font-size: 0.92rem; font-weight: 500; color: var(--ink-muted); }
.bg-maroon .stat-item .stat-label, .bg-ink .stat-item .stat-label { color: rgba(255,255,255,0.8); }

.cta-strip { background: var(--maroon); color: var(--white); border-radius: var(--radius-lg); padding: clamp(2rem, 4vw, 3.5rem); text-align: center; position: relative; overflow: hidden; }
.cta-strip::before { content: ''; position: absolute; top: -50%; right: -10%; width: 60%; aspect-ratio: 1; background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 70%); }
.cta-strip * { position: relative; }
.cta-strip h2 { color: var(--white); margin-bottom: 1rem; }
.cta-strip p { color: rgba(255,255,255,0.9); margin: 0 auto 1.75rem; max-width: 52ch; }
.cta-strip .btn { margin: 0 0.4rem; }

.bullet-list { list-style: none; padding: 0; }
.bullet-list li { position: relative; padding-left: 1.75rem; margin-bottom: 0.7rem; line-height: 1.55; }
.bullet-list li::before { content: ''; position: absolute; left: 0; top: 0.55rem; width: 16px; height: 16px; border-radius: 50%; background: var(--maroon-tint); }
.bullet-list li::after { content: ''; position: absolute; left: 5px; top: 0.85rem; width: 6px; height: 6px; border-radius: 50%; background: var(--maroon); }

.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: 0.85rem; line-height: 1.55; }
.check-list li::before { content: ''; position: absolute; left: 0; top: 0.4rem; width: 18px; height: 18px; background: var(--maroon); border-radius: 50%; }
.check-list li::after { content: ''; position: absolute; left: 5px; top: 0.7rem; width: 8px; height: 4px; border-left: 2px solid var(--white); border-bottom: 2px solid var(--white); transform: rotate(-45deg); }

.data-row { display: grid; grid-template-columns: 200px 1fr; gap: 1rem 2rem; padding: 1rem 0; border-bottom: 1px solid var(--line-soft); }
.data-row:last-child { border-bottom: none; }
.data-row dt { font-weight: 600; color: var(--ink); }
@media (max-width: 600px) { .data-row { grid-template-columns: 1fr; gap: 0.25rem; } }

.bell-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.bell-table th { background: var(--maroon); color: var(--white); padding: 1rem 1.25rem; text-align: left; font-weight: 600; font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; }
.bell-table td { padding: 0.85rem 1.25rem; border-top: 1px solid var(--line-soft); }
.bell-table tr:hover td { background: var(--cream); }

.term-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.term-card { background: var(--white); border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--line); border-left: 4px solid var(--maroon); }
.term-card .term-label { font-size: 0.82rem; font-weight: 600; color: var(--maroon); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.4rem; }
.term-card .term-dates { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); }

.doc-list { display: grid; gap: 0.5rem; }
.doc-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: all var(--t-fast); }
.doc-item:hover { border-color: var(--maroon); background: var(--cream); transform: translateX(2px); }
.doc-icon { flex-shrink: 0; width: 40px; height: 40px; background: var(--maroon-tint); color: var(--maroon); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.78rem; }
.doc-info { flex: 1; min-width: 0; }
.doc-title { color: var(--ink); font-weight: 500; font-size: 0.96rem; }
.doc-meta { color: var(--ink-muted); font-size: 0.82rem; margin-top: 2px; }
.doc-arrow { color: var(--ink-muted); flex-shrink: 0; }
.doc-category-head { margin: 2rem 0 1rem; font-family: var(--font-sans); font-size: 0.85rem; font-weight: 700; color: var(--maroon); text-transform: uppercase; letter-spacing: 0.1em; }
.doc-category-head:first-child { margin-top: 0; }

.form-grid { display: grid; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 0.5rem; }
.form-field label .req { color: var(--maroon); }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 0.8rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--white); font-size: 0.95rem; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--maroon); box-shadow: 0 0 0 3px var(--maroon-tint); }
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field-radio { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.form-field-radio label { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; cursor: pointer; }

.content-layout { display: grid; grid-template-columns: 1fr 280px; gap: 3rem; }
.content-layout aside { font-size: 0.95rem; }
.sidebar-card { background: var(--cream); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; border-left: 4px solid var(--maroon); }
.sidebar-card h4 { margin-bottom: 0.75rem; color: var(--ink); }
.sidebar-card ul { padding: 0; }
.sidebar-card ul li { margin-bottom: 0.5rem; }
.sidebar-card ul li a { color: var(--ink-soft); display: block; padding: 0.25rem 0; border-bottom: 1px solid var(--line); }
.sidebar-card ul li a:hover { color: var(--maroon); }
@media (max-width: 900px) { .content-layout { grid-template-columns: 1fr; } }

.prose { max-width: 70ch; }
.prose h2 { margin: 2.5rem 0 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 2rem 0 0.75rem; }
.prose p { margin-bottom: 1.1em; line-height: 1.7; }
.prose ul { padding-left: 1.25rem; margin-bottom: 1.25rem; }
.prose ul li { list-style: disc; margin-bottom: 0.5rem; line-height: 1.6; }
.prose strong { color: var(--ink); }
.prose a { font-weight: 500; border-bottom: 1.5px solid var(--maroon-tint); }
.prose a:hover { border-bottom-color: var(--maroon); }
.prose blockquote { border-left: 4px solid var(--maroon); padding: 0.5rem 0 0.5rem 1.5rem; margin: 1.5rem 0; font-family: var(--font-display); font-size: 1.25rem; line-height: 1.4; color: var(--ink); font-style: italic; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.news-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.news-card-image { aspect-ratio: 16 / 10; overflow: hidden; }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.news-card-date { font-size: 0.82rem; font-weight: 600; color: var(--maroon); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; }
.news-card-title { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--ink); }

.site-footer { background: var(--ink); color: rgba(255,255,255,0.75); padding: 4rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand-text { color: var(--white); }
.footer-brand .brand-text small { color: rgba(255,255,255,0.6); }
.footer-tagline { margin: 1rem 0 1.5rem; color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.footer-contact-list { font-size: 0.92rem; }
.footer-contact-list li { margin-bottom: 0.5rem; color: rgba(255,255,255,0.75); }
.footer-contact-list a { color: rgba(255,255,255,0.85); }
.footer-contact-list a:hover { color: var(--gold-soft); }
.site-footer h5 { color: var(--white); margin-bottom: 1.25rem; font-size: 0.78rem; letter-spacing: 0.12em; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.footer-links a:hover { color: var(--gold-soft); }

.footer-bottom { padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.85rem; color: rgba(255,255,255,0.55); }
.footer-bottom a { color: rgba(255,255,255,0.7); }
.footer-bottom a:hover { color: var(--white); }
.footer-socials { display: flex; gap: 0.5rem; }
.footer-socials a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%; transition: all var(--t-fast); }
.footer-socials a:hover { background: var(--maroon); border-color: var(--maroon); color: var(--white); }

.tour-card { background: var(--white); border-radius: var(--radius); padding: 2rem; border: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; }
.tour-card-icon { width: 64px; height: 64px; background: var(--maroon-tint); color: var(--maroon); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; }
.tour-card h3 { margin-bottom: 0.4rem; }
@media (max-width: 500px) { .tour-card { grid-template-columns: 1fr; } }

.tabs { display: flex; gap: 0.5rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; overflow-x: auto; }
.tabs button { padding: 0.85rem 1.25rem; font-weight: 500; color: var(--ink-muted); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.active { color: var(--maroon); border-color: var(--maroon); }
.tabs button:hover { color: var(--maroon); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.75rem; }
.gallery-item { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--cream); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }

.link-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.link-tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 2rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); overflow: hidden; transition: all var(--t); min-height: 220px; }
.link-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--maroon-tint); }
.link-tile h3 { color: var(--ink); font-size: 1.3rem; margin-bottom: 0.5rem; }
.link-tile:hover h3 { color: var(--maroon); }
.link-tile p { color: var(--ink-muted); font-size: 0.95rem; }
.link-tile .tile-arrow { align-self: flex-end; width: 36px; height: 36px; border-radius: 50%; background: var(--cream); color: var(--maroon); display: flex; align-items: center; justify-content: center; margin-top: 1.5rem; transition: all var(--t); }
.link-tile:hover .tile-arrow { background: var(--maroon); color: var(--white); transform: translate(3px, -3px); }

.callout { background: var(--maroon-tint); border-left: 4px solid var(--maroon); border-radius: var(--radius); padding: 1.5rem 1.75rem; margin: 1.5rem 0; }
.callout-warning { background: #fff7e6; border-left-color: var(--gold); }
.callout h4 { color: var(--maroon); margin-bottom: 0.5rem; }
.callout-warning h4 { color: #8a6500; }

.helpline-list { display: grid; gap: 0.5rem; }
.helpline-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.helpline-item .name { font-weight: 500; color: var(--ink); }
.helpline-item .number { font-weight: 600; color: var(--maroon); font-family: var(--font-sans); }

.quote-block { background: var(--cream); border-radius: var(--radius-lg); padding: clamp(2rem, 4vw, 3rem); text-align: center; }
.quote-block blockquote { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.4; color: var(--ink); font-style: italic; margin: 0 auto 1.5rem; max-width: 60ch; }
.quote-block .author { font-size: 0.95rem; color: var(--ink-muted); font-weight: 500; }
.quote-block .author strong { display: block; color: var(--ink); font-weight: 600; }

.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: 2rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 2rem !important; }

@media print {
  .site-header, .site-footer, .cta-strip { display: none; }
}

/* ===== Reveal animation ===== */
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
[data-reveal].in-view { opacity: 1; transform: translateY(0); }
[data-reveal][data-delay="100"] { transition-delay: 100ms; }
[data-reveal][data-delay="200"] { transition-delay: 200ms; }
[data-reveal][data-delay="300"] { transition-delay: 300ms; }

/* ===== Hero strapline rotator ===== */
.hero-straplines { position: relative; min-height: 1.2em; }
.hero-strapline { position: absolute; inset: 0; opacity: 0; transform: translateY(10px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.hero-strapline.active { opacity: 1; transform: translateY(0); position: relative; }
.hero-straplines .hero-strapline:not(.active) { pointer-events: none; }

/* ============================================================
   Mobile overflow fixes (added 2026-05-20)
   ============================================================ */

/* Belt-and-braces overflow control — apply to html AND body */
html { overflow-x: clip; }
body { overflow-x: clip; max-width: 100vw; }

/* Tighten header for mid-size mobile/tablet */
@media (max-width: 768px) {
  .header-main { padding: 0.85rem 0; gap: 0.75rem; }
  .brand { gap: 0.6rem; min-width: 0; flex-shrink: 1; }
  .brand img { height: 40px; }
  .brand-text { font-size: 1.05rem; line-height: 1.2; }
  .brand-text small { font-size: 0.62rem; }
  .header-cta { gap: 0.35rem; }
  .header-cta .btn { padding: 0.7rem 1rem; font-size: 0.88rem; }
}

/* Drop the Book-a-Tour pill on phones — the hamburger menu has it */
@media (max-width: 600px) {
  .header-cta .btn-primary { display: none; }
  .brand-text small { display: none; }
  .brand-text { font-size: 1rem; }
  .utility-bar { font-size: 0.78rem; padding: 0.4rem 0; }
  .utility-bar .quick-links { gap: 0.85rem; }
  .container { padding: 0 1rem; }
  --gutter: 1rem;
}

/* Even smaller phones (≤375px) — brand text only, no tagline */
@media (max-width: 380px) {
  .brand img { height: 36px; }
  .brand-text { font-size: 0.95rem; }
}

/* Safety net: any element that would force horizontal scroll gets clipped */
.hero, .page-hero, section, .container { max-width: 100%; }

/* ===== Skip to content (a11y) ===== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--maroon);
  color: var(--white);
  padding: 0.6rem 1rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 0; outline: 2px solid var(--gold-soft); outline-offset: -4px; }
