/* Dixon's Zodiac Seafari — site styles */

:root {
  --navy: #0b2545;
  --navy-light: #14375f;
  --ocean: #1978a5;
  --ocean-pale: #eaf3f8;
  --accent: #e2571f;        /* zodiac orange */
  --accent-dark: #c44615;
  --text: #22303f;
  --text-muted: #5b6b7b;
  --white: #ffffff;
  --border: #d8e2ea;
  --font-head: 'Merriweather', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 1.06rem;
}

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

a { color: var(--ocean); }
a:hover { color: var(--accent); }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container.narrow { max-width: 820px; }

h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.25; }
h2 { font-size: 1.9rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

p + p { margin-top: 0.9em; }

.center-text { text-align: center; margin-top: 1.5rem; }

/* ---- Top bar ---- */
.topbar {
  background: var(--navy);
  color: #cfe0ee;
  font-size: 0.9rem;
  padding: 0.4rem 0;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---- Header / nav ---- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(11, 37, 69, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--navy);
}
.brand-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  border-radius: 6px;
}
.site-nav a:hover { background: var(--ocean-pale); color: var(--navy); }
.site-nav a.active { color: var(--accent); }
.nav-phone a {
  background: var(--accent);
  color: #fff !important;
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
}
.nav-phone a:hover { background: var(--accent-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---- Hero ---- */
.hero, .page-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: #fff;
}
.hero { min-height: 480px; }
.page-hero { min-height: 260px; }
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,37,69,0.35) 0%, rgba(11,37,69,0.65) 100%);
}
.hero-content { position: relative; z-index: 1; padding-top: 3rem; padding-bottom: 3rem; }
.hero-content h1 {
  color: #fff;
  font-size: clamp(1.9rem, 4.5vw, 3.1rem);
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  margin-top: 0.75rem;
  max-width: 34em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.hero-actions { margin-top: 1.5rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-family: var(--font-body);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* ---- Ride banner ---- */
.ride-banner {
  background: var(--ocean-pale);
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
.ride-banner img { margin: 0 auto; max-height: 72px; width: auto; }

/* ---- Sections ---- */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--ocean-pale); }
.section-intro { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ---- Photo cards / gallery ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.photo-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(11,37,69,0.1);
}
.photo-card a { display: block; }
.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.photo-card a:hover img { transform: scale(1.04); }
.photo-card figcaption {
  padding: 0.6rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}

/* ---- Info cards ---- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--ocean);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(11,37,69,0.06);
}
.info-card .btn { margin-top: 0.25rem; }

.times-list { list-style: none; margin: 0.5rem 0 0.75rem; }
.times-list li {
  display: inline-block;
  background: var(--ocean-pale);
  color: var(--navy);
  border-radius: 6px;
  padding: 0.25rem 0.7rem;
  margin: 0 0.35rem 0.45rem 0;
  font-weight: 700;
}
.times-list.big li { font-size: 1.1rem; padding: 0.4rem 0.9rem; }

/* ---- Split layout (tours page) ---- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.split-reverse .split-text { order: 2; }
.split-reverse .split-media { order: 1; }
.split-media img {
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(11,37,69,0.18);
  width: 100%;
  object-fit: cover;
}

/* ---- Video ---- */
.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(11,37,69,0.18);
  background: #000;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- Map ---- */
.map-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(11,37,69,0.15);
}
.map-wrap iframe { display: block; }

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: start;
}
.form-field { margin-bottom: 1.1rem; }
.form-field label {
  display: block;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  color: var(--text);
  background: var(--white);
}
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--ocean);
  outline-offset: 1px;
  border-color: var(--ocean);
}
/* Honeypot — hidden from humans */
.field-website { position: absolute; left: -9999px; top: -9999px; }

.form-alert {
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.25rem;
}
.form-alert ul { margin-left: 1.2rem; }
.form-alert-success { background: #e5f5e9; border: 1px solid #9fd6ac; color: #1c5e2c; }
.form-alert-error { background: #fdeceb; border: 1px solid #f0b3ad; color: #8c2b22; }

/* ---- Social ---- */
.social-links { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-links img { border-radius: 6px; transition: transform 0.15s ease; }
.social-links a:hover img { transform: scale(1.1); }

/* ---- Footer ---- */
.site-footer { background: var(--navy); color: #cfe0ee; margin-top: 2rem; }
.site-footer h3 { color: #fff; }
.site-footer a { color: #9fcbe8; }
.site-footer a:hover { color: #fff; }
.footer-lighthouse {
  background: var(--navy-light);
  padding: 1.2rem 0;
  text-align: center;
}
.footer-motto {
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: #fff;
  font-style: italic;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-small { font-size: 0.92rem; color: #9db4c8; }
.site-footer .times-list li { background: var(--navy-light); color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--navy-light);
  padding: 1rem 0;
  font-size: 0.9rem;
  color: #9db4c8;
  text-align: center;
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6, 18, 34, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
  flex-direction: column;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 80vh;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
.lightbox-caption { color: #fff; margin-top: 1rem; font-size: 1.05rem; }
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .split, .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .split-reverse .split-text { order: 1; }
  .split-reverse .split-media { order: 2; }
}

@media (max-width: 760px) {
  .topbar-address { display: none; }
  .topbar-inner { justify-content: center; }

  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 16px rgba(11,37,69,0.12);
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 0.5rem 1rem 1rem; }
  .site-nav a { padding: 0.8rem 0.5rem; }
  .nav-phone { margin-top: 0.5rem; }
  .nav-phone a { text-align: center; }

  .hero { min-height: 400px; }
  .section { padding: 2.5rem 0; }
}
