/* =========================================================================
   Pearl of the Atlantic — Madeira. Cinematic travel-concierge styling.
   Palette: Atlantic petrol + volcanic charcoal + laurel green + sunset gold.
   Type: Fraunces (display serif) + Inter (text).
   ========================================================================= */

:root {
  --ink: #081a1e;
  --deep: #0e3a43;
  --sea: #14606b;
  --surf: #4fb3a6;
  --aqua: #86ded2;
  --laurel: #2b6e4f;
  --gold: #e6a24c;
  --gold-dk: #cf8a2e;
  --coral: #e0745a;

  --sand: #f4efe6;
  --paper: #fbf8f2;
  --card: #ffffff;
  --line: #e6ddcd;
  --ink-soft: #33474b;
  --muted: #6d7c7d;
  --on-dark: #eef4f2;
  --on-dark-soft: #bcd0cd;

  --maxw: 1200px;
  --r: 16px;
  --r-lg: 26px;
  --sh-sm: 0 2px 10px rgba(8, 26, 30, 0.06);
  --sh-md: 0 18px 40px -18px rgba(8, 26, 30, 0.28);
  --sh-lg: 0 40px 80px -30px rgba(8, 26, 30, 0.42);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-text);
  color: var(--ink-soft);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--sea); text-decoration: none; transition: color .2s; }
a:hover { color: var(--laurel); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--deep);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: 1.4rem; }

.wrap { width: min(var(--maxw), 92vw); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--tint { background: var(--sand); }
.eyebrow {
  font: 600 .78rem/1 var(--font-text);
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--surf);
  margin: 0 0 1rem;
}
.eyebrow--light { color: var(--aqua); }
.section__head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section__sub { font-size: 1.08rem; color: var(--muted); }
.lead { font-size: 1.18rem; color: var(--ink-soft); }
.loading { color: var(--muted); font-style: italic; }

/* -------- Buttons -------- */
.btn {
  --bg: var(--deep); --fg: #fff;
  display: inline-flex; align-items: center; gap: .6em;
  background: var(--bg); color: var(--fg);
  padding: .95em 1.6em; border-radius: 100px;
  font: 600 .98rem/1 var(--font-text); letter-spacing: .01em;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  box-shadow: var(--sh-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-md); color: var(--fg); }
.btn--gold { --bg: linear-gradient(135deg, var(--gold) 0%, var(--gold-dk) 100%); --fg: #2a1c04; }
.btn--ghost { --bg: transparent; --fg: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--full { width: 100%; justify-content: center; padding: 1.05em; font-size: 1.05rem; }

/* =========================================================================
   NAV
   ========================================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s, padding .35s;
  padding: .55rem 0;
}
.nav__inner { width: min(var(--maxw), 94vw); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; color: #fff; }
.nav.scrolled .brand { color: var(--deep); }
.brand__mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.14); color: currentColor; }
.nav.scrolled .brand__mark { background: var(--deep); color: #fff; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; letter-spacing: -.01em; }
.brand__text em { font-style: normal; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.nav__links { display: flex; align-items: center; gap: 1.9rem; }
.nav__links a { color: rgba(255,255,255,.92); font-weight: 500; font-size: .96rem; }
.nav.scrolled .nav__links a { color: var(--ink-soft); }
.nav__links a:hover { color: #fff; }
.nav.scrolled .nav__links a:hover { color: var(--laurel); }
.nav__cta { background: var(--gold); color: #2a1c04 !important; padding: .55em 1.2em; border-radius: 100px; }
.nav__cta:hover { transform: translateY(-1px); box-shadow: var(--sh-sm); }
.nav.scrolled { background: rgba(251,248,242,.92); backdrop-filter: saturate(1.2) blur(12px); box-shadow: 0 1px 0 var(--line); }
.nav__burger { display: none; background: none; border: 0; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav__burger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
.nav.scrolled .nav__burger span { background: var(--deep); }

/* =========================================================================
   HERO
   ========================================================================= */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero__media {
  position: absolute; inset: -6% 0 0; background-size: cover; background-position: center 40%;
  will-change: transform; animation: kb 26s ease-in-out infinite alternate;
}
@keyframes kb { from { transform: scale(1.05); } to { transform: scale(1.16) translateY(-1.5%); } }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,26,30,.55) 0%, rgba(8,26,30,.15) 30%, rgba(8,26,30,.35) 65%, rgba(8,26,30,.82) 100%),
    radial-gradient(120% 80% at 15% 90%, rgba(14,58,67,.6), transparent 60%);
}
.hero__content { position: relative; z-index: 2; width: min(var(--maxw), 92vw); margin-inline: auto; padding-top: 5rem; max-width: 860px; }
.hero__eyebrow { font: 600 .82rem/1 var(--font-text); text-transform: uppercase; letter-spacing: .24em; color: var(--aqua); margin: 0 0 1.1rem; }
.hero__title { font-size: clamp(2.5rem, 7vw, 5.2rem); color: #fff; font-weight: 500; text-shadow: 0 2px 30px rgba(0,0,0,.3); margin: 0 0 1.2rem; }
.hero__title em { font-style: italic; color: var(--aqua); }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255,255,255,.94); max-width: 620px; margin: 0 0 2rem; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.2rem; }
.hero__langs { display: flex; align-items: center; gap: .5rem; font-size: .95rem; color: rgba(255,255,255,.85); }
.hero__langs span { opacity: .7; text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; margin-right: .3rem; }
.hero__langs b { font-weight: 600; }
.hero__langs i { opacity: .5; font-style: normal; }
.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.55); border-radius: 20px; z-index: 2; }
.hero__scroll span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80%,100% { opacity: 0; transform: translateY(14px); } }

