/* ===== Swain Travel Center — Bright & Coastal ===== */
:root {
  --navy: #0B2C4D;
  --ocean: #0E6BA8;
  --ocean-dark: #0A557F;
  --turq: #2EC4D6;
  --aqua: #E6F7FA;
  --sand: #F4D58D;
  --sand-dark: #E9BE55;
  --ink: #1C2B36;
  --muted: #5B6B77;
  --bg: #F8FAFB;
  --white: #FFFFFF;
  --line: #E3EBF0;
  --shadow-sm: 0 2px 10px rgba(11, 44, 77, .06);
  --shadow-md: 0 10px 30px rgba(11, 44, 77, .10);
  --shadow-lg: 0 20px 50px rgba(11, 44, 77, .16);
  --radius: 16px;
  --radius-lg: 24px;
  --header-h: 76px;
  --maxw: 1180px;
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--ocean); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }

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

/* section IDs clear the sticky header */
section[id] { scroll-margin-top: var(--header-h); }
#top { position: absolute; top: 0; left: 0; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--turq); outline-offset: 2px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  text-decoration: none; min-height: 46px;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--ocean); color: #fff; box-shadow: 0 6px 18px rgba(14, 107, 168, .3); }
.btn-primary:hover { background: var(--ocean-dark); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.7); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-call { background: var(--sand); color: var(--navy); padding: 10px 18px; min-height: 42px; }
.btn-call:hover { background: var(--sand-dark); color: var(--navy); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--turq), var(--ocean)); color: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--navy); }
.brand-sub { font-family: var(--font-head); font-weight: 600; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--turq); }

.header-actions { position: relative; display: flex; align-items: center; gap: 12px; }

