/* ===========================================================
   medicaltrips.co — design system
   Indigo/Coral on warm paper. Space Grotesk + Manrope.
   =========================================================== */

:root {
  --indigo:        #2A3B6B;
  --indigo-mid:    #33447A;
  --indigo-dark:   #171F3D;
  --coral:         #FF6F5E;
  --coral-dark:    #E85A49;
  --cream:         #FAF8F4;
  --paper:         #F2EEE4;
  --ink:           #1E2233;
  --slate:         #5B6178;
  --slate-light:   #8A90A6;
  --line:          #E3DFD3;
  --white:         #FFFFFF;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Manrope', sans-serif;

  --container: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-card: 0 2px 8px rgba(23,31,61,0.06), 0 8px 24px rgba(23,31,61,0.05);
  --shadow-lift: 0 12px 32px rgba(23,31,61,0.14);
}

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

html { scroll-behavior:smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  * { animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; }
}

body {
  font-family:var(--font-body);
  background:var(--cream);
  color:var(--ink);
  line-height:1.6;
  font-size:16px;
  -webkit-font-smoothing:antialiased;
}

img { max-width:100%; display:block; }
a { color:inherit; text-decoration:none; }
ul { list-style:none; }

h1,h2,h3,h4 { font-family:var(--font-display); font-weight:600; color:var(--indigo); line-height:1.15; letter-spacing:-0.01em; }
h1 { font-size:clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size:clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size:1.3rem; }
p { color:var(--slate); }

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

.eyebrow {
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-body); font-weight:700; font-size:0.78rem;
  letter-spacing:0.08em; text-transform:uppercase;
  color:var(--coral-dark);
  margin-bottom:14px;
}
.eyebrow::before {
  content:''; width:18px; height:2px; background:var(--coral); display:inline-block;
}

section { padding:88px 0; }
section.tight { padding:56px 0; }
.section-head { max-width:640px; margin-bottom:48px; }
.section-head p { margin-top:14px; font-size:1.05rem; }
.section-alt { background:var(--paper); }

/* Buttons */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:var(--font-body); font-weight:700; font-size:0.95rem;
  padding:14px 26px; border-radius:100px;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space:nowrap;
  border:none; cursor:pointer;
}
.btn-coral { background:var(--coral); color:var(--white); box-shadow:0 6px 18px rgba(255,111,94,0.35); }
.btn-coral:hover { background:var(--coral-dark); transform:translateY(-1px); box-shadow:0 10px 24px rgba(255,111,94,0.42); }
.btn-outline { background:transparent; color:var(--indigo); border:1.5px solid var(--indigo); }
.btn-outline:hover { background:var(--indigo); color:var(--white); }
.btn-ghost-light { background:rgba(255,255,255,0.12); color:var(--white); border:1.5px solid rgba(255,255,255,0.45); }
.btn-ghost-light:hover { background:rgba(255,255,255,0.22); }
.btn-block { width:100%; }

