
:root {
  --primary: #0F2742;
  --accent: #4DB7D8;
  --bg: #F4F9FC;
  --white: #ffffff;
  --text: #1C2B3A;
  --muted: #5B6B7A;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15,39,66,0.12);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
h1, h2, h3, h4 {
  font-family: 'DM Serif Display', serif;
  color: var(--primary);
  line-height: 1.2;
  margin: 0 0 16px;
}
p { margin: 0 0 14px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head h2 { font-size: 2.1rem; }
.section-head p { color: var(--muted); }
.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--primary); }
.btn-primary:hover { background: #3ba3c4; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-secondary { background: transparent; border: 2px solid var(--accent); color: #ffffff; }
.btn-secondary:hover { background: var(--accent); color: #ffffff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  padding: 14px 0;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; flex-direction: column; color: var(--white); }
.brand .brand-name { font-family: 'DM Serif Display', serif; font-size: 1.35rem; }
.brand .brand-tagline { font-size: 0.72rem; color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; }
.main-nav a { color: rgba(255,255,255,0.85); font-weight: 600; font-size: 0.95rem; }
.main-nav a:hover { color: var(--accent); }
.main-nav .nav-cta { flex-shrink: 0; }
.main-nav .nav-cta a { background: var(--accent); color: var(--primary); padding: 10px 26px; border-radius: 999px; white-space: nowrap; }
.nav-close { display: none; }

/* Language switcher — Stage 1 multilingual infrastructure. Reads its
   entries entirely from multilingual.config.json / routes.json; no
   language name or code is hardcoded in this stylesheet. */
.lang-switcher { position: relative; }
.lang-switcher-toggle { background: none; border: none; font: inherit; font-weight: 600; font-size: 0.95rem; color: rgba(255,255,255,0.85); cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 0; }
.lang-switcher-toggle:hover { color: var(--accent); }
.lang-switcher-caret { font-size: 0.7em; line-height: 1; }
/* Scoped as ".lang-switcher .lang-switcher-list" (not the bare class) so
   this always outranks ".main-nav ul" (which also matches this nested
   <ul> via descendant selector and would otherwise force it visible as
   a flex row on load — this was the cause of the dropdown showing
   open by default). The !important on display is a second, explicit
   guarantee that the closed state always wins until ".open" is toggled. */
.lang-switcher .lang-switcher-list { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: calc(100% + 14px); right: 0; background: var(--white); border-radius: 10px; box-shadow: var(--shadow); min-width: 180px; max-height: 320px; overflow-y: auto; display: none !important; z-index: 60; }
.lang-switcher.open .lang-switcher-list { display: block !important; }
.lang-switcher-list li { border-top: none !important; }
.lang-switcher-list a { display: block; padding: 8px 18px; color: var(--primary) !important; font-weight: 500; }
.lang-switcher-list a:hover { background: var(--bg); color: var(--accent) !important; }
.lang-switcher-list a[aria-current="true"] { font-weight: 800; color: var(--accent) !important; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span { width: 26px; height: 3px; background: var(--white); border-radius: 2px; }

@media (max-width: 700px) {
  .hamburger { display: flex; }
  .main-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--primary);
    padding: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    z-index: 200;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .main-nav.open { display: block; }
  body.menu-open { overflow: hidden; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 16px; }
  .main-nav li { border-top: 1px solid rgba(255,255,255,0.08); }
  .main-nav a { display: block; padding: 14px 24px; }
  .main-nav .nav-cta a { border-radius: 0; text-align: center; background: none; color: var(--accent) !important; }
  .nav-close {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 18px 6px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 1.6rem;
    cursor: pointer;
    width: 100%;
    line-height: 1;
  }
  .nav-close:hover { color: var(--white); }
  .lang-switcher-toggle { width: 100%; justify-content: center; padding: 14px 24px; }
  .lang-switcher .lang-switcher-list { position: static; box-shadow: none; min-width: 0; max-height: none; overflow: visible; background: none; padding: 0 0 4px; }
  .lang-switcher-list a { text-align: center; color: rgba(255,255,255,0.85) !important; }
  .lang-switcher-list a:hover, .lang-switcher-list a[aria-current="true"] { background: none; color: var(--accent) !important; }
}

/* Hero */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(15,39,66,0.55), rgba(15,39,66,0.85)), var(--primary);
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
}
.hero-tour { min-height: 60vh; }
.hero-blurred { position: relative; overflow: hidden; background: var(--primary); }
.hero-blurred::before {
  content: "";
  position: absolute;
  inset: -20px;
  background-image: var(--hero-photo);
  background-size: cover;
  background-position: center;
  filter: blur(5px);
  z-index: 0;
}
.hero-blurred::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15,39,66,0.18);
  z-index: 1;
}
.hero-blurred .container { position: relative; z-index: 2; }
.hero .container { max-width: 820px; }
.hero h1 { color: var(--white); font-size: 2.6rem; margin-bottom: 12px; }
.hero .slogan { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; margin-bottom: 14px; }
.hero .intro { color: rgba(255,255,255,0.88); font-size: 1.08rem; margin-bottom: 28px; }
.hero .hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Advantages */
.advantages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.advantage-card { background: var(--white); border-radius: var(--radius); padding: 34px 28px; box-shadow: var(--shadow); text-align: center; }
.advantage-card .icon { font-size: 2.6rem; margin-bottom: 16px; }
.advantage-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.advantage-card p { color: var(--muted); font-size: 0.96rem; margin: 0; }
.advantages-cta { text-align: center; margin-top: 40px; }

