/* Theme tokens. The data-theme variants below only replace colors. */
:root {
  color-scheme: light;
  --bg: #fffaf4;
  --surface: #ffffff;
  --surface-soft: #f4efff;
  --ink: #2d3047;
  --muted: #666a7d;
  --primary: #008f95;
  --secondary: #e84a7a;
  --accent: #f6ce55;
  --leaf: #73bf6a;
  --sky: #95d6ea;
  --line: rgba(36, 49, 63, 0.14);
  --shadow: 0 18px 48px rgba(36, 49, 63, 0.14);
  --radius: 8px;
  --header-offset: 132px;
}

/* Optional color palettes selected from the homepage. */
:root[data-theme="garden"] {
  --bg: #fff9f0;
  --surface: #ffffff;
  --surface-soft: #eaf8ee;
  --ink: #24313f;
  --muted: #66707d;
  --primary: #0e8f8f;
  --secondary: #f25f5c;
  --accent: #f8c537;
  --leaf: #56b870;
  --sky: #82c7ff;
}

:root[data-theme="sky"] {
  --bg: #f6fbff;
  --surface: #ffffff;
  --surface-soft: #e8f4ff;
  --ink: #1d2e45;
  --muted: #5f6f82;
  --primary: #356dff;
  --secondary: #ff8c42;
  --accent: #ffd166;
  --leaf: #62c58f;
  --sky: #79c6ff;
}

:root[data-theme="forest"] {
  --bg: #fbf7ef;
  --surface: #fffdf8;
  --surface-soft: #e7efdf;
  --ink: #263528;
  --muted: #667260;
  --primary: #447a4a;
  --secondary: #c84c5a;
  --accent: #d8a737;
  --leaf: #799b45;
  --sky: #b9ded8;
}

:root[data-theme="city"] {
  --bg: #fffaf4;
  --surface: #ffffff;
  --surface-soft: #f4efff;
  --ink: #2d3047;
  --muted: #666a7d;
  --primary: #008f95;
  --secondary: #e84a7a;
  --accent: #f6ce55;
  --leaf: #73bf6a;
  --sky: #95d6ea;
}

/* Base element rules shared by every page. */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 12px;
}

/* Sticky header with brand, contact button and page dropdown. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(36, 49, 63, 0.08);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.dropdown-nav {
  position: relative;
}

.menu-toggle {
  min-height: 44px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 9px 13px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(36, 49, 63, 0.08);
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  border-color: var(--primary);
  outline: none;
}

.menu-icon {
  width: 18px;
  height: 14px;
  position: relative;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.menu-icon::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 4px;
  border-top: 2px solid currentColor;
}

.menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  width: min(300px, calc(100vw - 32px));
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.menu-panel[hidden] {
  display: none;
}

.menu-label {
  max-width: min(260px, 34vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-panel a {
  display: block;
  padding: 11px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}

.menu-panel a:hover,
.menu-panel a:focus-visible,
.menu-panel a[aria-current="page"] {
  background: var(--surface-soft);
  color: var(--primary);
  outline: none;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
}

.brand img {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  transform: scale(1);
  transform-origin: center;
  transition: transform 180ms ease, filter 180ms ease;
}

.brand img.brand-home-logo {
  width: 88px;
  object-fit: contain;
}

.brand:hover img,
.brand:focus-visible img {
  transform: scale(1.14);
  filter: drop-shadow(0 8px 14px rgba(45, 48, 71, 0.18));
}

.brand span {
  font-size: clamp(1rem, 2vw, 1.28rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: end;
}

.header-contact {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.header-contact:hover,
.header-contact:focus-visible {
  background: var(--ink);
  outline: none;
}

.section-nav {
  border-top: 1px solid var(--line);
  overflow-x: auto;
}

.section-nav-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 54px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.section-nav a {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 800;
}

.section-nav a:hover,
.section-nav a:focus-visible,
.section-nav a.is-active {
  background: var(--surface-soft);
  color: var(--primary);
  outline: none;
}

/* Full-width hero used on the homepage and individual group pages. */
.hero {
  min-height: min(690px, calc(100svh - 116px));
  display: flex;
  align-items: flex-end;
  background-image:
    linear-gradient(90deg, rgba(24, 40, 54, 0.82), rgba(24, 40, 54, 0.5) 48%, rgba(24, 40, 54, 0.24));
  background-size: cover;
  background-position: center;
  color: #fff;
}

