/* ================================================================
   Sailing Your Way, LLC — Shared Stylesheet
   WCAG 2.2 AA Compliant Version
   ================================================================ */

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #1a2744;
  --navy-dark:  #0f1a30;
  --gold:       #c9a84c;
  --gold-light: #e8d08a;
  --white:      #ffffff;
  --off-white:  #f8f7f4;
  --gray-light: #e8e6e1;
  --gray-mid:   #767676;   /* 4.54:1 on white — minimum passing contrast */
  --gray-text:  #3d3d3d;
  --text-dark:  #1a1a1a;
  --error:      #c0001a;
  --success:    #1a6b3c;
  --focus-ring: #005fcc;

  --font-body:    'Georgia', 'Times New Roman', serif;
  --font-ui:      'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --radius:       6px;
  --shadow:       0 2px 12px rgba(0,0,0,0.12);
  --shadow-lg:    0 6px 30px rgba(0,0,0,0.18);
  --transition:   0.2s ease;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--gold); }

/* ── Skip Link ────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  text-decoration: none;
  z-index: 9999;
  font-size: 0.95rem;
}
.skip-link:focus { top: 0; }

/* ── Focus Styles ─────────────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}
/* Remove default outline only when :focus-visible is supported */
:focus:not(:focus-visible) { outline: none; }

/* ── Header & Nav ─────────────────────────────────────────────── */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--white);
}
.site-logo svg { flex-shrink: 0; }
.logo-text {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
}
.logo-tagline {
  font-size: 0.72rem;
  color: var(--gold-light);
  font-family: var(--font-ui);
  font-style: italic;
}

.primary-nav { display: flex; align-items: center; gap: 0; }
.primary-nav a {
  color: var(--gold-light);
  text-decoration: none;
  padding: 0.55rem 1rem;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  display: inline-block;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  background: rgba(201,168,76,0.18);
  color: var(--white);
}
.primary-nav a[aria-current="page"] {
  font-weight: 700;
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy-dark) !important;
  font-weight: 700 !important;
  padding: 0.55rem 1.2rem !important;
  border-radius: var(--radius) !important;
}
.nav-cta:hover {
  background: var(--gold-light) !important;
}

/* ── Main Content ─────────────────────────────────────────────── */
main { flex: 1; }

/* ── Hero Section ─────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, #233660 60%, #2a4a7f 100%);
  color: var(--white);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1548574505-5e239809ee19?w=1400&q=80') center/cover no-repeat;
  opacity: 0.18;
}
.hero-content { position: relative; max-width: 760px; margin: 0 auto; }

.hero h1 {
  font-family: var(--font-body);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 1.2rem;
  color: var(--white);
}
.hero h1 span { color: var(--gold-light); }
.hero .lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-cta-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform 0.1s;
  font-family: var(--font-ui);
  line-height: 1.4;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy-dark); }

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

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

.btn-lg { padding: 0.9rem 2.2rem; font-size: 1.05rem; }
.btn-full { width: 100%; text-align: center; display: block; }

button.btn { font-size: 1rem; }

/* ── Section Utilities ────────────────────────────────────────── */
.section { padding: 4rem 1.5rem; }
.section-alt { background: var(--off-white); }

.container { max-width: 1200px; margin: 0 auto; }
.container-narrow { max-width: 820px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 {
  font-family: var(--font-body);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--navy);
  margin-bottom: 0.7rem;
}
.section-header .subhead {
  color: var(--gray-mid);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}
.section-header .gold-rule {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ── Cards Grid ───────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
}

.card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-body h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
  font-family: var(--font-body);
}
.card-body p { color: var(--gray-text); font-size: 0.94rem; line-height: 1.6; flex: 1; }
.card-footer { padding: 0 1.5rem 1.5rem; }

/* ── Value Props ──────────────────────────────────────────────── */
.value-props {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.value-prop { text-align: center; }
.value-prop-icon {
  width: 64px; height: 64px;
  background: var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  color: var(--gold);
}
.value-prop h3 { color: var(--navy); font-size: 1.1rem; margin-bottom: 0.5rem; }
.value-prop p { color: var(--gray-text); font-size: 0.93rem; }

/* ── Testimonials ─────────────────────────────────────────────── */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.testimonial {
  background: var(--white);
  border-left: 4px solid var(--gold);
  padding: 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}
.testimonial blockquote {
  font-style: italic;
  color: var(--gray-text);
  margin-bottom: 1rem;
  font-size: 0.97rem;
  line-height: 1.7;
}
.testimonial cite {
  font-style: normal;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
}

/* ── Excursion Detail Card ────────────────────────────────────── */
.excursion-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 3rem;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.excursion-detail.reverse { direction: rtl; }
.excursion-detail.reverse > * { direction: ltr; }
.excursion-detail img { width: 100%; height: 320px; object-fit: cover; }
.excursion-body { padding: 2rem; }
.excursion-body h2 { font-family: var(--font-body); color: var(--navy); font-size: 1.5rem; margin-bottom: 0.8rem; }
.excursion-body .badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.excursion-body p { color: var(--gray-text); margin-bottom: 1rem; font-size: 0.96rem; }
.feature-list { list-style: none; margin: 1rem 0; }
.feature-list li {
  padding: 0.3rem 0 0.3rem 1.8rem;
  position: relative;
  color: var(--gray-text);
  font-size: 0.94rem;
}
.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* ── Forms ────────────────────────────────────────────────────── */
.form-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  max-width: 680px;
  margin: 0 auto;
}
.form-card h2 {
  font-family: var(--font-body);
  color: var(--navy);
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}
.form-card .form-desc { color: var(--gray-mid); font-size: 0.93rem; margin-bottom: 2rem; }

