/* ============================================================
   Lapland Welcome Oy — site styles
   Traditional tour operator layout: light, calm blue & white.
   ============================================================ */

:root {
  --blue-dark: #16405e;
  --blue-mid: #2a6a97;
  --blue-soft: #e8f1f7;
  --accent: #d98f2b;
  --ink: #243746;
  --ink-soft: #51606d;
  --line: #d5e0e8;
  --bg: #f7fafc;
  --white: #ffffff;
  --radius: 6px;
  --shadow: 0 2px 6px rgba(22, 64, 94, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

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

.container {
  width: min(1100px, 100% - 2.5rem);
  margin-inline: auto;
}

.container-narrow {
  width: min(820px, 100% - 2.5rem);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.no-break {
  white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--blue-dark);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-mark {
  width: 48px;
  height: 32px;
  flex: 0 0 auto;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-dark);
  letter-spacing: 0.02em;
}

.logo-oy {
  color: var(--accent);
}

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

.site-nav a {
  display: block;
  padding: 0.55rem 0.9rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover {
  color: var(--blue-mid);
}

.site-nav a.active {
  color: var(--blue-dark);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 11px;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--blue-dark);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 420px;
  max-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--blue-dark);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: relative;
  width: 100%;
  background: rgba(13, 36, 52, 0.55);
  padding: 3rem 0;
}

.hero-content {
  color: var(--white);
}

.hero-content h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.2;
}

.hero-content p {
  margin: 0 0 1.4rem;
  max-width: 40em;
  font-size: 1.05rem;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease;
}

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

.btn-primary:hover {
  background: #c07d1c;
  color: #fff;
}

.btn-outline {
  border-color: var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--blue-dark);
}

.btn-light {
  background: var(--white);
  color: var(--blue-dark);
}

.btn-light:hover {
  background: var(--blue-soft);
}

.text-link {
  color: var(--blue-mid);
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* ---------- Sections ---------- */
.section {
  padding: 3.2rem 0;
}

.section-tinted {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-title {
  font-size: 1.6rem;
  color: var(--blue-dark);
  margin: 0 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}

.section-lead {
  color: var(--ink-soft);
  margin-top: -0.4rem;
  margin-bottom: 1.8rem;
}

/* ---------- Intro ---------- */
.intro-grid,
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.2rem;
  align-items: start;
}

.intro-text p,
.about-grid p {
  margin-top: 0;
}

.intro-photo {
  margin: 0;
}

.intro-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.intro-photo figcaption,
.gallery-item figcaption {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.45rem;
}

/* ---------- Activity cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}

.activity-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.activity-card img {
  height: 150px;
  width: 100%;
  object-fit: cover;
}

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

.card-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--blue-dark);
}

.card-body p {
  margin: 0 0 0.9rem;
  font-size: 0.92rem;
  flex: 1;
}

.card-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue-mid);
  text-decoration: none;
}

.card-link:hover {
  color: var(--accent);
}

.wide-card {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.wide-card img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  min-height: 200px;
}

.wide-card-body {
  padding: 1.4rem 1.5rem;
}

.wide-card-body h3 {
  margin: 0 0 0.5rem;
  color: var(--blue-dark);
}

.wide-card-body p {
  margin: 0 0 0.9rem;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.gallery-item {
  margin: 0;
}

.gallery-item img {
  height: 170px;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}

.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue-mid);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
}

.feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
  color: var(--blue-dark);
}

.feature p {
  margin: 0;
  font-size: 0.92rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.2rem;
  margin-top: 0.6rem;
}

.contact-info h3,
.contact-form-wrap h3 {
  color: var(--blue-dark);
  margin-top: 0;
}

.contact-info p {
  margin: 0 0 1.1rem;
}

.contact-info a {
  color: var(--blue-mid);
  font-weight: 600;
}

.contact-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: var(--blue-soft);
  border-left: 4px solid var(--blue-mid);
  padding: 0.8rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
  box-shadow: var(--shadow);
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.req {
  color: #b34a2b;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #b9c8d3;
  border-radius: var(--radius);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--blue-mid);
  outline-offset: 1px;
  border-color: var(--blue-mid);
}

.form-row textarea {
  resize: vertical;
}

.form-check {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: flex-start;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  flex: 0 0 auto;
  accent-color: var(--blue-mid);
}

.form-check label {
  flex: 1;
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 0;
}

.form-check label a {
  color: var(--blue-mid);
  font-weight: 600;
}

.form-row input.invalid,
.form-row textarea.invalid,
.form-check input.invalid {
  border-color: #b34a2b;
  background: #fdf3ef;
}

.field-error {
  color: #b34a2b;
  font-size: 0.85rem;
  margin: 0.3rem 0 0;
}

.form-note {
  font-size: 0.83rem;
  color: var(--ink-soft);
  margin: 0.9rem 0 0;
}

.form-success {
  margin: 1rem 0 0;
  padding: 0.8rem 1rem;
  background: #eef7ee;
  border: 1px solid #a9d3a9;
  border-radius: var(--radius);
  color: #275427;
  font-size: 0.92rem;
}

/* ---------- Yritys- ja rekisteritiedot ---------- */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 1.1rem;
  font-size: 0.95rem;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.legal-table tr:last-child th,
.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-table th {
  width: 220px;
  color: var(--blue-dark);
  font-weight: 700;
  background: var(--blue-soft);
  white-space: normal;
}

.legal-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0.6rem 0 0;
}