.home-hero,
.page-logo-hero {
  background-image:
    linear-gradient(135deg, rgba(255, 250, 244, 0.96), rgba(244, 239, 255, 0.92)),
    radial-gradient(circle at 18% 18%, rgba(246, 206, 85, 0.28), transparent 34%),
    radial-gradient(circle at 82% 24%, rgba(149, 214, 234, 0.28), transparent 34%);
  color: var(--ink);
}

.home-hero {
  min-height: auto;
  align-items: center;
}

.page-logo-hero {
  min-height: auto;
  align-items: center;
}

.hero-content {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(74px, 10vw, 124px) 0 clamp(44px, 7vw, 74px);
}

.page-logo-hero .hero-content {
  padding: clamp(34px, 5vw, 58px) 0 clamp(32px, 4vw, 48px);
}

.home-hero .hero-content {
  padding: clamp(42px, 6vw, 68px) 0 clamp(36px, 5vw, 58px);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}

.hero-narrow {
  min-height: 440px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.page-title {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.page-title-lower {
  padding-top: 14px;
}

.hero p {
  max-width: 680px;
  margin: 22px 0 0;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.92);
}

.home-hero p,
.page-logo-hero p {
  color: var(--muted);
}

.home-hero .button.ghost,
.page-logo-hero .button.ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.64);
  border-color: var(--line);
}

.hero-logo-panel,
.page-hero-logo {
  display: grid;
  place-items: center;
  min-width: 0;
}

.hero-main-logo,
.page-hero-logo img {
  width: min(340px, 100%);
  filter: drop-shadow(0 18px 28px rgba(45, 48, 71, 0.14));
}

.hero-main-logo {
  width: min(300px, 100%);
}

.page-hero-logo img {
  width: min(260px, 100%);
  transition: transform 180ms ease, filter 180ms ease;
}

.page-hero-logo:hover img,
.page-hero-logo:focus-within img {
  filter: drop-shadow(0 22px 32px rgba(45, 48, 71, 0.18));
  transform: scale(1.06);
}

.hero-logo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 18px;
}

.hero-logo-strip a {
  display: grid;
  place-items: center;
  min-height: 112px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.hero-logo-strip img {
  max-height: 96px;
  object-fit: contain;
  transition: transform 180ms ease;
}

.hero-logo-strip a:hover,
.hero-logo-strip a:focus-visible {
  z-index: 1;
  border-color: rgba(0, 143, 149, 0.35);
  box-shadow: 0 14px 26px rgba(45, 48, 71, 0.12);
  outline: none;
}

.hero-logo-strip a:hover img,
.hero-logo-strip a:focus-visible img {
  transform: scale(1.12);
}

/* Reusable tooltip for linked images that do not have visible text. */
.link-tooltip {
  position: relative;
}

.link-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 4;
  max-width: min(260px, calc(100vw - 40px));
  padding: 6px 9px;
  border-radius: 6px;
  background: rgba(45, 48, 71, 0.94);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(45, 48, 71, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.link-tooltip:hover::after,
.link-tooltip:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.card-visual.link-tooltip::after {
  bottom: 12px;
}

.button-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.document-actions {
  margin-top: 18px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 9px 16px;
  color: #fff;
  background: var(--primary);
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  background: var(--ink);
  outline: none;
}

.button.secondary {
  color: var(--ink);
  background: var(--accent);
}

.button.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
}

.button.small {
  min-height: 38px;
  padding: 7px 12px;
  font-size: 0.94rem;
}

.two-column > div:first-child:has(> .section-heading) > .enrollment-flyer {
  margin: 0 auto;
}

.enrollment-flyer {
  width: min(100%, 360px);
  margin: 30px auto 0;
}

.enrollment-flyer a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 34px rgba(36, 49, 63, 0.14);
  cursor: zoom-in;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.enrollment-flyer a:hover,
.enrollment-flyer a:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(36, 49, 63, 0.2);
  outline: none;
}

.enrollment-flyer img {
  display: block;
  width: 100%;
  height: auto;
}

.enrollment-flyer figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
}

.page-section {
  scroll-margin-top: var(--header-offset);
  padding: clamp(54px, 8vw, 92px) 0;
}

.page-section.tint {
  background: var(--surface-soft);
}

.page-section.white {
  background: var(--surface);
}

/* Shared content containers and section headings. */
.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-heading p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.branch-grid,
.feature-grid,
.activity-grid,
.palette-grid,
.facts-grid,
.two-column,
.contact-grid {
  display: grid;
  gap: 18px;
}

