/* Sousa Ponte Amorim — Alojamento Local, Funchal
   Warm Editorial design system (Option B).
   Instrument Serif display + DM Sans body. Cream paper, burnt orange + wine,
   deep Atlantic green as a third accent for nature/location content. */

:root{
  --bg:        #f6efe2;
  --bg-alt:    #efe5d2;
  --bg-ink:    #221610;
  --ink:       #2a1b12;
  --muted:     #7c6b5c;
  --faint:     #a9988785;
  --line:      rgba(42,27,18,.16);
  --line-soft: rgba(42,27,18,.09);
  --accent:    #cf4f29;   /* burnt orange */
  --accent-2:  #8e2b3a;   /* wine */
  --sea:       #2f6b5e;   /* deep atlantic green */
  --on-accent: #f8f2e7;
  --display: 'Instrument Serif', Georgia, serif;
  --body: 'DM Sans', system-ui, sans-serif;
  --maxw: 1180px;
  --pad: 40px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--body);
  font-size:17px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{ max-width:100%; display:block; }
a{ color:inherit; }

.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 var(--pad); }

/* ---------- type ---------- */
.label{
  font-family:var(--body);
  font-weight:600;
  font-size:12.5px;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--accent-2);
  margin:0;
}
.label--sea{ color:var(--sea); }
.d1{ font-family:var(--display); font-weight:400; font-size:clamp(56px,8.5vw,128px); line-height:.94; letter-spacing:0; margin:0; }
.d2{ font-family:var(--display); font-weight:400; font-size:clamp(40px,5vw,72px); line-height:1; margin:0; }
.d3{ font-family:var(--display); font-weight:400; font-size:clamp(28px,3vw,40px); line-height:1.05; margin:0; }
.accent{ color:var(--accent); font-style:italic; }
.accent-sea{ color:var(--sea); font-style:italic; }
.lede{ font-size:20px; line-height:1.55; color:var(--muted); margin:0; max-width:54ch; }
.serif-quote{ font-family:var(--display); font-weight:400; font-size:clamp(30px,3.4vw,46px); line-height:1.22; }

/* ---------- nav ---------- */
.nav{
  position:sticky; top:0; z-index:50;
  background:color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.nav-inner{ display:flex; align-items:center; justify-content:space-between; height:74px; }
.brand{ font-family:var(--body); font-weight:600; font-size:15px; letter-spacing:.18em; text-transform:uppercase; text-decoration:none; color:var(--ink); }
.brand b{ color:var(--accent); font-weight:600; }
.nav-links{ display:flex; align-items:center; gap:32px; }
.nav-links a{ font-size:13px; font-weight:500; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); text-decoration:none; transition:color .15s; }
.nav-links a:hover{ color:var(--ink); }
.nav-links a.is-active{ color:var(--accent); }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--body); font-weight:600; font-size:13px; letter-spacing:.1em; text-transform:uppercase; line-height:1;
  padding:15px 24px; border-radius:999px; text-decoration:none; cursor:pointer; border:1.5px solid var(--accent);
  background:var(--accent); color:var(--on-accent); transition:transform .15s, background .15s;
}
.btn:hover{ transform:translateY(-1px); }
.btn--ghost{ background:transparent; color:var(--ink); border-color:var(--line); }
.btn--ghost:hover{ border-color:var(--ink); }
.btn--sea{ background:var(--sea); border-color:var(--sea); }
.btn--lg{ padding:18px 30px; font-size:14px; }

/* ---------- sections ---------- */
.section{ padding:104px 0; }
.section--alt{ background:var(--bg-alt); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.section--tight{ padding:72px 0; }
.sec-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:32px; margin-bottom:54px; flex-wrap:wrap; }
.sec-head .label{ margin-bottom:14px; }

