/* Source stylesheet; layouts, blocks and collections follow Subsea Formula. */
:root {
  --paper: #faf7f2;
  --ink: #46574e;
  --body: #333536;
  --accent: #dbc3e5;
  --border: #e4d5e1;
  --side: 220px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: Arial, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
body:before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%238e806a' filter='url(%23n)' opacity='.18' d='M0 0h160v160H0z'/%3E%3C/svg%3E");
}
a {
  color: inherit;
}
h1,
h2,
h3,
.brand,
.highlights span {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  color: var(--ink);
}
h1 {
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.07;
  margin: 12px 0 24px;
}
h2 {
  font-size: clamp(30px, 3.5vw, 52px);
  line-height: 1.15;
  margin: 0 0 22px;
}
h3 {
  font-size: 25px;
  line-height: 1.2;
  margin: 0 0 12px;
}
a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 5px;
}
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% - var(--side));
  padding: 36px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  line-height: 1;
  font-size: 36px;
  min-height: 48px;
}
.brand small {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  margin-top: 10px;
}
.menu {
  position: relative;
}
.menu summary {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  list-style: none;
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu summary span {
  width: 20px;
  height: 1px;
  background: var(--ink);
}
.menu nav {
  position: absolute;
  right: 0;
  top: 65px;
  width: 260px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 12px 40px #46574e20;
}
.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-list a {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 18px;
  border-radius: 12px;
  text-decoration: none;
}
.nav-list a:hover,
.nav-list a[aria-current] {
  background: #e9e8ed;
  color: var(--ink);
}
.side-menu {
  --sidebar-gap: 22px;
  position: absolute;
  right: 0;
  top: 0;
  width: var(--side);
  min-height: 1000px;
  padding: 105px 16px 28px;
  background: #faf7f2e8;
  display: flex;
  flex-direction: column;
  gap: var(--sidebar-gap);
}
.side-menu .nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--sidebar-gap);
}
.side-menu .nav-list li {
  margin: 0;
}
.side-note {
  margin: 0 -16px;
  flex-shrink: 0;
}
.side-note img {
  display: block;
  /* 55% of the sidebar at desktop size; scale down with narrower windows. */
  width: min(55%, calc(44px + 5.35vw));
  height: auto;
  margin-inline: auto;
}
.language {
  margin: 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 1px;
}
main {
  position: relative;
}
.hero {
  width: calc(100% - var(--side));
  min-height: 780px;
  position: relative;
  padding: 185px 5% 30px;
  background: var(--paper) url('../images/madeira-lavender-hero.png') right center/cover no-repeat;
}
.hero-body {
  max-width: 570px;
  position: relative;
}
.hero h1 {
  font-size: clamp(48px, 6vw, 86px);
  margin: 0 0 24px;
  letter-spacing: -4px;
}
.hero p {
  font-size: 20px;
  color: var(--ink);
  margin: 0 0 34px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  min-height: 54px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: var(--accent);
  color: #303035;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}
.btn:hover {
  background: #ceb0dc;
}
.highlights {
  position: relative;
  display: flex;
  margin-top: 120px;
  max-width: 720px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #faf7f2d9;
  padding: 22px 12px;
  box-shadow:
    inset 0 0 0 5px #faf7f2,
    inset 0 0 0 6px #e4d5e170;
}
.highlights div {
  flex: 1;
  text-align: center;
  padding: 0 14px;
}
.highlights div + div {
  border-left: 1px solid var(--border);
}
.highlights span {
  display: block;
  font-size: 34px;
}
.highlights small {
  font-size: 14px;
}
.section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 4.5%;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading a {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.excursion-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.excursion-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  background: #f5f1ec;
  transition: transform 0.2s;
}
.excursion-card:hover {
  transform: translateY(-4px);
}
.card-art {
  height: 290px;
  background-image: url('../images/madeira-lavender-hero.png');
  background-size: auto 160%;
  background-position: 75% 35%;
  position: relative;
}
.card-art:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #f5f1ec, transparent 35%);
}
.art-mountain {
  background-position: 58% 18%;
  background-size: auto 230%;
}
.art-forest {
  background-position: 96% 50%;
  background-size: auto 220%;
}
.art-city {
  background-position: 72% 35%;
  background-size: auto 250%;
}
.card-copy {
  position: relative;
  padding: 4px 18px 64px;
  flex: 1;
}
.card-copy h3 {
  font-size: 24px;
}
.card-copy p {
  margin: 0;
  font-size: 14px;
  max-width: 90%;
  line-height: 1.6;
}
.round-arrow {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: var(--accent);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}
.slow-banner {
  margin: 26px auto 36px;
  max-width: 1310px;
  padding: 46px 36px;
  min-height: 280px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--paper) url('../images/madeira-lavender-hero.png') center 65% / cover no-repeat;
}
.slow-banner h2 {
  font-size: 46px;
  max-width: 420px;
}
.slow-banner p {
  margin-bottom: 8px;
}
.slow-banner p span {
  color: #b690c9;
}
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
}
.page {
  margin-right: var(--side);
  padding: 175px 6% 80px;
  min-height: 780px;
}
.page h1 {
  max-width: 1000px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--ink);
  margin: 12px 0;
}
.lead {
  font-size: 21px;
}
.prose {
  max-width: 100%;
}
.prose > p,
.prose > ul,
.prose > h2 {
  max-width: 760px;
}
.prose h2 {
  font-size: 32px;
  margin-top: 35px;
}
.page .excursion-grid {
  margin-top: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.product-art {
  height: 350px;
  max-width: 900px;
  border-radius: 22px;
  background-image: url('../images/madeira-lavender-hero.png');
  background-repeat: no-repeat;
  margin: 28px 0;
}
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
}
.journal-list article {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.journal-list a {
  display: inline-block;
  min-height: 44px;
}
.site-footer {
  position: relative;
  border-top: 1px solid var(--border);
  padding: 36px 5%;
  color: var(--ink);
}
.footer-brand {
  font-family: Georgia, serif;
  font-size: 28px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 12px 0;
}
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.site-footer p {
  font-size: 13px;
}
.form {
  display: grid;
  gap: 20px;
  max-width: 680px;
  margin-top: 28px;
}
.field {
  display: grid;
  gap: 6px;
}
.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border: 1px solid #c4b9c9;
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  background: #fffdf9;
  color: var(--body);
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.form .btn {
  justify-self: start;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 20;
  background: var(--paper);
  padding: 12px;
}
.skip-link:focus {
  top: 12px;
}
@media (min-width: 1600px) {
  body {
    max-width: 1600px;
    margin: auto;
    position: relative;
  }
}
@media (max-width: 1050px) {
  :root {
    --side: 0px;
  }
  .side-menu {
    display: none;
  }
  .hero {
    min-height: 740px;
  }
  .hero h1 {
    font-size: clamp(48px, 8vw, 86px);
  }
  .hero-body {
    max-width: 520px;
  }
  .highlights {
    margin-top: 100px;
  }
  .excursion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card-art {
    height: 300px;
  }
  .page {
    min-height: 650px;
  }
}
@media (max-width: 600px) {
  .site-header {
    padding: 22px 6%;
  }
  .brand {
    font-size: 27px;
    gap: 8px;
  }
  .brand svg {
    width: 48px;
  }
  .brand small {
    font-size: 9px;
    letter-spacing: 2px;
  }
  .menu summary {
    width: 48px;
    height: 48px;
  }
  .hero {
    padding: 145px 6% 26px;
    min-height: 740px;
    background-position: right center;
  }
  .hero:before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #faf7f2e8, #faf7f295 60%, #faf7f220);
  }
  .hero h1 {
    font-size: clamp(34px, 10.5vw, 60px);
    letter-spacing: -2px;
  }
  .hero p {
    font-size: 17px;
    max-width: 260px;
  }
  .hero .btn {
    gap: 16px;
  }
  .highlights {
    margin-top: 155px;
    padding: 18px 5px;
  }
  .highlights div {
    padding: 0 5px;
  }
  .highlights span {
    font-size: 25px;
  }
  .highlights small {
    font-size: 11px;
  }
  .section {
    padding: 28px 6%;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .section-heading h2 {
    font-size: 35px;
  }
  .excursion-grid,
  .page .excursion-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .card-art {
    height: 300px;
  }
  .card-copy {
    padding: 6px 20px 65px;
  }
  .card-copy h3 {
    font-size: 28px;
  }
  .slow-banner {
    margin: 15px 6% 32px;
    padding: 30px 24px;
    min-height: 300px;
    background-position: 58% center;
    background-image:
      linear-gradient(90deg, #faf7f2f0, #faf7f280), url('../images/madeira-lavender-hero.png');
  }
  .slow-banner h2 {
    font-size: 36px;
  }
  .page {
    padding: 140px 6% 48px;
  }
  .page h1 {
    font-size: 44px;
  }
  .product-art {
    height: 260px;
  }
  .site-footer {
    padding: 25px 6%;
  }
  .menu nav {
    width: min(270px, 85vw);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .excursion-card {
    transition: none;
  }
}

/* Keep sidebar navigation above the full-width main element. */
.side-menu {
  z-index: 2;
}

/* One native disclosure controls the sidebar on every screen size. */
body {
  --side: 0px;
}
body:has(.menu[open]) {
  --side: 220px;
}
.menu {
  position: static;
}
.menu > summary {
  position: absolute;
  top: 36px;
  right: calc(var(--side) + 5%);
  z-index: 6;
}
.menu .side-menu nav {
  position: static;
  width: auto;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.menu[open] > summary span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu[open] > summary span:nth-child(2) {
  opacity: 0;
}
.menu[open] > summary span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
@media (max-width: 1050px) {
  body:has(.menu[open]) {
    --side: 0px;
  }
  .menu[open] .side-menu {
    display: flex;
    position: absolute;
    top: 105px;
    width: min(280px, 100%);
    height: auto;
    min-height: 0;
    max-height: calc(100dvh - 105px);
    overflow-y: auto;
    padding: 20px 16px;
    border: 1px solid var(--border);
    border-radius: 20px 0 0 20px;
    box-shadow: -8px 12px 32px #46574e20;
  }
  .menu .side-menu .nav-list li {
    margin-bottom: 0;
  }
}
@media (min-width: 1051px) {
  body:has(.menu[open]) .hero,
  body:has(.menu[open]) .page {
    min-height: 1000px;
  }
}
@media (max-width: 600px) {
  .menu > summary {
    top: 22px;
    right: 6%;
  }
  .menu[open] .side-menu {
    top: 88px;
    max-height: calc(100dvh - 88px);
  }
}

/* Car illustration from the updated Madeira reference. */
.slow-banner {
  background-image: url('../images/madeira-comfort-banner.png');
  background-position: center;
}
@media (max-width: 600px) {
  .slow-banner {
    background-image:
      linear-gradient(90deg, #faf7f2f0, #faf7f280), url('../images/madeira-comfort-banner.png');
    background-position: 65% center;
  }
}
