/* Base + brand tokens */
:root {
  --twsm-navy: #0A2940;
  --twsm-sky:  #1E90FF;
  --twsm-white: #FFFFFF;
  --twsm-charcoal: #1C1C1C;

  --radius-lg: 1.25rem;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--twsm-charcoal);
  background-color: var(--twsm-white);
  line-height: 1.6;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 3.5rem 0; }

.section-alt { background-color: #f7f9fb; }

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

.honeypot {
  display: none;
}

/* Header & nav */
.site-header {
  background-color: var(--twsm-navy);
  color: var(--twsm-white);
  position: sticky;
  top: 0;
  z-index: 1200;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 999px;
}

.brand-text {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.main-nav a {
  color: var(--twsm-white);
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover { background-color: rgba(255, 255, 255, 0.12); }

.main-nav .nav-cta { border: 1px solid rgba(255, 255, 255, 0.4); }

/* Keep Leaflet maps beneath the sticky header */
.leaflet-container { position: relative; z-index: 0; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--twsm-navy), #123a5e);
  color: var(--twsm-white);
  padding: 3.5rem 0 3.75rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: 2rem;
  align-items: stretch;
}

.hero-text h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: 0 0 1rem;
}

.hero-text p {
  margin: 0 0 1.25rem;
  max-width: 40rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.hero-subtext { font-size: 0.9rem; opacity: 0.85; }

.contact-hero .hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 720px;
  margin: 0 auto;
}

.contact-hero .hero-text { text-align: center; }

/* Buttons (single source of truth) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.1s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background-color: var(--twsm-sky);
  color: var(--twsm-white);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
}

.btn-outline {
  background-color: transparent;
  color: var(--twsm-white);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: none;
}

.btn-outline:hover { background-color: rgba(255, 255, 255, 0.08); }

/* Solid button to match hero background for light cards */
.btn-hero {
  background-color: #123a5e;
  color: var(--twsm-white);
  border-color: #123a5e;
  box-shadow: none;
}

.btn-hero:hover { background-color: #163f64; }

/* Secondary button for Tips page links */
.btn-secondary {
  background: transparent;
  color: var(--twsm-navy);
  border-color: rgba(10, 41, 64, 0.18);
  box-shadow: none;
}

.btn-secondary:hover { background: rgba(10, 41, 64, 0.04); }

/* Hero card */
.hero-card {
  background-color: var(--twsm-white);
  color: var(--twsm-charcoal);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-soft);
}

.hero-card h2 {
  margin-top: 0;
  margin-bottom: 0.65rem;
}

.hero-card-location {
  font-weight: 600;
  color: var(--twsm-navy);
  margin: 0 0 0.75rem;
}

.hero-card-list {
  padding-left: 1.1rem;
  margin: 0 0 0.75rem;
}

.hero-card-list li { margin-bottom: 0.25rem; }

.hero-card-link {
  font-size: 0.9rem;
  color: var(--twsm-sky);
  text-decoration: none;
  font-weight: 600;
}

.hero-card-link:hover { text-decoration: underline; }

/* Sections & cards */
.section-title {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  color: var(--twsm-navy);
}

.section-intro {
  margin: 0 0 1.5rem;
  max-width: 40rem;
  font-size: 0.95rem;
}

/* Section head spacing (single source of truth) */
.section-head { margin: 26px 0 12px; }

/* Grids */
.grid { display: grid; gap: 1.5rem; }

.map-layout {
  grid-template-columns: 1.1fr 1.9fr;
  gap: 1.25rem;
  align-items: start;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* Content cards */
.card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.4rem 1.25rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.map-card {
  padding: 0;
  overflow: hidden;
  min-height: 520px;
}

.map-card .leaflet-container {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.map-card #map {
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--twsm-navy);
}

.card p {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.card-list {
  padding-left: 1.1rem;
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.card-link {
  margin-top: auto;
  font-size: 0.9rem;
  color: var(--twsm-sky);
  text-decoration: none;
  font-weight: 600;
}

.card-link:hover { text-decoration: underline; }

/* Placeholder for future YouTube embed */
.card-embed-placeholder {
  border-radius: 0.9rem;
  border: 1px dashed rgba(10, 41, 64, 0.25);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  color: rgba(28, 28, 28, 0.7);
}

/* Lists with checkmarks */
.list-check {
  list-style: none;
  padding-left: 0;
  font-size: 0.95rem;
}

.list-check li {
  margin-bottom: 0.4rem;
  position: relative;
  padding-left: 1.4rem;
}

.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--twsm-sky);
  font-weight: 700;
}

/* Small text */
.small { font-size: 0.85rem; color: rgba(28, 28, 28, 0.75); }

/* Footer */
.site-footer {
  background-color: #07192a;
  color: rgba(255, 255, 255, 0.9);
  padding: 2rem 0 1rem;
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.footer-brand { font-weight: 600; margin: 0 0 0.25rem; }

.footer-text { margin: 0; font-size: 0.9rem; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.footer-links a:hover { text-decoration: underline; }

.footer-social {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.social-icon:hover,
.social-icon:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
  color: #fff;
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

.footer-copy {
  font-size: 0.8rem;
  margin: 0.25rem 0 0;
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero-inner { grid-template-columns: 1fr; }

  .hero-card { order: -1; }
}
/* Mobile map usability fix */
@media (max-width: 768px) {

  .map-layout {
    grid-template-columns: 1fr;
  }

  .map-card {
    min-height: unset;
    height: 45vh;           /* big enough to pan/zoom */
    padding: 0;
  }

  .map-card #map {
    height: 100%;
    min-height: 100%;
  }
}
/* ================================
   Hero: Latest Video card
================================ */
.hero-video .video-thumb {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  margin: 14px 0 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.hero-video .video-thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-video .video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 44px;
  color: #ffffff;
  text-shadow: 0 10px 30px rgba(0,0,0,0.55);
  background: linear-gradient(to bottom, rgba(0,0,0,0.10), rgba(0,0,0,0.35));
}

.hero-video .video-title {
  font-weight: 700;
  margin: 8px 0 12px;
  line-height: 1.25;
}

.hero-video-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 8px;
}

/* Tips page helpers */
.tip-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 10px;
}

.tip-badge { font-weight: 700; }

.tip-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.tip-note {
  margin-top: 12px;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* About page photo + modal */
.about-photo img {
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

.about-photo { align-self: start; }

.photo-modal { position: fixed; inset: 0; display: none; z-index: 9999; }
.photo-modal[aria-hidden="false"] { display: block; }

.photo-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); }

.photo-modal-dialog {
  position: relative;
  max-width: 980px;
  margin: 4vh auto;
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.photo-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: rgba(10,41,64,.06);
  font-size: 26px;
  cursor: pointer;
}

.photo-modal-top {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  gap: 10px;
  align-items: center;
}

.photo-modal-top img {
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  border-radius: 14px;
  background: #0b0b0b;
}

.photo-nav {
  height: 52px;
  border: none;
  border-radius: 14px;
  background: rgba(10,41,64,.08);
  font-size: 34px;
  cursor: pointer;
}

.photo-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-top: 10px;
}

.photo-thumbs button {
  border: 2px solid transparent;
  padding: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.photo-thumbs img {
  width: 96px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.photo-thumbs button[aria-current="true"] { border-color: #1E90FF; }

/* Notice + chips (used in Tips) */
.notice {
  border: 1px solid rgba(10,41,64,0.2);
  background: rgba(30,144,255,0.06);
  padding: 14px 16px;
  border-radius: 14px;
  margin: 14px 0 6px;
}

.notice--soft {
  background: rgba(10,41,64,0.04);
  border-color: rgba(10,41,64,0.12);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.chip {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(10,41,64,0.18);
  text-decoration: none;
  color: var(--twsm-navy);
}

.chip:hover { background: rgba(10,41,64,0.04); }

/* Divider */
.divider {
  border: none;
  border-top: 1px solid rgba(10,41,64,0.10);
  margin: 26px 0;
}

/* Gear-in-Tips subtitle */
.gear-subtitle { font-size: 1.2rem; }

/* Contact form status (if present) */
#form-status { margin-top: 0.5rem; color: #0A2940; }

#map {
  height: 70vh;
  min-height: 420px;  /* adjust to taste */
  width: 100%;
  border-radius: 16px; /* optional */
  overflow: hidden;    /* optional */
}