/* ---------- image placeholder ---------- */
.ph{
  position:relative; width:100%; border-radius:18px; overflow:hidden;
  background:repeating-linear-gradient(135deg,#e8ddc8 0 15px,#ded2b9 15px 30px);
  border:1px solid var(--line);
}
.ph--sea{ background:repeating-linear-gradient(135deg,#dce7e2 0 15px,#cfdfd8 15px 30px); }
.ph[data-cap]::after{
  content:attr(data-cap); position:absolute; left:16px; bottom:14px;
  font-family:var(--body); font-size:11px; letter-spacing:.13em; text-transform:uppercase; color:var(--ink);
  background:var(--bg); padding:6px 11px; border-radius:5px; opacity:.92;
}
.ph--ratio{ aspect-ratio:4/3; }
.ph--tall{ aspect-ratio:3/4; }
.ph--wide{ aspect-ratio:16/7; }

/* ---------- hero ---------- */
.hero{ padding:72px 0 92px; }
.hero-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:center; }
.hero-eyebrow{ display:flex; align-items:center; gap:13px; margin-bottom:26px; }
.hero-eyebrow .dot{ width:7px; height:7px; border-radius:50%; background:var(--accent); }
.hero h1{ margin:0 0 30px; }
.hero .cta-row{ display:flex; gap:14px; flex-wrap:wrap; margin:34px 0 36px; }
.hero-meta{ display:flex; gap:12px; align-items:center; font-size:13.5px; color:var(--muted); border-top:1px solid var(--line); padding-top:20px; }
.hero-meta b{ color:var(--ink); font-weight:600; }

/* ---------- generic grids ---------- */
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:30px; }
.grid-2-1{ display:grid; grid-template-columns:1fr .8fr; gap:48px; }

/* ---------- stay cards ---------- */
.stay{ display:flex; flex-direction:column; }
.stay .ph{ aspect-ratio:4/3; margin-bottom:20px; }
.stay .num{ font-size:12.5px; font-weight:600; letter-spacing:.13em; text-transform:uppercase; color:var(--accent-2); margin:0 0 9px; }
.stay h3{ margin:0 0 11px; }
.stay p{ margin:0; color:var(--muted); font-size:16px; }

/* ---------- story / quote band ---------- */
.story p{ margin:0; max-width:24ch; }
.story-band{ max-width:1000px; }
.story-band p{ margin:0; }

/* ---------- info / visit ---------- */
.info-row{ border-top:1px solid var(--line); padding:18px 0; }
.info-row .k{ font-size:12px; font-weight:600; letter-spacing:.15em; text-transform:uppercase; color:var(--accent-2); margin:0 0 7px; }
.info-row .v{ font-size:18px; }
.info-row .v span{ color:var(--muted); }
.reserve-panel{ background:var(--accent); color:var(--on-accent); border-radius:20px; padding:46px 42px; display:flex; flex-direction:column; }
.reserve-panel.is-sea{ background:var(--sea); }
.reserve-panel .label{ color:var(--on-accent); opacity:.72; }
.reserve-panel h3{ margin:16px 0 12px; }
.reserve-panel p{ margin:0 0 28px; opacity:.9; }
.reserve-panel .btn{ background:var(--on-accent); color:var(--accent); border-color:var(--on-accent); align-self:flex-start; }
.reserve-panel.is-sea .btn{ color:var(--sea); }

/* ---------- footer ---------- */
.footer{ border-top:1px solid var(--line); padding:48px 0 56px; }
.footer-grid{ display:flex; justify-content:space-between; gap:32px; flex-wrap:wrap; align-items:flex-start; }
.footer .brand{ font-size:15px; }
.footer-cols{ display:flex; gap:64px; flex-wrap:wrap; }
.footer-col h4{ font-size:12px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--accent-2); margin:0 0 14px; }
.footer-col a, .footer-col p{ display:block; font-size:14px; color:var(--muted); text-decoration:none; margin:0 0 9px; }
.footer-base{ display:flex; justify-content:space-between; gap:20px; flex-wrap:wrap; margin-top:40px; padding-top:22px; border-top:1px solid var(--line); font-size:12.5px; letter-spacing:.06em; color:var(--muted); text-transform:uppercase; }

