:root {
  --ink: #1f2723;
  --muted: #65736c;
  --forest: #203d33;
  --sage: #7d9a86;
  --cream: #f7f1e7;
  --paper: #fffdf8;
  --sand: #dcc9ad;
  --terracotta: #b46c4b;
  --gold: #c89548;
  --line: rgba(31, 39, 35, 0.14);
  --white-line: rgba(255, 255, 255, 0.24);
  --shadow: 0 24px 70px rgba(31, 39, 35, 0.16);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: auto 1fr auto;
  left: 0;
  padding: 22px clamp(18px, 5vw, 72px);
  position: fixed;
  right: 0;
  top: 0;
  transition: background 200ms ease, box-shadow 200ms ease, padding 200ms ease;
  z-index: 20;
}
.site-header.is-scrolled,
.site-header.solid {
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 10px 40px rgba(31, 39, 35, 0.08);
  padding-block: 14px;
  backdrop-filter: blur(18px);
}
.brand {
  color: #fff;
  display: inline-flex;
  flex-direction: column;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  line-height: 0.94;
}
.brand strong { color: var(--sand); font-weight: 700; }
.site-header.is-scrolled .brand,
.site-header.solid .brand,
.footer-brand { color: var(--forest); }
.site-header.is-scrolled .brand strong,
.site-header.solid .brand strong,
.footer-brand strong { color: var(--terracotta); }
.nav-links {
  display: flex;
  gap: clamp(18px, 3vw, 42px);
  justify-content: center;
}
.nav-links a,
.header-cta {
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-header.is-scrolled .nav-links a,
.site-header.solid .nav-links a,
.site-header.is-scrolled .header-cta,
.site-header.solid .header-cta { color: var(--forest); }
.header-cta {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 13px 18px;
}

.hero {
  color: #fff;
  min-height: 100svh;
  padding: 152px clamp(18px, 6vw, 86px) 70px;
  position: relative;
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(28px, 6vw, 76px);
}
.hero-bg {
  background:
    linear-gradient(90deg, rgba(20, 34, 29, 0.82), rgba(20, 34, 29, 0.38) 58%, rgba(20, 34, 29, 0.72)),
    url("https://images.unsplash.com/photo-1500534314209-a25ddb2bd429?auto=format&fit=crop&w=2400&q=84") center / cover;
  inset: 0;
  position: absolute;
}
.wall-hero .hero-bg {
  background:
    linear-gradient(90deg, rgba(20, 34, 29, 0.84), rgba(20, 34, 29, 0.28) 58%, rgba(20, 34, 29, 0.78)),
    url("https://images.unsplash.com/photo-1508804185872-d7badad00f7d?auto=format&fit=crop&w=2400&q=86") center / cover;
}
.madeira-hero .hero-bg {
  background:
    linear-gradient(90deg, rgba(20, 34, 29, 0.84), rgba(20, 34, 29, 0.34) 58%, rgba(20, 34, 29, 0.72)),
    url("https://images.unsplash.com/photo-1513735492246-483525079686?auto=format&fit=crop&w=2400&q=86") center / cover;
}
.hero-content,
.hero-panel { position: relative; z-index: 1; }
.hero-content { max-width: 920px; }
.eyebrow {
  color: var(--sand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0 0 18px;
  text-transform: uppercase;
}
.eyebrow.dark { color: var(--terracotta); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 600;
  letter-spacing: 0;
}
h1 {
  font-size: clamp(52px, 7.2vw, 112px);
  line-height: 0.92;
  margin-bottom: 26px;
  overflow-wrap: break-word;
}
h2 {
  font-size: clamp(38px, 5vw, 72px);
  line-height: 0.98;
  margin-bottom: 20px;
}
h3 {
  font-size: clamp(21px, 2vw, 29px);
  line-height: 1.12;
  margin-bottom: 12px;
}
.hero-content p {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.6;
  max-width: 760px;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0.08em;
  min-height: 54px;
  padding: 0 24px;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.button:hover,
.header-cta:hover,
.floating-whatsapp:hover { transform: translateY(-2px); }
.button.primary { background: var(--terracotta); color: #fff; box-shadow: 0 16px 36px rgba(180, 108, 75, 0.28); }
.button.secondary { border-color: rgba(255, 255, 255, 0.48); color: #fff; }
.button.light { background: #fff; color: var(--forest); }
.hero-panel {
  align-self: end;
  background: rgba(255, 253, 248, 0.12);
  border: 1px solid var(--white-line);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(18px);
}
.hero-panel span,
.trip-card span,
.listing-card span,
.soft-card span {
  color: var(--gold);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.hero-panel strong {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: 34px;
  line-height: 1;
  margin-bottom: 12px;
}
.hero-panel p { color: rgba(255, 255, 255, 0.76); line-height: 1.6; }
.hero-panel a { color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: 6px; }

.section { padding: clamp(74px, 9vw, 132px) clamp(18px, 6vw, 86px); }
.section-heading { margin: 0 auto 44px; max-width: 900px; text-align: center; }
.section-heading p { color: var(--muted); font-size: 18px; line-height: 1.7; }
.intro-section { background: var(--cream); }
.section-kicker {
  color: var(--terracotta);
  font-weight: 800;
  margin-bottom: 24px;
}
.two-column {
  display: grid;
  gap: clamp(32px, 6vw, 84px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.rich-copy p,
.lead,
.story-copy p,
.form-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}
.choice-grid,
.card-grid,
.icon-grid,
.distance-grid {
  display: grid;
  gap: 22px;
}
.choice-grid,
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid.three,
.testimonials { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.image-card,
.trip-card,
.listing-card,
.soft-card,
.distance-card,
.testimonial,
.calendly-box,
.lead-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 44px rgba(31, 39, 35, 0.08);
  overflow: hidden;
}
.image-card img,
.trip-card img,
.listing-card img {
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  width: 100%;
}
.image-card div,
.trip-card div,
.listing-card div,
.soft-card,
.distance-card,
.testimonial,
.calendly-box { padding: 28px; }
.image-card a,
.trip-card a,
.listing-card a {
  color: var(--terracotta);
  font-weight: 800;
}
.image-card p,
.trip-card p,
.listing-card p,
.soft-card p,
.distance-card p {
  color: var(--muted);
  line-height: 1.65;
}
.featured,
.distances,
.faq,
.listing { background: var(--cream); }
.why { background: var(--paper); }
.benefit-list,
.check-list {
  display: grid;
  gap: 16px;
}
.benefit-list div,
.check-list p {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.benefit-list strong { display: block; margin-bottom: 6px; }
.benefit-list span,
.check-list p { color: var(--muted); line-height: 1.6; }
.icon-grid,
.distance-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.distance-card span {
  color: var(--terracotta);
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 0.9;
  margin-bottom: 42px;
}
.guide-band,
.timeline,
.testimonials {
  background: var(--forest);
  color: #fff;
}
.guide-band {
  display: grid;
  gap: 34px;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}
.guide-copy p,
.timeline-step p,
.testimonial p { color: rgba(255, 255, 255, 0.78); line-height: 1.7; }
.calendly-box {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white-line);
  box-shadow: none;
}
.calendly-box span { color: var(--sand); font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; }
.calendly-box strong { display: block; font-size: 24px; margin: 14px 0 10px; }
.timeline-list {
  border-left: 1px solid rgba(255, 255, 255, 0.25);
  margin: 0 auto;
  max-width: 920px;
}
.timeline-step {
  padding: 0 0 42px 36px;
  position: relative;
}
.timeline-step::before {
  background: var(--gold);
  border-radius: 50%;
  content: "";
  height: 14px;
  left: -7px;
  position: absolute;
  top: 4px;
  width: 14px;
}
.timeline-step span { color: var(--sand); font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; }
.story-section {
  align-items: center;
  display: grid;
  gap: clamp(34px, 6vw, 76px);
  grid-template-columns: 0.9fr 1.1fr;
}
.story-image img {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  object-fit: cover;
  width: 100%;
}
.gallery-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.2fr 1fr 1fr;
}
.gallery-grid figure {
  border-radius: var(--radius);
  margin: 0;
  min-height: 280px;
  overflow: hidden;
  position: relative;
}
.gallery-grid .large { grid-row: span 2; }
.gallery-grid img { height: 100%; object-fit: cover; width: 100%; }
.gallery-grid figcaption {
  background: linear-gradient(180deg, transparent, rgba(20, 34, 29, 0.78));
  bottom: 0;
  color: #fff;
  font-weight: 800;
  left: 0;
  padding: 50px 22px 20px;
  position: absolute;
  right: 0;
}
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.tag-cloud span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(31, 39, 35, 0.08);
  color: var(--forest);
  font-weight: 800;
  padding: 14px 18px;
}
.form-section {
  align-items: start;
  display: grid;
  gap: clamp(34px, 6vw, 78px);
  grid-template-columns: 0.9fr 1.1fr;
}
.lead-form {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: clamp(24px, 4vw, 42px);
}
.lead-form label {
  color: var(--forest);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lead-form .full { grid-column: 1 / -1; }
input, select, textarea {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font: inherit;
  min-height: 52px;
  padding: 14px 15px;
  width: 100%;
}
textarea { min-height: 118px; resize: vertical; }
.form-status {
  color: var(--muted);
  grid-column: 1 / -1;
  margin: 0;
}
.faq-list {
  display: grid;
  gap: 12px;
  margin: 0 auto;
  max-width: 920px;
}
details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
}
summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  float: right;
  font-size: 24px;
  line-height: 1;
}
details[open] summary::after { content: "-"; }
details p { color: var(--muted); line-height: 1.7; margin: 16px 0 0; }
.testimonial {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--white-line);
  box-shadow: none;
}
.testimonial p {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.15;
}
.testimonial span { color: var(--sand); font-weight: 800; }
.final-cta {
  background:
    linear-gradient(90deg, rgba(20, 34, 29, 0.86), rgba(20, 34, 29, 0.58)),
    url("https://images.unsplash.com/photo-1470004914212-05527e49370b?auto=format&fit=crop&w=2200&q=82") center / cover;
  color: #fff;
  padding: clamp(80px, 10vw, 150px) 18px;
  text-align: center;
}
.final-cta > div { margin: 0 auto; max-width: 900px; }
.center { justify-content: center; }
.footer {
  align-items: start;
  background: #f2eadc;
  display: flex;
  gap: 30px;
  justify-content: space-between;
  padding: 44px clamp(18px, 6vw, 86px) 92px;
}
.footer p { color: var(--muted); max-width: 460px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}
.footer-links a { color: var(--forest); font-weight: 800; }
.floating-whatsapp {
  background: #1f7a4d;
  border-radius: 999px;
  bottom: 20px;
  box-shadow: 0 14px 40px rgba(31, 39, 35, 0.22);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 16px 20px;
  position: fixed;
  right: 20px;
  text-transform: uppercase;
  z-index: 30;
}
.mobile-sticky { display: none; }
.page-main { padding-top: 74px; }
.page-hero { background: var(--paper); padding-bottom: 50px; }
.page-hero h1 { color: var(--forest); }
.listing { padding-top: 30px; }
.listing-card { display: grid; grid-template-columns: 0.9fr 1.1fr; }
.listing-card img { height: 100%; min-height: 270px; }

.auth-body {
  background: var(--cream);
}
.auth-shell {
  min-height: 100svh;
  padding: clamp(20px, 4vw, 54px);
}
.auth-login {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 34px;
  margin: 8vh auto 0;
  max-width: 860px;
  padding: clamp(26px, 5vw, 58px);
}
.auth-login h1 {
  color: var(--forest);
  font-size: clamp(38px, 5vw, 68px);
}
.auth-login p,
.admin-header p,
.auth-note,
.admin-field small {
  color: var(--muted);
  line-height: 1.6;
}
.auth-form {
  display: grid;
  gap: 16px;
  max-width: 520px;
}
.auth-form label,
.admin-field {
  color: var(--forest);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.admin-panel {
  display: grid;
  gap: 24px;
}
.admin-header {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 24px;
}
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
.admin-actions .button {
  min-height: 46px;
}
.admin-preview,
.admin-logout {
  border-color: var(--line);
  color: var(--forest);
}
.admin-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 280px minmax(0, 1fr);
}
.admin-sidebar,
.admin-editor {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 14px 44px rgba(31, 39, 35, 0.06);
}
.admin-sidebar {
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 16px;
  position: sticky;
  top: 16px;
}
.admin-sidebar button,
.text-button {
  background: transparent;
  border: 0;
  color: var(--forest);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: left;
}
.admin-sidebar button {
  border-radius: 14px;
  padding: 14px;
}
.admin-sidebar button.is-active {
  background: var(--cream);
  color: var(--terracotta);
}
.admin-editor {
  padding: clamp(20px, 4vw, 36px);
}
.admin-editor-head {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 24px;
}
.admin-editor h2 {
  color: var(--forest);
  font-size: clamp(30px, 4vw, 48px);
  margin-bottom: 0;
}
.admin-fields {
  display: grid;
  gap: 20px;
}
.admin-field {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}
.admin-field textarea {
  min-height: 150px;
}
.admin-field input[type="file"] {
  background: #fff;
}
.field-hint {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  margin: 0;
  text-transform: none;
}
.field-preview {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 14px;
}
.field-preview img {
  border-radius: 14px;
  max-height: 180px;
  object-fit: cover;
  width: 260px;
}
.field-preview a {
  color: var(--terracotta);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1050px) {
  .site-header { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .hero,
  .two-column,
  .choice-grid,
  .card-grid.three,
  .icon-grid,
  .distance-grid,
  .guide-band,
  .story-section,
  .form-section,
  .testimonials { grid-template-columns: 1fr 1fr; }
  .hero { align-items: end; }
  .hero-content { grid-column: 1 / -1; }
  .hero-panel { grid-column: 1 / -1; max-width: 520px; }
  .icon-grid,
  .distance-grid,
  .testimonials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .site-header { padding: 14px 16px; }
  .brand { font-size: 19px; }
  .header-cta { font-size: 10px; padding: 11px 12px; }
  .hero {
    grid-template-columns: 1fr;
    min-height: 100svh;
    padding: 118px 18px 74px;
  }
  h1 { font-size: clamp(38px, 11vw, 56px); line-height: 1; }
  h2 { font-size: clamp(34px, 11vw, 52px); }
  .button-row,
  .button { width: 100%; }
  .section { padding: 68px 18px; }
  .two-column,
  .choice-grid,
  .card-grid,
  .card-grid.three,
  .icon-grid,
  .distance-grid,
  .guide-band,
  .story-section,
  .form-section,
  .testimonials,
  .gallery-grid,
  .listing-card,
  .lead-form { grid-template-columns: 1fr; }
  .lead-form .full,
  .form-status { grid-column: auto; }
  .gallery-grid .large { grid-row: auto; }
  .footer { display: grid; padding-bottom: 104px; }
  .footer-links { justify-content: flex-start; }
  .admin-header,
  .admin-editor-head { display: grid; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; }
  .floating-whatsapp { display: none; }
  .mobile-sticky {
    background: rgba(255, 253, 248, 0.96);
    border-top: 1px solid var(--line);
    bottom: 0;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
    left: 0;
    padding: 10px;
    position: fixed;
    right: 0;
    z-index: 40;
  }
  .mobile-sticky a {
    background: var(--forest);
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 14px 10px;
    text-align: center;
    text-transform: uppercase;
  }
  .mobile-sticky a:first-child { background: var(--terracotta); }
}
