/* =========================================================
   VIA BLUFFS CONSERVANCY — shared styles for every page
   ---------------------------------------------------------
   To change the site's colors, edit ONLY the values in the
   ":root" block right below. Every page uses these.
   ========================================================= */

:root {
  /* BRAND COLORS */
  --navy: #0E153E;          /* navy (sampled from the logo ring) */
  --green: #06402B;         /* official hunter green — used for buttons */
  --green-light: #E6EFE9;   /* soft green tint for highlights */
  --sun: #DC9826;           /* logo sun — used for the keyboard focus outline */
  --sand: #F4D6B3;          /* logo sky */
  --sky: #E8F2FA;           /* pale sky blue (not currently used) */
  --sand-light: #F8EBDA;    /* light tint of the logo sky (not currently used) */
  --green-sage: #7EAB94;    /* sage green — priority tiles */
  --green-ink: #0F2A1E;     /* very dark green text for the sage tiles */

  /* NEUTRALS */
  --cream: #F8F5EF;         /* cream page sections */
  --cream-card: #FBF8F2;    /* cream boxes that sit on navy sections */
  --card-bg: #FFFFFF;       /* white boxes that sit on cream sections */
  --text: #1A1A1A;          /* main text: near-black, high contrast */
  --text-soft: #4A4A4A;     /* secondary text */
  --border: #E2DDD3;        /* thin box outlines */

  /* TEXT WEIGHT — 400 is regular. Headings use 500 (medium, not bold).
     Set --heading-weight to 400 for no emphasis at all. */
  --heading-weight: 500;

  /* SHAPE & SPACING */
  --radius: 16px;           /* roundness of the boxes */
  --max-width: 1100px;      /* widest the content gets */
}

/* ---------- Basics ---------- */
* { box-sizing: border-box; }

html { font-size: 112.5%; } /* 18px base: larger text for easy reading */

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;          /* body text size */
  line-height: 1.55;        /* body line spacing */
}

img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; }  /* Montserrat everywhere */

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; font-weight: var(--heading-weight); }
strong, b { font-weight: var(--heading-weight); }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); color: var(--navy); }
h3 { font-size: 1.15rem; color: var(--navy); }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Clear outline when someone tabs through with the keyboard */
a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Hidden "skip to content" link for screen readers / keyboard users */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: #fff; color: var(--navy); padding: 12px 16px; z-index: 10;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Header & navigation ---------- */
.site-header { background: var(--navy); color: #fff; border-bottom: 1px solid rgba(255,255,255,0.12); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  display: flex; align-items: center; gap: 12px;
  color: #fff; text-decoration: none;
  font-weight: 500; letter-spacing: 0.04em; line-height: 1.1;
}
.logo img { height: 60px; width: auto; }

.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.main-nav a {
  display: block;
  color: #fff; text-decoration: none; font-weight: 500;
  padding: 10px 14px; border-radius: 10px;
}
.main-nav a:hover { background: rgba(255,255,255,0.12); }
.main-nav a[aria-current="page"] { background: rgba(255,255,255,0.18); }

/* ---------- Buttons ---------- */
.button {
  display: inline-block;
  background: var(--green); color: #fff;
  font-weight: 500; text-decoration: none;
  padding: 14px 26px; border-radius: 999px;
  border: 2px solid var(--green);
}
.button:hover { filter: brightness(1.35); }
.button-outline { background: transparent; color: var(--green); }
.main-nav .button { padding: 10px 22px; margin-left: 6px; }
.site-header .button, .site-footer .button, .hero .button { border-color: rgba(255,255,255,0.55); }
.main-nav .button:hover { background: var(--green); }
/* Donate buttons (header and footer): wider, with a sand border to match the section labels */
.button-donate { border-color: var(--sand) !important; padding-left: 40px !important; padding-right: 40px !important; border-radius: 10px; }

/* ---------- Hero (big banner at top of a page) ---------- */
.hero {
  color: #fff;
  /* HERO IMAGE: each page picks its photo with a class (see below).
     The dark navy layer on the left keeps the white text readable. */
  background:
    linear-gradient(90deg, rgba(14,21,62,0.88) 0%, rgba(14,21,62,0.55) 55%, rgba(14,21,62,0.2) 100%),
    var(--hero-image, none) center / cover no-repeat,
    var(--navy);
  padding: 110px 0;
}
.hero p { max-width: 55ch; font-size: 1.1rem; }

/* Which photo each page uses — to change one, swap the file name */
.hero-home     { --hero-image: url("../images/hero-home.jpg"); }
.hero-contact  { --hero-image: url("../images/hero-contact.jpg"); }
.hero-small { padding: 64px 0; }