.branch-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid,
.activity-grid,
.palette-grid,
.facts-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.two-column,
.contact-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: start;
}

/* In two-column sections, the title sits above both columns; the side note starts with the intro text. */
.two-column:has(> div:first-child > .section-heading) {
  /* A tall sidebar expands the body row instead of leaving space below the intro. */
  grid-template-rows: auto auto 1fr;
}

.two-column > div:first-child:has(> .section-heading) {
  display: contents;
}

.two-column > div:first-child:has(> .section-heading) > .section-heading {
  display: contents;
}

.two-column > div:first-child:has(> .section-heading) > .section-heading > h2 {
  grid-column: 1 / -1;
}

.two-column > div:first-child:has(> .section-heading) > .section-heading > p {
  grid-column: 1;
  margin-bottom: 30px;
}

.two-column > div:first-child:has(> .section-heading) > :not(.section-heading) {
  grid-column: 1;
}

.two-column > div:first-child:has(> .section-heading) + .note-box,
.two-column > div:first-child:has(> .section-heading) + .side-stack,
.two-column > div:first-child:has(> .section-heading) + .price-table {
  grid-column: 2;
  grid-row: 2 / span 2;
  margin-top: 14px;
}

.side-stack {
  display: grid;
  gap: 16px;
}

/* For blocks with a smaller subheading, align the side note with the text below that subheading. */
.two-column > .copy-block:first-child:has(> h3) {
  display: contents;
}

.two-column > .copy-block:first-child:has(> h3) > h3 {
  grid-column: 1 / -1;
}

.two-column > .copy-block:first-child:has(> h3) > :not(h3) {
  grid-column: 1;
}

.two-column > .copy-block:first-child:has(> h3) + .note-box,
.two-column > .copy-block:first-child:has(> h3) + .side-stack {
  grid-column: 2;
  grid-row: 2 / span 2;
}

/* Activity sections keep the subheading and body together in the left column. */
.activity-layout > .copy-block:first-child:has(> h3) {
  display: block;
}

.activity-layout > .copy-block:first-child:has(> h3) > h3,
.activity-layout > .copy-block:first-child:has(> h3) > :not(h3),
.activity-layout > .copy-block:first-child:has(> h3) + .note-box,
.activity-layout > .copy-block:first-child:has(> h3) + .side-stack {
  grid-column: auto;
  grid-row: auto;
}

/* Reusable cards and fact boxes. */
.card,
.fact,
.scheme-card,
.contact-box,
.note-box,
.timeline,
.price-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(36, 49, 63, 0.08);
}

.card {
  overflow: hidden;
}

.card-visual {
  min-height: 155px;
  display: flex;
  align-items: flex-end;
  padding: 18px;
  color: #fff;
  background: var(--primary);
}

a.card-visual {
  text-decoration: none;
}

a.card-visual:hover,
a.card-visual:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

a.card-visual.logo-visual:hover,
a.card-visual.logo-visual:focus-visible {
  outline: none;
}

.card-visual.sun {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
}

.card-visual.bee {
  background: linear-gradient(135deg, #fff3a6, #f8c537);
}

.card-visual.leaf {
  background: linear-gradient(135deg, var(--leaf), var(--primary));
}

.card-visual.sky {
  background: linear-gradient(135deg, var(--sky), var(--primary));
}

.card-visual.logo-visual {
  min-height: 190px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(244, 239, 255, 0.92), rgba(255, 255, 255, 0.96));
}

.card-visual span {
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  font-size: 2rem;
}

.card-visual .image-icon {
  background: rgba(255, 255, 255, 0.72);
}

/* Image icons sit inside the same round badge as text icons. */
.card-visual img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(36, 49, 63, 0.22));
}

.card-visual.logo-visual img {
  width: min(180px, 86%);
  height: auto;
  filter: drop-shadow(0 12px 18px rgba(45, 48, 71, 0.14));
}

.group-card .card-body {
  min-height: 204px;
}

.activity-followup {
  margin-top: 42px;
}

.references-block {
  margin-top: 34px;
}

.references-block h3 {
  margin: 0 0 14px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.12;
}

.reference-card {
  margin: 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(36, 49, 63, 0.08);
}

.reference-card + .reference-card {
  margin-top: 12px;
}

.reference-card blockquote {
  margin: 0;
}

.reference-card p {
  margin: 0;
  color: var(--muted);
}

.reference-card p + p {
  margin-top: 10px;
}

.reference-signature {
  margin-top: 12px;
  color: var(--ink);
  font-weight: 900;
}