/* History */
.history { background: var(--primary); color: var(--white); }
.history h2 { color: var(--white); }
.history .section-head p { color: rgba(255,255,255,0.75); }
.history-text p { color: rgba(255,255,255,0.85); max-width: 820px; margin: 0 auto 16px; }
.facts-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; max-width: 820px; margin-left: auto; margin-right: auto; }

/* Seasonal Wildlife Calendar */
.wildlife-calendar { margin: 44px auto 0; max-width: 980px; }
.wildlife-calendar h3 { color: var(--white); text-align: center; font-size: 1.5rem; margin-bottom: 22px; }
.wildlife-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  -webkit-overflow-scrolling: touch;
}
.wildlife-table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 0.92rem; }
.wildlife-table th, .wildlife-table td { padding: 14px 12px; text-align: center; white-space: nowrap; }
.wildlife-table thead th {
  color: var(--accent);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.wildlife-table tbody td { color: rgba(255,255,255,0.85); font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.wildlife-table tbody tr:last-child td { border-bottom: none; }
.wildlife-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.035); }
.wildlife-table th.wildlife-col, .wildlife-table td.wildlife-col {
  position: sticky;
  left: 0;
  z-index: 2;
  text-align: left;
  font-weight: 700;
  color: var(--white);
  background: #10294A;
}
.wildlife-table tbody tr:nth-child(even) td.wildlife-col { background: #12304F; }
.wildlife-table .cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1;
}
.wildlife-table .cell.peak { background: rgba(77,183,216,0.30); color: var(--accent); font-weight: 800; }
.wildlife-table .cell.common { background: rgba(77,183,216,0.14); color: #8FD3E8; }
.wildlife-table .cell.possible { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.55); }
.wildlife-table .cell.rare { background: transparent; color: rgba(255,255,255,0.28); }
.wildlife-legend { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-top: 18px; font-size: 0.82rem; color: rgba(255,255,255,0.7); }
.wildlife-legend .legend-item { display: flex; align-items: center; gap: 8px; }
.wildlife-legend .cell { width: 22px; height: 22px; font-size: 0.85rem; }
.wildlife-calendar-cta { text-align: center; margin-top: 28px; }
@media (max-width: 700px) {
  .wildlife-calendar h3 { font-size: 1.25rem; }
  .wildlife-table { min-width: 640px; }
  .wildlife-table th, .wildlife-table td { padding: 10px 8px; }
  .wildlife-table .cell { width: 26px; height: 26px; }
}
.fact-box { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius); padding: 24px 16px; text-align: center; }
.fact-box .value { font-family: 'DM Serif Display', serif; font-size: 1.5rem; color: var(--accent); margin-bottom: 6px; }
.fact-box .label { font-size: 0.85rem; color: rgba(255,255,255,0.75); }

