/* ═══════════════════════════════════════════════════════════════
   Casas de Campo de Podence — palette sampled from the Careto mask
   (fringe red, wool yellow, deep green) and the Azibo lake blue.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --pine:   #14352d;   /* deep pine — ink & dark sections   */
  --pine-2: #1d4a3e;
  --lake:   #0e86b8;   /* Azibo blue                         */
  --lake-d: #0a5f84;
  --careto: #d93a22;   /* fringe red                         */
  --sun:    #f2b32c;   /* wool yellow                        */
  --meadow: #3d8f5f;   /* fringe green                       */
  --mist:   #f3f7f1;   /* page background, green-tinted white*/
  --paper:  #ffffff;
  --ink-soft: #45594f;

  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-body: "Instrument Sans", -apple-system, sans-serif;

  --radius: 18px;
  --container: 1160px;
  --shadow: 0 14px 44px rgba(20, 53, 45, .13);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  color: var(--pine);
  background: var(--mist);
  line-height: 1.6;
  font-size: 1.0625rem;
}

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

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--sun); color: var(--pine); padding: 10px 18px;
  font-weight: 600; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--lake);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── The signature: careto wool fringe ─────────────────────────── */
.fringe {
  height: 14px;
  background: repeating-linear-gradient(90deg,
    var(--careto) 0 26px,
    var(--sun)    26px 52px,
    var(--meadow) 52px 78px,
    var(--lake)   78px 104px);
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 7px, transparent 7px 10px);
          mask-image: repeating-linear-gradient(90deg, #000 0 7px, transparent 7px 10px);
}

/* ── Type ──────────────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; line-height: 1.15; }

.eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--careto);
  margin-bottom: 14px;
}
.eyebrow-light { color: var(--sun); }

.section-title { margin-bottom: 10px; }
.section-lead { color: var(--ink-soft); max-width: 56ch; margin-bottom: 44px; }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-sun { background: var(--sun); color: var(--pine); box-shadow: 0 8px 22px rgba(242, 179, 44, .35); }
.btn-sun:hover { background: #ffc63e; }
.btn-ghost { color: #fff; border: 2px solid rgba(255,255,255,.7); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.12); }
.btn-pine { background: var(--pine); color: #fff; }
.btn-pine:hover { background: var(--pine-2); }

/* ── Nav ───────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(243, 247, 241, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(20, 53, 45, .08);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--pine); }
.brand-fringe {
  width: 30px; height: 30px; border-radius: 8px;
  background: conic-gradient(from 45deg, var(--careto) 0 25%, var(--sun) 0 50%, var(--meadow) 0 75%, var(--lake) 0);
}
.brand-text {
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; line-height: 1.05;
  display: flex; flex-direction: column;
}
.brand-text em { font-style: normal; color: var(--careto); font-size: .85rem; letter-spacing: .06em; }

.nav-links { display: flex; gap: 6px; list-style: none; margin-left: auto; }
.nav-links a {
  text-decoration: none; color: var(--pine); font-weight: 500; font-size: .95rem;
  padding: 8px 12px; border-radius: 999px; transition: background .15s ease;
}
.nav-links a:hover { background: rgba(61, 143, 95, .14); }
.nav-cta { padding: 10px 22px; font-size: .95rem; }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff;
  isolation: isolate;
}
.hero-media {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(200deg, rgba(14, 134, 184, .30) 0%, rgba(20, 53, 45, .55) 45%, rgba(16, 42, 36, .92) 100%),
    url("images/hero-village.jpg") center 30% / cover no-repeat;
}
.hero-content {
  max-width: var(--container); width: 100%;
  margin: 0 auto; padding: 140px 24px 48px;
}
.hero h1 {
  font-size: clamp(3.4rem, 11vw, 8.2rem);
  font-weight: 800;
  margin: 6px 0 22px;
  animation: rise .8s ease both;
}
.hero-sub {
  max-width: 46ch; font-size: 1.15rem; color: rgba(255,255,255,.88);
  margin-bottom: 32px; animation: rise .8s .12s ease both;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; animation: rise .8s .22s ease both; }

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

.hero-facts {
  max-width: var(--container); width: 100%; margin: 44px auto 0;
  padding: 0 24px 38px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.fact {
  border-left: 3px solid var(--sun);
  padding-left: 14px;
}
.fact strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; display: block; }
.fact span { font-size: .85rem; color: rgba(255,255,255,.75); }

/* ── Welcome ───────────────────────────────────────────────────── */
.welcome { padding: 96px 0; }
.welcome-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center;
}
.welcome-text h2 { margin-bottom: 20px; }
.welcome-text p + p { margin-top: 16px; }
.welcome-text p { color: var(--ink-soft); }