/* Always-on menu toggle */
.nav-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 16px; border: none; border-radius: 999px;
  background: var(--aqua); color: var(--navy); cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  transition: background .2s ease;
}
.nav-toggle:hover { background: #d4edf2; }
.nav-toggle-bars { display: flex; flex-direction: column; gap: 5px; width: 22px; }
.nav-toggle-bar { display: block; height: 2.5px; width: 100%; background: var(--navy); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Slide-in drawer + overlay */
.nav-overlay {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(7, 26, 45, .5);
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s;
}
.nav-overlay.open { opacity: 1; visibility: visible; }

.main-nav {
  position: fixed; top: 0; right: 0; z-index: 120;
  width: min(360px, 88vw); height: 100vh; height: 100dvh;
  background: #fff; box-shadow: -12px 0 44px rgba(11, 44, 77, .2);
  display: flex; flex-direction: column;
  padding: 22px 24px 28px;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4, 0, .2, 1);
  overflow-y: auto;
}
.main-nav.open { transform: translateX(0); }

.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.drawer-brand { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: var(--navy); }
.drawer-close { display: grid; place-items: center; width: 42px; height: 42px; border: none; border-radius: 50%; background: var(--aqua); color: var(--navy); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.drawer-close:hover { background: #d4edf2; }

.nav-list { list-style: none; margin: 0; padding: 20px 0; display: flex; flex-direction: column; gap: 2px; }
.nav-list a { display: block; padding: 14px 12px; border-radius: 12px; color: var(--navy); font-family: var(--font-head); font-weight: 600; font-size: 1.18rem; }
.nav-list a:hover { background: var(--aqua); color: var(--ocean); text-decoration: none; }

.drawer-foot { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.drawer-agent { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--navy); margin: 0 0 12px; }
.drawer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.drawer-contact li { color: var(--muted); font-size: .96rem; line-height: 1.5; }
.drawer-contact a { color: var(--ocean); font-weight: 500; }

body.nav-open { overflow: hidden; }

/* ===== Hero ===== */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(105deg, rgba(11,44,77,.82) 0%, rgba(11,44,77,.45) 55%, rgba(46,196,214,.25) 100%); }
.hero-content { position: relative; color: #fff; padding-top: 60px; padding-bottom: 60px; max-width: 720px; }
.hero-eyebrow { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; color: var(--sand); margin: 0 0 14px; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: 18px; }
.hero-lede { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 560px; margin: 0 0 30px; color: rgba(255,255,255,.92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===== Sections ===== */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.eyebrow { font-family: var(--font-head); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; color: var(--turq); margin: 0 0 12px; }
.section h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.section-intro { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* ===== About ===== */
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about-copy h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 20px; }
.about-copy p { color: var(--muted); margin: 0 0 18px; }
.about-highlight { color: var(--ocean) !important; font-weight: 600; font-size: 1.1rem; border-left: 4px solid var(--turq); padding-left: 16px; }
.about-copy .btn { margin-top: 10px; }
.about-stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.about-stats li { background: linear-gradient(135deg, var(--aqua), #fff); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow-sm); }
.stat-num { display: block; font-family: var(--font-head); font-weight: 700; font-size: 2.2rem; color: var(--ocean); line-height: 1; }
.stat-label { display: block; color: var(--muted); font-size: .95rem; margin-top: 6px; }

/* ===== Cards ===== */
.cards { display: grid; gap: 22px; }
.services { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card .card-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--aqua); color: var(--ocean); margin-bottom: 16px; }
.service-card .card-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.service-card p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ===== Specialties badges ===== */
.specialties { background: var(--bg); }
.badges-title { text-align: center; font-size: 1.2rem; color: var(--navy); margin: clamp(40px,6vw,60px) 0 22px; }
.badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.badge { display: flex; align-items: center; gap: 14px; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.badge-icon { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sand); color: var(--navy); }
.badge-icon svg { width: 22px; height: 22px; }
.badge-text { display: flex; flex-direction: column; line-height: 1.3; }
.badge-text strong { font-family: var(--font-head); font-size: 1rem; }
.badge-text span { color: rgba(255,255,255,.72); font-size: .85rem; }

/* ===== Destinations gallery ===== */
.destinations { background: var(--white); }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-btn { position: relative; display: block; width: 100%; aspect-ratio: 3 / 2; padding: 0; border: none; background: none; cursor: pointer; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery-btn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,44,77,.6) 0%, rgba(11,44,77,0) 50%); }
.gallery-btn:hover img { transform: scale(1.06); }
.gallery-caption { position: absolute; left: 16px; bottom: 14px; z-index: 1; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; text-shadow: 0 1px 6px rgba(0,0,0,.4); }

/* ===== Testimonials ===== */
.testimonials { background: var(--aqua); }
.reviews { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; }
.review-card { margin: 0; display: flex; flex-direction: column; gap: 12px; height: 100%; }
.stars { color: var(--sand-dark); letter-spacing: 2px; font-size: 1.05rem; }
.review-card blockquote { margin: 0; flex: 1; font-size: 1rem; color: var(--ink); }
.review-card figcaption { font-family: var(--font-head); font-weight: 600; color: var(--ocean); }

/* ===== Credentials strip ===== */
.credentials { background: var(--navy); padding: clamp(40px,6vw,64px) 0; }
.credentials-title { text-align: center; color: #fff; font-size: 1.3rem; margin-bottom: 30px; }
.cred-strip { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.cred { flex: 1 1 240px; max-width: 320px; text-align: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 22px 24px; }
.cred strong { display: block; font-family: var(--font-head); color: var(--sand); font-size: 1.3rem; }
.cred span { color: rgba(255,255,255,.8); font-size: .92rem; }

/* ===== Contact ===== */
.contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-info h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.contact-info > p { color: var(--muted); margin-bottom: 28px; }
.contact-advisor { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--navy); margin: 4px 0 18px !important; display: flex; flex-direction: column; line-height: 1.25; }
.contact-advisor span { font-family: var(--font-body); font-weight: 600; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--turq); margin-top: 4px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-ico { flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--aqua); color: var(--ocean); }
.contact-ico svg { width: 22px; height: 22px; }
.contact-label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--turq); font-weight: 600; }
.contact-list a { color: var(--navy); font-weight: 500; font-size: 1.05rem; }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-md); }
.form-card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.form-intro { color: var(--muted); margin: 0 0 22px; }
.form-toggle.is-open { display: none; }
.quote-form { margin-top: 8px; }

