/* Samana Shore Excursions — Premium Eco-Tourism Styles */

:root {
  --ocean-deep: #0a4d68;
  --ocean-mid: #088395;
  --ocean-light: #05bfdb;
  --ocean-pale: #e8f7fa;
  --jungle-dark: #1b4332;
  --jungle-mid: #2d6a4f;
  --jungle-light: #40916c;
  --jungle-pale: #d8f3dc;
  --white: #ffffff;
  --off-white: #f8fbfc;
  --text-dark: #1a2e35;
  --text-muted: #4a6572;
  --gold-accent: #c9a227;
  --shadow: 0 4px 24px rgba(10, 77, 104, 0.12);
  --shadow-lg: 0 12px 40px rgba(10, 77, 104, 0.18);
  --radius: 12px;
  --radius-sm: 8px;
  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --max-width: 1200px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

a {
  color: var(--ocean-mid);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--jungle-dark);
}

h1 { font-size: clamp(2rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li { margin-bottom: 0.4rem; }

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--jungle-dark);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 9999;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(10, 77, 104, 0.08);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1rem;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--jungle-dark);
  flex-shrink: 0;
}

.logo-main {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.logo-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ocean-mid);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  color: var(--ocean-deep);
  font-size: 1.25rem;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.main-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: var(--ocean-pale);
  color: var(--ocean-deep);
}

/* Hero */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 77, 104, 0.82) 0%,
    rgba(27, 67, 50, 0.65) 60%,
    rgba(10, 77, 104, 0.45) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
  max-width: 720px;
}

.hero-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.95;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-primary {
  background: var(--jungle-light);
  color: var(--white);
  border-color: var(--jungle-light);
}

.btn-primary:hover {
  background: var(--jungle-mid);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

.btn-outline {
  background: var(--white);
  color: var(--ocean-deep);
  border-color: var(--ocean-mid);
}

.btn-outline:hover {
  background: var(--ocean-pale);
  color: var(--ocean-deep);
}

/* Sections */
section {
  padding: 4rem 0;
}

section:nth-child(even) {
  background: var(--white);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--jungle-light);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Cards grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--jungle-light);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card h3 a {
  text-decoration: none;
  color: var(--jungle-dark);
}

.card h3 a:hover {
  color: var(--ocean-mid);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.75rem 0;
}

.card-meta span::before {
  content: "•";
  margin-right: 0.5rem;
  color: var(--ocean-light);
}

.card-meta span:first-child::before {
  content: none;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex: 1;
}

.card-link {
  margin-top: 1rem;
  font-weight: 600;
  text-decoration: none;
}

/* Feature blocks */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.feature-row.reverse .feature-img {
  order: 2;
}

.feature-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.feature-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.feature-content ul {
  color: var(--text-muted);
}

/* Comparison table */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--white);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 900px;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(10, 77, 104, 0.08);
}

.comparison-table th {
  background: var(--ocean-deep);
  color: var(--white);
  font-weight: 600;
  white-space: nowrap;
}

.comparison-table tr:hover td {
  background: var(--ocean-pale);
}

.comparison-table td:first-child {
  font-weight: 600;
}

.comparison-table a {
  color: var(--ocean-deep);
  font-weight: 600;
}

/* Snapshot box (tour pages) */
.snapshot {
  background: linear-gradient(135deg, var(--ocean-pale), var(--jungle-pale));
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2.5rem;
  border-left: 4px solid var(--jungle-light);
}

.snapshot h2 {
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.snapshot-item {
  background: var(--white);
  padding: 1rem;
  border-radius: var(--radius-sm);
}

.snapshot-item dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.snapshot-item dd {
  font-weight: 600;
  color: var(--jungle-dark);
  margin: 0;
}

/* Tour page content */
.tour-content section {
  padding: 2.5rem 0;
}

.tour-content section + section {
  border-top: 1px solid rgba(10, 77, 104, 0.08);
}

.content-block {
  max-width: 800px;
}

.breadcrumb {
  padding: 1rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--ocean-mid);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.25rem;
}

.breadcrumb li + li::before {
  content: "/";
  margin: 0 0.5rem;
  color: var(--text-muted);
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--jungle-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: inherit;
}

.faq-question:hover {
  background: var(--ocean-pale);
}

.faq-question::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--ocean-mid);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
}

.faq-item.open .faq-answer {
  display: block;
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--ocean-deep), var(--jungle-mid));
  color: var(--white);
  text-align: center;
  padding: 4rem 2rem;
  border-radius: var(--radius);
  margin: 2rem 0;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-banner p {
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.cta-banner .btn-primary {
  background: var(--white);
  color: var(--ocean-deep);
  border-color: var(--white);
}

.cta-banner .btn-primary:hover {
  background: var(--ocean-pale);
}

/* Contact form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--jungle-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(10, 77, 104, 0.15);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ocean-mid);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
  background-image: url('/images/hero-cayo-levantado.png');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 77, 104, 0.82) 0%,
    rgba(27, 67, 50, 0.65) 60%,
    rgba(10, 77, 104, 0.45) 100%
  );
  z-index: 0;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-hero p {
  opacity: 0.9;
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.page-hero .breadcrumb {
  color: rgba(255, 255, 255, 0.8);
  padding: 0 0 1rem;
}

.page-hero .breadcrumb a {
  color: var(--ocean-light);
}

.page-hero .breadcrumb a:hover {
  color: var(--white);
}

.page-hero .breadcrumb li + li::before {
  color: rgba(255, 255, 255, 0.6);
}

/* Info boxes */
.info-box {
  background: var(--ocean-pale);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--ocean-mid);
}

.info-box.warning {
  background: #fff8e6;
  border-left-color: var(--gold-accent);
}

/* Footer */
.site-footer {
  background: var(--jungle-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 3.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-grid h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-family: var(--font-sans);
}

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

.footer-grid a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  padding: 0.25rem 0;
}

.footer-grid a:hover {
  color: var(--ocean-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-disclaimer {
  max-width: 800px;
  margin: 0 auto 1rem;
  line-height: 1.5;
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* Responsive */
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid rgba(10, 77, 104, 0.1);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.open {
    max-height: 80vh;
    overflow-y: auto;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 1rem;
  }

  .main-nav a {
    padding: 0.75rem 1rem;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature-row.reverse .feature-img {
    order: 0;
  }
}

@media (max-width: 600px) {
  section {
    padding: 3rem 0;
  }

  .hero {
    min-height: 60vh;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .snapshot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card:hover, .btn:hover { transform: none; }
}
