/* ============================================================
   Asas da Ilha — new world
   Palette: warm paper ground + forest ink + moss + stone-glass
   (translucent grayish-green panels) + warm ochre for actions.
   Type: Bricolage Grotesque (display) / Inter (body).
   ============================================================ */

:root {
  --paper: #f4f2ea;
  --paper-deep: #eceade;
  --ink: #2f3a32;
  --ink-soft: #54604f;
  --moss: #4f6b51;
  --moss-deep: #3d5440;
  --sage: #93a48c;
  --ochre: #a55f1e;
  --ochre-deep: #8a4d15;
  --glass: rgba(212, 214, 203, 0.55);
  --glass-strong: rgba(206, 209, 196, 0.72);
  --glass-line: rgba(255, 255, 255, 0.55);
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.36 0 0 0 0 0.38 0 0 0 0 0.32 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  --shadow-soft: 0 24px 60px -28px rgba(47, 58, 50, 0.35);
  --radius: 18px;
  --font-display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --font-body: "Karla", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
/* Smooth anchor scrolling always, per user preference; the sticky-nav offset is kept for section landings. */
html { scroll-behavior: smooth; scroll-padding-top: 4.75rem; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  background-image: var(--paper-grain);
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(79, 107, 81, 0.25); }

h1, h2, h3 { font-family: var(--font-display); }
h1, h2 { font-optical-sizing: auto; letter-spacing: -0.03em; line-height: 1.05; }

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

a { color: var(--moss-deep); text-underline-offset: 3px; }
a:hover { color: var(--ochre-deep); }

:focus-visible {
  outline: 2px solid var(--moss-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.wrap-narrow { width: min(760px, calc(100% - 3rem)); margin-inline: auto; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 76px;
  background: rgba(244, 242, 234, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(47, 58, 50, 0.12);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(4rem, 14vw, 15rem);
  padding-block: 0.6rem;
  min-height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  min-width: 132px;
}
.brand img { height: 54px; width: auto; display: block; }
/* Single line: links stay on one row, sized proportionally to the 58px logo */
.nav-links { display: flex; align-items: center; gap: 1.7rem; list-style: none; margin: 0; padding: 0; flex-wrap: nowrap; white-space: nowrap; }
.nav-links a {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding-block: 0.45rem;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--moss-deep); border-bottom-color: var(--sage); }
.nav-cta {
  background: var(--moss-deep);
  color: #f6f4ec !important;
  padding: 0.6rem 1.3rem !important;
  font-size: 1rem !important;
  border-radius: 999px;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--moss); color: #fff !important; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(47,58,50,.25); border-radius: 10px; padding: .45rem .7rem; font: inherit; color: var(--ink); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  background: url("../assets/img/header-bg.jpg") center 30% / cover no-repeat;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(47, 58, 50, 0.15) 12%, rgba(47, 58, 50, 0.35) 55%, rgba(47, 58, 50, 0.6) 88%);
  z-index: -1;
}
.hero-body {
  padding: 4rem 0 3.5rem;
  color: #f6f4ec;
  max-width: 640px;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 800;
  margin: 0 0 1.1rem;
  color: #fdfcf7;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  font-weight: 300;
  display: block;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  letter-spacing: 0.01em;
  color: rgba(250, 248, 240, 0.85);
  margin-top: 0.55em;
}
.hero p {
  margin: 0 0 2rem;
  max-width: 46ch;
  color: rgba(250, 248, 240, 0.92);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  transition: background-color 0.2s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}
.btn svg { width: 1.15em; height: 1.15em; fill: currentColor; }
.btn-primary, .btn-primary:where(a, button):hover { background: var(--ochre); color: #fff; box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: var(--ochre-deep); transform: translateY(-2px); }
.btn-ghost, .btn-ghost:where(a, button):hover {
  background: rgba(246, 244, 236, 0.16);
  color: #fdfcf7;
  box-shadow: inset 0 0 0 1.5px var(--glass-line);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(246, 244, 236, 0.3); transform: translateY(-2px); }

/* ---------- Sections ---------- */
.section { padding: 6.5rem 0 5.5rem; }
.section-alt {
  background: rgba(211, 214, 199, 0.28);
  border-block: 1px solid rgba(47, 58, 50, 0.07);
}
.section h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 700; margin: 0 0 0.7rem; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 62ch; margin: 0 0 3rem; }

/* ---------- Split (text + media) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4.5rem; align-items: center; }
.split p { margin-top: 0; }
.split-media { margin: 0; position: relative; }
.split-media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.split-media figcaption {
  font-size: 0.8rem;
  color: var(--ink-soft);
  padding: 0.6rem 0.2rem 0;
}

/* ---------- Step rows ---------- */
.steps { margin: 3rem 0 0; padding: 0; list-style: none; display: grid; gap: 0; }
.steps li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1.4rem;
  padding: 1.6rem 0;
  border-top: 1px solid rgba(47, 58, 50, 0.14);
}
.steps li:last-child { border-bottom: 1px solid rgba(47, 58, 50, 0.14); }
.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--sage);
  padding-top: 0.1rem;
}
.steps h3 { margin: 0 0 0.3rem; font-size: 1.15rem; font-weight: 700; }
.steps p { margin: 0; color: var(--ink-soft); }

