/* ==========================================================================
   Fair Winds Maritime Memorial — stylesheet
   Palette sampled from the original site: navy #20486c / #064c60,
   gold accent #ffc466, off-white #f9f9f9.
   ========================================================================== */

/* === CSS Custom Properties === */
:root {
  --color-navy-deep: #064c60;
  --color-navy: #20486c;
  --color-navy-light: #2e5c86;
  --color-gold: #ffc466;
  --color-gold-dark: #e0a94a;
  --color-bg: #f9f9f9;
  --color-white: #ffffff;
  --color-text: #1e2b33;
  --color-text-muted: #4d5c66;
  --color-border: #e2e6e8;
  --color-blue-light: #dceef5;

  --font-heading: "Google Sans", "Inter", Arial, sans-serif;
  --font-body: "Inter", "Roboto", Arial, sans-serif;

  --max-width: 1200px;
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(6, 40, 55, 0.08);
  --shadow-md: 0 6px 24px rgba(6, 40, 55, 0.12);

  --header-height: 76px;
}

/* === Reset / Base === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

/* === Typography === */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--color-text-muted); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  font-weight: 600;
  margin-bottom: 0.5em;
}

/* === Layout Primitives === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section--navy { background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-deep) 100%); color: var(--color-white); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--color-white); }
.section--navy p { color: rgba(255,255,255,0.85); }
.section--alt { background: var(--color-white); }
.section--blue-light { background: var(--color-blue-light); color: var(--color-navy); }
.section--blue-light h1, .section--blue-light h2, .section--blue-light h3 { color: var(--color-navy); }
.section--blue-light p { color: var(--color-navy); opacity: 0.82; }
.text-center { text-align: center; }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.two-col img { border-radius: var(--radius); box-shadow: var(--shadow-sm); width: 100%; }
.divider-list {
  list-style: disc;
  padding-left: 22px;
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}
.divider-list li { margin-bottom: 10px; }

/* === Header / Nav === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-navy);
  font-size: 1.05rem;
}
.brand img { height: 42px; width: auto; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-menu a {
  font-weight: 500;
  color: var(--color-navy);
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  color: var(--color-navy-deep);
  border-bottom-color: var(--color-gold);
}

/* === Footer === */
.site-footer {
  background: var(--color-navy-deep);
  color: rgba(255,255,255,0.85);
  padding: 40px 0;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.site-footer a { color: var(--color-gold); }
.footer-contact { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-note { font-size: 0.85rem; color: rgba(255,255,255,0.6); }

/* === Buttons === */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold {
  background: var(--color-gold);
  color: var(--color-navy-deep);
  box-shadow: var(--shadow-sm);
}
.btn--gold:hover { box-shadow: var(--shadow-md); }
.btn--outline {
  border: 1.5px solid var(--color-white);
  color: var(--color-white);
}
.btn--outline:hover { background: rgba(255,255,255,0.1); }

/* === Photo band (full-bleed wave-texture background, original site's
   design behind the hero, mid-page dividers, and section titles) === */
.section--photo {
  position: relative;
  background-image: url("/images/wave-texture.jpg");
  background-size: cover;
  background-position: center;
  color: var(--color-white);
}
.section--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(6, 40, 55, 0.72) 0%, rgba(32, 72, 108, 0.6) 100%);
}
.section--photo > .container { position: relative; z-index: 1; }
.section--photo h1, .section--photo h2, .section--photo h3 { color: var(--color-white); }
.section--photo p { color: rgba(255,255,255,0.9); }
.section--photo .eyebrow { color: var(--color-gold); }

/* Divider variant: wave-photo band carrying a heading/short content, or purely decorative if empty */
.section--divider { min-height: 220px; padding: 56px 0; display: flex; align-items: center; justify-content: center; text-align: center; }

/* Page-banner variant: subpage opening title band */
.page-banner { padding: 96px 0 72px; }

