/*
  Brand colours only, from the client's logo file (img/logo.png): navy in a few tones,
  the logo greys (used here as "silver"), white and black. No other hues.
  Quiet-luxury direction: deep midnight navy, porcelain white, silver hairlines instead of
  boxes, serif headings, generous spacing, square-cornered thin-line buttons.
  Readability stays first: body is a large sans with strong contrast.
  Landing-page order: offer and promises, how it works, prices, pickup form, story, contacts in the footer;
  on phones a fixed call/WhatsApp/pickup bar is always in reach.
*/
:root {
  --navy: #101c3d;        /* midnight: hero, story, buttons */
  --navy-dark: #0a1229;   /* footer, action bar */
  --navy-soft: #22325e;   /* hover on navy */
  --silver: #aeb8c6;      /* logo greys: hairlines and labels on navy */
  --silver-text: #c4ccd8; /* body text on navy (AA) */
  --mist: #f5f6f8;        /* porcelain band */
  --line: #dde2e9;        /* hairlines on light */
  --grey-dark: #4a5463;   /* secondary text (AA on white and mist) */
  --white: #ffffff;
  --ink: #0d1220;         /* engraving black */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; } /* clears the sticky header */
body { margin: 0; font: 400 1.125rem/1.7 var(--sans); color: var(--ink); background: var(--white); padding-bottom: 72px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h2 { font: 500 clamp(2.1rem, 6vw, 3rem)/1.1 var(--serif); letter-spacing: -.01em; }
h3 { font: 600 1.15rem/1.3 var(--sans); }
:focus-visible { outline: 2px solid var(--navy-soft); outline-offset: 3px; }
/* Navy areas need a light focus ring. */
:is(.topbar, .hero, .story, .footer, .action-bar) :focus-visible { outline-color: var(--white); }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 780px; }
.section { padding: 4.5rem 0; }
.note { color: var(--grey-dark); font-size: 1rem; margin-top: 0; }

/* Placeholders: visibly "to be confirmed" */
.placeholder { display: inline-block; border: 1px dashed #8a94a6; border-radius: 4px; padding: .05rem .45rem; color: var(--grey-dark); font-weight: 500; }
.placeholder.small { font-size: .85rem; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--navy); border-bottom: 1px solid rgba(174,184,198,.18); transition: box-shadow .25s; }
.topbar.scrolled { box-shadow: 0 8px 24px rgba(10,18,41,.35); }
.topbar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; padding: .6rem 0; }
.topbar-brand { font: italic 600 1.55rem var(--serif); color: var(--white); text-decoration: none; }
.menu { order: 3; width: 100%; display: flex; gap: 2rem; font-weight: 500; font-size: .98rem; letter-spacing: .02em; }
.menu a { color: var(--white); text-decoration: none; padding: .5rem 0; white-space: nowrap; text-underline-offset: 8px; text-decoration-thickness: 1px; }
.menu a:hover, .menu a.current { text-decoration: underline; }
.menu .menu-cta { color: var(--white); padding: .5rem 1.1rem; border: 1px solid var(--silver); border-radius: var(--radius); align-self: center; transition: background .2s, color .2s; }
.menu .menu-cta:hover { background: var(--white); color: var(--navy); text-decoration: none; }
.menu-toggle { order: 2; display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; padding: 0 10px; margin-right: -10px; background: none; border: 0; cursor: pointer; }
.menu-toggle span { display: block; height: 1.5px; background: var(--white); transition: transform .25s, opacity .2s; }
.open .menu-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.open .menu-toggle span:nth-child(2) { opacity: 0; }
.open .menu-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
@media (max-width: 759px) {
  .lang-switch { margin-left: auto; margin-right: 0; }
  .menu { display: none; flex-direction: column; gap: 0; padding: .5rem 0 1.25rem; }
  .open .menu { display: flex; animation: rise .25s ease both; }
  .menu a { padding: .9rem 0; font: 500 1.6rem var(--serif); letter-spacing: 0; border-bottom: 1px solid rgba(174,184,198,.18); }
  .menu .menu-cta { margin-top: 1.25rem; text-align: center; padding: .9rem; font: 500 1.05rem var(--sans); letter-spacing: .04em; border: 1px solid var(--silver); }
}
.lang-switch { margin-right: -8px; display: flex; border: 1px solid rgba(174,184,198,.4); border-radius: var(--radius); overflow: hidden; }
.lang-switch button {
  display: flex; align-items: center; gap: .4rem; min-height: 40px; padding: 0 .75rem;
  font: 500 .88rem var(--sans); letter-spacing: .04em; color: var(--silver-text); background: transparent; border: 0; cursor: pointer;
}
.lang-switch button + button { border-left: 1px solid rgba(174,184,198,.4); }
.lang-switch button[aria-pressed="true"] { background: var(--white); color: var(--navy); }
.lang-switch svg { width: 22px; height: 15px; border-radius: 1px; box-shadow: 0 0 0 1px rgba(0,0,0,.2); }

