/* ==========================================================================
   CrewDoctor — Shared stylesheet
   Florida-based medical coordination for superyacht crew
   ========================================================================== */

:root {
  --navy: #0A2540;
  --navy-soft: #14365E;
  --teal: #00A8B5;
  --teal-dark: #007F89;
  --coral: #FF6B5B;
  --white: #FFFFFF;
  --gray-50: #F7F9FC;
  --gray-100: #EDF1F7;
  --gray-200: #D7DEE8;
  --gray-500: #6B7A8F;
  --gray-700: #3A4658;
  --gray-900: #0E1827;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 37, 64, 0.08);
  --shadow-lg: 0 20px 48px rgba(10, 37, 64, 0.12);
  --max-w: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { color: var(--navy); }

h1, h2, h3, h4 { color: var(--navy); margin: 0 0 0.5em; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--gray-700); }
ul { padding-left: 1.2em; color: var(--gray-700); }
li { margin-bottom: 0.5em; }

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

/* ---------- Top navigation ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--gray-100);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  display: inline-flex; align-items: center; justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(0,168,181,0.25);
}
.brand-mark svg { display: block; }
.nav-links {
  display: flex; gap: 28px; align-items: center;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover,
.nav-links a.active { color: var(--navy); }
.nav-cta {
  background: var(--navy);
  color: white !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}
.nav-cta:hover { background: var(--teal-dark); color: white !important; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--navy); color: white; }
.btn-primary:hover { background: var(--teal-dark); color: white; transform: translateY(-1px); }
.btn-secondary { background: white; color: var(--navy); border: 1px solid var(--gray-200); }
.btn-secondary:hover { background: var(--gray-50); color: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(60px, 9vw, 120px) 0 clamp(60px, 8vw, 100px);
  background:
    radial-gradient(ellipse at top right, rgba(0,168,181,0.18), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(10,37,64,0.06), transparent 60%),
    var(--white);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0,168,181,0.12);
  color: var(--teal-dark);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero p.lede { font-size: 1.15rem; color: var(--gray-700); max-width: 540px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.hero-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  border: 1px solid var(--gray-100);
}
.hero-card h3 {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
  font-size: 1rem;
  color: var(--navy);
  font-weight: 600;
}
.hero-card .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(0,168,181,0.18);
}
.hero-card ul { list-style: none; padding: 0; margin: 0; }
.hero-card li {
  padding: 12px 0;
  border-top: 1px solid var(--gray-100);
  font-size: 0.95rem;
  color: var(--gray-700);
  display: flex; justify-content: space-between; gap: 12px;
}
.hero-card li:first-child { border-top: 0; }
.hero-card .pill {
  font-size: 0.75rem;
  background: var(--gray-50);
  color: var(--navy);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}

/* ---------- Sections ---------- */
section { padding: clamp(60px, 8vw, 96px) 0; }
section.alt { background: var(--gray-50); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-head p { font-size: 1.1rem; }

/* ---------- Feature grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card .icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(10,37,64,0.08), rgba(0,168,181,0.12));
  color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: 0.97rem; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: step;
}
.step {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--gray-100);
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--teal);
  margin-bottom: 12px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }

/* ---------- Split callout ---------- */
.split {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.split h2 { color: white; }
.split p { color: rgba(255,255,255,0.85); }
.split .btn-primary { background: white; color: var(--navy); }
.split .btn-primary:hover { background: var(--teal); color: white; }

/* ---------- Page header ---------- */
.page-header {
  padding: clamp(50px, 7vw, 90px) 0 clamp(40px, 5vw, 64px);
  background:
    radial-gradient(ellipse at top right, rgba(0,168,181,0.16), transparent 55%),
    var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
}
.page-header h1 { max-width: 760px; }
.page-header p { font-size: 1.15rem; max-width: 680px; }

/* ---------- Contact form ---------- */
.form {
  display: grid;
  gap: 16px;
  max-width: 560px;
}
.form label { font-size: 0.9rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; display: block; }
.form input, .form textarea, .form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--gray-900);
  background: white;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,168,181,0.18);
}
.form textarea { resize: vertical; min-height: 120px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
}
.contact-block { font-size: 0.95rem; }
.contact-block h3 { margin-top: 24px; }
.contact-block .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.78);
  padding: 56px 0 28px;
  margin-top: 0;
}
.site-footer .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.site-footer h4 {
  color: white;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,0.78); font-size: 0.92rem; }
.site-footer a:hover { color: white; }
.site-footer .brand { color: white; }
.site-footer p { color: rgba(255,255,255,0.65); font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.disclaimer {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 28px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .site-footer .container { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
}
