/* ============================================================
   We Care Nepal Inc. - design tokens
   Every colour, font, size and spacing value is defined once
   here and referenced with var() everywhere else.
   ============================================================ */
:root {
  /* Brand colours, taken from the We Care Nepal logo */
  --color-crimson: #c8102e;
  --color-crimson-dark: #9b0c23;
  --color-crimson-tint: #fdeef0;
  --color-navy: #10336b;
  --color-navy-dark: #0a2149;
  --color-navy-tint: #eaf0fa;
  --color-sun: #f0a500;
  --color-sun-tint: #fff5e0;

  /* Neutrals */
  --color-ink: #16202e;
  --color-slate: #586675;
  --color-line: #dde4ee;
  --color-snow: #f4f7fb;
  --color-white: #ffffff;

  /* Layered colours */
  --color-overlay-strong: rgba(10, 33, 73, 0.78);
  --color-overlay-hero: rgba(10, 33, 73, 0.52);
  --color-overlay-soft: rgba(10, 33, 73, 0.45);
  --color-shadow-soft: rgba(16, 32, 46, 0.09);
  --color-shadow-lift: rgba(16, 32, 46, 0.16);
  --color-footer-text: #c3cede;
  --color-footer-line: rgba(255, 255, 255, 0.16);

  /* Fonts */
  --font-heading: "Mukta", "Segoe UI", "Arial", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", "Arial", sans-serif;

  /* Type scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.0625rem;
  --text-lg: 1.1875rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.625rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3.25rem;
  --text-stat: 2.75rem;

  /* Weights */
  --weight-regular: 400;
  --weight-medium: 600;
  --weight-bold: 700;
  --weight-black: 800;

  /* Line heights and tracking */
  --leading-tight: 1.15;
  --leading-snug: 1.3;
  --leading-body: 1.7;
  --tracking-wide: 0.08em;
  --tracking-wider: 0.14em;

  /* Spacing */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 2.75rem;
  --space-2xl: 3.5rem;
  --space-3xl: 5rem;
  --space-4xl: 7rem;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* Lines and rules */
  --line-hair: 1px;
  --line-thick: 3px;
  --line-accent: 5px;

  /* Sizes */
  --shell-max: 1180px;
  --shell-narrow: 780px;
  --logo-height: 58px;
  --logo-height-md: 50px;
  --logo-height-sm: 44px;
  --logo-footer: 104px;
  --nav-height: 84px;
  --dot-size: 9px;
  --icon-tile: 56px;
  --icon-tile-sm: 48px;
  --icon-glyph: 26px;
  --stroke-icon: 1.8;
  --hero-min: 560px;
  --hero-min-sm: 460px;
  --pagehead-min: 260px;
  --media-event: 240px;
  --media-project: 300px;
  --media-story: 280px;
  --media-story-sm: 200px;
  --media-card: 180px;
  --media-card-sm: 200px;
  --media-gallery: 320px;
  --media-gallery-tall: 400px;
  --avatar-size: 96px;
  --field-height: 52px;
  --textarea-height: 160px;
  --flag-strip: 6px;
  --viewport-full: 100vh;
  --layer-header: 20;

  /* Layout gaps and basis values */
  --gap-sm: 1rem;
  --gap-md: 1.5rem;
  --gap-lg: 2rem;
  --basis-half: calc(50% - (var(--gap-md) / 2));
  --basis-third: calc(33.333% - (var(--gap-md) * 2 / 3));
  --basis-quarter: calc(25% - (var(--gap-md) * 3 / 4));
  --basis-full: 100%;
  /* The footer runs one wide column plus three narrow ones on a single row. */
  --basis-footer-wide: calc(34% - (var(--gap-md) * 3 / 4));
  --basis-footer: calc(22% - (var(--gap-md) * 3 / 4));

  /* Motion */
  --ease: 180ms ease-in-out;
}