/* Hero: midnight navy, logo on the left */
.hero { background: radial-gradient(120% 90% at 15% 30%, #18284f 0%, var(--navy) 55%, var(--navy-dark) 100%); padding: 2rem 0 2.5rem; }
.hero-inner { display: grid; gap: 1.5rem; }
.logo { width: 140px; margin-left: -8px; }
.hero h1 { font: italic 500 clamp(3rem, 12vw, 5.6rem)/.95 var(--serif); color: var(--white); margin: 0 0 .75rem; letter-spacing: -.01em; }
.slogan { font: italic 500 clamp(1.35rem, 4.5vw, 1.9rem)/1.3 var(--serif); color: var(--white); margin: 0 0 1.25rem; max-width: 30ch; }
.lead { font-size: 1.1rem; margin: 0 0 1.75rem; color: var(--silver-text); max-width: 42ch; }
/* Phones: hero stacked and centred. */
@media (max-width: 759px) {
  .hero-inner { justify-items: center; text-align: center; }
  .logo { margin-left: 0; }
  .slogan, .lead { margin-inline: auto; }
  /* Compact so the whole hero fits one phone screen above the action bar. */
  .hero { padding: 1.25rem 0 1.5rem; }
  .hero-inner { gap: 1rem; }
  .logo { width: min(200px, 20svh); }
  .hero h1 { font-size: min(3rem, 7.5svh); }
  .slogan { margin-bottom: .6rem; }
  .lead { font-size: 1rem; margin-bottom: 0; }
  .hero .perks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; max-width: none; margin: .25rem 0 0; }
  .hero .perks li { padding-top: .6rem; }
  .hero .perks strong { font-size: min(1.05rem, 3.6vw); margin-bottom: .15rem; }
  .hero .perks span { display: block; font-size: .8rem; line-height: 1.4; }
}
/* Phones use the fixed action bar instead, so the key facts show without scrolling. */
.cta { display: none; gap: .75rem; max-width: 460px; }
.btn {
  transition: transform .2s, background .2s, color .2s;
  display: block; padding: 1rem 1.25rem; border-radius: var(--radius); border: 0; min-height: 54px;
  font: 500 1.05rem var(--sans); letter-spacing: .04em; text-align: center; text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-soft); }
.btn:hover { transform: translateY(-2px); }
.cta-call { display: none; margin: 1.1rem 0 0; color: var(--silver-text); }
.cta-call a { color: var(--white); font-weight: 600; }
.btn-outline { background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.btn-outline:hover { background: var(--mist); }
/* Hero buttons sit on navy, so invert them. */
.hero .btn-primary { background: var(--white); color: var(--navy); }
.hero .btn-primary:hover { background: var(--mist); }
.hero .btn-outline { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1px var(--silver); }
.hero .btn-outline:hover { background: rgba(255,255,255,.08); }

.alt { background: var(--mist); }

/* The three promises, inside the hero (third column on desktop) */
.perks { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: 1.25rem; width: 100%; max-width: 340px; }
.perks li { padding-top: 1rem; border-top: 1px solid rgba(174,184,198,.45); }
.perks strong { display: block; color: var(--white); font: 500 1.6rem/1.2 var(--serif); margin-bottom: .2rem; }
.perks span { color: var(--silver-text); font-size: 1rem; }

/* Services: a price list, name and price joined by a dotted leader */
.tariff { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 3.5rem; }
.tariff li { display: flex; flex-direction: column; }
.tariff-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 1.5rem; }
.tariff h3 { margin: 0; font: 500 1.75rem/1.2 var(--serif); color: var(--navy); }
.tariff p { margin: .6rem 0 1.5rem; color: var(--grey-dark); max-width: 52ch; }
/* price sits on its own hairline at the foot of each card, so prices line up across a row */
.tariff .price { margin: auto 0 0; padding-top: .9rem; border-top: 1px solid var(--silver); display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; max-width: none; }
.price span { font-size: .95rem; }
.price b { font: 500 1.6rem/1 var(--serif); color: var(--navy); font-variant-numeric: tabular-nums; }