/* ---------- Info list (translucent card) ---------- */
.facts {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-soft);
}
.facts h3 {
  margin: 0 0 1.2rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.facts li { display: grid; grid-template-columns: 1fr; font-size: 0.95rem; }
.facts strong { color: var(--ink); font-weight: 600; margin-right: 0.35rem; }
.facts span.txt { color: var(--ink-soft); }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin: 0; padding: 0 0 0 2.1rem; list-style: none; }
.timeline::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 1px;
  background: rgba(47, 58, 50, 0.18);
}
.timeline > li { position: relative; padding: 0 0 3.4rem 2.4rem; }
.timeline > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--moss);
}
.tl-media { float: right; width: clamp(180px, 26%, 260px); margin: 0 0 1rem 2rem; }
.tl-media img {
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  transform: rotate(1.6deg);
}
.tl-media:nth-of-type(even) { transform: rotate(-1.2deg); }
.tl-heading { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; }
.tl-heading span { color: var(--moss-deep); font-weight: 500; display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.13em; }
.tl-subtitle { margin: 0.55rem 0 0; max-width: 62ch; }
.timeline p { color: var(--ink-soft); max-width: 62ch; }
.timeline blockquote {
  clear: both;
  margin: 1.4rem 0 0;
  padding: 1.8rem 2.2rem;
  background: var(--glass);
  border-radius: var(--radius);
  font-size: 1.05rem;
  color: var(--ink);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.timeline blockquote footer { margin-top: 1rem; font-size: 0.9rem; font-weight: 600; color: var(--moss-deep); }
.timeline-teaser {
  margin: 1rem 0 0;
  padding-left: 2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--moss-deep);
}
.timeline-teaser a { color: inherit; text-decoration-thickness: 2px; }

/* ---------- Location ---------- */
.loc-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 2.2rem; align-items: stretch; }
.loc-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); border: 1px solid rgba(255,255,255,.6); }
.loc-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.loc-side { display: grid; gap: 1.4rem; align-content: start; }
.loc-card {
  background: var(--glass-strong);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.loc-card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; font-weight: 700; }
.loc-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Dúvidas frequentes ---------- */
.faq-list { display: grid; gap: 1rem; }
.faq-item {
  background: var(--glass-strong);
  border-radius: var(--radius);
  padding: 1.05rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-soft);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ochre);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item > div { padding-top: 0.6rem; }
.faq-item div p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; max-width: 62ch; }

/* ---------- Contact ---------- */
.contact-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.2rem;
  align-items: center;
}
.contact-big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 1.4rem;
}
.contact-note { color: var(--ink-soft); font-size: 0.95rem; margin: 1.2rem 0 0; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid rgba(47, 58, 50, 0.1);
  padding: 2.4rem 0;
  background: rgba(211, 214, 199, 0.35);
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer img { height: 38px; width: auto; }
.footer-links { display: flex; gap: 1.2rem; align-items: center; font-size: 0.9rem; }
.footer small { color: var(--ink-soft); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s cubic-bezier(0.22, 0.8, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.8, 0.36, 1);
  }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .split, .loc-grid, .contact-panel { grid-template-columns: 1fr; gap: 2.2rem; }
  .tl-media { width: 40%; margin-left: 1.4rem; }
  .brand img { height: 54px; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(244, 242, 234, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(47, 58, 50, 0.12);
    padding: 0.6rem 1.5rem 1rem;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { display: block; padding: 0.7rem 0; border-bottom: none; }
  .nav-links li { border-top: 1px solid rgba(47,58,50,.08); }
  .hero { min-height: 78vh; }
  .section { padding: 4.5rem 0 4rem; }
}
@media (max-width: 560px) {
  .wrap, .wrap-narrow { width: calc(100% - 2.4rem); }
  .tl-media { float: none; width: 100%; margin: 0 0 1rem; transform: none !important; }
  .timeline { padding-left: 1.6rem; }
  .steps li { grid-template-columns: 2.4rem 1fr; }
  .btn { width: 100%; justify-content: center; }
  .btn-row { gap: 0.7rem; }
}