/* Banner with the photo beside the text (Security page) */
.hero-split {
  display: grid; gap: 40px; align-items: center;
  grid-template-columns: 1.2fr 1fr;
}
.hero-photo {
  width: 100%; aspect-ratio: 1 / 1; max-height: 440px; object-fit: cover; object-position: 45% center;
  border-radius: var(--radius);
  border: 4px solid rgba(255,255,255,0.15);
}
.hero .eyebrow {
  display: inline-block; font-weight: 500; letter-spacing: 0.12em;
  font-size: 0.85rem; text-transform: uppercase;
  background: rgba(255,255,255,0.15); padding: 6px 14px; border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 { max-width: 18ch; }

/* Home banner: photo in original colors, smaller headline.
   A soft text shadow keeps the words readable without tinting the photo. */
.hero.hero-clear { background: var(--hero-image) center / cover no-repeat, var(--navy); padding: 140px 0; }
.hero-clear h1 {
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  max-width: 20ch;
  text-shadow: 0 2px 12px rgba(0,0,0,0.55);
}

/* ---------- Page sections ---------- */
.section { padding: 64px 0; }
.section-cream { background: var(--cream); }

/* Navy sections: white text, cream boxes */
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2 { color: #fff; }
.section-navy .label { color: var(--sand); }
.section-navy .section-intro { color: rgba(255,255,255,0.85); }
.section-navy .card,
.section-navy .numbered-list li { background: var(--cream-card); color: var(--text); border-color: transparent; }
.section-navy .value-card { border-top-color: var(--green); }  /* keep the green strip */

/* Hunter green sections (home page): same idea as navy */
.section-green { background: var(--green); color: #fff; }
.section-green h2 { color: #fff; }
.section-green .label { color: var(--sand); }
.section-green .section-intro { color: rgba(255,255,255,0.88); }
.section-green .card,
.section-green .numbered-list li { background: var(--cream-card); color: var(--text); border-color: transparent; }

/* Thin-outline boxes (home page values): see-through with a fine white edge */
.section-green .card-outline,
.section-navy .card-outline {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.9);
}
.card-outline h3 { color: #fff; text-transform: uppercase; letter-spacing: 0.06em; font-size: 1rem; }

/* Pale sky blue rows (home page priorities) with large green numbers, no circles */
.list-sky li { background: var(--sky) !important; }
.numbered-list.list-sky .num {
  background: none; width: auto; height: auto; min-width: 1.4em;
  color: var(--green); font-size: 2rem; line-height: 1;
}

/* Our Vision (home page): large statement + two columns, no box */
.vision-lead {
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  line-height: 1.45;
  color: #fff;
  max-width: 34ch;
  padding-left: 24px;
  border-left: 3px solid var(--sand);
  margin-bottom: 40px;
}
.vision-columns {
  display: grid; gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  color: rgba(255,255,255,0.82);
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.vision-columns p { margin: 0; }
.section-intro { max-width: 60ch; margin-bottom: 32px; color: var(--text-soft); }

/* Small label that sits above a section heading */
.label {
  display: inline-block; color: var(--green); font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.8rem;
  margin-bottom: 8px;
}

/* ---------- Cards (the soft rounded boxes) ---------- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

/* Value card: green strip on top */
.value-card { border-top: 6px solid var(--green); }
.value-card h3 { text-transform: uppercase; letter-spacing: 0.05em; }

/* Two side-by-side boxes, stacked on phones */
.split {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

/* Highlighted box (used for the vision statement) */
.callout {
  background: var(--card-bg);
  border: none;
  border-left: 6px solid var(--green);
}

/* Numbered list shown as rows of boxes */
.numbered-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.numbered-list li {
  display: flex; align-items: center; gap: 18px;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 22px; font-weight: 500;
}
.numbered-list .num {
  flex: 0 0 auto;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: grid; place-items: center; font-weight: 500;
}

/* Price boxes (Security page) */
.price { font-size: 2.4rem; font-weight: 500; color: var(--green); line-height: 1; margin-bottom: 8px; }

/* Contact details */
.contact-item { display: flex; flex-direction: column; gap: 4px; }
.contact-item .label { margin: 0; }
.contact-item a, .contact-item span { font-size: 1.2rem; font-weight: 500; word-break: break-word; }

/* Placeholder notes — delete these once real content is in */
.placeholder {
  background: #FFF6D6; border: 2px dashed #D9B44A; color: #6B5300;
  border-radius: 12px; padding: 14px 18px; font-weight: 500;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #fff; padding: 40px 0; border-top: 1px solid rgba(255,255,255,0.15); }
.footer-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: center;
}
.site-footer a { color: #fff; }
.site-footer p { margin: 0; }

/* ---------- Icons (simple line drawings, color follows the text) ---------- */
.icon {
  width: 26px; height: 26px; flex: 0 0 auto;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
/* Value titles: icon on the left, slightly larger text */
.card-outline h3.icon-title {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.1rem;
}
.icon-title .icon { color: var(--sand); }
/* When boxes sit side by side, every title starts on the top line and
   gets room for two lines, so one-word titles leave a blank line below
   and all the paragraphs start at the same height. */
@media (min-width: 641px) {
  .card-outline h3.icon-title { min-height: 2.4em; align-items: flex-start; }
  .card-outline h3.icon-title .icon { margin-top: -2px; }  /* line icon up with first line */
}

/* ---------- Five priorities: tiles with a large number ---------- */
.priority-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
}
.priority-grid li {
  background: var(--green-sage);
  border-radius: var(--radius);
  padding: 24px 22px 26px;
  display: flex; flex-direction: column; gap: 14px;
}
.priority-top {
  display: flex; justify-content: space-between; align-items: center;
}
.priority-num { font-size: 2.2rem; line-height: 1; color: var(--green); font-weight: var(--heading-weight); }
.priority-grid p { margin: 0; color: var(--green-ink); font-weight: 500; line-height: 1.4; }

/* ---------- Security page ---------- */
/* Banner headline sized like the home page */
.hero-split h1 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }

/* Three tiles in a row instead of five */
.priority-grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); margin-bottom: 40px; }

/* Two photos side by side, stacked on phones */
.photo-pair {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}
.photo-card { margin: 0; }
.photo-card img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.25);
}
.photo-card figcaption { margin-top: 10px; font-size: 0.85rem; color: rgba(255,255,255,0.8); }

/* Prices inside outline boxes */
.price-card .price { color: var(--sand); }
.price-card p { color: #fff; font-size: 1.05rem; }

/* A line of text with a button under a section */
.section-actions {
  margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px;
  color: rgba(255,255,255,0.88);
}
.section-actions p { margin: 0; }
/* Centered version: text on top (2px larger), button underneath */
.section-actions-center { flex-direction: column; justify-content: center; text-align: center; }
.section-actions-center p { font-size: 18px; }

/* Zoom recording + slides, side by side (stacked on phones) */
.media-pair {
  display: grid; gap: 28px; max-width: 900px; margin: 0 auto;  /* centered on the page */
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}
.media-card { display: flex; flex-direction: column; align-items: center; gap: 16px; }  /* button centered under its picture */
.media-thumb {
  display: block; width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255,255,255,0.3);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.media-thumb:hover { transform: translateY(-2px); border-color: var(--sand); }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
/* Video tile: navy box with a play symbol */
.play-thumb {
  background: var(--navy); color: #fff; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.play-icon { width: 64px; height: 64px; }
.play-icon circle { fill: none; stroke: var(--sand); stroke-width: 1.2; }
.play-icon path { fill: var(--sand); }
.play-thumb span { font-size: 1rem; letter-spacing: 0.04em; }

/* Sand-edged buttons (same look as Donate) */
.button-sand { border-color: var(--sand) !important; border-radius: 10px; padding-left: 32px; padding-right: 32px; }

/* ---------- Contact page ---------- */
/* Banner photo recolored to the site's navy/green so it reads cool, not fiery */
.hero.hero-cool {
  background:
    linear-gradient(rgba(14,21,62,0.45), rgba(14,21,62,0.45)),
    linear-gradient(120deg, var(--navy), var(--green)),
    var(--hero-image) center / cover no-repeat,
    var(--navy);
  background-blend-mode: normal, color, normal, normal;
}
.hero-cool h1 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }

/* Details on the left, photo on the right; stacked on phones */
.contact-layout {
  display: grid; gap: 40px; align-items: center;
  grid-template-columns: 1.1fr 1fr;
}
.contact-col { display: flex; flex-direction: column; gap: 8px; }  /* sits centered beside the photo */
.contact-email { color: var(--sand); font-size: clamp(1.2rem, 2vw, 1.4rem); overflow-wrap: anywhere; }
.contact-photo img { aspect-ratio: 4 / 3; }

/* ---------- Tablets and phones: stack the banner photo under the text ---------- */
@media (max-width: 860px) {
  .hero-split { grid-template-columns: 1fr; gap: 28px; }
  .contact-layout { grid-template-columns: 1fr; }
}

/* ---------- Phones ---------- */
@media (max-width: 640px) {
  .hero, .hero.hero-clear { padding: 64px 0; }
  .section { padding: 48px 0; }
  .card { padding: 22px; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .main-nav .button { margin-left: 0; }
}