/* ---------- stats: bar chart ---------- */
.stats-grid{ display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:start; }
.barchart{ display:flex; flex-direction:column; gap:22px; }
.bar-row{ display:grid; grid-template-columns:160px 1fr; align-items:center; gap:18px; }
.bar-name{ display:flex; align-items:center; gap:11px; font-weight:600; font-size:15.5px; }
.bar-rank{ font-family:var(--display); font-size:26px; color:var(--accent); width:26px; line-height:1; }
.bar-track{ position:relative; height:40px; background:#e6dcc6; border-radius:8px; overflow:hidden; }
.bar-fill{ position:absolute; inset:0 auto 0 0; background:linear-gradient(90deg,var(--accent),var(--accent-2)); border-radius:8px; display:flex; align-items:center; justify-content:flex-end; padding-right:13px; color:var(--on-accent); font-weight:600; font-size:13.5px; }
.bar-fill.is-sea{ background:linear-gradient(90deg,var(--sea),#3f8a78); }

/* flag chip — simple 2-letter code, no emoji */
.flag{ display:inline-flex; align-items:center; justify-content:center; min-width:30px; height:21px; padding:0 6px; border-radius:4px; font-size:11px; font-weight:700; letter-spacing:.04em; color:#fff; }

/* country grid (the 12) */
.country-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.country{ display:flex; align-items:center; gap:12px; padding:16px 18px; background:var(--bg); border:1px solid var(--line); border-radius:12px; }
.section--alt .country{ background:var(--bg); }
.country .nm{ font-weight:600; font-size:15px; }
.country .sub{ font-size:12.5px; color:var(--muted); }

/* ---------- blog ---------- */
.post-list{ display:grid; grid-template-columns:repeat(2,1fr); gap:30px; }
.post{ display:flex; flex-direction:column; background:var(--bg); border:1px solid var(--line); border-radius:18px; overflow:hidden; }
.section--alt .post{ background:var(--bg); }
.post .ph{ aspect-ratio:16/9; border-radius:0; border:0; border-bottom:1px solid var(--line); }
.post-body{ padding:28px 30px 30px; display:flex; flex-direction:column; flex:1; }
.post-meta{ display:flex; align-items:center; gap:11px; margin-bottom:16px; }
.post-author{ font-weight:600; font-size:14.5px; }
.post-where{ font-size:12.5px; color:var(--muted); }
.post-lang{ margin-left:auto; font-size:10.5px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); border:1px solid var(--line); padding:4px 8px; border-radius:5px; }
.rating{ display:flex; gap:3px; margin-bottom:14px; }
.rating .s{ width:13px; height:13px; border-radius:50%; background:var(--accent); }
.rating .s.off{ background:var(--line); }
.post h3{ margin:0 0 12px; }
.post p{ margin:0; color:var(--muted); font-size:15.5px; }
.post .orig{ margin-top:14px; font-style:italic; color:var(--ink); font-family:var(--display); font-size:19px; line-height:1.35; }

/* ---------- questionnaire ---------- */
.q-hero{ padding:64px 0 40px; }
.lang-switch{ display:inline-flex; flex-wrap:wrap; gap:6px; background:var(--bg-alt); border:1px solid var(--line); border-radius:999px; padding:5px; }
.lang-switch button{ font-family:var(--body); font-weight:600; font-size:12px; letter-spacing:.08em; text-transform:uppercase; border:0; background:transparent; color:var(--muted); padding:9px 15px; border-radius:999px; cursor:pointer; transition:.15s; }
.lang-switch button.is-active{ background:var(--accent); color:var(--on-accent); }
.q-form{ max-width:760px; }
.q{ padding:34px 0; border-top:1px solid var(--line); }
.q:first-child{ border-top:0; }
.q-num{ font-family:var(--display); font-size:24px; color:var(--accent); }
.q-title{ font-size:21px; font-weight:600; margin:6px 0 20px; }
.opts{ display:flex; flex-wrap:wrap; gap:11px; }
.opt{ position:relative; }
.opt input{ position:absolute; opacity:0; inset:0; cursor:pointer; }
.opt span{ display:inline-flex; align-items:center; gap:8px; padding:12px 18px; border:1.5px solid var(--line); border-radius:999px; font-size:14.5px; font-weight:500; cursor:pointer; transition:.15s; background:var(--bg); }
.opt input:checked + span{ border-color:var(--accent); background:color-mix(in srgb,var(--accent) 12%, var(--bg)); color:var(--accent-2); }
.opt input:focus-visible + span{ outline:2px solid var(--accent); outline-offset:2px; }
.q textarea, .q input[type=text], .q input[type=email]{ width:100%; font-family:var(--body); font-size:16px; color:var(--ink); background:var(--bg); border:1.5px solid var(--line); border-radius:14px; padding:16px 18px; resize:vertical; }
.q textarea:focus, .q input:focus{ outline:none; border-color:var(--accent); }
.scale{ display:flex; gap:8px; flex-wrap:wrap; }
.scale .opt span{ min-width:48px; justify-content:center; }
.q-submit{ margin-top:14px; padding-top:30px; border-top:1px solid var(--line); display:flex; align-items:center; gap:20px; flex-wrap:wrap; }
.q-note{ font-size:13px; color:var(--muted); }
.thanks{ display:none; padding:40px; background:var(--bg-alt); border:1px solid var(--line); border-radius:18px; text-align:center; }
.thanks.show{ display:block; }
.thanks h3{ margin:0 0 10px; }
.thanks p{ margin:0; color:var(--muted); }

/* ---------- misc page hero (location) ---------- */
.page-hero{ padding:60px 0 0; }
.page-hero .ph{ aspect-ratio:21/9; border-radius:22px; }
.kicker-row{ display:flex; gap:26px; flex-wrap:wrap; margin-top:26px; }
.kicker{ flex:1 1 150px; border-top:2px solid var(--ink); padding-top:14px; }
.kicker .n{ font-family:var(--display); font-size:38px; line-height:1; }
.kicker .t{ font-size:13px; color:var(--muted); margin-top:6px; }

.feature{ display:grid; grid-template-columns:1fr 1fr; gap:54px; align-items:center; }
.feature + .feature{ margin-top:92px; }
.feature.rev .feature-media{ order:2; }
.steplist{ counter-reset:step; display:flex; flex-direction:column; gap:0; }
.step{ counter-increment:step; display:grid; grid-template-columns:auto 1fr; gap:22px; padding:24px 0; border-top:1px solid var(--line); }
.step::before{ content:counter(step,decimal-leading-zero); font-family:var(--display); font-size:30px; color:var(--accent); line-height:1; }
.step h4{ margin:0 0 6px; font-size:19px; }
.step p{ margin:0; color:var(--muted); font-size:15.5px; }
.pricebox{ background:var(--bg); border:1px solid var(--line); border-radius:16px; padding:8px 24px; }
.pricebox .pr{ display:flex; justify-content:space-between; gap:16px; padding:15px 0; border-top:1px solid var(--line-soft); font-size:15px; }
.pricebox .pr:first-child{ border-top:0; }
.pricebox .pr b{ font-weight:600; }
.gallery-grid{ display:grid; grid-template-columns:repeat(12,1fr); gap:14px; }
.gallery-grid .ph{ border-radius:14px; }
.g-a{ grid-column:span 7; aspect-ratio:3/2; }
.g-b{ grid-column:span 5; aspect-ratio:3/2; }
.g-c{ grid-column:span 5; aspect-ratio:3/2; }
.g-d{ grid-column:span 7; aspect-ratio:3/2; }

/* ---------- coming soon ---------- */
.cs-stage{ min-height:100vh; display:flex; flex-direction:column; position:relative; overflow:hidden; }
.cs-sun{ position:absolute; top:-22vmax; right:-14vmax; width:60vmax; height:60vmax; border-radius:50%;
  background:radial-gradient(circle at center, color-mix(in srgb,var(--accent) 22%, transparent) 0%, color-mix(in srgb,var(--accent) 8%, transparent) 38%, transparent 64%);
  pointer-events:none; }
.cs-top{ position:relative; z-index:2; display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; padding:30px 0; }
.cs-nav{ display:flex; align-items:center; gap:24px; flex-wrap:wrap; }
.cs-nav a{ font-size:12.5px; font-weight:500; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); text-decoration:none; transition:color .15s; }
.cs-nav a:hover{ color:var(--ink); }
.cs-links{ display:flex; gap:30px; flex-wrap:wrap; margin-top:32px; }
.cs-links a{ display:inline-flex; align-items:center; gap:9px; font-weight:600; font-size:15px; color:var(--accent-2); text-decoration:none; border-bottom:1.5px solid var(--line); padding-bottom:6px; transition:border-color .15s; }
.cs-links a:hover{ border-color:var(--accent-2); }
.cs-links a .arr{ transition:transform .15s; }
.cs-links a:hover .arr{ transform:translateX(3px); }
.cs-badge{ display:inline-flex; align-items:center; gap:9px; font-size:12.5px; font-weight:600; letter-spacing:.04em; color:var(--accent-2); background:color-mix(in srgb,var(--accent) 12%, var(--bg)); border:1px solid color-mix(in srgb,var(--accent) 30%, transparent); border-radius:999px; padding:8px 15px; }
.cs-badge .gift{ width:9px; height:9px; border-radius:2px; background:var(--accent); transform:rotate(45deg); }
.cs-pill{ display:inline-flex; align-items:center; gap:10px; font-size:12px; font-weight:600; letter-spacing:.18em; text-transform:uppercase; color:var(--accent-2); border:1px solid var(--line); border-radius:999px; padding:9px 16px; }
.cs-pill .dot{ width:7px; height:7px; border-radius:50%; background:var(--accent); animation:cspulse 2.4s ease-in-out infinite; }
@keyframes cspulse{ 0%,100%{ opacity:1; } 50%{ opacity:.35; } }
.cs-main{ position:relative; z-index:2; flex:1; display:flex; flex-direction:column; justify-content:center; padding:48px 0 64px; max-width:880px; }
.cs-main h1{ margin:22px 0 30px; line-height:1; }
.cs-form{ display:flex; gap:12px; max-width:520px; margin:36px 0 16px; }
.cs-form input{ flex:1; min-width:0; font-family:var(--body); font-size:16px; color:var(--ink); background:var(--bg); border:1.5px solid var(--line); border-radius:999px; padding:16px 22px; }
.cs-form input:focus{ outline:none; border-color:var(--accent); }
.cs-form .btn{ flex:0 0 auto; }
.cs-note{ font-size:13.5px; color:var(--muted); }
.cs-thanks{ display:none; max-width:620px; }
.cs-thanks.show{ display:block; animation:csfade .5s ease both; }
.cs-form-wrap.hide{ display:none; }
@keyframes csfade{ from{ opacity:0; transform:translateY(8px); } to{ opacity:1; transform:none; } }
.cs-happy{ display:inline-flex; align-items:center; gap:12px; margin-top:22px; font-family:var(--display); font-size:26px; color:var(--accent); }
.cs-happy::before{ content:""; width:18px; height:18px; border-radius:50%; background:var(--accent); }
.cs-foot{ position:relative; z-index:2; display:flex; justify-content:space-between; gap:18px; flex-wrap:wrap; padding:26px 0 34px; border-top:1px solid var(--line); font-size:12.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }
@media (max-width:620px){ .cs-form{ flex-direction:column; } .cs-form .btn{ width:100%; justify-content:center; } }

/* ---------- responsive ---------- */
@media (max-width:900px){
  :root{ --pad:24px; }
  .hero-grid,.grid-2,.grid-2-1,.grid-3,.stats-grid,.feature,.post-list{ grid-template-columns:1fr; }
  .feature.rev .feature-media{ order:0; }
  .country-grid{ grid-template-columns:repeat(2,1fr); }
  .nav-links a:not(.btn){ display:none; }
  .section{ padding:72px 0; }
  .gallery-grid .ph{ grid-column:1/-1; }
}