/* ============================================================
   Base
   ============================================================ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--color-white);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: var(--leading-body);
  display: flex;
  flex-direction: column;
  min-height: var(--viewport-full);
}

main {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

img { max-width: var(--basis-full); display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: var(--leading-tight);
  margin: 0;
}

h1 { font-size: var(--text-4xl); font-weight: var(--weight-black); }
h2 { font-size: var(--text-3xl); font-weight: var(--weight-bold); }
h3 { font-size: var(--text-xl); font-weight: var(--weight-bold); }
h4 { font-size: var(--text-lg); font-weight: var(--weight-bold); }

p { margin: 0; }

a { color: var(--color-crimson); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   Shared layout helpers
   ============================================================ */
.shell {
  width: var(--basis-full);
  max-width: var(--shell-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
  display: flex;
  flex-direction: column;
}

.section {
  display: flex;
  flex-direction: column;
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.section-snow { background-color: var(--color-snow); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: var(--shell-narrow);
  margin-bottom: var(--space-xl);
}

.eyebrow {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-crimson);
}

.lead {
  font-size: var(--text-lg);
  color: var(--color-slate);
}

.prose {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  color: var(--color-slate);
}

.rule-accent {
  width: var(--space-2xl);
  height: var(--line-accent);
  background-color: var(--color-crimson);
  border-radius: var(--radius-pill);
}

.flag-strip {
  display: flex;
  flex-direction: row;
  width: var(--basis-full);
  height: var(--flag-strip);
}
.flag-strip-piece { flex: 1 1 auto; }
.flag-strip-red { background-color: var(--color-crimson); }
.flag-strip-blue { background-color: var(--color-navy); }
.flag-strip-sun { background-color: var(--color-sun); }

/* Real bullet elements, no pseudo-elements anywhere */
.list-plain {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}
.list-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: var(--space-xs);
  color: var(--color-slate);
}
.dot {
  flex: 0 0 auto;
  width: var(--dot-size);
  height: var(--dot-size);
  margin-top: var(--space-2xs);
  border-radius: var(--radius-pill);
  background-color: var(--color-crimson);
}
.dot-sun { background-color: var(--color-sun); }
.dot-navy { background-color: var(--color-navy); }

/* ============================================================
   Buttons
   ============================================================ */
.button-primary,
.button-ghost,
.button-light {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-pill);
  border: var(--line-hair) solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--ease), color var(--ease);
}
.button-primary {
  background-color: var(--color-crimson);
  color: var(--color-white);
}
.button-primary:hover { background-color: var(--color-crimson-dark); color: var(--color-white); text-decoration: none; }

.button-ghost {
  background-color: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}
.button-ghost:hover { background-color: var(--color-navy); color: var(--color-white); text-decoration: none; }

.button-light {
  background-color: var(--color-white);
  color: var(--color-navy);
}
.button-light:hover { background-color: var(--color-sun); color: var(--color-navy-dark); text-decoration: none; }