/* Pickup: steps (a real sequence, so numbered) beside the form */
.recolha { display: grid; gap: 2.5rem; align-items: start; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.75rem; }
.steps li { position: relative; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 1.5rem; top: 3.4rem; bottom: -1.5rem; border-left: 1px solid var(--line); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3rem 1fr; grid-template-rows: auto 1fr; column-gap: 1.1rem; }
.steps li::before {
  content: counter(s); grid-row: span 2; width: 3rem; height: 3rem; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid var(--silver); color: var(--navy); font: italic 500 1.6rem/1 var(--serif);
}
.steps strong { font-size: 1.15rem; font-weight: 600; }
.steps span { color: var(--grey-dark); }

.form { display: grid; gap: 1.1rem; padding: 1.75rem; background: var(--mist); border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: var(--radius); }
.days { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .4rem; }
.days legend { font-weight: 500; padding: 0; margin-bottom: .35rem; }
.days label { display: block; position: relative; }
.days input { position: absolute; opacity: 0; }
.days span { display: block; padding: .7rem 0; text-align: center; background: var(--white); border: 1px solid #8a94a6; border-radius: var(--radius); cursor: pointer; font-weight: 500; }
.days input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.days input:focus-visible + span { outline: 2px solid var(--navy-soft); outline-offset: 2px; }
.form-actions { display: grid; gap: .6rem; margin-top: .4rem; }
.form-fine { margin: 0; font-size: .95rem; color: var(--grey-dark); }
.form label { display: grid; gap: .35rem; font-weight: 500; font-size: 1rem; }
.form input, .form select, .form textarea {
  font: 1.05rem var(--sans); padding: .85rem; border: 1px solid #8a94a6; border-radius: var(--radius);
  background: var(--white); width: 100%; color: var(--ink);
}
.form-msg { margin: 0; font-weight: 600; color: var(--navy); }

/* Story: the navy band */
.story { background: var(--navy); color: var(--silver-text); }
.story h2 { color: var(--white); }
.story a { color: var(--white); text-underline-offset: 5px; }
.story-grid { display: grid; gap: 2.5rem; }
.story-photo { margin: 0; }
.story-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 40%; }
.story-photo figcaption { margin-top: .75rem; font-size: .9rem; }
.story-text p { max-width: 52ch; }
.pull { font: italic 500 clamp(1.9rem, 6vw, 2.7rem)/1.2 var(--serif); color: var(--white); margin: 1.25rem 0 1.5rem; padding-left: 1.25rem; border-left: 1px solid var(--silver); max-width: 24ch; }

