/* CYMEDABROAD — shared styles
   Colours are taken from the logo. Every page uses this one file,
   so on Shopify it becomes assets/cymedabroad.css. */

:root {
  --ink: #13293a;        /* deep navy text + header */
  --sea: #2f5f75;        /* logo island blue */
  --deep: #263d4b;       /* stethoscope */
  --sky: #b6d4e1;        /* logo lettering */
  --mist: #eef5f8;       /* soft section background */
  --coral: #a8535a;      /* logo plane */
  --coral-dark: #8f434a;
  --paper: #ffffff;
  --line: #d9e6ec;
  --muted: #5b6f7c;
  --radius: 18px;
  --shadow: 0 18px 40px -22px rgba(19, 41, 58, .35);
  --max: 1180px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: #e7f0f4; }
.section--ink h2, .section--ink h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .78rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--coral); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 640px; }
.section--ink .lead { color: #b9cdd7; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
.section-head { margin-bottom: 48px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  font: 600 .95rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--coral); color: #fff; }
.btn--primary:hover { background: var(--coral-dark); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--sea); }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 24px; height: 78px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 60px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a {
  text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--deep);
  padding: 9px 12px; border-radius: 999px; white-space: nowrap;
}
.nav a:hover { background: var(--mist); }
.nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.profile-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--mist); color: var(--ink); text-decoration: none; border: 1px solid var(--line);
}
.profile-btn:hover { background: var(--sky); }
.profile-btn svg { width: 20px; height: 20px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1080px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 78px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 12px 16px 24px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .3s ease; margin: 0;
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 14px 12px; font-size: 1rem; }
  .header-actions { margin-left: auto; }
}

/* Page hero (inner pages) */
.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--ink) 0%, var(--sea) 100%);
  color: #fff; padding: clamp(72px, 10vw, 128px) 0 clamp(56px, 8vw, 96px);
}
.page-hero h1 { color: #fff; max-width: 820px; }
.page-hero .lead { color: #c9dce5; }
.page-hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 480px; height: 480px;
  border-radius: 50%; border: 1px solid rgba(182,212,225,.25);
  box-shadow: 0 0 0 60px rgba(182,212,225,.05), 0 0 0 130px rgba(182,212,225,.035);
}
.page-hero .eyebrow { color: var(--sky); }

/* Home hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at 80% 20%, #2f5f75 0%, transparent 60%), var(--ink);
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; min-height: calc(100vh - 78px); padding: 72px 0; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: var(--sky); }
.hero .lead { color: #c9dce5; margin-bottom: 32px; }
.hero-stats { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats strong { display: block; font: 600 2rem/1 var(--serif); color: #fff; }
.hero-stats span { font-size: .85rem; color: #9fb9c6; }
.hero-art { position: relative; aspect-ratio: 1 / 1; width: 100%; }
.hero-art svg { width: 100%; height: 100%; }
.hero-photo { /* drop a real photo in later: <img class="hero-photo" src="..."> */
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .18; z-index: 1;
}
.flight { stroke-dasharray: 6 7; animation: dash 18s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -260; } }
.city-dot { animation: pulse 2.8s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulse { 0%,100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) { .flight, .city-dot { animation: none; } }
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; min-height: 0; padding: 56px 0 64px; }
  .hero-art { max-width: 460px; margin: 0 auto; }
}

/* Cards / grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -24px rgba(19,41,58,.45); }
.card p { color: var(--muted); }
.card .btn, .card .link { margin-top: auto; align-self: flex-start; }
.icon-badge {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--mist); color: var(--sea); margin-bottom: 20px;
}
.icon-badge svg { width: 26px; height: 26px; }
.card--coral .icon-badge { background: #f6e6e7; color: var(--coral); }
.link { font-weight: 600; color: var(--coral); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link:hover { text-decoration: underline; }
.tag {
  display: inline-block; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; background: var(--mist); color: var(--sea); margin-bottom: 14px; align-self: flex-start;
}
.tag--coral { background: #f6e6e7; color: var(--coral); }

/* Split section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li::before {
  content: ""; flex: 0 0 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* Plan steps (about) */
.steps { counter-reset: step; display: grid; gap: 22px; }
.step { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font: 600 2rem/1 var(--serif); color: var(--coral);
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); }

/* Quote band */
.quote { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.3; max-width: 860px; margin: 0 auto; text-align: center; }
.quote::before { content: "“"; display: block; font-size: 4rem; line-height: .6; color: var(--coral); }

