/* ==========================================================================
   Components shared by every page:
   header · mobile menu · buttons · page closing · footer
   ========================================================================== */

/* ---------- 1. fixed header ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--pad); pointer-events: none; transition: background .5s var(--ease); }
.top > * { pointer-events: auto; }
.top.is-scrolled { background: linear-gradient(#F2F3ED 0%, rgba(242, 243, 237, .88) 55%, rgba(242, 243, 237, 0) 100%); }
.top__home { display: block; border-radius: 6px; }
.top__logo { height: 56px; width: auto; }
.top__nav, .top__links { display: flex; gap: 6px; align-items: center; }

.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--pill);
  font: 400 var(--fs-ui)/1 var(--sans); color: var(--ink); text-decoration: none; white-space: nowrap; cursor: pointer;
  background: rgba(255, 255, 255, .62); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(23, 24, 19, .08); transition: background .3s, color .3s; }
.pill:hover { background: #fff; }
.pill[aria-current="page"] { box-shadow: inset 0 0 0 1px rgba(23, 24, 19, .45); background: #fff; }
.pill--solid, .pill--solid:hover { background: var(--ink); color: var(--paper); box-shadow: none; }
.pill--solid[aria-current="page"] { background: var(--ink); color: var(--paper); box-shadow: 0 0 0 2px var(--accent); }

.menu-btn { display: none; width: 44px; padding: 0; flex-direction: column; gap: 5px; }
.menu-btn span { display: block; width: 16px; height: 1.5px; border-radius: 2px; background: currentColor; }

@media (max-width: 900px) {
  .top { padding: 14px var(--pad); }
  .top__logo { height: 44px; }
  .top__links { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ---------- 2. mobile menu: full screen, one background loop per option ---------- */
.menu { position: fixed; inset: 0; z-index: 60; display: flex; background: var(--ink); color: var(--paper);
  clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease); }
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu__media { position: absolute; inset: 0; overflow: hidden; }
.menu__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 24, 19, .62) 0%, rgba(23, 24, 19, .5) 45%, rgba(23, 24, 19, .82) 100%); }
.menu__bg { position: absolute; inset: 0; opacity: 0; transform: scale(1.06); transition: opacity .8s var(--ease), transform 1.6s var(--ease); }
.menu__bg.is-active { opacity: 1; transform: none; }
.menu__bg video, .menu__bg img { width: 100%; height: 100%; object-fit: cover; }
.menu__inner { position: relative; z-index: 1; display: flex; flex-direction: column; width: 100%; overflow-y: auto;
  padding: 14px var(--pad) calc(24px + env(safe-area-inset-bottom)); }
.menu__head { display: flex; align-items: center; justify-content: space-between; }
.menu__logo { height: 44px; width: auto; }
.menu__close { position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.menu__close span { position: absolute; left: 14px; top: 21px; width: 16px; height: 1.5px; border-radius: 2px; background: var(--paper); transform: rotate(45deg); }
.menu__close span + span { transform: rotate(-45deg); }
.menu nav { margin: auto 0; padding: 28px 0; }
.menu__list { list-style: none; }
.menu__list a { display: inline-block; padding: 4px 0; color: var(--paper); text-decoration: none;
  font: 400 clamp(54px, 15vw, 96px)/1 var(--serif); letter-spacing: -.03em; transition: opacity .5s var(--ease), transform .7s var(--ease); }
.menu__list i { font-style: normal; color: var(--accent-on-dark); }
.menu__list.has-active a { opacity: .55; }
.menu__list.has-active a.is-active { opacity: 1; transform: translateX(12px); }
.menu__list a[aria-current="page"] i { color: var(--paper); }
.menu__list a:focus-visible { outline-offset: 6px; }
.menu__foot { display: grid; gap: 10px; }
.menu__foot .cta { justify-content: center; }
.menu__lang { justify-self: center; margin-top: 6px; padding: 12px; font: 500 var(--fs-ui)/1 var(--sans); color: var(--paper); text-decoration: none; border-bottom: 1px solid var(--accent-on-dark); }
html.menu-open { overflow: hidden; }

/* ---------- 3. buttons ---------- */
.cta { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 30px; border: 0; border-radius: var(--pill);
  font: 500 16px/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), background .4s; }
