/* Seascape Peninsula - site-wide styles */

:root {
  --color-ocean-deep: #123640;
  --color-ocean: #1f6f7a;
  --color-sand: #f2ece0;
  --color-accent: #d97a29;
  --color-accent-dark: #b8631d;
  --color-text: #26302f;
  --color-muted: #5a6462;
  --color-bg: #faf8f5;
  --color-surface: #ffffff;
  --radius: 10px;
  --shadow: 0 8px 24px rgba(18, 54, 64, 0.12);
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

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

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }

p { margin: 0 0 1em; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.btn {
  display: inline-block;
  padding: 0.75em 1.5em;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover { background: var(--color-accent-dark); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

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

/* Header */
.site-header {
  background: var(--color-ocean-deep);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 16px;
}

.brand {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 26px;
  width: auto;
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 700px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-ocean-deep);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open { display: block; }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 16px;
  }

  .site-nav a { padding: 12px 8px; }
}

/* Hero */
.hero {
  min-height: 440px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.hero, .page-hero {
  position: relative;
  color: #fff;
  background-size: cover;
  background-position: center;
  padding: 110px 20px;
}

.hero::before, .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 54, 64, 0.55), rgba(18, 54, 64, 0.75));
}

.page-hero > .wrap {
  position: relative;
  text-align: center;
}

.hero-inner {
  position: relative;
  max-width: var(--wrap);
  margin-inline: auto;
  text-align: center;
}

.hero h1, .page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 0.3em;
}

.hero p, .page-hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 640px;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
.section { padding: 64px 0; }

.section-alt { background: var(--color-sand); }

.section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  margin-bottom: 0.3em;
}

.section-lede {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
  color: var(--color-muted);
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.stat {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 20px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.7rem;
  color: var(--color-accent);
}

/* FAQ */
.faq-list {
  max-width: 760px;
  margin: 40px auto 0;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 4px 24px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 28px 20px 0;
  font-weight: 600;
  position: relative;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 18px;
  font-size: 1.3rem;
  color: var(--color-accent);
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-item p {
  margin: -8px 0 20px;
  color: var(--color-muted);
}

/* Feature (image + copy) */
.feature-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.feature-img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-copy p { color: var(--color-muted); }

@media (max-width: 760px) {
  .feature-media { grid-template-columns: 1fr; }
}

/* Video */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  text-align: center;
  margin-top: 16px;
  color: var(--color-muted);
}

.video-grid h3 {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 0.6em;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gallery-item { margin: 0; }

.gallery-trigger {
  border: 0;
  padding: 0;
  background: none;
  cursor: zoom-in;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

.gallery-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery-trigger:hover img { transform: scale(1.05); }

.gallery-caption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--color-muted);
  text-align: center;
}

/* Lightbox */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(90vw, 900px);
  max-height: 85vh;
  overflow: visible;
}

.lightbox::backdrop { background: rgba(10, 24, 28, 0.85); }

.lightbox img {
  display: block;
  max-width: min(90vw, 900px);
  max-height: 70vh;
  border-radius: var(--radius);
  margin-inline: auto;
}

.lightbox-caption {
  color: #fff;
  text-align: center;
  margin-top: 10px;
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--color-accent);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}

/* Location page */
.map-canvas {
  width: 100%;
  max-width: 900px;
  height: 420px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 32px auto 0;
}

.map-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px;
  text-align: center;
  background: var(--color-sand);
  color: var(--color-muted);
}

.map-marker {
  display: flex;
  align-items: center;
  gap: 6px;
}

.map-marker--label-left {
  flex-direction: row-reverse;
}

.map-marker-dot {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.map-marker-label {
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

@media (max-width: 640px) {
  .map-canvas { height: 320px; }
}

/* Contact */
.contact-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.contact-card h2 {
  font-size: 1.4rem;
  margin-bottom: 0.4em;
}

.contact-card h3 {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: 0.3em;
}

.contact-card > div + div { margin-top: 24px; }

.contact-card a { font-size: 1.1rem; text-decoration: none; font-weight: 600; }

/* Footer */
.site-footer {
  background: var(--color-ocean-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.site-footer h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 0.6em;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer a:hover { color: #fff; }

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li { margin-bottom: 8px; }

.footer-social { text-align: center; }

.copyright {
  text-align: center;
  margin: 40px 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 640px) {
  .contact-card { padding: 28px 20px; }
}
