@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@1,600&family=Poppins:wght@400;600;700&display=swap");

:root {
  --ink: #0d3039;
  --blue: #0f4c5c;
  --blue-deep: #01394c;
  --terracotta: #d2682a;
  --terracotta-dark: #ad4e17;
  --powder: #a7bbc7;
  --sand: #f3e0d2;
  --beige: #fbf5ee;
  --mist: #f6f0ec;
  --stone: #615b4b;
  --white: #ffffff;
  --line: rgba(15, 76, 92, 0.16);
  --shadow: 0 18px 45px rgba(13, 48, 57, 0.16);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--beige);
  font-family: "Poppins", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(15, 76, 92, 0.12);
  background: rgba(251, 245, 238, 0.94);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(100% - 40px, var(--max));
  min-height: 112px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 118px;
  max-height: 100px;
  height: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--white);
}

.language-switch a {
  min-width: 42px;
  padding: 8px 10px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
}

.language-switch a[aria-current="true"] {
  color: var(--white);
  background: var(--blue);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--blue);
  cursor: pointer;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.button-primary {
  color: var(--white);
  background: var(--terracotta);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--terracotta-dark);
}

.button-secondary {
  color: var(--blue);
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(15, 76, 92, 0.36);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--blue);
}

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

.hero {
  min-height: 780px;
  position: relative;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: var(--beige);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(251, 245, 238, 0.48) 0%, rgba(251, 245, 238, 0.32) 38%, rgba(251, 245, 238, 0) 70%),
    url("../img/cocoonest-hero-winter-v2.jpg") center / cover no-repeat;
}

.hero-inner {
  position: relative;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 620px) 1fr;
  align-items: center;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--terracotta-dark);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Poppins", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.08;
}

h1 {
  max-width: 620px;
  color: var(--blue);
  font-size: 4.75rem;
}

h2 {
  color: var(--blue);
  font-size: 3rem;
}

h3 {
  color: var(--blue);
  font-size: 1.55rem;
}

.lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--ink);
  font-size: 1.16rem;
}

.hero .lead {
  max-width: 600px;
  color: var(--blue);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.5;
}

.hero h1 {
  font-weight: 600;
}

.hero .eyebrow {
  color: var(--blue);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.section {
  padding: 96px 0;
  background: var(--beige);
}

.section-white {
  background: var(--white);
}

.section-sand {
  background: var(--sand);
}

.section-blue {
  background: var(--blue);
  color: var(--white);
}

.section-inner {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.7fr);
  gap: 44px;
  align-items: end;
  margin-bottom: 42px;
}

.section-head p {
  margin: 0;
  color: var(--stone);
  font-size: 1.08rem;
}

.section-blue h2,
.section-blue h3,
.section-blue .eyebrow,
.section-blue p {
  color: var(--white);
}

.quote-band {
  padding: 64px 20px;
  background: var(--blue);
  color: var(--white);
  text-align: center;
}

.quote-band blockquote {
  max-width: 920px;
  margin: 0 auto;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 2.4rem;
  font-style: italic;
  line-height: 1.25;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.pillar-card,
.step-card,
.destination-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(13, 48, 57, 0.06);
}

.pillar-card {
  min-height: 310px;
  padding: 28px;
}

.icon-mark {
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  color: var(--terracotta);
}

.pillar-card p,
.step-card p,
.destination-card p {
  margin: 14px 0 0;
  color: var(--stone);
}

.footnote {
  margin-top: 22px;
  color: var(--stone);
  font-size: 0.92rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.step-card {
  min-height: 315px;
  padding: 26px;
}

.step-number {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  border: 1px solid rgba(210, 104, 42, 0.34);
  border-radius: 50%;
  color: var(--terracotta);
  background: var(--beige);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
}

.destinations-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.destination-card {
  overflow: hidden;
  background: var(--white);
}

.destination-card img {
  width: 100%;
  aspect-ratio: 1.35 / 1;
  object-fit: cover;
}

.destination-body {
  padding: 28px;
}

.destination-kicker {
  margin: 0 0 10px;
  color: var(--terracotta-dark);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.survey {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  padding: 44px;
  border: 1px solid rgba(15, 76, 92, 0.14);
  border-radius: 8px;
  background: var(--beige);
}

.survey p {
  margin: 18px 0 0;
  color: var(--stone);
}

.survey-note {
  margin-top: 14px;
  color: var(--stone);
  font-size: 0.9rem;
}

.newsletter {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.7fr);
  gap: 48px;
  align-items: center;
}

.newsletter-form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.newsletter-form input[type="email"] {
  min-height: 50px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--white);
}

.consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--terracotta);
}

.form-status {
  min-height: 24px;
  color: var(--sand);
  font-size: 0.92rem;
}

.site-footer {
  padding: 42px 0;
  border-top: 1px solid rgba(15, 76, 92, 0.16);
  background: var(--sand);
  color: var(--blue);
}

.footer-inner {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.footer-links,
.social-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.footer-links a,
.social-links a,
.social-links span {
  color: var(--blue);
  font-weight: 700;
}

.social-links span {
  opacity: 0.72;
}

.footer-meta {
  display: grid;
  gap: 10px;
}

.footer-logo {
  width: 150px;
  opacity: 1;
}

.cookie-banner {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: min(420px, calc(100% - 44px));
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  max-height: calc(100dvh - 44px);
  overflow-y: auto;
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0 0 14px;
  color: var(--stone);
  font-size: 0.94rem;
}

.cookie-banner h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-actions .button {
  flex: 1 1 150px;
}

.cookie-settings {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-close:not([hidden]) {
  display: block;
  margin-top: 14px;
}

.cookie-settings:focus-visible,
.cookie-banner:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.privacy-main,
.simple-main {
  background: var(--beige);
}

.page-hero {
  padding: 82px 0 46px;
}

.content-page {
  width: min(100% - 40px, 860px);
  margin: 0 auto;
  padding: 0 0 92px;
}

.content-page section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.content-page p {
  color: var(--stone);
}

.content-page a {
  color: var(--blue);
  font-weight: 700;
}

.language-landing {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px;
  background: var(--beige);
}

.language-panel {
  width: min(100%, 660px);
  text-align: center;
}

.language-panel img {
  width: 300px;
  margin: 0 auto 34px;
}

.language-panel .actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1040px) {
  .nav {
    grid-template-columns: auto auto 1fr;
  }

  .brand img {
    width: 100px;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
    order: 3;
  }

  .nav-links {
    position: fixed;
    left: 0;
    right: 0;
    top: 82px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 18px 28px 28px;
    border-bottom: 1px solid var(--line);
    background: var(--beige);
  }

  body.nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-actions {
    justify-self: end;
  }

  .nav-actions .button {
    display: none;
  }

  .hero {
    min-height: 700px;
  }

  h1 {
    font-size: 3.7rem;
  }

  h2 {
    font-size: 2.7rem;
  }

  .section-head,
  .newsletter,
  .survey {
    grid-template-columns: 1fr;
  }

  .pillars-grid,
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .nav {
    width: min(100% - 28px, var(--max));
    min-height: 92px;
    gap: 12px;
  }

  .brand img {
    width: 86px;
  }

  .nav-links {
    top: 92px;
  }

  .language-switch a {
    min-width: 36px;
    padding: 7px 8px;
  }

  .hero {
    min-height: 0;
  }

  .hero::before {
    inset: 0 0 auto;
    height: clamp(220px, 50vw, 360px);
    background:
      linear-gradient(180deg, rgba(251, 245, 238, 0) 55%, rgba(251, 245, 238, 0.35) 78%, var(--beige) 100%),
      url("../img/cocoonest-hero-winter-v2.jpg") 80% center / cover no-repeat;
  }

  .hero-inner {
    width: min(100% - 28px, var(--max));
    grid-template-columns: 1fr;
    align-items: start;
    padding: calc(clamp(220px, 50vw, 360px) + 24px) 0 48px;
  }

  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .lead {
    font-size: 1.02rem;
  }

  .section {
    padding: 70px 0;
  }

  .section-inner,
  .footer-inner,
  .content-page {
    width: min(100% - 28px, var(--max));
  }

  .quote-band blockquote {
    font-size: 1.75rem;
  }

  .pillars-grid,
  .steps-grid,
  .destinations-grid,
  .footer-inner,
  .form-row {
    grid-template-columns: 1fr;
  }

  .survey {
    padding: 30px 22px;
  }

  .newsletter {
    gap: 30px;
  }

  .hero-actions,
  .language-panel .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
