/* ── Captain's Chair — Site Stylesheet ─────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #1B2E4A;
  --navy2:  #243d61;
  --gold:   #B8902A;
  --gold2:  #D4AA3A;
  --white:  #FFFFFF;
  --cream:  #F8F5F0;
  --cream2: #EDE9E2;
  --muted:  #6B7A8D;
  --light:  #A8B3BF;
  --border: #D8DDE5;
  --error:  #C0392B;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--white);
  color: var(--navy);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ── Typography ─────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.15;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); font-weight: 600; }

p { font-size: 1.05rem; color: var(--muted); line-height: 1.7; }

a { color: inherit; text-decoration: none; }

/* ── Top Bar ────────────────────────────────────── */

.top-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--navy) 0%, #2a4a72 50%, var(--navy) 100%);
}

/* ── Nav ────────────────────────────────────────── */

nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo svg, .nav-logo img {
  width: 160px;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
}

.nav-links a.nav-cta {
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 1.2rem;
  border-radius: 5px;
  transition: background 0.2s;
}

.nav-links a.nav-cta:hover { background: var(--navy2); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Page Hero ──────────────────────────────────── */

.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'%3E%3Ccircle cx='250' cy='250' r='240' fill='none' stroke='%23ffffff' stroke-width='1' opacity='0.04'/%3E%3Ccircle cx='250' cy='250' r='180' fill='none' stroke='%23ffffff' stroke-width='0.5' opacity='0.03'/%3E%3Cline x1='250' y1='10' x2='250' y2='490' stroke='%23ffffff' stroke-width='0.5' opacity='0.03'/%3E%3Cline x1='10' y1='250' x2='490' y2='250' stroke='%23ffffff' stroke-width='0.5' opacity='0.03'/%3E%3C/svg%3E") center/contain no-repeat;
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}

.page-hero .eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  display: block;
}

.page-hero h1 { color: var(--white); margin-bottom: 1rem; }

.page-hero p {
  color: rgba(248,245,240,0.75);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Containers & Sections ──────────────────────── */

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 5rem 0; }

section.cream { background: var(--cream); }
section.navy  { background: var(--navy); }

/* ── Divider ─────────────────────────────────────── */

.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--light);
  white-space: nowrap;
}

/* ── Section Headings ───────────────────────────── */

.section-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
  display: block;
}

.section-head {
  margin-bottom: 1rem;
}

.section-subhead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

/* ── Cards ──────────────────────────────────────── */

.card-grid {
  display: grid;
  gap: 2rem;
}

.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
}

.card.cream-card { background: var(--cream); border-color: var(--cream2); }

.card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.2rem;
  color: var(--gold);
}

.card h3 { margin-bottom: 0.6rem; }

/* ── Buttons ────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, color 0.2s;
  border: none;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--gold);
  color: var(--white);
}

.btn-primary:hover { background: var(--gold2); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover { background: var(--navy2); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--white);
}

/* ── Contact Form ───────────────────────────────── */

.contact-form {
  max-width: 600px;
}

.form-row { margin-bottom: 1.2rem; }

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,144,42,0.1);
}

.form-row textarea { resize: vertical; min-height: 130px; }

.form-success {
  display: none;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--gold);
  font-weight: 600;
}

.form-error-msg {
  display: none;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--error);
}

/* ── Footer ─────────────────────────────────────── */

footer {
  background: var(--navy);
  color: rgba(248,245,240,0.6);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.footer-brand img {
  width: 140px;
  height: auto;
  margin-bottom: 0.8rem;
  opacity: 0.85;
}

.footer-brand p {
  font-size: 0.82rem;
  color: rgba(248,245,240,0.5);
  line-height: 1.6;
  max-width: 300px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

.footer-nav a {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: rgba(248,245,240,0.5);
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--white); }

.footer-bottom {
  max-width: 960px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.75rem;
  color: rgba(248,245,240,0.35);
  letter-spacing: 0.04em;
}

/* ── Utility ─────────────────────────────────────── */

.gold { color: var(--gold); }
.text-center { text-align: center; }
.text-center .section-subhead { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* ── Responsive ─────────────────────────────────── */

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  }

  .nav-links.open { display: flex; }
  .nav-links a { font-size: 0.95rem; }
  .nav-toggle { display: flex; }

  .card-grid-3,
  .card-grid-2 { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { align-items: flex-start; }

  section { padding: 3.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ── Logo SVG overrides ── */
.nav-logo svg {
  width: 320px;
  height: auto;
  display: block;
}