.legal-note a {
  color: var(--blue-mid);
  font-weight: 600;
}

/* ---------- Tietosuojaseloste ---------- */
.privacy-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue-mid);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.1rem;
}

.privacy-block h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--blue-dark);
}

.privacy-block p {
  margin: 0 0 0.7rem;
  font-size: 0.94rem;
}

.privacy-block p:last-child {
  margin-bottom: 0;
}

.privacy-block a {
  color: var(--blue-mid);
  font-weight: 600;
}

/* ---------- Page banner ---------- */
.page-banner {
  background: var(--blue-dark);
  color: var(--white);
  padding: 2.6rem 0;
}

.page-banner h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
}

.page-banner p {
  margin: 0;
  color: #d7e6ef;
  max-width: 45em;
}

/* ---------- Tours ---------- */
.tour {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 1.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 1.6rem;
  scroll-margin-top: 90px;
}

.tour img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 240px;
}

.tour-body {
  padding: 1.5rem 1.7rem;
}

.tour-body h3 {
  margin: 0 0 0.7rem;
  font-size: 1.25rem;
  color: var(--blue-dark);
}

.tour-body ul {
  margin: 0.6rem 0 0.9rem;
  padding-left: 1.2rem;
}

.tour-body li {
  margin-bottom: 0.25rem;
}

.tour-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: var(--blue-soft);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
}

/* ---------- Practical info ---------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
  margin-top: 0.5rem;
}

.info-block {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
}

.info-block h3 {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
  color: var(--blue-dark);
}

.info-block p {
  margin: 0;
  font-size: 0.92rem;
}

/* ---------- Accordion ---------- */
.accordion-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.7rem;
  overflow: hidden;
}

.accordion-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-align: left;
  background: none;
  border: none;
  font: inherit;
  font-weight: 700;
  color: var(--blue-dark);
  padding: 0.9rem 1.1rem;
  cursor: pointer;
}

.accordion-btn:hover {
  background: var(--blue-soft);
}

.accordion-icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  background: var(--accent);
  transition: transform 0.2s ease;
}

.accordion-icon::before {
  left: 0;
  top: 6px;
  width: 14px;
  height: 2px;
}

.accordion-icon::after {
  left: 6px;
  top: 0;
  width: 2px;
  height: 14px;
}

.accordion-btn[aria-expanded="true"] .accordion-icon::after {
  transform: scaleY(0);
}

.accordion-panel {
  padding: 0 1.1rem 1rem;
}

.accordion-panel p {
  margin: 0;
}

/* ---------- CTA ---------- */
.cta-section {
  background: var(--blue-mid);
  color: var(--white);
  text-align: center;
}

.cta-inner h2 {
  margin: 0 0 0.5rem;
}

.cta-inner p {
  margin: 0 auto 1.4rem;
  max-width: 38em;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-dark);
  color: #d3e2ec;
  padding: 2.4rem 0 1.4rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.8rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-grid p {
  margin: 0 0 0.4rem;
}

.footer-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}

.footer-heading {
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

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

.footer-links li {
  margin-bottom: 0.3rem;
}

.site-footer a {
  color: #bcd6e5;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 1.2rem;
}

.footer-bottom p {
  margin: 0 0 0.5rem;
}

.credits {
  font-size: 0.78rem;
  color: #9cb8c9;
}

.credits a {
  color: #9cb8c9;
  text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .card-grid,
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .intro-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .tour img {
    max-height: 260px;
  }

  .wide-card {
    grid-template-columns: 1fr;
  }

  .wide-card img {
    max-height: 240px;
  }
}

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

  .site-nav {
    display: none;
    width: 100%;
  }

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

  .header-inner {
    flex-wrap: wrap;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding-bottom: 0.5rem;
  }

  .site-nav a {
    border-bottom: 1px solid var(--line);
    padding: 0.7rem 0.3rem;
  }

  .site-nav a.active {
    border-bottom-color: var(--accent);
  }

  .hero {
    min-height: 380px;
  }

  .card-grid,
  .feature-grid,
  .gallery-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 2.4rem 0;
  }

  .contact-form-wrap {
    padding: 1.2rem 1.1rem;
  }

  .legal-table th {
    width: auto;
  }

  .legal-table th,
  .legal-table td {
    padding: 0.55rem 0.7rem;
  }
}