.reference-signature:empty {
  display: none;
}

.reference-more {
  margin-top: 12px;
}

.reference-more summary {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border-bottom: 2px solid currentColor;
  color: var(--primary);
  font-weight: 900;
  cursor: pointer;
}

.reference-more summary:hover,
.reference-more summary:focus-visible {
  color: var(--secondary);
  outline: none;
}

.reference-more[open] summary {
  margin-bottom: 12px;
}

.reference-summary-hide {
  display: none;
}

.reference-more[open] .reference-summary-show {
  display: none;
}

.reference-more[open] .reference-summary-hide {
  display: inline;
}

.gallery-block {
  margin-top: 34px;
}

.gallery-block h3 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.12;
}

.gallery-block p {
  max-width: 760px;
  margin: 8px 0 18px;
  color: var(--muted);
}

.card-body {
  padding: 20px;
}

.card h3,
.fact h3,
.scheme-card h3,
.contact-box h3,
.note-box h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
  line-height: 1.2;
}

.card p,
.fact p,
.scheme-card p,
.contact-box p,
.note-box p {
  margin: 0;
  color: var(--muted);
}

.note-box p + p {
  margin-top: 10px;
}

.note-box ul {
  margin: 4px 0 14px;
  padding-left: 1.1rem;
  color: var(--muted);
}

.note-box li + li {
  margin-top: 8px;
}

.card-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--primary);
  font-weight: 900;
  text-decoration: none;
}

.card-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
}

.card-actions .card-link {
  margin-top: 0;
}

.card-link:hover,
.card-link:focus-visible {
  color: var(--secondary);
  outline: none;
}

.fact {
  padding: 20px;
  border-top: 6px solid var(--accent);
}

.fact:nth-child(2n) {
  border-top-color: var(--primary);
}

.fact:nth-child(3n) {
  border-top-color: var(--secondary);
}

.fact:nth-child(4n) {
  border-top-color: var(--leaf);
}

.activity-band {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.activity-chip {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 16px;
  text-align: center;
  font-weight: 900;
  box-shadow: 0 8px 22px rgba(36, 49, 63, 0.08);
}

.activity-chip:nth-child(2n) {
  background: var(--accent);
}

.activity-chip:nth-child(3n) {
  background: var(--sky);
}

.activity-chip:nth-child(4n) {
  background: var(--leaf);
  color: #fff;
}

.scheme-card {
  padding: 18px;
}

.swatches {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
}

.swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 0 0 1px var(--line);
}