/* Tours hub */
.tours-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tour-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.tour-card .tour-img { height: 210px; overflow: hidden; position: relative; }
.tour-card .tour-img img { width: 100%; height: 100%; object-fit: cover; }
.tour-card .badge { position: absolute; top: 14px; left: 14px; background: var(--accent); color: var(--primary); font-size: 0.75rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.tour-card .tour-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.tour-card h2 { font-size: 1.3rem; margin-bottom: 8px; }
.tour-card .tour-meta { display: flex; gap: 14px; font-size: 0.85rem; color: var(--muted); margin-bottom: 12px; flex-wrap: wrap; }
.tour-card .hook { color: var(--muted); font-size: 0.95rem; flex: 1; }
.tour-card .tour-ctas { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.tour-card .tour-ctas .btn { padding: 11px 20px; font-size: 0.9rem; }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--white); border-radius: var(--radius); margin-bottom: 14px; box-shadow: var(--shadow); overflow: hidden; }
.faq-question { display: flex; align-items: center; justify-content: space-between; padding: 20px 26px; cursor: pointer; font-weight: 700; color: var(--primary); }
.faq-question .icon { transition: transform 0.2s ease; color: var(--accent); font-size: 1.3rem; }
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; padding: 0 26px; color: var(--muted); }
.faq-item.open .faq-answer { max-height: 400px; padding: 0 26px 22px; }
.faq-link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.faq-link:hover { color: var(--primary); text-decoration: underline; }
.faq-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; text-decoration: underline; }

/* CTA banners */
.cta-banner { background: linear-gradient(135deg, var(--primary), #163a5f); color: var(--white); text-align: center; padding: 60px 0; }
.cta-banner h2 { color: var(--white); font-size: 1.9rem; }
.cta-banner p { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto 26px; }

/* CTA banner with photo gallery (Whale Watching Tour Reykjavik, Whale Watching Reykjavik Yacht, and Puffin and Whale Watching Reykjavik pages) */
.cta-banner-gallery { padding: 90px 0; }
.cta-gallery-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.cta-gallery-content { text-align: left; }
.cta-gallery-content h2 { text-align: left; }
.cta-gallery-content p { text-align: left; margin-left: 0; }
.cta-gallery-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: rgba(255,255,255,0.06);
}
.cta-gallery-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.cta-gallery-slide.active { opacity: 1; }
.cta-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(15,39,66,0.55);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: background 0.15s ease;
}
.cta-gallery-arrow:hover { background: rgba(15,39,66,0.85); }
.cta-gallery-arrow.prev { left: 14px; }
.cta-gallery-arrow.next { right: 14px; }
.cta-gallery-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.cta-gallery-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: background 0.15s ease, transform 0.15s ease; }
.cta-gallery-dot.active { background: var(--accent); transform: scale(1.25); }