/* Footer: the contacts live here, in three groups (talk, visit, pickup) */
.footer { background: var(--navy-dark); color: var(--silver-text); padding: 4.5rem 0 2.5rem; }
.footer a { color: var(--white); text-underline-offset: 5px; }
.footer h2 { color: var(--white); margin-bottom: 2rem; }
.contact-cols { display: grid; gap: 2.5rem; }
.contact-col { padding-top: 1.25rem; border-top: 1px solid var(--silver); }
.contact-col h3 { font: 500 .95rem var(--sans); letter-spacing: .06em; color: var(--silver); margin: 0 0 1rem; }
.contact-col p { margin: 0 0 .6rem; line-height: 1.55; }
.contact-big { font: 500 2.2rem/1.1 var(--serif); }
.contact-big a { text-decoration: none; }
.contact-links { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.btn-ghost { display: inline-block; margin-top: .5rem; min-height: 0; padding: .75rem 1.25rem; color: var(--white); box-shadow: inset 0 0 0 1px var(--silver); }
.footer .btn-ghost { text-decoration: none; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.footer-base { margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(174,184,198,.25); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem 2rem; }
.footer .brand { font: italic 500 1.8rem/1 var(--serif); color: var(--white); margin: 0; }
.story .placeholder, .footer .placeholder { color: var(--silver-text); border-color: #4a5d8f; }
.legal { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; font-size: .9rem; }
.legal a { color: var(--silver-text); }

/* Phone action bar */
.action-bar {
  position: fixed; inset: auto 0 0 0; z-index: 10; display: grid; grid-template-columns: 1fr 1fr 1.3fr;
  background: var(--navy-dark); box-shadow: 0 -4px 16px rgba(0,0,0,.18); padding-bottom: env(safe-area-inset-bottom);
}
.action-bar a { display: grid; place-items: center; min-height: 60px; color: var(--white); font-weight: 500; letter-spacing: .04em; text-decoration: none; }
.action-bar a + a { border-left: 1px solid rgba(174,184,198,.25); }
.action-bar a:last-child { background: var(--white); color: var(--navy); }

@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .action-bar { display: none; }
  .section { padding: 6.5rem 0; }
  .menu { order: 0; width: auto; margin-left: auto; margin-right: 1rem; }
  .menu-toggle { display: none; }
  /* Sizes capped by viewport height so the hero fits one screen on short laptops. */
  .hero { padding: clamp(1.25rem, 4vh, 3rem) 0 clamp(1.5rem, 5vh, 3.5rem); }
  .hero-inner { grid-template-columns: 280px 1fr; gap: 3rem; align-items: center; }
  .lang-switch { margin-right: 0; }
  .logo { width: min(280px, 38vh); margin-left: 0; }
  .hero h1 { font-size: min(5.6rem, 10vh); }
  .slogan { font-size: min(1.9rem, 4.2vh); }
  .cta { display: grid; grid-template-columns: 1fr 1fr; }
  .cta-call { display: block; }
  .perks { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; max-width: none; margin: 1rem 0 0; }
  .recolha { grid-template-columns: 5fr 7fr; gap: 4rem; }
  .form-actions { grid-template-columns: 1fr 1fr; }
  .contact-cols { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
  .tariff { grid-template-columns: 1fr 1fr; gap: 4.5rem 3.5rem; }
  .story-grid { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: center; }
  .story-photo img { aspect-ratio: 4 / 5; }
  .form { grid-template-columns: 1fr 1fr; padding: 2.5rem; }
  .form .wide { grid-column: 1 / -1; }
}
/* Wide screens: hero shares the perks 3-column grid, so the text starts in line with the second perk. */
@media (min-width: 1080px) {
  .hero { padding: clamp(1.5rem, 6vh, 4rem) 0; }
  .hero-inner { grid-template-columns: repeat(3, 1fr); column-gap: 2.5rem; }
  .hero-text { grid-column: 2 / -1; }
  .logo { width: min(340px, 42vh); justify-self: center; }
  .hero h1 { font-size: min(7rem, 11vh); }
  .slogan { font-size: min(2.2rem, 4.4vh); max-width: 29ch; margin-bottom: min(1.25rem, 2vh); }
  .lead { margin-bottom: min(1.75rem, 3vh); }
  .perks strong { font-size: min(1.6rem, 3.6vh); }
  .lead { font-size: 1.2rem; max-width: 46ch; }
  .perks { margin-top: min(2rem, 3vh); }
}
/* Motion: hero entrance once, then content rises in as it scrolls into view. */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes settle { from { opacity: 0; transform: scale(.94) rotate(-3deg); } }
.hero .logo { animation: settle .9s cubic-bezier(.2,.7,.2,1) both; }
.hero-text > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero-text > :nth-child(2) { animation-delay: .1s; }
.hero-text > :nth-child(3) { animation-delay: .2s; }
.hero-text > :nth-child(4) { animation-delay: .3s; }
.hero-text > :nth-child(n+5) { animation-delay: .4s; }
.hero .perks li { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.hero .perks li:nth-child(1) { animation-delay: .45s; }
.hero .perks li:nth-child(2) { animation-delay: .55s; }
.hero .perks li:nth-child(3) { animation-delay: .65s; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

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

/* Phone: services as a compact list, small square photo beside the title (placed last so it beats the base .tariff rules) */
@media (max-width: 759px) {
  /* dividers go between services, and the price sits in the text column, so it clearly belongs to its own service */
  .tariff { gap: 0; }
  .tariff li { display: grid; grid-template-columns: 6.5rem 1fr; column-gap: 1.1rem; align-items: start; padding: 1.5rem 0; border-top: 1px solid var(--silver); }
  .tariff li:last-child { border-bottom: 1px solid var(--silver); }
  .tariff-img { grid-row: 1 / span 3; aspect-ratio: 1; margin: 0; }
  .tariff h3 { font-size: 1.5rem; }
  .tariff p { margin: .35rem 0 0; }
  .tariff .price { grid-column: 2; margin-top: .6rem; padding-top: 0; border-top: 0; justify-content: flex-start; gap: .5rem; }
}