.welcome-photo { position: relative; }
.welcome-photo img {
  border-radius: var(--radius); box-shadow: var(--shadow);
  aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%;
}
.welcome-photo figcaption {
  position: absolute; left: 18px; bottom: 18px;
  background: var(--sun); color: var(--pine);
  font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  padding: 8px 16px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}

/* ── Houses ────────────────────────────────────────────────────── */
.houses { padding: 40px 0 110px; }
.house-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
.house-card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(20, 53, 45, .07);
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .22s ease, box-shadow .22s ease;
}
.house-card::after {              /* fringe rises on hover */
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 8px;
  background: repeating-linear-gradient(90deg,
    var(--careto) 0 18px, var(--sun) 18px 36px, var(--meadow) 36px 54px, var(--lake) 54px 72px);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .22s ease;
}
.house-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.house-card:hover::after { transform: scaleY(1); }

.house-photo { position: relative; }
.house-photo img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.house-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(20, 53, 45, .82); color: #fff;
  backdrop-filter: blur(4px);
  font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  padding: 6px 12px; border-radius: 999px;
}
.house-body { padding: 24px 24px 28px; }
.house-body h3 { margin-bottom: 10px; }
.house-body p { color: var(--ink-soft); font-size: .97rem; }

.house-card-cta {
  background: var(--pine); color: #fff;
  justify-content: center;
}
.house-card-cta h3 { color: var(--sun); }
.house-card-cta p { color: rgba(255,255,255,.82); margin-bottom: 22px; }
.house-card-cta .btn-pine { background: var(--sun); color: var(--pine); align-self: flex-start; }
.house-card-cta .btn-pine:hover { background: #ffc63e; }

/* ── Azibo ─────────────────────────────────────────────────────── */
.azibo {
  background: linear-gradient(160deg, var(--lake) 0%, var(--lake-d) 100%);
  color: #fff;
  display: grid; grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
  position: relative;
}
.azibo .fringe { position: absolute; top: 0; left: 0; right: 0; }
.azibo-media { min-height: 480px; }
.azibo-media img { width: 100%; height: 100%; object-fit: cover; }
.azibo-panel { padding: clamp(48px, 7vw, 96px); align-self: center; }
.azibo-panel h2 { margin-bottom: 18px; }
.azibo-panel > p { color: rgba(255,255,255,.9); max-width: 52ch; }
.azibo-panel strong { color: var(--sun); font-weight: 600; }

.azibo-list { list-style: none; margin: 26px 0 34px; }
.azibo-list li {
  padding: 10px 0 10px 34px;
  position: relative;
  border-bottom: 1px dashed rgba(255,255,255,.25);
}
.azibo-list li::before {
  content: "";
  position: absolute; left: 4px; top: 50%; translate: 0 -50%;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--sun);
}
.azibo-list li:nth-child(2)::before { background: var(--careto); }
.azibo-list li:nth-child(3)::before { background: var(--meadow); }
.azibo-list li:nth-child(4)::before { background: #fff; }

/* ── Traditions ────────────────────────────────────────────────── */
.traditions { padding: 100px 0; }
.trad-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
  grid-auto-rows: auto;
}
.trad-card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 18px rgba(20, 53, 45, .07);
}
.trad-card img { aspect-ratio: 16 / 11; object-fit: cover; width: 100%; }
.trad-body { padding: 22px 24px 26px; }
.trad-when {
  display: inline-block;
  font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--lake-d);
  background: rgba(14, 134, 184, .12);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
}
.trad-body h3 { margin-bottom: 10px; }
.trad-body p { color: var(--ink-soft); font-size: .96rem; }

.trad-careto {
  grid-row: span 2;
  background: var(--careto); color: #fff;
  display: flex; flex-direction: column;
}
.trad-careto img { aspect-ratio: auto; flex: 1; min-height: 300px; object-fit: cover; }