/* Reviews */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.review-card .review-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.review-card img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.review-card .review-name { font-weight: 700; color: var(--primary); }
.review-card .review-loc { font-size: 0.82rem; color: var(--muted); }
.review-card .stars { color: var(--accent); margin-bottom: 8px; }
.review-card .aspect { display: inline-block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.review-card p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* Footer */
.site-footer { background: var(--primary); color: rgba(255,255,255,0.75); padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { color: var(--white); font-size: 1rem; font-family: 'Manrope', sans-serif; font-weight: 700; margin-bottom: 16px; }
.footer-grid .brand-name { font-family: 'DM Serif Display', serif; color: var(--white); font-size: 1.3rem; margin-bottom: 10px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; text-align: center; font-size: 0.85rem; }
.affiliate-disclosure { font-size: 0.78rem; color: rgba(255,255,255,0.3); margin-top: 6px; text-align: center; }

/* Tour page — practical sections */
.booking-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; margin-top: 0; position: relative; z-index: 5; }
.booking-card .rating { color: var(--accent); margin: 6px 0 16px; font-weight: 700; }
.booking-card .rating-first { margin-top: 0; }
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.about-grid .badges { margin-bottom: 14px; }
.badge-pill { display: inline-block; background: rgba(77,183,216,0.14); color: var(--accent); font-size: 0.75rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; margin-right: 8px; }

.details-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.detail-box { background: var(--white); border: 2px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; text-align: center; }
.detail-box .label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 6px; }
.detail-box .value { font-weight: 700; color: var(--primary); }

.route-timeline { max-width: 760px; margin: 0 auto; position: relative; padding-left: 32px; }
.route-timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: rgba(15,39,66,0.15); }
.route-stop { position: relative; padding-bottom: 30px; }
.route-stop:last-child { padding-bottom: 0; }
.route-stop::before { content: ""; position: absolute; left: -32px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--accent); }
.route-stop h4 { margin-bottom: 4px; font-size: 1.05rem; }
.route-stop p { color: var(--muted); margin: 0; font-size: 0.94rem; }

.experience-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.experience-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; display: flex; gap: 14px; align-items: flex-start; }
.experience-card .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex-shrink: 0; }
.experience-card p { margin: 0; color: var(--text); }

.include-exclude { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.include-exclude ul { list-style: none; margin: 0; padding: 0; }
.include-exclude li { padding: 10px 0 10px 30px; position: relative; border-bottom: 1px solid rgba(15,39,66,0.08); color: var(--text); }
.include-exclude .includes li::before { content: "✓"; position: absolute; left: 0; color: #2E9E5B; font-weight: 700; }
.include-exclude .excludes li::before { content: "✕"; position: absolute; left: 0; color: #C24545; font-weight: 700; }

.meeting-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.meeting-grid iframe { width: 100%; height: 320px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.meeting-info { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.meeting-info h3 { font-size: 1.15rem; margin-bottom: 6px; }

.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.info-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; display: flex; flex-direction: column; gap: 10px; min-height: 190px; }
.info-card .info-icon { font-size: 1.7rem; line-height: 1; }
.info-card h3 { font-size: 1.05rem; margin: 0; }
.info-card p { margin: 0; color: var(--muted); font-size: 0.92rem; flex: 1; }

/* Utility */
.center-cta { text-align: center; padding: 44px 0; }
.mt-0 { margin-top: 0; padding-top: 36px; }
.section-alt { background: var(--white); }

@media (max-width: 980px) {
  .advantages-grid, .tours-grid, .reviews-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-grid, .meeting-grid, .include-exclude { grid-template-columns: 1fr; }
  .details-grid { grid-template-columns: 1fr; }
  .facts-row { grid-template-columns: 1fr; }
  .booking-card { margin-top: 24px; }
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-banner-gallery { padding: 60px 0; }
  .cta-gallery-layout { grid-template-columns: 1fr; gap: 32px; }
  .cta-gallery-content, .cta-gallery-content h2, .cta-gallery-content p { text-align: center; }
  .cta-gallery-content p { margin-left: auto; margin-right: auto; }
}
@media (max-width: 700px) {
  section { padding: 52px 0; }
  .hero h1 { font-size: 2rem; }
  body, .container { text-align: center; }
  .about-grid, .meeting-grid { text-align: left; }
  .info-grid { grid-template-columns: 1fr; }
  .info-card { min-height: 0; }
}