.form-group { margin-bottom: 1.4rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}
.form-group label .required-mark {
  color: var(--error);
  margin-left: 0.2rem;
  aria-hidden: true;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-ui);
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  line-height: 1.5;
}
.form-control:focus {
  outline: none;
  border-color: var(--focus-ring);
  box-shadow: 0 0 0 3px rgba(0,95,204,0.2);
}
.form-control[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(192,0,26,0.15);
}

select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231a2744' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.5rem; }

textarea.form-control { min-height: 120px; resize: vertical; }

.field-hint {
  font-size: 0.83rem;
  color: var(--gray-mid);
  margin-top: 0.3rem;
}

.field-error {
  font-size: 0.85rem;
  color: var(--error);
  margin-top: 0.35rem;
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}
.field-error::before { content: '⚠'; flex-shrink: 0; }
.field-error[hidden] { display: none; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Multi-step form */
.step-indicator {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--gray-light);
}
.step {
  flex: 1;
  text-align: center;
  padding: 0.75rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-mid);
  background: var(--off-white);
  border-right: 1.5px solid var(--gray-light);
  position: relative;
}
.step:last-child { border-right: none; }
.step.active { background: var(--navy); color: var(--white); }
.step.completed { background: var(--success); color: var(--white); }
.step-num { display: block; font-size: 1.1rem; margin-bottom: 0.1rem; }

.form-step { display: none; }
.form-step.visible { display: block; }

.form-nav { display: flex; justify-content: space-between; margin-top: 1.5rem; gap: 1rem; }

/* Checkbox / Radio groups */
.check-group { display: flex; flex-direction: column; gap: 0.7rem; }
.check-item { display: flex; align-items: flex-start; gap: 0.7rem; cursor: pointer; }
.check-item input[type="checkbox"],
.check-item input[type="radio"] {
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  accent-color: var(--navy);
  cursor: pointer;
}
.check-item span { font-size: 0.94rem; color: var(--text-dark); }

/* Password strength */
.pw-strength { margin-top: 0.4rem; }
.pw-strength-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--gray-light);
  margin-bottom: 0.25rem;
  overflow: hidden;
}
.pw-strength-fill {
  height: 100%;
  border-radius: 2px;
  width: 0;
  transition: width 0.3s, background 0.3s;
}

/* ── Contact ──────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h2 { font-family: var(--font-body); color: var(--navy); font-size: 1.8rem; margin-bottom: 1rem; }
.contact-info p { color: var(--gray-text); margin-bottom: 1.5rem; line-height: 1.7; }
.contact-item { display: flex; gap: 0.8rem; align-items: flex-start; margin-bottom: 1.2rem; }
.contact-icon { color: var(--gold); font-size: 1.3rem; flex-shrink: 0; margin-top: 0.1rem; }
.contact-item p { margin: 0; color: var(--gray-text); font-size: 0.94rem; }
.contact-item strong { color: var(--text-dark); }

/* ── Page Hero (inner pages) ──────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, #233660 100%);
  color: var(--white);
  padding: 3rem 1.5rem;
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 0.7rem;
}
.page-hero p { color: rgba(255,255,255,0.82); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ── Breadcrumb ───────────────────────────────────────────────── */
.breadcrumb {
  padding: 0.75rem 1.5rem;
  background: var(--off-white);
  border-bottom: 1px solid var(--gray-light);
  font-size: 0.88rem;
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.3rem; max-width: 1200px; margin: 0 auto; }
.breadcrumb li + li::before { content: '/'; margin-right: 0.3rem; color: var(--gray-mid); }
.breadcrumb a { color: var(--navy); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--gray-mid); }

/* ── Success Message ──────────────────────────────────────────── */
.success-box {
  background: #ecfdf5;
  border: 2px solid var(--success);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: #14532d;
  text-align: center;
}
.success-box .success-icon { font-size: 2.5rem; margin-bottom: 0.8rem; }
.success-box h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

/* ── Banner ───────────────────────────────────────────────────── */
.accessible-banner {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 1rem 1.5rem;
  font-size: 0.92rem;
}
.accessible-banner strong { color: var(--gold-light); }

/* ── Footer ───────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.78);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.footer-brand .logo-text { color: var(--white); font-size: 1.1rem; font-family: var(--font-body); font-weight: 700; margin-bottom: 0.5rem; }
.footer-brand p { font-size: 0.87rem; line-height: 1.7; color: rgba(255,255,255,0.65); }
.footer-col h3 { color: var(--gold-light); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.07em; font-weight: 700; margin-bottom: 1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold-light); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.a11y-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold-light);
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  font-size: 0.8rem;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .excursion-detail { grid-template-columns: 1fr; }
  .excursion-detail.reverse { direction: ltr; }
  .excursion-detail img { height: 240px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .header-inner { height: 60px; }
  .primary-nav a { padding: 0.45rem 0.65rem; font-size: 0.84rem; }
  .logo-tagline { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-card { padding: 1.5rem; }
}

/* ── Utilities ────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