.trad-grid > .trad-card:last-child {
  grid-column: 2 / 4;
  display: flex; flex-direction: row;
}
.trad-grid > .trad-card:last-child img {
  width: 42%; aspect-ratio: auto; object-fit: cover;
}
.trad-grid > .trad-card:last-child .trad-body { align-self: center; }
.trad-careto .trad-when { background: rgba(255,255,255,.18); color: var(--sun); }
.trad-careto h3 { color: #fff; }
.trad-careto p { color: rgba(255,255,255,.92); }

/* ── Taberna ───────────────────────────────────────────────────── */
.taberna { background: var(--pine); color: #fff; padding: 100px 0; }
.taberna-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.taberna-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.taberna-photos img {
  border-radius: var(--radius); aspect-ratio: 3 / 4; object-fit: cover; width: 100%;
}
.taberna-photos img:last-child { translate: 0 34px; }
.taberna-text h2 { margin-bottom: 18px; color: var(--sun); }
.taberna-text p { color: rgba(255,255,255,.88); }
.taberna-note {
  margin-top: 22px; display: inline-block;
  border: 1px dashed rgba(255,255,255,.4);
  padding: 12px 18px; border-radius: 12px;
  font-size: .95rem;
}

/* ── Prices ────────────────────────────────────────────────────── */
.prices { padding: 100px 0; }
.price-table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.price-table {
  width: 100%; border-collapse: collapse; background: var(--paper);
  min-width: 520px;
}
.price-table th, .price-table td { padding: 18px 24px; text-align: left; }
.price-table thead th {
  background: var(--pine); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  letter-spacing: .04em;
}
.price-table thead th:not(:first-child), .price-table td { text-align: right; }
.price-table tbody tr + tr { border-top: 1px solid rgba(20, 53, 45, .08); }
.price-table tbody th { font-weight: 600; }
.price-table tbody th span {
  font-weight: 600; font-size: .75rem; color: var(--lake-d);
  background: rgba(14, 134, 184, .12);
  padding: 2px 9px; border-radius: 999px; margin-left: 8px;
  vertical-align: 1px;
}
.price-table td { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.price-table td:last-child { color: var(--careto); }

.price-extras {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-top: 30px;
}
.extra {
  background: var(--paper); border-radius: 14px; padding: 18px 20px;
  border-top: 4px solid var(--sun);
  box-shadow: 0 3px 14px rgba(20, 53, 45, .06);
}
.extra:nth-child(2) { border-top-color: var(--meadow); }
.extra:nth-child(3) { border-top-color: var(--careto); }
.extra:nth-child(4) { border-top-color: var(--lake); }
.extra strong { display: block; font-family: var(--font-display); margin-bottom: 4px; }
.extra span { font-size: .9rem; color: var(--ink-soft); }

.price-note {
  margin-top: 30px; color: var(--ink-soft); font-size: .95rem;
  max-width: 64ch;
}

/* ── Contact ───────────────────────────────────────────────────── */
.contact {
  background: linear-gradient(175deg, var(--pine) 0%, #0f2a23 100%);
  color: #fff;
  position: relative;
  padding-top: 14px;               /* room for the fringe */
}
.contact .fringe { position: absolute; top: 0; left: 0; right: 0; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px;
  padding-top: 90px; padding-bottom: 90px;
  align-items: center;
}
.contact-intro h2 { color: var(--sun); margin-bottom: 16px; }
.contact-intro p { color: rgba(255,255,255,.8); }

.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-card {
  display: flex; flex-direction: column; gap: 4px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 20px;
  text-decoration: none; color: #fff;
  transition: background .18s ease, transform .18s ease;
}
.contact-card:hover { background: rgba(255,255,255,.12); transform: translateY(-3px); }
.contact-label {
  font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sun);
}
.contact-value { font-weight: 600; overflow-wrap: break-word; font-size: .98rem; }
.contact-more { font-size: .82rem; color: rgba(255,255,255,.65); }

.footer {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 26px 24px;
  text-align: center;
  font-size: .9rem; color: rgba(255,255,255,.6);
}

/* ── Scroll reveal ─────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .house-grid, .trad-grid { grid-template-columns: 1fr 1fr; }
  .trad-careto { grid-row: auto; }
  .trad-grid > .trad-card:last-child { grid-column: auto; flex-direction: column; }
  .trad-grid > .trad-card:last-child img { width: 100%; aspect-ratio: 16 / 11; }
  .azibo { grid-template-columns: 1fr; }
  .azibo-media { min-height: 320px; }
  .welcome-grid, .taberna-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .price-extras { grid-template-columns: 1fr 1fr; }
  .hero-facts { grid-template-columns: 1fr 1fr; gap: 22px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .house-grid, .trad-grid, .price-extras, .contact-cards { grid-template-columns: 1fr; }
  .hero { min-height: 86vh; }
  .hero-content { padding-top: 110px; }
  .taberna-photos img:last-child { translate: 0 20px; }
  .welcome, .traditions, .prices, .taberna { padding-top: 72px; padding-bottom: 72px; }
}