/* ===================== NAV ===================== */
.site-nav {
  position:sticky; top:0; z-index:100;
  background:rgba(250,248,244,0.86);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.nav-row { display:flex; align-items:center; justify-content:space-between; padding:14px 24px; max-width:var(--container); margin:0 auto; gap:20px; }
.brand { display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-weight:600; font-size:1.28rem; color:var(--indigo); flex-shrink:0; }
.brand .mark { width:34px; height:34px; border-radius:9px; background:linear-gradient(135deg, var(--indigo-mid), var(--indigo-dark)); display:flex; align-items:center; justify-content:center; }
.brand .mark svg { width:18px; height:18px; }
.brand .co { color:var(--coral); }

.nav-links { display:flex; align-items:center; gap:30px; }
.nav-links a { font-weight:600; font-size:0.94rem; color:var(--indigo); position:relative; padding:4px 0; }
.nav-links a:hover { color:var(--coral-dark); }
.nav-cta { display:flex; align-items:center; gap:14px; flex-shrink:0; }

.nav-toggle { display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:8px; }
.nav-toggle span { width:24px; height:2px; background:var(--indigo); border-radius:2px; }

@media (max-width: 880px) {
  .nav-links { position:fixed; top:66px; left:0; right:0; background:var(--cream); flex-direction:column; align-items:flex-start; padding:20px 24px 28px; gap:18px; border-bottom:1px solid var(--line); transform:translateY(-8px); opacity:0; pointer-events:none; transition:all .22s ease; }
  .nav-links.open { transform:translateY(0); opacity:1; pointer-events:auto; }
  .nav-toggle { display:flex; }
  .nav-cta .btn span.long { display:none; }
}

/* ===================== WIPE HERO ===================== */
.wipe-hero {
  position:relative; height:min(86vh, 760px); min-height:520px; overflow:hidden;
  background:var(--indigo-dark);
}
.wipe-slide {
  position:absolute; inset:0;
  background-size:cover; background-position:center;
  /* hidden: a diagonal slab parked just off the left edge */
  clip-path: polygon(-112% 0%, 0% 0%, -12% 100%, -124% 100%);
  transition: clip-path 1.05s cubic-bezier(.65,0,.05,1);
  z-index:1;
}
.wipe-slide.is-active {
  /* active: the same diagonal slab swept fully across, covering the frame */
  clip-path: polygon(0% 0%, 112% 0%, 100% 100%, -12% 100%);
  z-index:2;
}
.wipe-slide::after {
  content:'';
  position:absolute; inset:0;
  background:linear-gradient(115deg, rgba(23,31,61,0.92) 0%, rgba(23,31,61,0.72) 32%, rgba(23,31,61,0.30) 62%, rgba(23,31,61,0.08) 100%);
}
.wipe-content {
  position:relative; z-index:10; height:100%;
  display:flex; flex-direction:column; justify-content:center;
  max-width:var(--container); margin:0 auto; padding:0 24px;
}
.wipe-inner { max-width:600px; }
.wipe-stage-label {
  font-family:var(--font-body); font-weight:700; font-size:0.82rem; letter-spacing:0.12em; text-transform:uppercase;
  color:var(--coral); margin-bottom:16px; display:flex; align-items:center; gap:10px;
}
.wipe-stage-label .num { color:rgba(255,255,255,0.55); font-weight:600; }
.wipe-content h1 { color:var(--cream); margin-bottom:18px; }
.wipe-content .wipe-sub { color:#D9DCE8; font-size:1.1rem; max-width:520px; margin-bottom:32px; }
.wipe-ctas { display:flex; gap:14px; flex-wrap:wrap; }

.wipe-dots { position:absolute; z-index:10; bottom:32px; left:0; right:0; display:flex; justify-content:center; gap:10px; }
.wipe-dot { width:34px; height:4px; border-radius:4px; background:rgba(255,255,255,0.28); border:none; cursor:pointer; padding:0; overflow:hidden; position:relative; }
.wipe-dot .fill { position:absolute; inset:0; background:var(--coral); transform:scaleX(0); transform-origin:left; }
.wipe-dot.is-active .fill { animation: dotfill 6s linear forwards; }
@keyframes dotfill { from{transform:scaleX(0);} to{transform:scaleX(1);} }

@media (max-width:880px){
  .wipe-hero{ height:min(92vh, 640px); }
}

/* ===================== JOURNEY / HOW IT WORKS ===================== */
.journey-grid {
  display:grid; grid-template-columns:repeat(4, 1fr); gap:20px;
}
.journey-card {
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius-md);
  padding:28px 24px; position:relative; box-shadow:var(--shadow-card);
}
.journey-card .jnum {
  font-family:var(--font-display); font-size:0.85rem; font-weight:700; color:var(--coral-dark);
  letter-spacing:0.06em; margin-bottom:14px; display:block;
}
.journey-card h3 { margin-bottom:10px; }
.journey-card p { font-size:0.94rem; }
.journey-arrow { display:none; }
@media (max-width:920px){
  .journey-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:560px){
  .journey-grid{ grid-template-columns:1fr; }
}

/* ===================== COMPARE COSTS ===================== */
.compare-list { display:flex; flex-direction:column; gap:22px; margin-top:36px; }
.compare-row {
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius-md);
  padding:24px 28px; box-shadow:var(--shadow-card);
}
.compare-top { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:10px; margin-bottom:16px; }
.compare-top h3 { color:var(--ink); font-size:1.1rem; }
.save-badge {
  font-family:var(--font-body); font-weight:800; font-size:0.82rem;
  color:var(--coral-dark); background:rgba(255,111,94,0.12);
  padding:5px 12px; border-radius:100px;
}
.bar-track { position:relative; height:14px; background:var(--paper); border-radius:100px; margin-bottom:8px; overflow:hidden; }
.bar-fill { position:absolute; left:0; top:0; bottom:0; border-radius:100px; }
.bar-fill.us { width:100%; background:var(--slate-light); opacity:0.55; }
.bar-fill.co { background:linear-gradient(90deg, var(--coral), var(--coral-dark)); }
.bar-labels { display:flex; justify-content:space-between; font-size:0.86rem; font-weight:700; color:var(--slate); }
.bar-labels .co-label { color:var(--coral-dark); }
.compare-foot { font-size:0.82rem; color:var(--slate-light); margin-top:24px; }