/* ============================================================
   Header (built once in js/components.js)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--layer-header);
  background-color: var(--color-white);
  border-bottom: var(--line-hair) solid var(--color-line);
  box-shadow: 0 var(--space-3xs) var(--space-sm) var(--color-shadow-soft);
  display: flex;
  flex-direction: column;
}

.nav-bar {
  width: var(--basis-full);
  max-width: var(--shell-max);
  margin-left: auto;
  margin-right: auto;
  padding: var(--space-xs) var(--space-md);
  min-height: var(--nav-height);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.nav-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-xs);
}
.nav-brand:hover { text-decoration: none; }
.nav-logo { height: var(--logo-height); width: auto; }

.nav-wordmark { display: flex; flex-direction: column; }
.nav-wordmark-name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-black);
  color: var(--color-navy);
  line-height: var(--leading-tight);
  white-space: nowrap;
}
.nav-wordmark-sub {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-slate);
}

.nav-panel {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-md);
}

.nav-link {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-ink);
  padding-top: var(--space-2xs);
  padding-bottom: var(--space-2xs);
  border-bottom: var(--line-thick) solid transparent;
  white-space: nowrap;
}
.nav-link:hover { color: var(--color-crimson); text-decoration: none; }
.nav-link-active { color: var(--color-crimson); border-bottom-color: var(--color-crimson); }

.nav-actions { display: flex; flex-direction: row; align-items: center; gap: var(--space-sm); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-3xs);
  width: var(--field-height);
  height: var(--field-height);
  padding: var(--space-xs);
  background-color: var(--color-navy-tint);
  border: var(--line-hair) solid var(--color-line);
  border-radius: var(--radius-md);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: var(--basis-full);
  height: var(--line-thick);
  border-radius: var(--radius-pill);
  background-color: var(--color-navy);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: var(--hero-min);
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  background-color: var(--color-navy-dark);
  background-image: linear-gradient(var(--color-overlay-hero), var(--color-overlay-hero)), url("../img/2.jpg");
  background-size: cover;
  background-position: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
  max-width: var(--shell-narrow);
}

.hero-title { color: var(--color-white); font-size: var(--text-5xl); }
.hero-lead { color: var(--color-white); font-size: var(--text-lg); }

.hero-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-2xs);
}

/* Short banner for inner pages */
.page-head {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: var(--pagehead-min);
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  background-color: var(--color-navy);
  background-size: cover;
  background-position: center;
}
.page-head-about { background-image: linear-gradient(var(--color-overlay-strong), var(--color-overlay-strong)), url("../img/7.jpg"); }
.page-head-events { background-image: linear-gradient(var(--color-overlay-strong), var(--color-overlay-strong)), url("../img/11.jpg"); }
.page-head-projects { background-image: linear-gradient(var(--color-overlay-strong), var(--color-overlay-strong)), url("../img/5.jpg"); }
.page-head-gallery { background-image: linear-gradient(var(--color-overlay-strong), var(--color-overlay-strong)), url("../img/9.jpg"); }
.page-head-contact { background-image: linear-gradient(var(--color-overlay-strong), var(--color-overlay-strong)), url("../img/10.jpg"); }

.page-head-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  max-width: var(--shell-narrow);
}
.page-head-title { color: var(--color-white); }
.page-head-lead { color: var(--color-white); font-size: var(--text-lg); }

/* ============================================================
   Stat strip
   ============================================================ */
.stat-strip { display: flex; flex-direction: row; flex-wrap: wrap; gap: var(--gap-md); }
.stat-item {
  flex: 1 1 var(--basis-quarter);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-md);
  background-color: var(--color-white);
  border: var(--line-hair) solid var(--color-line);
  border-top: var(--line-accent) solid var(--color-crimson);
  border-radius: var(--radius-md);
}
.stat-text { display: flex; flex-direction: column; gap: var(--space-3xs); }
.stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-stat);
  font-weight: var(--weight-black);
  color: var(--color-navy);
  line-height: var(--leading-tight);
}
.stat-label {
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-slate);
}

/* ============================================================
   Cards
   ============================================================ */
.card-row { display: flex; flex-direction: row; flex-wrap: wrap; gap: var(--gap-md); }
.card-row-spaced { margin-top: var(--gap-md); }
.card-stack { display: flex; flex-direction: column; gap: var(--gap-md); }

.card-info {
  flex: 1 1 var(--basis-half);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background-color: var(--color-white);
  border: var(--line-hair) solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: 0 var(--space-3xs) var(--space-md) var(--color-shadow-soft);
}
.card-info-body { color: var(--color-slate); }

.card-service {
  flex: 1 1 var(--basis-quarter);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-lg);
  background-color: var(--color-white);
  border: var(--line-hair) solid var(--color-line);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--ease), transform var(--ease);
}
.card-service:hover {
  box-shadow: 0 var(--space-2xs) var(--space-lg) var(--color-shadow-lift);
  transform: translateY(calc(var(--space-3xs) * -1));
}
.card-service-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: var(--space-3xs) var(--space-xs);
  border-radius: var(--radius-pill);
  background-color: var(--color-crimson-tint);
  color: var(--color-crimson);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}