.theme-button {
  width: 100%;
  margin-top: 16px;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.theme-button.is-selected {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

/* Logo variant picker shown on the homepage. */
.logo-board {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 24px;
  align-items: start;
}

.logo-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 230px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.logo-preview img {
  width: min(210px, 70%);
}

.logo-variants {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.logo-option {
  min-width: 0;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(36, 49, 63, 0.08);
}

.logo-option.is-default {
  border-color: var(--primary);
  box-shadow: 0 14px 32px rgba(14, 143, 143, 0.18);
}

.logo-option img {
  width: min(132px, 100%);
  margin: 0 auto;
}

.logo-option h3 {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.25;
  text-align: center;
}

.copy-block p,
.copy-block li {
  color: var(--muted);
}

.copy-block p:first-child {
  margin-top: 0;
}

.copy-block ul,
.copy-block ol {
  padding-left: 1.2rem;
}

.copy-block li + li {
  margin-top: 8px;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.info-strip .info-item {
  padding: 16px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: var(--radius);
}

.info-item strong {
  display: block;
  color: var(--accent);
  font-size: 0.84rem;
  text-transform: uppercase;
}

.info-item span {
  color: #fff;
  font-weight: 900;
}

.timeline {
  padding: 8px 0;
  overflow: hidden;
}

.timeline-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.timeline-row:last-child {
  border-bottom: 0;
}

.timeline-row time {
  color: var(--primary);
  font-weight: 900;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

.price-table th,
.price-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.price-table th {
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 0.94rem;
}

.price-table tr:last-child th,
.price-table tr:last-child td {
  border-bottom: 0;
}

.note-box {
  padding: 20px;
  border-left: 6px solid var(--secondary);
}

/* Gallery thumbnails and modal lightbox. */
.gallery {
  min-height: 180px;
}

.gallery-loading,
.gallery-empty {
  margin: 0;
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--surface);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(36, 49, 63, 0.12);
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transform: scale(1);
  transition: transform 180ms ease, filter 180ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.gallery-item:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 24, 35, 0.82);
}

.gallery-lightbox[hidden] {
  display: none;
}

.lightbox-stage {
  position: relative;
  width: min(1040px, 100%);
  max-height: calc(100svh - 48px);
}

.lightbox-stage img {
  width: 100%;
  max-height: calc(100svh - 48px);
  object-fit: contain;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.lightbox-close {
  right: -12px;
  top: -12px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: -12px;
}

.lightbox-next {
  right: -12px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  background: var(--accent);
  outline: none;
}

.contact-box {
  padding: 22px;
}

.contact-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.contact-list p {
  margin: 0;
  color: var(--ink);
}

.contact-list strong {
  font-weight: 900;
}

.facebook-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.facebook-icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: contain;
}

.contact-list a {
  color: inherit;
  font-weight: 900;
  text-decoration: none;
}

.contact-list a:hover,
.contact-list a:focus-visible {
  color: var(--primary);
  outline: none;
}

.site-footer {
  background: var(--ink);
  color: #fff;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.footer-inner a {
  color: #fff;
}

/* Tablet layout: collapse wide grids before the mobile breakpoint. */
@media (max-width: 980px) {
  :root {
    --header-offset: 152px;
  }

  .branch-grid,
  .feature-grid,
  .activity-grid,
  .palette-grid,
  .facts-grid,
  .hero-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .two-column,
  .contact-grid,
  .logo-board {
    grid-template-columns: 1fr;
  }

  .two-column > div:first-child:has(> .section-heading) {
    display: block;
  }

  .two-column:has(> div:first-child > .section-heading) {
    grid-template-rows: none;
  }

  .two-column > div:first-child:has(> .section-heading) > .section-heading {
    display: block;
  }

  .two-column > div:first-child:has(> .section-heading) > .section-heading,
  .two-column > div:first-child:has(> .section-heading) > .section-heading > h2,
  .two-column > div:first-child:has(> .section-heading) > .section-heading > p,
  .two-column > div:first-child:has(> .section-heading) > :not(.section-heading),
  .two-column > div:first-child:has(> .section-heading) + .note-box,
  .two-column > div:first-child:has(> .section-heading) + .side-stack,
  .two-column > div:first-child:has(> .section-heading) + .price-table {
    grid-column: auto;
    grid-row: auto;
    margin-top: 0;
  }

  .two-column > .copy-block:first-child:has(> h3) {
    display: block;
  }

  .two-column > .copy-block:first-child:has(> h3) > h3,
  .two-column > .copy-block:first-child:has(> h3) > :not(h3),
  .two-column > .copy-block:first-child:has(> h3) + .note-box,
  .two-column > .copy-block:first-child:has(> h3) + .side-stack {
    grid-column: auto;
    grid-row: auto;
  }

  .logo-variants {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .info-strip,
  .activity-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Team portraits retain the framing and resolution of the source photos. */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.team-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 24px;
}

.team-portrait {
  width: 150px;
  height: auto;
  align-self: start;
  border-radius: var(--radius);
}

.team-card .card-body {
  min-width: 0;
  padding: 0;
}

.team-card p + p {
  margin-top: 12px;
}

.team-lead {
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 32px;
}

.team-lead .team-portrait {
  width: 250px;
}

@media (max-width: 980px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .team-card {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 20px;
  }

  .team-card .team-portrait {
    width: 180px;
  }
}

/* Phone layout: stack the header and reduce dense grids to one column. */
@media (max-width: 720px) {
  :root {
    --header-offset: 174px;
  }

  .header-inner {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 0;
  }

  .header-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    justify-content: initial;
  }

  .header-contact {
    width: 100%;
  }

  .brand {
    justify-self: start;
  }

  .brand span {
    max-width: 70vw;
  }

  .menu-label {
    max-width: 42vw;
  }

  .hero {
    min-height: min(640px, calc(100svh - 152px));
  }

  .home-hero,
  .page-logo-hero {
    min-height: auto;
  }

  .hero h1,
  .page-title {
    font-size: clamp(2.1rem, 12vw, 3.3rem);
  }

  .branch-grid,
  .feature-grid,
  .activity-grid,
  .palette-grid,
  .facts-grid,
  .logo-variants,
  .hero-layout,
  .hero-logo-strip,
  .info-strip,
  .activity-band {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: 12px;
    transform: none;
  }

  .lightbox-prev {
    left: 12px;
  }

  .lightbox-next {
    right: 12px;
  }
}
