/* ============================================================
   Boat Trips and Rental Fuengirola — agency site
   Mediterranean travel-poster aesthetic.
   Palette: warm paper, sea ink, Mediterranean teal, terracotta.
   ============================================================ */

:root {
  --paper: #f8f3e9;
  --paper-deep: #f1e9d8;
  --ink: #16303c;
  --ink-soft: #43596399;
  --sea: #1a6276;
  --sea-deep: #124a5c;
  --terra: #c2603a;
  --gold: #d9a441;
  --hairline: #16303c1f;
  --radius: 14px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Instrument Sans", "Helvetica Neue", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain overlay for warmth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.09 0 0 0 0 0.19 0 0 0 0 0.24 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- Header ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #f8f3e9ee;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.wordmark svg { flex: 0 0 auto; }

.wordmark span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Seks språkknapper tar ~240px. Gi plassen tilbake til wordmarken trinnvis,
   ellers avkortes merkenavnet allerede på nettbrett. */
@media (max-width: 900px) {
  .lang-switch { font-size: 0.72rem; }
  .lang-switch a, .lang-switch span { padding: 5px 8px; }
}

@media (max-width: 720px) {
  .wm-x { display: none; }
}

@media (max-width: 560px) {
  .header-actions .btn-whatsapp { display: none; }
  .header-inner { flex-wrap: wrap; row-gap: 10px; }
  .lang-switch { font-size: 0.7rem; }
  .lang-switch a, .lang-switch span { padding: 5px 7px; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.lang-switch a, .lang-switch span {
  padding: 5px 11px;
  text-decoration: none;
  color: var(--ink);
}

.lang-switch .active {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:active { transform: scale(0.98); }

.btn-whatsapp {
  background: var(--sea);
  color: #fff;
  box-shadow: 0 6px 18px -8px var(--sea);
}

.btn-whatsapp:hover { background: var(--sea-deep); transform: translateY(-1px); }

.btn-ghost {
  border: 1px solid var(--ink);
  color: var(--ink);
}

.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-small { padding: 8px 16px; font-size: 0.85rem; }

/* ---------- Hero ---------- */

.hero {
  padding: 56px 0 30px;
  display: grid;
  gap: 40px;
}

.eyebrow {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 570;
  font-size: clamp(2.3rem, 6.4vw, 3.7rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin-bottom: 22px;
  max-width: 14ch;
}

.hero h1 em {
  font-style: italic;
  font-weight: 480;
  color: var(--sea);
}

.hero .lede {
  font-size: clamp(1.05rem, 2.6vw, 1.22rem);
  color: var(--ink);
  opacity: 0.82;
  max-width: 46ch;
  margin-bottom: 30px;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Poster panel — CSS-drawn Mediterranean postcard */

.poster {
  border: 1.5px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 8px 8px 0 0 #16303c14;
  position: relative;
  aspect-ratio: 4 / 3;
  max-height: 430px;
  width: 100%;
}

.poster-sky {
  position: absolute;
  inset: 0 0 38% 0;
  background: linear-gradient(180deg, #f6ead2 0%, #f3dfb7 62%, #ecd09b 100%);
}

.poster-sun {
  position: absolute;
  top: 16%;
  right: 14%;
  width: 21%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #e8a95c, var(--terra) 72%);
  box-shadow: 0 0 46px 10px #c2603a3d;
}

.poster-sea {
  position: absolute;
  inset: 62% 0 0 0;
  background:
    repeating-linear-gradient(180deg,
      #ffffff14 0 2px, transparent 2px 14px),
    linear-gradient(180deg, #2a7d92 0%, var(--sea) 38%, var(--sea-deep) 100%);
}

.poster-sea::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #f6ead2aa;
}

.boat {
  position: absolute;
  left: 18%;
  top: 47%;
  width: 17%;
  animation: bob 5.2s ease-in-out infinite;
}

.boat svg { width: 100%; height: auto; display: block; }

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-0.6deg); }
  50% { transform: translateY(-5px) rotate(0.9deg); }
}

.poster-caption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #f8f3e9;
  opacity: 0.85;
}

/* Gulls */
.gull {
  position: absolute;
  stroke: var(--ink);
  stroke-width: 1.6;
  fill: none;
  opacity: 0.55;
}

/* ---------- Sections ---------- */

section { padding: 58px 0; }

.section-head {
  margin-bottom: 34px;
  max-width: 60ch;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 570;
  font-size: clamp(1.65rem, 4.2vw, 2.3rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.section-head p { opacity: 0.8; font-size: 1.02rem; }

.rule {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

/* Cards */

.cards {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px 24px;
  background: #fffdf818;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #16303c3d;
  box-shadow: 0 14px 30px -18px #16303c40;
}

.card .glyph {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--sea);
}

.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  margin-bottom: 8px;
}

.card p { font-size: 0.96rem; opacity: 0.82; }

/* Steps */

.steps {
  display: grid;
  gap: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}

.step {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: start;
  padding: 26px 24px 26px 0;
  background: transparent;
}

.step + .step { border-top: 1px solid var(--hairline); }

.step .num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 480;
  font-size: 2rem;
  color: var(--terra);
  text-align: center;
  line-height: 1;
  padding-top: 3px;
}

.step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.step p { font-size: 0.96rem; opacity: 0.82; max-width: 56ch; }

/* About strip */

.about {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 44px 30px;
  position: relative;
  overflow: hidden;
}

.about::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid #f8f3e922;
}

.about .eyebrow { color: var(--gold); }

.about h2 {
  font-family: var(--font-display);
  font-weight: 570;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.18;
  margin-bottom: 14px;
  max-width: 30ch;
}

.about p {
  opacity: 0.85;
  max-width: 58ch;
  font-size: 1rem;
}

.about .flags {
  margin-top: 22px;
  display: flex;
  gap: 18px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

/* Contact */

.contact-box {
  text-align: center;
  padding: 20px 0 6px;
}

.contact-box h2 {
  font-family: var(--font-display);
  font-weight: 570;
  font-size: clamp(1.7rem, 4.6vw, 2.4rem);
  margin-bottom: 12px;
}

.contact-box > p {
  opacity: 0.8;
  max-width: 44ch;
  margin: 0 auto 30px;
}

.contact-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}

.contact-alt {
  font-size: 0.92rem;
  opacity: 0.75;
}

.contact-alt a { color: var(--sea); font-weight: 600; text-decoration: none; }
.contact-alt a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--hairline);
  padding: 30px 0 40px;
  font-size: 0.82rem;
  color: var(--ink);
}

footer .legal {
  opacity: 0.6;
  max-width: 74ch;
  margin-bottom: 14px;
}

footer .foot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  opacity: 0.75;
}

footer a { color: inherit; }

/* ---------- Load animation ---------- */

.rise {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.15s; }
.d3 { animation-delay: 0.25s; }
.d4 { animation-delay: 0.38s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; transform: none; }
  .boat { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Desktop ---------- */

@media (min-width: 780px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    padding: 74px 0 50px;
    gap: 56px;
  }
  .cards { grid-template-columns: repeat(3, 1fr); }
  section { padding: 72px 0; }
  .about { padding: 56px 54px; }
}