.card-service-body { color: var(--color-slate); font-size: var(--text-base); }
.card-service-media {
  width: var(--basis-full);
  height: var(--media-card);
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* Banner photo across the top of a story card. Every one is the same height
   so the three parts of the story read as one set. */
.card-media-banner {
  width: var(--basis-full);
  height: var(--media-story);
  object-fit: cover;
  border-radius: var(--radius-md);
}
/* Anchors the crop to the top of the photo instead of the centre, for
   images whose subject sits high in the frame. */
.card-media-top { object-position: top; }

/* Real SVG elements, drawn inline. Nothing decorative lives in a pseudo-element.
   One tile class, reused by the service cards, the process steps and the stats. */
.icon-tile {
  align-self: flex-start;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--icon-tile);
  height: var(--icon-tile);
  border-radius: var(--radius-md);
  background-color: var(--color-navy-tint);
  color: var(--color-navy);
}
.icon-tile-crimson { background-color: var(--color-crimson-tint); color: var(--color-crimson); }
.icon-tile svg {
  width: var(--icon-glyph);
  height: var(--icon-glyph);
  fill: none;
  stroke: currentColor;
  stroke-width: var(--stroke-icon);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-event,
.card-project {
  display: flex;
  flex-direction: row;
  gap: var(--space-lg);
  padding: var(--space-md);
  background-color: var(--color-white);
  border: var(--line-hair) solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: 0 var(--space-3xs) var(--space-md) var(--color-shadow-soft);
}
.card-flip { flex-direction: row-reverse; }

.card-media { flex: 1 1 var(--basis-half); display: flex; flex-direction: column; }
.card-media-img {
  width: var(--basis-full);
  height: var(--media-event);
  object-fit: cover;
  border-radius: var(--radius-md);
}
.card-media-tall { height: var(--media-project); }

.card-body {
  flex: 1 1 var(--basis-half);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  justify-content: center;
  padding-top: var(--space-2xs);
  padding-bottom: var(--space-2xs);
}
.card-body-text { color: var(--color-slate); }

.meta-row { display: flex; flex-direction: row; flex-wrap: wrap; gap: var(--space-2xs); }
.meta-chip {
  display: inline-flex;
  align-items: center;
  padding: var(--space-3xs) var(--space-xs);
  border-radius: var(--radius-sm);
  background-color: var(--color-navy-tint);
  color: var(--color-navy);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}
.meta-chip-money { background-color: var(--color-sun-tint); color: var(--color-crimson-dark); }

/* ============================================================
   Team
   ============================================================ */
.card-person {
  flex: 1 1 var(--basis-third);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background-color: var(--color-white);
  border: var(--line-hair) solid var(--color-line);
  border-left: var(--line-accent) solid var(--color-navy);
  border-radius: var(--radius-md);
}
.person-initials {
  flex: 0 0 auto;
  width: var(--avatar-size);
  height: var(--avatar-size);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background-color: var(--color-navy-tint);
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--weight-black);
}
.person-text { display: flex; flex-direction: column; }
.person-name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-ink);
}
.person-role {
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-crimson);
}

/* ============================================================
   Gallery
   ============================================================ */
.gallery-wrap { display: flex; flex-direction: row; flex-wrap: wrap; gap: var(--gap-md); }
/* No flex-grow: a row that is not full keeps each card at its natural width
   instead of stretching one card into a wide, mostly empty mat. */