/* =========================================================================
   STORY
   ========================================================================= */
.story__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.story__features { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.story__features li { display: flex; gap: 1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem 1.3rem; box-shadow: var(--sh-sm); transition: transform .25s var(--ease), box-shadow .25s; }
.story__features li:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.ft__ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--surf), var(--sea)); color: #fff; font-size: 1.2rem; }
.story__features strong { display: block; color: var(--deep); font-size: 1.02rem; }
.story__features p { margin: .15rem 0 0; font-size: .92rem; color: var(--muted); line-height: 1.5; }

/* =========================================================================
   TOURS
   ========================================================================= */
.tours { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.tour {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--sh-md);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.tour:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }
.tour__img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: linear-gradient(135deg, var(--sea), var(--laurel)); }
.tour__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tour:hover .tour__img img { transform: scale(1.06); }
.tour__badge { position: absolute; top: 12px; left: 12px; background: rgba(8,26,30,.72); color: #fff; font-size: .74rem; font-weight: 600; letter-spacing: .02em; padding: .4em .8em; border-radius: 100px; backdrop-filter: blur(4px); }
.tour__type { position: absolute; top: 12px; right: 12px; background: var(--gold); color: #2a1c04; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .4em .7em; border-radius: 100px; }
.tour__body { padding: 1.4rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.tour__body h3 { color: var(--deep); font-size: 1.28rem; margin-bottom: .4rem; }
.tour__tag { font-style: italic; font-family: var(--font-display); color: var(--sea); font-size: 1.02rem; margin: 0 0 .8rem; }
.tour__desc { font-size: .95rem; color: var(--ink-soft); margin: 0 0 1rem; }
.tour__chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.3rem; }
.chip { font-size: .74rem; background: var(--sand); color: var(--sea); border: 1px solid var(--line); border-radius: 100px; padding: .3em .7em; }
.tour__foot { margin-top: auto; display: flex; gap: .6rem; align-items: center; }
.tour__enquire { flex: 1; text-align: center; background: var(--deep); color: #fff; padding: .8em; border-radius: 100px; font-weight: 600; font-size: .92rem; border: 0; cursor: pointer; transition: background .25s, transform .2s; }
.tour__enquire:hover { background: var(--laurel); transform: translateY(-1px); }
.tour__wa { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #25d366; color: #fff; }
.tour__wa:hover { color: #fff; transform: translateY(-1px); }
.tour__note { font-size: .78rem; color: var(--coral); margin: -.4rem 0 1rem; display: flex; gap: .4rem; }

/* =========================================================================
   CONCIERGE band
   ========================================================================= */
.concierge { position: relative; color: #fff; overflow: hidden; }
.concierge__media { position: absolute; inset: 0; background-size: cover; background-position: center; }
.concierge__scrim { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8,26,30,.92) 0%, rgba(14,58,67,.78) 45%, rgba(14,58,67,.35) 100%); }
.concierge__inner { position: relative; z-index: 2; max-width: 640px; padding: clamp(4rem, 9vw, 7rem) 0; }
.concierge__inner h2 { color: #fff; }
.concierge__inner p { color: rgba(255,255,255,.9); font-size: 1.1rem; margin-bottom: 2rem; }

/* =========================================================================
   HIGHLIGHTS
   ========================================================================= */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; }
.filter { font: 500 .9rem/1 var(--font-text); background: var(--card); border: 1px solid var(--line); color: var(--ink-soft); padding: .6em 1.1em; border-radius: 100px; cursor: pointer; transition: all .2s; }
.filter:hover { border-color: var(--surf); color: var(--sea); }
.filter.active { background: var(--deep); color: #fff; border-color: var(--deep); }
.section--tint .filter { background: #fff; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.card {
  position: relative; border-radius: var(--r); overflow: hidden; min-height: 300px;
  display: flex; align-items: flex-end; color: #fff; box-shadow: var(--sh-md);
  background: linear-gradient(135deg, var(--sea), var(--laurel));
  transition: transform .35s var(--ease), box-shadow .35s;
}
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,26,30,0) 30%, rgba(8,26,30,.85) 100%); }
.card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.card:hover img { transform: scale(1.08); }
.card__body { position: relative; z-index: 2; padding: 1.2rem; width: 100%; }
.card__cat { display: inline-block; font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; background: rgba(255,255,255,.18); backdrop-filter: blur(3px); padding: .3em .7em; border-radius: 100px; margin-bottom: .6rem; }
.card__body h3 { color: #fff; font-size: 1.16rem; margin: 0 0 .2rem; }
.card__area { font-size: .78rem; color: var(--aqua); margin: 0 0 .5rem; }
.card__tag { font-size: .86rem; color: rgba(255,255,255,.9); margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s var(--ease), opacity .3s, margin .3s; }
.card:hover .card__tag { max-height: 90px; opacity: 1; margin-top: .3rem; }
.card.is-hidden { display: none; }

/* =========================================================================
   EXPERIENCES
   ========================================================================= */
.exp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.exp__card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.7rem 1.6rem; box-shadow: var(--sh-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.exp__card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.exp__ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--surf), var(--sea)); color: #fff; margin-bottom: 1rem; }
.exp__card h3 { font-size: 1.18rem; margin-bottom: .1rem; }
.exp__meta { font-size: .78rem; color: var(--gold-dk); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .7rem; }
.exp__card p { font-size: .92rem; color: var(--muted); margin: 0; }
.exp__card .exp__tag { color: var(--ink-soft); font-family: var(--font-display); font-style: italic; font-size: 1rem; margin-bottom: .5rem; }

/* =========================================================================
   PLAN
   ========================================================================= */
.plan { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
.plan__card { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--surf); border-radius: var(--r); padding: 1.7rem 1.8rem; box-shadow: var(--sh-sm); }
.plan__card:nth-child(2) { border-left-color: var(--laurel); }
.plan__card:nth-child(3) { border-left-color: var(--gold); }
.plan__card:nth-child(4) { border-left-color: var(--coral); }
.plan__card h3 { color: var(--deep); margin-bottom: .5rem; }
.plan__card p { font-size: .96rem; margin: 0; }

/* =========================================================================
   BOOKING
   ========================================================================= */
.section--book { background: linear-gradient(160deg, var(--deep) 0%, var(--ink) 100%); color: var(--on-dark); }
.section--book h2 { color: #fff; }
.book__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.book__intro p { color: var(--on-dark-soft); }
.book__intro strong { color: #fff; }
.book__contact { margin-top: 2rem; }
.wa-line { display: inline-flex; align-items: center; gap: .9rem; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); padding: 1rem 1.3rem; border-radius: var(--r); color: #fff; }
.wa-line:hover { color: #fff; background: rgba(255,255,255,.1); }
.wa-line svg { color: #25d366; flex: none; }
.wa-line b { display: block; font-size: 1.02rem; }
.wa-line em { font-style: normal; color: var(--aqua); font-size: .92rem; }
.book__small { font-size: .88rem; color: var(--on-dark-soft); margin-top: 1rem; }

.book__form { background: var(--paper); border-radius: var(--r-lg); padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--sh-lg); }
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--deep); margin-bottom: .4rem; letter-spacing: .01em; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1rem/1.4 var(--font-text); color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .8em .9em;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--surf); box-shadow: 0 0 0 3px rgba(79,179,166,.2); }
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.book__consent { font-size: .8rem; color: var(--muted); text-align: center; margin: .9rem 0 0; }
.form-msg { margin-top: 1rem; font-size: .95rem; border-radius: 12px; padding: 0; max-height: 0; overflow: hidden; transition: max-height .4s var(--ease), padding .3s; }
.form-msg.show { max-height: 300px; padding: 1rem 1.1rem; }
.form-msg.ok { background: #e7f5ee; color: #1c6b43; border: 1px solid #bfe3cf; }
.form-msg.err { background: #fdece9; color: #b23a26; border: 1px solid #f6cabf; }
.form-msg .ref { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: .04em; display: inline-block; margin: .2rem 0; }

/* =========================================================================
   FOOTER + FAB
   ========================================================================= */
.footer { background: var(--ink); color: var(--on-dark-soft); padding: clamp(3rem, 6vw, 4.5rem) 0 1.5rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer__brand .brand__text strong { color: #fff; font-size: 1.3rem; }
.footer__brand .brand__text em { color: var(--aqua); font-style: normal; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.footer__brand p { margin-top: 1rem; font-size: .95rem; max-width: 40ch; }
.footer__col h4 { color: #fff; font-family: var(--font-text); font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; margin: 0 0 1rem; }
.footer__col a, .footer__col span { display: block; color: var(--on-dark-soft); font-size: .95rem; margin-bottom: .6rem; }
.footer__col a:hover { color: var(--aqua); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1.5rem; font-size: .82rem; }
.footer__base p { margin: 0; }
.credits summary { cursor: pointer; color: var(--on-dark-soft); }
.credits summary:hover { color: var(--aqua); }
.credits #credits { margin-top: .8rem; font-size: .74rem; line-height: 1.7; color: #7f9693; max-width: 700px; }
.credits a { color: var(--surf); }

.wa-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 30px -6px rgba(37,211,102,.6);
  transition: transform .25s var(--ease); opacity: 0; pointer-events: none;
}
.wa-fab.show { opacity: 1; pointer-events: auto; }
.wa-fab:hover { transform: scale(1.08); color: #fff; }

/* =========================================================================
   REVEAL
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .hero__media { animation: none; } }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1000px) {
  .tours { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .exp { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav__links { position: fixed; inset: 0 0 auto; top: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--paper); padding: 5.5rem 2rem 2rem; box-shadow: var(--sh-lg); transform: translateY(-100%); transition: transform .4s var(--ease); height: auto; }
  .nav__links.open { transform: none; }
  .nav__links a { color: var(--ink-soft) !important; font-size: 1.15rem; padding: .9rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav__cta { background: var(--gold); text-align: center; margin-top: 1rem; border-bottom: 0 !important; }
  .nav__burger { display: flex; }
  .story__grid, .book__grid { grid-template-columns: 1fr; }
  .plan { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .tours, .grid, .exp { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.8rem; }
}