/* ===== Embedded quote form — override secure-form.css into a clean 2-col layout ===== */
.quote-form .secure-form {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  align-items: stretch;
}
.quote-form .form-group {
  width: auto !important; max-width: none !important; float: none !important;
  margin: 0 !important; padding: 0 !important;
  display: flex; flex-direction: column; min-width: 0;
}
/* Collapse every width variant to a single column (2 fields per row) */
.quote-form .form-group-half,
.quote-form .form-group-third,
.quote-form .form-group-quarter { grid-column: span 1; }
/* Items that should span the full width */
.quote-form .repeating-section,
.quote-form .form-group:has(textarea),
.quote-form .form-group:has(.cf-turnstile),
.quote-form .form-group:has(> .btn) { grid-column: 1 / -1; }

.quote-form label {
  font-family: var(--font-body); font-size: .9rem; font-weight: 600;
  color: var(--navy); margin-bottom: 6px; line-height: 1.3;
}
.quote-form .required { color: #e4572e; }

.quote-form .form-control {
  width: 100% !important; box-sizing: border-box; margin-top: auto;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.quote-form .form-control:focus {
  outline: none; border-color: var(--ocean); box-shadow: 0 0 0 3px rgba(14,107,168,.15);
}
.quote-form textarea.form-control { min-height: 120px; resize: vertical; }

/* Radio groups (Airfare / Insurance) */
.quote-form .radio-inline { display: flex; gap: 22px; margin-top: auto; padding-top: 6px; }
.quote-form .form-check { display: flex; align-items: center; gap: 7px; }
.quote-form .form-check-label { font-size: .95rem; font-weight: 500; color: var(--ink); margin: 0; }
.quote-form .form-check-input { width: auto !important; margin: 0; }

/* Travelers repeating section */
.quote-form .repeating-section { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--bg); }
.quote-form .repeating-section-header h4 { margin: 0 0 14px; font-size: 1.05rem; color: var(--navy); }
.quote-form .repeating-item { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.quote-form .repeating-item-header { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
.quote-form .repeating-item-header h5 { margin: 0; color: var(--muted); }

/* Buttons match the site theme */
.quote-form .btn-primary {
  background: var(--ocean) !important; color: #fff !important; border: none !important;
  border-radius: 999px !important; padding: 13px 32px !important;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; cursor: pointer;
}
.quote-form .btn-primary:hover { background: var(--ocean-dark) !important; }
.quote-form .add-repeating-item,
.quote-form .remove-item {
  background: var(--aqua); color: var(--navy); border: none; border-radius: 999px;
  padding: 9px 18px; font-family: var(--font-head); font-weight: 600; cursor: pointer;
}
.quote-form .add-repeating-item:hover, .quote-form .remove-item:hover { background: #d4edf2; }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: rgba(255,255,255,.8); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1.2fr; gap: 40px; padding: clamp(48px,6vw,72px) 24px; }
.footer-brand .brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: #fff; display: block; margin-bottom: 12px; }
.footer-brand p { margin: 0 0 18px; max-width: 360px; }
.footer-fb { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; }
.footer-fb:hover { background: var(--turq); }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-nav a, .footer-contact a { color: rgba(255,255,255,.8); }
.footer-nav a:hover, .footer-contact a:hover { color: var(--sand); }
.footer-contact p { margin: 0 0 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom p { text-align: center; padding: 18px 0; margin: 0; font-size: .9rem; color: rgba(255,255,255,.6); }

/* ===== Lightbox ===== */
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(7,26,45,.92); padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox-img { max-width: min(1000px, 92vw); max-height: 88vh; width: auto; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox-close { position: absolute; top: 18px; right: 22px; width: 48px; height: 48px; border-radius: 50%; border: none; background: rgba(255,255,255,.15); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox-close:hover { background: rgba(255,255,255,.3); }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .badges { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .reviews { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .about-stats { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .nav-toggle-label { display: none; }
  .nav-toggle { padding: 0; width: 44px; justify-content: center; }
  .btn-call .call-text { display: none; }
  .btn-call { padding: 10px; width: 44px; }
  .quote-form .secure-form,
  .quote-form .repeating-item { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .services, .badges { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero { min-height: 86vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover, .card:hover, .gallery-btn:hover img { transform: none; }
}
