/* =============================================
   Windjammer 22 – Modernes maritimes Design
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

:root {
  --sand:       #f5f0e8;
  --sand-dark:  #e8dfc8;
  --ocean:      #1a4b6e;
  --ocean-mid:  #2e7aab;
  --ocean-light:#5ba3c9;
  --foam:       #e8f4f8;
  --text:       #2c2c2c;
  --text-light: #666;
  --white:      #ffffff;
  --accent:     #c8860a;
  --nav-h:      64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  background: var(--sand);
  color: var(--text);
  line-height: 1.7;
}

/* ---- NAVIGATION ---- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26, 75, 110, 0.97);
  backdrop-filter: blur(8px);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.nav-brand span { color: var(--ocean-light); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--ocean-light);
  color: var(--white);
}

/* Hamburger for mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  height: 70vh;
  min-height: 420px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #1a4b6e 0%, #2e7aab 50%, #1a6e5a 100%);
}

/* If banner.jpg is present it overlays */
.hero-img {
  position: absolute;
  inset: 0;
  background-image: url('bilder/banner.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 2rem;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  margin-bottom: 0.75rem;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 300;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
  margin-left: 0.75rem;
}

/* ---- WAVE DIVIDER ---- */
.wave {
  display: block;
  width: 100%;
  height: 60px;
  margin-top: -2px;
}

/* ---- LAYOUT ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 3.5rem 0;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--ocean);
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.divider {
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0.75rem 0 1.5rem;
}

/* ---- PHOTO GRID ---- */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin: 1.5rem 0;
}

.photo-grid a {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4/3;
  background: var(--sand-dark);
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.photo-grid a:hover img { transform: scale(1.07); }

/* Large photo grid variant */
.photo-grid-lg {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

/* ---- FEATURE CARDS ---- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 2px 16px rgba(26,75,110,0.08);
  border-top: 3px solid var(--ocean-light);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(26,75,110,0.15);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--ocean);
  margin-bottom: 0.5rem;
}

/* ---- HIGHLIGHT BOX ---- */
.highlight-box {
  background: var(--foam);
  border-left: 4px solid var(--ocean-mid);
  border-radius: 0 10px 10px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  color: var(--ocean);
}

/* ---- DISTANCE TABLE ---- */
.dist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 1rem;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.dist-table th {
  background: var(--ocean);
  color: white;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.dist-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--sand-dark);
  color: var(--text);
}

.dist-table tr:last-child td { border-bottom: none; }
.dist-table tr:hover td { background: var(--foam); }

/* ---- BOOKING CTA ---- */
.cta-band {
  background: linear-gradient(135deg, var(--ocean) 0%, var(--ocean-mid) 100%);
  color: white;
  text-align: center;
  padding: 3rem 1.5rem;
}

.cta-band h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.cta-band p { opacity: 0.85; margin-bottom: 1.5rem; }

/* ---- MAP EMBED ---- */
.map-wrap {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  margin: 1.5rem 0;
}

.map-wrap iframe {
  display: block;
  width: 100%;
}

/* ---- FOOTER ---- */
footer {
  background: var(--ocean);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

footer a { color: var(--ocean-light); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .footer-nav { margin-bottom: 1rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.25rem; }
footer strong { color: white; }

/* ---- TRIP LIST ---- */
.trip-list { list-style: none; }
.trip-list li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--sand-dark);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
}
.trip-list li:last-child { border-bottom: none; }
.trip-badge {
  background: var(--ocean);
  color: white;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  white-space: nowrap;
  align-self: center;
}
.trip-info { flex: 1 1 300px; }
.trip-info strong { font-family: 'Playfair Display', serif; color: var(--ocean); font-size: 1.05rem; }

/* ---- TEXT PAGE ---- */
.text-content {
  background: white;
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  line-height: 1.85;
}

.text-content h2 {
  font-family: 'Playfair Display', serif;
  color: var(--ocean);
  margin: 1.75rem 0 0.5rem;
  font-size: 1.25rem;
}
.text-content h2:first-child { margin-top: 0; }

/* ---- RESPONSIVE ---- */
@media (max-width: 700px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--ocean);
    padding: 1rem;
    gap: 0.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 0.95rem; padding: 0.6rem 1rem; }
  .nav-toggle { display: flex; }

  .hero { height: 55vh; }

  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid-lg { grid-template-columns: repeat(2, 1fr); }

  .btn-outline { margin-left: 0; margin-top: 0.5rem; }

  .text-content { padding: 1.5rem; }
}