.cta svg { width: 20px; height: 20px; flex: none; }
.cta:active { transform: translateY(0) scale(.98); }
/* main button: orange with ink text, glow, light sweep */
.cta-quote { background: var(--accent); color: var(--on-accent);
  box-shadow: 0 14px 44px -10px rgba(30, 63, 216, .75), 0 6px 22px -8px rgba(23, 24, 19, .3), inset 0 0 0 1px rgba(143, 162, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .35); }
.cta-quote::after { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-130%);
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); }
.cta-quote:hover { transform: translateY(-2px);
  box-shadow: 0 22px 60px -10px rgba(30, 63, 216, .95), 0 8px 26px -8px rgba(23, 24, 19, .35), inset 0 0 0 1px rgba(170, 185, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .45); }
.cta-quote:hover::after, .cta-quote.shine::after { transform: translateX(130%); transition: transform 1.1s var(--ease); }
/* second button: white glass */
.cta-wa { color: var(--ink); background: rgba(255, 255, 255, .62); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  box-shadow: inset 0 0 0 1px rgba(23, 24, 19, .1), inset 0 1px 0 rgba(255, 255, 255, .8), 0 12px 40px -18px rgba(23, 24, 19, .35); }
.cta-wa:hover { transform: translateY(-2px); background: #fff; }

/* ---------- 4. page closing: "Let's tell your story" ---------- */
.closing { padding: clamp(40px, 5vw, 72px) 0 0; text-align: center; }
.closing__big { color: var(--ink); white-space: nowrap; font: 600 clamp(48px, 9.6vw, 148px)/.9 var(--sans); letter-spacing: -.05em; }
.closing__big em { font: italic 400 1.04em/.9 var(--serif); letter-spacing: -.03em; padding-right: .04em; }
.closing__line { font: 400 var(--fs-lead)/1.45 var(--sans); color: var(--mute); max-width: 44ch; margin: clamp(18px, 2vw, 26px) auto 0; text-wrap: pretty; }
.closing__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(24px, 3vw, 36px); }
@media (max-width: 820px) {
  .closing__big { white-space: normal; font-size: clamp(54px, 16vw, 80px); }
  .closing__big span { display: block; }
  .closing__ctas { flex-direction: column; align-items: stretch; max-width: 340px; margin-left: auto; margin-right: auto; }
  .closing__ctas .cta { justify-content: center; }
}

/* ---------- 5. footer: dark, rounded, white logo ---------- */
.foot { position: relative; z-index: 5; padding: clamp(56px, 7vw, 96px) var(--pad) 0; background: var(--paper); }
.foot__inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: auto 1fr; gap: 28px 56px; align-items: end;
  padding: 44px clamp(24px, 4vw, 48px) calc(32px + env(safe-area-inset-bottom)); border-radius: var(--radius-panel) var(--radius-panel) 0 0;
  background: var(--ink); color: var(--paper); }
.foot__logo { height: 96px; width: auto; }
.foot__cols { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px; font: 400 17px/1.5 var(--sans); }
.foot__cols a, .foot__cols p { display: block; text-decoration: none; white-space: nowrap; }
.foot__cols a:hover { text-decoration: underline; text-decoration-color: var(--accent-on-dark); text-underline-offset: 4px; }
.foot__cols span { display: block; font-size: 15px; color: var(--mute-dark); }
.foot__small { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: baseline;
  padding-top: 22px; border-top: 1px solid var(--line-dark); font: 400 15px/1.5 var(--sans); color: var(--mute-dark); }
.foot__small p { max-width: 80ch; }
.foot__lang { color: var(--paper); text-decoration: none; border-bottom: 1px solid var(--accent-on-dark); }
@media (max-width: 820px) {
  .foot { padding-left: 0; padding-right: 0; }
  .foot__inner { grid-template-columns: 1fr; border-radius: 24px 24px 0 0; }
  .foot__logo { height: 76px; }
}