.gallery-item {
  flex: 0 1 var(--basis-third);
  display: flex;
  flex-direction: column;
  background-color: var(--color-white);
  border: var(--line-hair) solid var(--color-line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.gallery-item-wide { flex: 0 1 var(--basis-half); }
/* Gallery photos are matted, not cropped. The whole frame stays visible and
   the tinted box takes up whatever the aspect ratio does not fill. */
.gallery-img {
  width: var(--basis-full);
  height: var(--media-gallery);
  object-fit: contain;
  background-color: var(--color-snow);
  padding: var(--space-2xs);
}
.gallery-img-tall { height: var(--media-gallery-tall); }
.gallery-caption {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
  padding: var(--space-sm) var(--space-md) var(--space-md) var(--space-md);
}
.gallery-caption-title {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  color: var(--color-navy);
  font-size: var(--text-base);
}
.gallery-caption-note { font-size: var(--text-sm); color: var(--color-slate); }

/* ============================================================
   Contact
   ============================================================ */
.contact-split { display: flex; flex-direction: row; gap: var(--gap-lg); }
.contact-aside { flex: 1 1 var(--basis-third); display: flex; flex-direction: column; gap: var(--space-md); }
.contact-line {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xs);
  padding: var(--space-md);
  background-color: var(--color-snow);
  border-radius: var(--radius-md);
  border-left: var(--line-accent) solid var(--color-crimson);
}
.contact-line-label {
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-slate);
}
.contact-line-value {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-navy);
}

.form-mock {
  flex: 1 1 var(--basis-half);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-lg);
  background-color: var(--color-white);
  border: var(--line-hair) solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: 0 var(--space-3xs) var(--space-md) var(--color-shadow-soft);
}
.mock-banner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-2xs);
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-pill);
  background-color: var(--color-sun-tint);
  color: var(--color-crimson-dark);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  align-self: flex-start;
}
.field-row { display: flex; flex-direction: row; gap: var(--gap-sm); }
.field { flex: 1 1 var(--basis-half); display: flex; flex-direction: column; gap: var(--space-3xs); }
.field-label { font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--color-ink); }
.field-input,
.field-select,
.field-textarea {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-ink);
  background-color: var(--color-snow);
  border: var(--line-hair) solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-xs) var(--space-sm);
  height: var(--field-height);
  width: var(--basis-full);
}
.field-textarea { height: var(--textarea-height); resize: vertical; }
.field-note { font-size: var(--text-xs); color: var(--color-slate); }

/* The mockup fields are disabled on purpose. Keep them looking like fields. */
.field-input[disabled],
.field-select[disabled],
.field-textarea[disabled],
.form-mock .button-primary[disabled] {
  opacity: 1;
  cursor: default;
}
.form-mock .section-head,
.contact-aside .section-head { margin-bottom: 0; }
.form-mock .button-primary[disabled] { align-self: flex-start; }

/* ============================================================
   Call to action band
   ============================================================ */
.band-cta {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  padding: var(--space-xl);
  background-color: var(--color-navy);
  border-radius: var(--radius-lg);
}
.band-cta-text { display: flex; flex-direction: column; gap: var(--space-2xs); max-width: var(--shell-narrow); }
.band-cta-title { color: var(--color-white); }
.band-cta-note { color: var(--color-footer-text); }

/* ============================================================
   Footer (built once in js/components.js)
   ============================================================ */
.site-footer {
  display: flex;
  flex-direction: column;
  background-color: var(--color-navy-dark);
  color: var(--color-footer-text);
  margin-top: auto;
}
.footer-main {
  width: var(--basis-full);
  max-width: var(--shell-max);
  margin-left: auto;
  margin-right: auto;
  padding: var(--space-2xl) var(--space-md);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--gap-md);
}
.footer-col { flex: 1 1 var(--basis-footer); display: flex; flex-direction: column; gap: var(--space-sm); }
.footer-col-wide { flex: 1 1 var(--basis-footer-wide); }
/* The footer column is a flex column, so the logo has to opt out of the
   default stretch or it is pulled to the column width and squashed. */
.footer-logo {
  align-self: flex-start;
  height: var(--logo-footer);
  width: var(--logo-footer);
  object-fit: contain;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-2xs);
}
.footer-about { font-size: var(--text-base); color: var(--color-footer-text); }
.footer-heading {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-white);
}
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2xs); }
.footer-link { color: var(--color-footer-text); font-size: var(--text-base); }
.footer-link:hover { color: var(--color-sun); text-decoration: none; }
.footer-bar { border-top: var(--line-hair) solid var(--color-footer-line); display: flex; flex-direction: column; }
.footer-bar-inner {
  width: var(--basis-full);
  max-width: var(--shell-max);
  margin-left: auto;
  margin-right: auto;
  padding: var(--space-md);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  font-size: var(--text-sm);
}