/* ===================== NETWORK GRID ===================== */
.network-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-top:36px; }
.network-card {
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius-md);
  padding:22px; box-shadow:var(--shadow-card); transition:transform .16s ease, box-shadow .16s ease;
}
.network-card:hover { transform:translateY(-3px); box-shadow:var(--shadow-lift); }
.network-card .tag { font-size:0.72rem; font-weight:800; letter-spacing:0.06em; text-transform:uppercase; color:var(--coral-dark); margin-bottom:8px; display:block; }
.network-card h4 { font-family:var(--font-display); font-size:1rem; color:var(--indigo); margin-bottom:4px; }
.network-card span.domain { font-size:0.82rem; color:var(--slate-light); }
@media (max-width:920px){ .network-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .network-grid{ grid-template-columns:1fr; } }

/* ===================== TRUST STRIP ===================== */
.trust-strip { background:var(--indigo); color:var(--cream); }
.trust-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:24px; text-align:center; }
.trust-grid .stat { font-family:var(--font-display); font-size:2.2rem; font-weight:600; color:var(--white); }
.trust-grid .label { font-size:0.86rem; color:#B9C0DE; margin-top:6px; }
@media (max-width:760px){ .trust-grid{ grid-template-columns:1fr 1fr; } }

/* ===================== CTA BAND ===================== */
.cta-band {
  background:linear-gradient(120deg, var(--indigo), var(--indigo-dark));
  border-radius:var(--radius-lg);
  padding:56px; display:flex; align-items:center; justify-content:space-between; gap:32px; flex-wrap:wrap;
}
.cta-band h2 { color:var(--white); font-size:clamp(1.6rem,3vw,2.1rem); }
.cta-band p { color:#C7CCE4; margin-top:10px; max-width:440px; }
@media (max-width:700px){ .cta-band{ padding:36px 24px; } }

/* ===================== CARDS / GENERIC ===================== */
.card { background:var(--white); border:1px solid var(--line); border-radius:var(--radius-md); padding:26px; box-shadow:var(--shadow-card); }
.two-col { display:grid; grid-template-columns:1.1fr 0.9fr; gap:56px; align-items:center; }
@media (max-width:880px){ .two-col{ grid-template-columns:1fr; } }

/* ===================== FOOTER ===================== */
.site-footer { background:var(--indigo-dark); color:#AEB4CF; padding:72px 0 28px; }
.footer-grid { display:grid; grid-template-columns:1.4fr 1fr 1.2fr 1.1fr; gap:40px; padding-bottom:48px; border-bottom:1px solid rgba(255,255,255,0.1); }
.footer-brand .brand { color:var(--white); margin-bottom:14px; }
.footer-brand p { color:#9CA3C4; font-size:0.92rem; max-width:280px; }
.footer-col h5 { font-family:var(--font-body); font-weight:800; font-size:0.78rem; letter-spacing:0.08em; text-transform:uppercase; color:#7C84AC; margin-bottom:16px; }
.footer-col ul { display:flex; flex-direction:column; gap:10px; }
.footer-col a { font-size:0.92rem; color:#C7CCE4; }
.footer-col a:hover { color:var(--coral); }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px; padding-top:24px; font-size:0.82rem; color:#7C84AC; }
.footer-bottom a { color:#9CA3C4; }
.footer-bottom a:hover { color:var(--coral); }
.footer-legal-note { font-size:0.78rem; color:#6971957c; max-width:900px; margin-top:18px; line-height:1.6; }
@media (max-width:880px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .footer-grid{ grid-template-columns:1fr; } }

/* ===================== INNER PAGE HEADER (about/contact/legal) ===================== */
.page-header { background:var(--indigo); padding:100px 0 56px; }
.page-header .eyebrow { color:var(--coral); }
.page-header h1 { color:var(--white); }
.page-header p { color:#C7CCE4; max-width:600px; margin-top:14px; font-size:1.05rem; }

/* ===================== FORMS ===================== */
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.form-grid .full { grid-column:1 / -1; }
label { display:block; font-weight:700; font-size:0.86rem; color:var(--indigo); margin-bottom:7px; }
input, select, textarea {
  width:100%; font-family:var(--font-body); font-size:0.95rem; color:var(--ink);
  background:var(--white); border:1.5px solid var(--line); border-radius:var(--radius-sm);
  padding:12px 14px; transition:border-color .15s ease;
}
input:focus, select:focus, textarea:focus { outline:none; border-color:var(--coral); }
textarea { resize:vertical; min-height:120px; }
@media (max-width:600px){ .form-grid{ grid-template-columns:1fr; } }

/* ===================== 404 ===================== */
.error-page { min-height:70vh; display:flex; align-items:center; }
.error-page .code { font-family:var(--font-display); font-size:clamp(4rem,12vw,7rem); font-weight:600; color:var(--indigo); line-height:1; }

/* ===================== UTILS ===================== */
.mt-8{margin-top:8px;} .mt-16{margin-top:16px;} .mt-24{margin-top:24px;} .mt-32{margin-top:32px;} .mt-48{margin-top:48px;}
.text-center{text-align:center;margin-left:auto;margin-right:auto;}
.small { font-size:0.86rem; }
