@font-face {
  font-family: "Source Serif 4";
  src: url('/fonts/source-serif-4-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Work Sans";
  src: url('/fonts/work-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
/* Art direction: Sea-glass teal / Source Serif 4 headings with Work Sans body / editorial */

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

/* === Light palette (default) === */
:root {
  --bg: #f3f8f8;
  --surface: #ffffff;
  --text: #0e2122;
  --muted: #4d6a6c;
  --border: #d5e5e5;
  --accent: #14666b;
  --accent-contrast: #ffffff;
  --font-heading: 'Source Serif 4', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Work Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* === Dark palette === */
[data-theme="dark"] {
  --bg: #0a1516;
  --surface: #112122;
  --text: #e7f4f4;
  --muted: #96b8ba;
  --border: #1d3738;
  --accent: #63c3c9;
  --accent-contrast: #04211f;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s, color 0.3s;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.25rem); margin-bottom: 0.5em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 0.5em; }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); margin-bottom: 0.5em; }

p { max-width: 68ch; margin-bottom: 1em; }

/* === Links === */
a { color: var(--accent); text-decoration: underline; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

/* === Skip link === */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 0.5rem 1rem;
  z-index: 1000;
  transition: top 0.2s;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
}

/* === Focus-visible === */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: background 0.3s, border-color 0.3s;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  gap: 1rem;
}
.site-logo {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.site-logo:hover { opacity: 0.8; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.main-nav a.current, .main-nav a:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
  padding: 0.25rem;
}
[data-theme-toggle] {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: background 0.2s;
}
[data-theme-toggle]:hover {
  background: var(--border);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    box-shadow: var(--shadow);
  }
  .main-nav.open {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* === Hero === */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-image {
  position: absolute;
  inset: 0;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 2rem 1.5rem;
  color: #fff;
  margin-left: 5%;
}
.hero-content h1 {
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

/* === Page Hero (interior pages) === */
.page-hero {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.page-hero-image {
  position: absolute;
  inset: 0;
}
.page-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 1.5rem;
  color: #fff;
  text-align: center;
  width: 100%;
}
.page-hero-content h1 {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  margin-bottom: 0;
}

/* === Sections === */
.section {
  padding-block: clamp(4rem, 9vw, 7rem);
  padding-inline: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.section.off-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.section.off-grid .section-text {
  order: 1;
}
.section.off-grid .section-image {
  order: 2;
}
.section.off-grid .section-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

@media (max-width: 768px) {
  .section.off-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .section.off-grid .section-image {
    order: -1;
  }
}

/* === Tours Preview === */
.tours-preview {
  text-align: center;
}
.tour-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.tour-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  text-align: left;
  transition: transform 0.2s, box-shadow 0.2s;
}
.tour-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.tour-card h3 {
  margin-bottom: 0.5rem;
}
.tour-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* === Buttons === */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 0.7rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 1;
}

/* === Gallery === */
.gallery-section {
  text-align: center;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
}
.gallery-grid figure a {
  display: block;
  line-height: 0;
}
.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s;
}
.gallery-grid img:hover {
  transform: scale(1.05);
}

/* === Lightbox === */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.open {
  display: flex;
}
.lightbox-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

/* === Contact === */
.contact-section {
  text-align: center;
}
.contact-details p {
  margin: 0.5rem 0;
}

/* === Features grid (about page) === */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding-block: clamp(4rem, 9vw, 7rem);
  padding-inline: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
}
.feature h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}
.feature p {
  color: var(--muted);
}
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* === Footer === */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  margin-top: 3rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.footer-contact p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.footer-contact a {
  color: var(--accent);
}
.footer-copy {
  font-size: 0.85rem;
  color: var(--muted);
}

/* === Responsive extras === */
@media (max-width: 480px) {
  .hero-content { margin-left: 0; }
  .hero { min-height: 60vh; }
  .page-hero { min-height: 30vh; }
  .gallery-grid img { height: 150px; }
}

/* === Smooth transitions for theme toggle === */
body, .site-header, .site-footer, .feature, .tour-card {
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

/* === Atlantic blue undertone === */
::selection {
  background: var(--accent);
  color: var(--accent-contrast);
}