/* ============================================================
   Tablet
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --text-5xl: 2.5rem;
    --text-4xl: 2.125rem;
    --text-3xl: 1.75rem;
    --text-stat: 2.25rem;
    --hero-min: var(--hero-min-sm);
    --space-3xl: 3.5rem;
    --logo-height: var(--logo-height-md);
  }
  .nav-panel { gap: var(--space-md); }
  .nav-links { gap: var(--space-sm); }
  .nav-wordmark { display: none; }
  .stat-item { flex: 1 1 var(--basis-half); }
  .card-service { flex: 1 1 var(--basis-half); }
  .card-person { flex: 1 1 var(--basis-half); }
  .gallery-item { flex: 0 1 var(--basis-half); }
  .gallery-item-wide { flex: 0 1 var(--basis-full); }
  .footer-col { flex: 1 1 var(--basis-half); }
  .footer-col-wide { flex: 1 1 var(--basis-full); }
  .contact-split { flex-direction: column; }
}

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 720px) {
  :root {
    --text-5xl: 2.0625rem;
    --text-4xl: 1.875rem;
    --text-3xl: 1.5rem;
    --text-2xl: 1.375rem;
    --text-xl: 1.1875rem;
    --text-lg: 1.0625rem;
    --text-stat: 2rem;
    --space-3xl: 2.75rem;
    --space-2xl: 2.25rem;
    --media-event: 200px;
    --media-project: 210px;
    --media-story: var(--media-story-sm);
    --media-card: var(--media-card-sm);
    --media-gallery: 280px;
    --media-gallery-tall: 280px;
    --avatar-size: 64px;
    --icon-tile: var(--icon-tile-sm);
    --logo-height: var(--logo-height-sm);
    --pagehead-min: 200px;
  }

  .nav-bar { flex-wrap: wrap; row-gap: var(--space-xs); min-height: auto; }
  .nav-wordmark { display: flex; }
  .nav-wordmark-sub { display: none; }
  .nav-toggle { display: flex; }
  .nav-panel {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: var(--basis-full);
    gap: var(--space-sm);
    padding-top: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-top: var(--line-hair) solid var(--color-line);
  }
  .nav-panel-open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link { padding: var(--space-xs) var(--space-2xs); border-bottom: var(--line-hair) solid var(--color-line); }
  .nav-link-active { border-bottom-color: var(--color-crimson); }
  .nav-actions { width: var(--basis-full); }
  .nav-actions .button-primary { width: var(--basis-full); }

  .hero-inner { gap: var(--space-sm); }
  .hero-actions { flex-direction: column; align-items: stretch; width: var(--basis-full); }

  .stat-item { flex: 1 1 var(--basis-full); flex-direction: row; align-items: center; gap: var(--space-sm); }
  .stat-text { flex: 1 1 auto; }

  .card-info { flex: 1 1 var(--basis-full); padding: var(--space-md); }
  .card-service { flex: 1 1 var(--basis-full); padding: var(--space-md); }
  .card-person { flex: 1 1 var(--basis-full); }

  .card-event,
  .card-project,
  .card-flip { flex-direction: column; gap: var(--space-sm); }
  .card-body { padding-left: var(--space-2xs); padding-right: var(--space-2xs); }

  .gallery-item { flex: 0 1 var(--basis-full); }
  .gallery-item-wide { flex: 0 1 var(--basis-full); }

  .field-row { flex-direction: column; }
  .form-mock { padding: var(--space-md); }

  .band-cta { flex-direction: column; align-items: stretch; padding: var(--space-lg); }
  .band-cta .button-light { width: var(--basis-full); }

  .footer-col { flex: 1 1 var(--basis-full); }
  .footer-bar-inner { flex-direction: column; align-items: flex-start; }
}