/* Map */
.map-wrap { display: grid; grid-template-columns: 340px 1fr; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
#rep-map { min-height: 560px; z-index: 1; }
.rep-list { max-height: 560px; overflow-y: auto; border-right: 1px solid var(--line); }
.rep-list-head { padding: 22px 22px 14px; position: sticky; top: 0; background: #fff; border-bottom: 1px solid var(--line); z-index: 2; }
.rep-list-head input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; background: var(--mist);
}
.rep-country { padding: 14px 22px 4px; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.rep-item {
  width: 100%; display: flex; gap: 12px; align-items: center; padding: 12px 22px; background: none; border: 0;
  text-align: left; cursor: pointer; font: inherit; color: var(--ink);
}
.rep-item:hover, .rep-item.is-active { background: var(--mist); }
.rep-avatar {
  flex: 0 0 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sea); color: #fff; font-weight: 600; font-size: .85rem;
}
.rep-item small { display: block; color: var(--muted); font-size: .8rem; }
@media (max-width: 860px) {
  .map-wrap { grid-template-columns: 1fr; }
  .rep-list { max-height: 300px; border-right: 0; border-top: 1px solid var(--line); order: 2; }
  #rep-map { min-height: 420px; }
}
/* Leaflet popup */
.leaflet-popup-content-wrapper { border-radius: 16px !important; box-shadow: var(--shadow) !important; }
.leaflet-popup-content { margin: 18px 20px !important; font-family: var(--sans); min-width: 210px; }
.pop h4 { font-family: var(--serif); font-size: 1.1rem; margin: 0 0 2px; color: var(--ink); }
.pop .pop-city { color: var(--muted); font-size: .85rem; margin: 0 0 12px; }
.pop a.pop-ig {
  display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--coral); font-weight: 600; font-size: .9rem; margin-top: 6px;
}
.pop a.pop-ig svg { width: 16px; height: 16px; }
.pin {
  width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--coral); border: 3px solid #fff; box-shadow: 0 6px 14px rgba(19,41,58,.35);
}
.pin--home { background: var(--ink); }
.pin span { display: block; transform: rotate(45deg); color: #fff; font: 700 11px/28px var(--sans); text-align: center; }

/* Team */
.team-card { text-align: center; padding: 0; overflow: hidden; }
.team-photo { aspect-ratio: 1 / 1; background: linear-gradient(135deg, var(--sky), var(--mist)); display: grid; place-items: center; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.team-photo .initials { font: 600 3rem/1 var(--serif); color: var(--sea); }
.team-body { padding: 22px 20px 26px; }
.team-body h3 { margin-bottom: 4px; font-size: 1.2rem; }
.team-body p { font-size: .9rem; margin-bottom: 14px; }
.social-mini { display: inline-flex; gap: 8px; justify-content: center; }
.social-mini a {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--mist); color: var(--sea);
}
.social-mini a:hover { background: var(--ink); color: #fff; }
.social-mini svg { width: 16px; height: 16px; }

/* Forms */
.form-card { background: #fff; border-radius: 24px; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 6px; color: var(--deep); }
input, select, textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; color: var(--ink); background: #fbfdfe; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 4px rgba(47,95,117,.15); }
textarea { min-height: 120px; resize: vertical; }
.checkbox { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.checkbox input { width: 18px; height: 18px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 14px; }
.form-success {
  display: none; padding: 18px 20px; border-radius: 14px; background: #e6f2ec; color: #1f5b3d; font-weight: 600; margin-top: 18px;
}
.form-success.is-visible { display: block; }

/* Tabs (profile) */
.tabs { display: flex; background: var(--mist); border-radius: 999px; padding: 5px; margin-bottom: 28px; }
.tabs button {
  flex: 1; border: 0; background: none; padding: 12px; border-radius: 999px; font: 600 .95rem var(--sans); cursor: pointer; color: var(--muted);
}
.tabs button.is-active { background: #fff; color: var(--ink); box-shadow: 0 4px 12px rgba(19,41,58,.1); }
.tab-panel[hidden] { display: none; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .85rem; margin: 22px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn--social { width: 100%; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn--social:hover { background: var(--mist); }
.btn--block { width: 100%; }

/* News */
.news-card { padding: 0; overflow: hidden; }
.news-thumb { aspect-ratio: 16 / 9; display: grid; place-items: center; color: #fff; }
.news-thumb svg { width: 56px; height: 56px; opacity: .9; }
.news-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.news-meta { font-size: .8rem; color: var(--muted); margin-bottom: 10px; }

/* Group card */
.group-card .members { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .88rem; margin-bottom: 18px; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 16px; background: rgba(19,41,58,.6); backdrop-filter: blur(4px); }
.modal.is-open { display: grid; }
.modal-box { background: #fff; border-radius: 24px; padding: 34px; width: min(520px, 100%); max-height: 90vh; overflow-y: auto; position: relative; }
.modal-close { position: absolute; top: 14px; right: 14px; border: 0; background: var(--mist); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; color: var(--ink); }

/* CTA band */
.cta-band {
  border-radius: 28px; padding: clamp(36px, 6vw, 64px); color: #fff;
  background: linear-gradient(120deg, var(--coral) 0%, #7d3d44 100%);
  display: grid; grid-template-columns: 1.4fr auto; gap: 28px; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: #f6dfe1; margin: 0; }
.cta-band .btn--light { background: #fff; color: var(--coral); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--ink); color: #b9cdd7; padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { display: inline-block; background: #fff; border-radius: 18px; padding: 14px 18px; margin-bottom: 20px; }
.footer-logo img { height: 86px; width: auto; }
.footer-tagline { max-width: 300px; font-size: .95rem; }
.site-footer h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--coral); margin-bottom: 20px; font-weight: 700; filter: brightness(1.35); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-links a { text-decoration: none; color: #d6e4ea; font-size: .95rem; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.contact-line { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: .95rem; color: #d6e4ea; }
.contact-line svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--sky); }
.contact-line a { text-decoration: none; }
.contact-line a:hover { text-decoration: underline; }
.social-grid { display: grid; grid-template-columns: repeat(3, 44px); gap: 10px; margin-top: 4px; }
.social-grid a {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.07); color: #fff; border: 1px solid rgba(255,255,255,.1);
  transition: background .2s, transform .2s;
}
.social-grid a:hover { background: var(--coral); transform: translateY(-2px); }
.social-grid svg { width: 19px; height: 19px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; font-size: .85rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bottom a { color: #b9cdd7; text-decoration: none; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.sample-note { font-size: .8rem; color: var(--muted); font-style: italic; }
.step--plain { grid-template-columns: 1fr; padding: 24px 26px; }
.step--plain::before { display: none; }
/* Soften the OpenStreetMap colours to match the brand */
.map-tiles { filter: saturate(.55) hue-rotate(-8deg) brightness(1.03); }

/* Hero photo (replaces the illustration column) */
.hero-routes {
  position: absolute; right: 0; top: 0; height: 100%; width: 62%;
  opacity: .45; z-index: 0; pointer-events: none;
}
.hero-media { position: relative; margin: 0; }
.hero-media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 52% 30%;
  border-radius: 28px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6);
  border: 1px solid rgba(182,212,225,.25);
}
.hero-media::before {
  content: ""; position: absolute; inset: -14px 14px 14px -14px; border-radius: 32px;
  border: 1.5px solid rgba(168,83,90,.7); z-index: -1;
}
.hero-badge {
  position: absolute; left: -28px; bottom: 36px; display: flex; gap: 14px; align-items: center;
  background: #fff; color: var(--ink); border-radius: 18px; padding: 14px 18px; max-width: 300px;
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.45); font-size: .82rem; line-height: 1.35;
}
.hero-badge strong { display: block; font-family: var(--serif); font-size: 1rem; margin-bottom: 2px; }
.hero-badge span:last-child { color: var(--muted); }
.hero-badge-dots { display: flex; }
.hero-badge-dots i {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; margin-left: -9px;
  background: var(--coral);
}
.hero-badge-dots i:first-child { margin-left: 0; background: var(--sea); }
.hero-badge-dots i:nth-child(2) { background: var(--sky); }
@media (min-width: 901px) { .hero .container { grid-template-columns: 1.1fr .9fr; } }
@media (max-width: 900px) {
  .hero-routes { width: 100%; opacity: .25; }
  .hero-media { max-width: 560px; margin: 8px auto 0; width: 100%; }
  .hero-media img { aspect-ratio: 4 / 3; object-position: 50% 30%; }
  .hero-badge { left: 12px; bottom: 12px; }
}
@media (min-width: 901px) {
  .hero .container { min-height: min(calc(100vh - 78px), 820px); padding: 56px 0 72px; }
  .hero-media img { aspect-ratio: auto; height: min(68vh, 600px); object-position: 50% 35%; }
}
.hero-routes text { display: none; }
@media (max-width: 900px) { .hero-media img { height: auto; aspect-ratio: 4 / 3; } }
@media (max-width: 900px) {
  .hero-badge { position: relative; left: auto; bottom: auto; margin: -22px 16px 0; max-width: none; }
}
