/* EB Scaffolding: main stylesheet */

:root {
  --red: #d61010;
  --red-dark: #a80c0c;
  --ink: #16181d;
  --ink-soft: #4a4f5a;
  --line: #e3e5ea;
  --paper: #ffffff;
  --paper-alt: #f4f5f7;
  --dark: #111317;
  --dark-soft: #1d2026;
  --notice-bg: #fff4e5;
  --notice-line: #e8a33d;

  --font-heading: 'Barlow Condensed', system-ui, sans-serif;
  --font-body: 'Barlow', system-ui, sans-serif;

  --radius: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --wrap: 1180px;
  --gap: clamp(1rem, 3vw, 2rem);
  --section: clamp(3.5rem, 8vw, 6rem);
}

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

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.05;
  letter-spacing: 0;
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 4.5rem); font-weight: 700; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 700; letter-spacing: 0.01em; }

p { margin: 0 0 1.1em; }

a { color: var(--red); text-underline-offset: 0.18em; }
a:hover { color: var(--red-dark); }

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

.wrap {
  width: min(100% - 2 * var(--gap), var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: #fff; }

.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;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.lead { font-size: 1.2rem; color: var(--ink-soft); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border: 2px solid var(--red);
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }

/* Gentle lift on hover, settling back when pressed */
@media (prefers-reduced-motion: no-preference) {
  .btn:hover,
  .main-nav .nav-cta a:hover,
  .contact-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18); }
  .btn:active,
  .main-nav .nav-cta a:active { transform: translateY(0); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15); }
}

.btn-ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn-ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }

.btn-dark { background: var(--ink); border-color: var(--ink); }
.btn-dark:hover { background: #000; border-color: #000; }

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

/* ---------- Top bar and header ---------- */

.topbar {
  background: var(--dark);
  color: #d5d8de;
  font-size: 0.9rem;
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  padding-block: 0.5rem;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar-contact { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}
.logo { display: block; }
.logo img { width: 170px; height: auto; transition: transform 0.25s ease, filter 0.25s ease; }
@media (prefers-reduced-motion: no-preference) {
  .logo:hover img { transform: translateY(-1px) scale(1.04); filter: drop-shadow(0 4px 8px rgba(214, 16, 16, 0.3)); }
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav a {
  display: block;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, transform 0.2s ease, box-shadow 0.2s ease;
}
.main-nav a:hover { background: var(--paper-alt); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--red); }
.main-nav .nav-cta a { margin-left: 0.6rem; background: var(--red); color: #fff; }
.main-nav .nav-cta a:hover { background: var(--red-dark); color: #fff; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

@media (max-width: 860px) {
  .js .nav-toggle { display: inline-flex; }
  .js .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .js .main-nav.is-open { display: block; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem var(--gap) 1.25rem;
  }
  .main-nav a { padding: 0.8rem 1rem; }
  .main-nav .nav-cta a { margin: 0.5rem 0 0; text-align: center; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 0.75rem; }
  html:not(.js) .main-nav ul { flex-direction: row; flex-wrap: wrap; padding: 0; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  background: var(--dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(10, 11, 14, 0.88) 0%, rgba(10, 11, 14, 0.65) 55%, rgba(10, 11, 14, 0.35) 100%);
}
.hero .wrap { padding-block: clamp(4.5rem, 12vw, 8.5rem); }
.hero-content { max-width: 680px; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: #ff8a8a; }
.hero p { font-size: 1.2rem; color: #e8eaee; }
.hero .btn-row { margin-top: 1.8rem; }

.page-hero .wrap { padding-block: clamp(3.5rem, 9vw, 6rem); }
.page-hero h1 { font-size: clamp(2.4rem, 5.6vw, 3.9rem); }

/* ---------- Stats ---------- */

.stats { background: var(--red); color: #fff; }
.stats ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0;
  padding: 2rem 0;
  list-style: none;
  text-align: center;
}
.stat-number { display: block; font-family: var(--font-heading); font-size: clamp(2.6rem, 6vw, 3.8rem); font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { font-weight: 600; opacity: 0.92; }

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section-alt { background: var(--paper-alt); }
.section-dark { background: var(--dark); color: #e8eaee; }
.section-dark h2 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}

/* Services list */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 1.5rem;
  margin: 1.5rem 0 2rem;
  padding: 0;
  list-style: none;
}
.services li {
  position: relative;
  padding-left: 1.6rem;
  font-weight: 600;
}
.services li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 2px;
  background: var(--red);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  padding: 1.8rem;
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; }

/* Photo mosaic */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.mosaic img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}
@media (max-width: 700px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); }
}

/* Accreditation badges */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; margin: 1.5rem 0; }
.badges img { height: 64px; width: auto; }

/* Contact tiles */
.contact-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.contact-tile {
  display: block;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s ease;
}
.contact-tile:hover { border-color: var(--red); color: var(--ink); box-shadow: var(--shadow); }
.contact-tile span { display: block; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.contact-tile strong { display: block; font-size: 1.05rem; color: var(--red); overflow-wrap: anywhere; }

/* Review */
.review {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.review-stars { font-size: 1.6rem; letter-spacing: 0.2em; color: #f5b400; }
.review blockquote {
  margin: 1rem 0 1.5rem;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  font-weight: 600;
  line-height: 1.45;
  color: #fff;
}
.review cite { font-style: normal; color: #b9bdc6; }
.review cite strong { display: block; color: #fff; }
.review .btn-row { justify-content: center; margin-top: 1.8rem; }
.section-dark .btn-ghost { color: #fff; }
.section-dark .btn-ghost:hover { color: var(--ink); }

/* Call to action band */
.cta-band { background: var(--red); color: #fff; }
.cta-band .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.cta-band h2 { color: #fff; margin-bottom: 0.3rem; }
.cta-band p { margin: 0; color: #ffe1e1; }
.cta-band .btn { background: #fff; border-color: #fff; color: var(--red); }
.cta-band .btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.cta-band .btn-ghost { background: transparent; color: #fff; }

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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery-grid a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-alt);
}
.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.3s;
}
.gallery-grid a:hover img { transform: scale(1.04); }

.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(8, 9, 12, 0.94);
  color: #fff;
}
.lightbox::backdrop { background: rgba(8, 9, 12, 0.94); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; padding: 4rem 4.5rem; max-width: 100%; max-height: 100%; }
.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 8rem);
  margin: 0 auto;
  border-radius: 6px;
}
.lightbox figcaption { margin-top: 0.8rem; text-align: center; color: #c9ccd3; }
.lightbox button {
  position: absolute;
  padding: 0.6rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.lightbox button:hover { border-color: #fff; }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
  .lightbox figure { padding: 4rem 0.5rem 5rem; }
  .lightbox-prev,
  .lightbox-next { top: auto; bottom: 1rem; transform: none; }
}

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

.news-list { display: grid; gap: 2rem; }
.news-item {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.news-item img { width: 100%; height: 100%; max-height: 360px; object-fit: cover; border-radius: var(--radius); }
.news-meta { font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }
@media (max-width: 760px) {
  .news-item { grid-template-columns: 1fr; padding: 1.25rem; }
  .news-item img { max-height: 260px; }
}

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

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.form-panel {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}
.form-panel h2 { font-size: 2rem; }

.contact-form { position: relative; display: grid; gap: 1.1rem; }
.form-field { display: grid; gap: 0.35rem; }
.form-field label { font-weight: 700; }
.form-field .optional { font-weight: 400; color: var(--ink-soft); }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 2px solid #c9cdd5;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.form-field textarea { resize: vertical; min-height: 9rem; }
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid transparent;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(214, 16, 16, 0.2);
}

.form-noscript {
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--notice-line);
  border-radius: 6px;
  background: var(--notice-bg);
}

.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

altcha-widget {
  --altcha-border-radius: 10px;
  --altcha-color-border: #c9cdd5;
  --altcha-max-width: 100%;
}

.form-message {
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--notice-line);
  border-radius: 6px;
  background: var(--notice-bg);
  color: var(--ink);
}
.form-message:empty { display: none; }
.form-message:focus { outline: 3px solid var(--notice-line); outline-offset: 2px; }

.contact-form .btn { justify-self: start; min-width: 12rem; }
.contact-form .btn:disabled { opacity: 0.65; cursor: wait; }

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

.site-footer { background: var(--dark); color: #b9bdc6; font-size: 0.95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: 3.5rem;
}
.footer-grid h2 { font-size: 1.25rem; color: #fff; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.9rem; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li { margin-bottom: 0.45rem; }
.footer-logo { width: 170px; margin-bottom: 1rem; }
.footer-bottom {
  border-top: 1px solid var(--dark-soft);
  padding-block: 1.25rem;
  font-size: 0.85rem;
}
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .stats ul { grid-template-columns: 1fr; gap: 1.2rem; }
  .services { grid-template-columns: 1fr; }
}

/* ---------- Simple page (thank you) ---------- */

.simple-page { padding-block: clamp(4rem, 12vw, 8rem); text-align: center; }
.simple-page .btn-row { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
