/* ==========================================================================
   EHRCA — "Redux" redesign concept
   Heritage palette + clearer wayfinding. All tokens in :root.
   ========================================================================== */
:root {
  --navy:      #103551;   /* telegraph navy (chrome)      */
  --navy-deep: #0b2740;
  --navy-2:    #1c5079;
  --paper:     #f2ebdd;   /* warm archival background     */
  --card:      #fffdf8;   /* warm white card              */
  --ink:       #2a2926;   /* body text                    */
  --muted:     #6d6a61;
  --red:       #bd1f36;   /* heritage accent              */
  --red-deep:  #971627;
  --line:      #e4dccb;   /* warm hairline                */
  --gold:      #c8a24b;

  --serif:   "Petrona", Georgia, serif;
  --sans:    "Montserrat", "Trebuchet MS", Helvetica, sans-serif;
  --display: "Amaranth", Helvetica, Arial, sans-serif;

  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-size: 18px; line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-decoration: none; }
a:hover { color: var(--red); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--sans); font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--red); font-weight: 600; margin: 0 0 .6em;
}

/* ---------- Top bar ------------------------------------------------------ */
.topbar { background: var(--navy); position: sticky; top: 0; z-index: 40; }
.topbar .wrap { display: flex; align-items: center; gap: 18px; padding: 12px 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { color: inherit; }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-name {
  font-family: var(--display); color: #fff; line-height: 1.05;
  font-size: 17px; letter-spacing: .3px;
}
.brand-name small { display: block; font-family: var(--sans);
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-top: 3px; }
.mainnav { margin-left: auto; }
.mainnav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.mainnav a {
  display: block; color: #dbe6ef; font-family: var(--sans); font-size: 14.5px;
  padding: 10px 14px; border-radius: 4px;
}
.mainnav a:hover, .mainnav a.active { background: var(--navy-2); color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0;
  color: #fff; font-size: 26px; cursor: pointer; padding: 4px 8px; }

/* ---------- Hero --------------------------------------------------------- */
.hero { position: relative; color: #fff; }
.hero-img { height: 62vh; min-height: 420px; max-height: 620px; width: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,25,40,.35) 0%, rgba(8,25,40,.78) 100%); }
.hero-inner {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  max-width: var(--wrap); margin: 0 auto; padding: 0 24px 56px;
}
.hero h1 {
  font-family: var(--display); font-weight: 400; margin: 0 0 .3em;
  font-size: clamp(30px, 5vw, 54px); line-height: 1.05; max-width: 16ch;
  text-shadow: 0 2px 18px rgba(0,0,0,.4);
}
.hero p { font-family: var(--serif); font-size: clamp(17px, 2.2vw, 22px);
  max-width: 46ch; margin: 0 0 1.4em; color: #f2ede2; }
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 15px;
  background: var(--red); color: #fff !important; padding: 13px 26px; border-radius: 3px;
}
.btn:hover { background: var(--red-deep); color: #fff !important; }
.btn.ghost { background: transparent; border: 1.5px solid rgba(255,255,255,.7); }
.btn.ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- Section scaffolding ----------------------------------------- */
section { padding: 62px 0; }
.section-head { max-width: 620px; margin: 0 0 34px; }
.section-head h2 {
  font-family: var(--display); font-weight: 400; color: var(--navy);
  font-size: clamp(26px, 3.4vw, 36px); line-height: 1.1; margin: 0 0 .3em;
}
.section-head p { color: var(--muted); margin: 0; }
.lead { font-size: 20px; max-width: 60ch; }
.lead a { font-weight: 500; }

/* ---------- Welcome band ------------------------------------------------- */
.welcome { background: var(--card); border-top: 3px solid var(--red); }

/* ---------- Feature tiles ------------------------------------------------ */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tile {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .16s ease, box-shadow .16s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(16,53,81,.16); color: inherit; }
.tile-img { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; }
.tile-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.tile-body h3 { font-family: var(--sans); font-weight: 600; color: var(--navy);
  font-size: 18px; margin: 0; }
.tile-body p { margin: 0; font-size: 15.5px; color: var(--muted); line-height: 1.5; }
.tile-more { margin-top: auto; font-family: var(--sans); font-size: 13.5px;
  font-weight: 600; color: var(--red); padding-top: 8px; }

/* ---------- Book feature strip ------------------------------------------ */
.feature-strip { background: var(--navy); color: #eef4f8; }
.feature-strip .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.feature-strip .eyebrow { color: var(--gold); }
.feature-strip h2 { font-family: var(--display); font-weight: 400; color: #fff;
  font-size: clamp(24px, 3vw, 32px); margin: 0 0 .4em; }
.feature-strip p { color: #cddae4; margin: 0 0 1.4em; }
.price-flag { display: inline-block; background: var(--red); color: #fff;
  font-family: var(--sans); font-weight: 600; font-size: 14px; padding: 6px 14px;
  border-radius: 3px; margin-right: 12px; }

/* ---------- Photo strip -------------------------------------------------- */
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.photo-strip a { position: relative; overflow: hidden; border-radius: 6px; display: block; }
.photo-strip img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%;
  transition: transform .3s ease; }
.photo-strip a:hover img { transform: scale(1.06); }
.photo-strip figcaption { position: absolute; left: 0; right: 0; bottom: 0;
  font-family: var(--sans); font-size: 12px; color: #fff; padding: 16px 10px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,.72)); opacity: 0; transition: opacity .2s; }
.photo-strip a:hover figcaption { opacity: 1; }

/* ---------- About -------------------------------------------------------- */
.about { background: var(--card); }
.about .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 46px; align-items: start; }
.about blockquote { margin: 0; font-family: var(--serif); font-style: italic;
  font-size: 21px; line-height: 1.5; color: var(--navy); border-left: 4px solid var(--red);
  padding: 4px 0 4px 24px; }

/* ---------- Footer ------------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: #b9c9d6;
  font-family: var(--sans); font-size: 14px; padding: 48px 0 30px; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; margin: 0 0 14px; }
.site-footer a { color: #d7e3ec; display: block; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.footer-brand { font-family: var(--display); color: #fff; font-size: 18px; margin: 0 0 10px; }
.footer-note { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px;
  padding-top: 18px; color: #8ba0b0; font-size: 12.5px; }

/* ---------- Section hub pages (card index) ------------------------------ */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 26px; }

/* ---------- Content pages ----------------------------------------------- */
.page-head { background: var(--navy); color: #fff; padding: 42px 0 38px; }
.page-head .eyebrow { color: var(--gold); }
.page-head .crumb { font-family: var(--sans); font-size: 13px; color: #9db4c6; margin: 0 0 12px; }
.page-head .crumb a { color: #9db4c6; }
.page-head .crumb a:hover { color: #fff; }
.page-head h1 { font-family: var(--display); font-weight: 400; color: #fff;
  font-size: clamp(28px, 4vw, 42px); line-height: 1.1; margin: 0; }

.article { padding: 48px 0 64px; background: var(--paper); }
.article h2 { font-family: var(--sans); font-weight: 600; color: var(--navy);
  font-size: 24px; line-height: 1.25; margin: 1.8em 0 .5em; max-width: 62ch; }
.article h3 { font-family: var(--sans); font-weight: 600; color: var(--navy);
  font-size: 19px; margin: 1.5em 0 .4em; max-width: 62ch; }
.article p { max-width: 68ch; margin: 0 0 1.1em; }
.article ul:not(.gallery), .article ol { max-width: 66ch; margin: 0 0 1.1em; padding-left: 1.4em; }
.article li { margin: .2em 0; }
.article a { color: var(--navy-2); }
.article a:hover { color: var(--red); }
.article strong { color: var(--ink); }
.article hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; max-width: 68ch; }
.article blockquote { max-width: 64ch; border-left: 4px solid var(--red);
  margin: 1.4em 0; padding: .3em 0 .3em 22px; color: var(--muted); font-style: italic; }
.article figure { margin: 1.6em 0; }
.article figure img { border-radius: 6px; border: 1px solid var(--line); }
.article figcaption { font-family: var(--sans); font-size: 13px; color: var(--muted); margin-top: 8px; }
.article img.inline-img { border-radius: 6px; margin: 0 0 1em; border: 1px solid var(--line); }

/* themed photo gallery grid */
.gallery { list-style: none; margin: 1.6em 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.gallery li { margin: 0; }
.gallery a { display: block; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px;
  border: 1px solid var(--line); transition: transform .15s ease, box-shadow .15s ease; }
.gallery a:hover img { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(16,53,81,.2); }
.gallery .caption { display: block; margin-top: 6px; font-family: var(--sans);
  font-size: 13px; color: var(--muted); }

.video-embed { position: relative; padding-top: 56.25%; margin: 1.6em 0; background: #000; border-radius: 6px; overflow: hidden; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.img-missing { display: flex; align-items: center; justify-content: center; min-height: 150px;
  padding: 12px; text-align: center; background: #ece4d4; border: 1px dashed #c7bda8;
  color: var(--muted); font-family: var(--sans); font-size: 13px; border-radius: 6px; }
.gallery .img-missing { aspect-ratio: 4 / 3; min-height: 0; }

/* ---------- Responsive --------------------------------------------------- */
@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .feature-strip .wrap, .about .wrap { grid-template-columns: 1fr; gap: 26px; }
  .photo-strip { grid-template-columns: repeat(3, 1fr); }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .mainnav { display: none; width: 100%; }
  .mainnav.open { display: block; }
  .mainnav ul { flex-direction: column; width: 100%; }
  .nav-toggle { display: block; }
  .topbar .wrap { flex-wrap: wrap; }
  .tiles, .photo-strip { grid-template-columns: repeat(2, 1fr); }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .hero-img { height: 70vh; }
}