/* === Hero === */
.hero { padding: 120px 0 96px; text-align: center; }
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero h1 { margin-bottom: 0.4em; }
.hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; justify-content: center; }

/* === Feature Grid (Why Choose Us / Documentation Choices) — plain columns, no card boxes === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.feature-card { text-align: left; }
.feature-card img.icon { width: 64px; height: 64px; object-fit: contain; object-position: left center; margin-bottom: 18px; }
.feature-card img.media { width: 100%; border-radius: var(--radius); margin-top: 16px; }
.feature-card-body { }

/* === Process Steps (plain numbered list, no badge/box) === */
.process-list-plain {
  max-width: 760px;
  margin: 0 auto;
  padding-left: 24px;
}
.process-list-plain li { margin-bottom: 16px; }
.process-list-plain li strong { font-family: var(--font-heading); }

/* === Pricing (plain columns, no card box) === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}
.pricing-card { text-align: left; }
.pricing-card .price {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--color-gold);
  margin: 12px 0 16px;
}
.pricing-card .btn { margin-top: 12px; }

/* === Testimonials (plain columns, no card box) === */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.testimonial-card { text-align: left; }
.testimonial-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.testimonial-card blockquote {
  margin: 0 0 14px;
  font-style: italic;
  color: var(--color-navy);
}
.testimonial-card cite {
  font-style: normal;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-navy);
}

/* === FAQ Accordion === */
.faq-category { margin-bottom: 8px; }
.faq-category h3 {
  color: var(--color-gold);
  margin: 32px 0 12px;
}
.faq-category:first-child h3 { margin-top: 0; }
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 4px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-white);
  font-size: 1rem;
}
.faq-answer p { color: rgba(255, 255, 255, 0.85); }
.faq-icon {
  flex: none;
  width: 22px;
  height: 22px;
  position: relative;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  background: var(--color-gold-dark);
  border-radius: 2px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-icon::before { width: 14px; height: 2px; }
.faq-icon::after { width: 2px; height: 14px; transition: transform 0.2s ease; }
.faq-item[data-open="true"] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg) scale(0); }
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}
.faq-item[data-open="true"] .faq-answer { max-height: 600px; }
.faq-answer p { padding: 0 4px 18px; margin: 0; }

/* === Crew Cards === */
.crew-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  max-width: 700px;
  margin: 0 auto;
}
.crew-card { text-align: center; }
.crew-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  object-fit: cover;
  margin: 0 auto 16px;
}
.crew-card .role { color: var(--color-gold-dark); font-weight: 600; font-family: var(--font-heading); }

/* === Article / Long-form content === */
.article { max-width: 760px; margin: 0 auto; }
.article h2 { margin-top: 2em; }
.article p { color: var(--color-text); }
.references { max-width: 760px; margin: 0 auto; font-size: 0.9rem; }
.references h3 { margin-top: 1.75em; color: var(--color-navy); }
.references p { color: var(--color-text-muted); }

/* === Embeds === */
.embed-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--color-white);
}
.embed-wrapper--video { aspect-ratio: 16 / 9; }
.embed-wrapper--map { aspect-ratio: 16 / 7; }
.embed-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.embed-wrapper--form { min-height: 900px; }

/* === Generic content blocks (simple pages) === */
.content-block { max-width: 760px; margin: 0 auto; }
.content-block img { border-radius: var(--radius); margin: 24px 0; box-shadow: var(--shadow-sm); }
.benefit-list { margin: 20px 0; }
.benefit-list li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.9);
}
.benefit-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-gold-dark);
  font-weight: 700;
}

/* === Utilities === */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* === Responsive === */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero { padding: 72px 0 56px; }
  .page-banner { padding: 64px 0 48px; }

  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.2s ease;
    overflow-y: auto;
  }
  .nav-menu.is-open { transform: translateX(0); }
  .nav-menu a { width: 100%; padding: 14px 4px; border-bottom: 1px solid var(--color-border); }

  .feature-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .site-footer .container { flex-direction: column; align-items: flex-start; }
}
