/* Ship Hector Descendants Project — styles matching the original Tahoe (DNN) design */

:root {
  --navy: #1e344c;        /* header */
  --blue: #0184ca;        /* links, active nav, titles, buttons */
  --blue-dark: #016aa3;
  --ink: #777777;         /* body text */
  --heading: #333333;
  --dark-band: #383f48;   /* full-width dark section */
  --footer-bg: #0e0e0e;
  --line: #e5e5e5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 14px;
  line-height: 22px;
  color: var(--ink);
  background: #fff;
}

h1, h2, h3, h4 { font-family: 'Open Sans', Arial, sans-serif; }
h1 { color: var(--blue); font-size: 36px; font-weight: 500; line-height: 1.25; margin: 26px 0 18px; }
h2 { color: var(--heading); font-size: 28px; font-weight: 300; line-height: 1.3; margin: 30px 0 14px; }
h3 { color: var(--heading); font-size: 20px; font-weight: 400; margin: 22px 0 10px; }

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

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

.container { max-width: 1140px; margin: 0 auto; padding: 0 15px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 8px 16px; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---- Header ---- */
.site-header { background: var(--navy); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 120px; padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { width: 300px; height: auto; }

.nav-toggle {
  display: none; background: none; border: 1px solid #ffffff55; border-radius: 4px;
  padding: 9px 10px; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 4px 0; }

.site-nav { }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.nav-list > li { position: relative; }
.nav-list > li > a {
  display: block; padding: 8px 11px; color: #fff; text-decoration: none;
  font-size: 13px; font-weight: 700; text-transform: uppercase;
}
.nav-list > li > a:hover { color: #cfe6f5; text-decoration: none; }
.nav-list > li.active > a { background: var(--blue); color: #fff; border-radius: 3px; }
.caret { font-size: 0.7em; }

.dropdown {
  display: none; position: absolute; left: 0; top: 100%; z-index: 50;
  list-style: none; margin: 0; padding: 6px 0; min-width: 230px;
  background: var(--navy); box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}
.has-dropdown:hover .dropdown, .has-dropdown.dropdown-open .dropdown { display: block; }
.dropdown a { display: block; padding: 9px 16px; color: #fff; text-decoration: none; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.dropdown a:hover { background: var(--blue); text-decoration: none; }

/* ---- Page banner (with optional overlay text, as on the old home page) ---- */
.page-banner { position: relative; line-height: 0; }
.page-banner img { width: 100%; height: clamp(220px, 30vw, 440px); object-fit: cover; }
.banner-overlay {
  position: absolute; inset: 0; display: flex; align-items: flex-end;
  line-height: 1.3; pointer-events: none;
}
.banner-overlay .container { width: 100%; padding-bottom: 34px; }
.word-rotate { position: relative; display: block; min-height: 52px; }
.word-rotate span {
  position: absolute; left: 15px; right: 15px; bottom: 0; opacity: 0;
  transition: opacity 0.6s ease;
  color: #fff; font-size: 38px; font-weight: 300;
  text-shadow: 0 1px 4px rgba(0,0,0,0.55);
}
.word-rotate span.show { opacity: 1; }

/* ---- Main ---- */
.site-main { padding: 4px 0 40px; }
.lead { font-size: 14px; }

.section-title-upper { color: var(--blue); font-size: 28px; font-weight: 400; text-transform: uppercase; }

.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }

.figure-card { margin: 1.2em 0; text-align: center; }
.figure-card figcaption { font-size: 12px; color: var(--ink); margin-top: 8px; line-height: 18px; }

.btn {
  display: inline-block; background: var(--blue); color: #fff !important;
  padding: 9px 22px; border: none; border-radius: 3px; cursor: pointer;
  text-decoration: none !important; font-weight: 600; font-size: 14px;
  font-family: inherit;
}
.btn:hover { background: var(--blue-dark); }
.btn-outline {
  display: inline-block; border: 2px solid var(--blue); color: var(--blue) !important;
  padding: 7px 20px; border-radius: 3px; text-decoration: none !important; font-weight: 600; font-size: 14px;
}
.btn-outline:hover { background: var(--blue); color: #fff !important; }

/* ---- Newsletter CTA box (home) ---- */
.newsletter-cta {
  border: 1px solid var(--line); text-align: center;
  padding: 26px 20px; margin: 30px 0;
}
.newsletter-cta a { font-size: 30px; font-weight: 300; line-height: 1.35; }

/* ---- Full-width dark band (home: replica story) ---- */
.dark-band {
  background: var(--dark-band); color: #b7bdc4;
  margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  padding: 44px 0 48px; margin-top: 40px;
}
.dark-band h2, .dark-band h3 { color: #fff; font-size: 30px; font-weight: 400; margin-top: 0; }
.dark-band a { color: #9ed3f2; }

/* ---- Search box (passenger list) ---- */
.search-wrap { margin: 4px 0 10px; }
.search-wrap label { color: var(--heading); font-weight: 700; margin-right: 8px; }
.search-wrap input {
  width: 100%; max-width: 340px; padding: 6px 12px; font-size: 14px;
  border: 1px solid #ccc; border-radius: 3px; background: #fff;
  font-family: inherit; display: inline-block; vertical-align: middle;
}
.search-tip { font-size: 12px; color: var(--ink); margin-top: 6px; }
.search-count { font-size: 13px; color: var(--heading); margin: 6px 0; }

/* ---- Passenger family groups (flat, like the old page) ---- */
.family {
  border-top: 1px solid var(--line); padding: 22px 0 26px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 50px;
}
.family:first-child { border-top: none; }
.family h2 { grid-column: 1 / -1; margin: 0 0 16px; font-size: 30px; font-weight: 300; color: var(--heading); }
.family-label { color: var(--heading); }
.family-people { display: flex; flex-wrap: wrap; gap: 6px 44px; align-content: start; }
.family-photos { grid-column: 1 / -1; }
.person { min-width: 180px; }
.person h3 {
  margin: 6px 0 2px; font-size: 14px; font-weight: 700; color: var(--heading);
}
.p-name { margin: 0; font-weight: 400; color: var(--ink); }
.p-dates { margin: 0; font-size: 13px; color: var(--ink); }
.person-children ul { margin: 2px 0 0; padding-left: 18px; }
.person-children li { font-size: 13px; }
.family-notes h3, .family-photos h3 {
  font-size: 14px; font-weight: 700; color: var(--heading); margin: 6px 0 4px;
}
.family-notes p { margin: 0 0 10px; font-size: 13px; line-height: 20px; }
.family-photos { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; }
.family-photos figure { margin: 0; max-width: 200px; text-align: center; }
.family-photos img { max-height: 160px; width: auto; border: 1px solid var(--line); }
.family-photos figcaption { font-size: 12px; color: var(--ink); margin-top: 5px; line-height: 16px; }

/* ---- Distinguished descendants ---- */
.book-promo {
  border: 1px solid var(--line); background: #f7f9fb;
  padding: 22px 26px; margin: 20px 0 26px;
}
.book-promo h2 { margin: 0 0 8px; font-size: 24px; }
.book-promo p { margin: 6px 0; }

.profile {
  display: flex; gap: 24px; align-items: flex-start;
  border-top: 1px solid var(--line); padding: 20px 0;
}
.profile:first-of-type { border-top: none; }
.profile-photo { width: 110px; flex-shrink: 0; border: 1px solid var(--line); }
.profile-body h2 { margin: 0; font-size: 20px; font-weight: 700; color: var(--blue); }
.profile-years { margin: 1px 0 8px; color: var(--ink); font-size: 13px; }
.profile-desc { margin: 4px 0; font-size: 14px; }
.profile-desc strong { color: var(--heading); }
.profile-body > p { margin: 5px 0; }
.profile-links { font-size: 13px; }
.profile-links .ref { font-style: italic; }

/* ---- News ---- */
.news-item {
  display: flex; gap: 24px; align-items: flex-start;
  border-top: 1px solid var(--line); padding: 20px 0;
}
.news-item:first-of-type { border-top: none; }
.news-thumb { width: 190px; flex-shrink: 0; }
.news-body h2 { margin: 0 0 6px; font-size: 20px; font-weight: 700; color: var(--blue); }
.news-body p { margin: 4px 0; }

.link-list { list-style: none; padding: 0; }
.link-list li { padding: 4px 0; }

.newsletter-cols { columns: 3 220px; column-gap: 40px; }
.newsletter-cols .link-list { margin: 0; }

/* ---- Photo gallery ---- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px 18px; margin: 24px 0; }
.gallery figure { margin: 0; text-align: center; }
.gallery img { width: 100%; height: 210px; object-fit: cover; border: 1px solid var(--line); }
.gallery figcaption { font-size: 12px; color: var(--ink); margin-top: 6px; line-height: 16px; }

/* ---- Lightbox ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 14, 20, 0.92);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lb-figure {
  margin: 0; max-width: calc(100vw - 130px); max-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.lb-img {
  max-width: 100%; max-height: calc(100vh - 110px);
  width: auto; height: auto; box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
.lb-caption { color: #e8eef5; font-size: 14px; line-height: 20px; margin-top: 12px; }
.lb-counter { color: #8a97a5; font-size: 12px; margin-top: 4px; }
.lb-close, .lb-prev, .lb-next {
  position: fixed; z-index: 201; background: none; border: none; cursor: pointer;
  color: #fff; font-family: inherit; padding: 10px 16px; line-height: 1;
}
.lb-close { top: 10px; right: 14px; font-size: 40px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 34px; }
.lb-prev { left: 6px; }
.lb-next { right: 6px; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: var(--blue); }
@media (max-width: 600px) {
  .lb-figure { max-width: calc(100vw - 20px); }
  .lb-img { max-height: calc(100vh - 150px); }
  .lb-prev, .lb-next {
    top: auto; bottom: 12px; transform: none;
    background: rgba(255,255,255,0.12); border-radius: 4px;
  }
  .lb-prev { left: 14px; }
  .lb-next { right: 14px; }
}

/* ---- Forms ---- */
.form-grid { max-width: 560px; }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-weight: 700; color: var(--heading); margin-bottom: 4px; font-size: 13px; }
.form-field input, .form-field textarea {
  width: 100%; padding: 8px 12px; font-size: 14px; font-family: inherit;
  border: 1px solid #ccc; border-radius: 3px; background: #fff; color: #555;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--blue); }
.form-msg { padding: 12px 16px; border-radius: 3px; margin: 1em 0; }
.form-msg.ok { background: #e7f2e4; border: 1px solid #a8cba0; color: #2c5426; }
.form-msg.err { background: #f7e5e3; border: 1px solid #d6a09a; color: #7d2620; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ---- Footer ---- */
.site-footer { background: var(--footer-bg); color: #777; margin-top: 40px; font-size: 12.6px; }
.footer-inner { padding: 30px 15px 12px; text-align: center; }
.footer-inner p { margin: 4px 0; }
.site-footer a { color: var(--blue); }
.site-footer a:hover { color: #9ed3f2; }
.footer-nav { margin-bottom: 10px; }
.footer-nav a { margin: 0 10px; }
.footer-bottom {
  border-top: 1px solid #222; padding: 12px 0 18px; text-align: center; color: #666;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .header-inner { min-height: 0; }
  .nav-toggle { display: block; }
  .site-nav { display: none; background: var(--navy); }
  .site-nav.open { display: block; padding-bottom: 10px; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .dropdown { position: static; box-shadow: none; padding-left: 16px; }
  .two-col { grid-template-columns: 1fr; }
  .family { grid-template-columns: 1fr; }
  .brand-logo { width: 220px; }
  .news-item, .profile { flex-direction: column; }
  .news-thumb { width: 100%; max-width: 320px; }
  .word-rotate span { font-size: 24px; }
  .word-rotate { min-height: 36px; }
}
