/* ==========================================================================
   COMPONENTS — header, nav, buttons, cards, forms, accordion, footer, chrome
   ========================================================================== */

/* --------------------------------------------------------------------------
   HEADER
   Transparent over the hero, solid once scrolled. Cart count and the booking
   CTA are both permanently visible — the two things the site exists to do.
   -------------------------------------------------------------------------- */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem var(--gutter);
  color: var(--white);
  transition: padding var(--dur-med) var(--ease-out),
              background var(--dur-med) var(--ease-out),
              color var(--dur-med) var(--ease-out);
}
.header.is-stuck {
  padding: .7rem var(--gutter);
  background: rgba(15, 20, 23, .93);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--g700);
}
/* Pages without a photographic hero start solid */
.header.is-solid {
  background: var(--ink);
  border-bottom: 1px solid var(--g700);
}

.h-logo {
  display: inline-flex; align-items: baseline; gap: .5rem;
  font-size: .95rem; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap;
}
.h-logo b { font-weight: 500; }
.h-logo span { color: var(--breeze-w); font-weight: 300; }

.h-links { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2rem); }
.h-links a {
  position: relative;
  font-size: .65rem; font-weight: 400;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
  padding: .35rem 0;
  transition: color var(--dur-fast) var(--ease-out);
}
.h-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--breeze-w);
  transition: width var(--dur-med) var(--ease-expo);
}
.h-links a:hover, .h-links a.is-active { color: var(--white); }
.h-links a:hover::after, .h-links a.is-active::after { width: 100%; }

.h-actions { display: flex; align-items: center; gap: .85rem; }

.h-cart {
  position: relative;
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
  padding: .5rem;
  transition: color var(--dur-fast) var(--ease-out);
}
.h-cart:hover { color: var(--white); }
.h-cart__count {
  min-width: 18px; height: 18px;
  display: inline-grid; place-items: center;
  padding: 0 5px;
  background: var(--breeze); color: var(--white);
  font-size: .6rem; letter-spacing: 0; line-height: 1;
}
.h-cart__count[data-empty="true"] { background: var(--g700); color: var(--g300); }

.h-cta {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .8rem 1.4rem;
  border: 1px solid var(--breeze);
  background: var(--breeze); color: var(--white);
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.h-cta:hover { background: var(--breeze-2); border-color: var(--breeze-2); }

.h-burger {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.h-burger span {
  display: block; width: 22px; height: 1px; background: currentColor;
  transition: transform var(--dur-med) var(--ease-expo),
              opacity var(--dur-fast) var(--ease-out);
}
.header.is-open .h-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.header.is-open .h-burger span:nth-child(2) { opacity: 0; }
.header.is-open .h-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer — partial, slides down from the top, not full-screen */
.mobile-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 99;
  background: var(--ink);
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem;
  transform: translateY(-110%);
  transition: transform var(--dur-slow) var(--ease-expo);
  border-bottom: 1px solid var(--g700);
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav a {
  display: block;
  padding: .85rem 0;
  border-bottom: 1px solid var(--g700);
  color: var(--white);
  font-size: 1.15rem; font-weight: 300; letter-spacing: -.01em;
}
.mobile-nav .h-cta { margin-top: 1.5rem; width: 100%; justify-content: center; }

@media (max-width: 980px) {
  .h-links { display: none; }
  .h-burger { display: flex; }
  .h-cta.is-desktop-only { display: none; }
  /* Comfortable thumb target once the cart link is one of only two controls
     in the bar. */
  .h-cart { min-height: 44px; padding: .5rem .65rem; }
}

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  padding: 1rem 1.9rem;
  min-height: 48px;
  border: 1px solid currentColor;
  font-size: .62rem; font-weight: 400;
  letter-spacing: .22em; text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
}
.btn svg { flex: none; transition: transform var(--dur-med) var(--ease-expo); }
.btn:hover svg { transform: translateX(3px); }

.btn--accent { background: var(--breeze); border-color: var(--breeze); color: var(--white); }
.btn--accent:hover { background: var(--breeze-2); border-color: var(--breeze-2); }

.btn--dark { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn--dark:hover { background: transparent; color: var(--ink); }

.btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }

.btn--white { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn--white:hover { background: transparent; color: var(--white); }

.btn--ghost-light { background: transparent; border-color: rgba(255,255,255,.4); color: var(--white); }
.btn--ghost-light:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

.btn--wide { width: 100%; }
.btn--lg { padding: 1.2rem 2.4rem; font-size: .68rem; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn:disabled:hover svg { transform: none; }

/* Text link with an arrow that opens on hover */
.arrow-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  opacity: .62;
  transition: opacity var(--dur-fast) var(--ease-out), gap var(--dur-med) var(--ease-expo);
}
.arrow-btn:hover { opacity: 1; gap: .95rem; }

/* --------------------------------------------------------------------------
   CARDS
   -------------------------------------------------------------------------- */
.card {
  display: flex; flex-direction: column;
  background: var(--white);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  height: 100%;
}
.tone-dark .card { background: var(--ink-2); }

.card__num {
  font-size: .62rem; letter-spacing: .2em;
  color: var(--breeze);
  margin-bottom: 1.25rem;
}
.card__title { margin-bottom: .75rem; }
.card__desc { color: var(--g500); flex: 1; }
.tone-dark .card__desc { color: var(--g300); }
.card__foot { margin-top: 1.75rem; }

/* Media card: image over body, image lifts slightly on hover */
.mcard { display: block; background: var(--white); height: 100%; }
.mcard__media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--g100); }
.mcard__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-expo);
}
.mcard:hover .mcard__media img { transform: scale(1.06); }
.mcard__body { padding: clamp(1.5rem, 2.5vw, 2rem); }
.mcard__title { margin-bottom: .6rem; }
.mcard__desc { color: var(--g500); }
.mcard__link {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 1.4rem;
  font-size: .6rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--breeze);
  transition: gap var(--dur-med) var(--ease-expo);
}
.mcard:hover .mcard__link { gap: .9rem; }

/* Numbered process step with a large ghost numeral */
.step { padding: clamp(1.75rem, 3vw, 2.5rem); background: var(--white); height: 100%; }
.tone-dark .step { background: var(--ink-2); }
.step__num {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 300; line-height: 1; letter-spacing: -.03em;
  color: var(--g100);
  margin-bottom: 1.5rem;
  transition: color var(--dur-med) var(--ease-out);
}
.tone-dark .step__num { color: var(--g700); }
.step:hover .step__num { color: var(--breeze); }
.step__title { margin-bottom: .7rem; }
.step__desc { color: var(--g500); }
.tone-dark .step__desc { color: var(--g300); }

/* Stat */
.stat__num {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300; line-height: 1; letter-spacing: -.03em;
}
.stat__num em { font-style: normal; color: var(--breeze-w); }
.stat__desc { margin-top: .85rem; color: var(--g300); font-size: .8rem; line-height: 1.6; }
.tone-light .stat__desc, .tone-white .stat__desc, .tone-ground .stat__desc { color: var(--g500); }

/* Review */
.review { padding: clamp(1.75rem, 3vw, 2.5rem); background: var(--white); height: 100%; display: flex; flex-direction: column; }
.review__stars { color: var(--breeze); font-size: .8rem; letter-spacing: .2em; margin-bottom: 1.25rem; }
.review__quote { flex: 1; font-size: 1rem; line-height: 1.7; }
.review__by { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--g100); }
.review__name { font-size: .8rem; font-weight: 400; }
.review__meta { font-size: .7rem; color: var(--g500); margin-top: .2rem; }

/* --------------------------------------------------------------------------
   FORMS
   -------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: .45rem; }
.field > label, .field__label {
  font-size: .55rem; font-weight: 400;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--g500);
}
.tone-dark .field > label, .tone-dark .field__label { color: var(--g300); }

.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="number"], .field input[type="date"], .field input[type="search"],
.field select, .field textarea {
  width: 100%;
  padding: .95rem 1rem;
  background: var(--white);
  border: 1px solid var(--g100);
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  font-size: .95rem; font-weight: 300;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.tone-dark .field input, .tone-dark .field select, .tone-dark .field textarea {
  background: var(--ink-2); border-color: var(--g700); color: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--breeze);
}
.field textarea { min-height: 130px; resize: vertical; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%2385898A' stroke-width='1.2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.field--invalid input, .field--invalid select, .field--invalid textarea { border-color: var(--error); }
.field__error {
  display: none;
  font-size: .72rem; color: var(--error);
}
.field--invalid .field__error { display: block; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 700px) { .field-row { grid-template-columns: 1fr; } }

.field-hint { font-size: .75rem; color: var(--g500); }

/* Honeypot — off-screen, never focusable */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Checkbox / radio */
.check {
  display: flex; align-items: flex-start; gap: .75rem;
  cursor: pointer;
  font-size: .85rem; line-height: 1.6;
}
.check input { flex: none; width: 18px; height: 18px; margin-top: .18rem; accent-color: var(--breeze); }

/* Selectable card used for services, add-ons, windows, fulfilment */
.opt {
  position: relative;
  display: block;
  padding: 1.15rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--g100);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}
.opt:hover { border-color: var(--g300); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.opt__name { font-size: .95rem; font-weight: 400; }
.opt__price { font-size: .82rem; color: var(--breeze); white-space: nowrap; }
.opt__desc { margin-top: .4rem; font-size: .78rem; color: var(--g500); line-height: 1.6; }
.opt.is-selected {
  border-color: var(--breeze);
  box-shadow: inset 0 0 0 1px var(--breeze);
}
.opt:focus-within { outline: 2px solid var(--breeze); outline-offset: 2px; }
.opt--rec::after {
  content: "Recommended";
  position: absolute; top: -1px; right: -1px;
  background: var(--breeze); color: var(--white);
  font-size: .52rem; letter-spacing: .18em; text-transform: uppercase;
  padding: .3rem .6rem;
}

.opt-grid { display: grid; gap: .75rem; }
.opt-grid--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .opt-grid--2 { grid-template-columns: 1fr; } }

/* Inline status messages */
.notice {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: 1rem 1.15rem;
  font-size: .85rem; line-height: 1.6;
  border-left: 2px solid;
}
.notice--ok   { background: var(--mint-l);  border-color: var(--mint);  color: #1F5646; }
.notice--warn { background: var(--warn-l);  border-color: var(--warn);  color: #6E4712; }
.notice--err  { background: var(--error-l); border-color: var(--error); color: #7A2A1E; }
.notice--info { background: var(--g100);    border-color: var(--g500);  color: var(--g700); }

/* --------------------------------------------------------------------------
   ACCORDION (FAQ)
   -------------------------------------------------------------------------- */
.acc { border-top: 1px solid var(--g100); }
.acc__item { border-bottom: 1px solid var(--g100); }
.acc__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  width: 100%; padding: 1.4rem 0;
  text-align: left;
  font-size: 1rem; font-weight: 400;
}
.acc__icon { position: relative; flex: none; width: 14px; height: 14px; }
.acc__icon::before, .acc__icon::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  background: var(--breeze);
  transition: transform var(--dur-med) var(--ease-expo), opacity var(--dur-fast) var(--ease-out);
}
.acc__icon::before { width: 14px; height: 1px; }
.acc__icon::after  { width: 1px; height: 14px; }
.acc__item.is-open .acc__icon::after { transform: rotate(90deg); opacity: 0; }
.acc__panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-med) var(--ease-expo);
}
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel p { padding-bottom: 1.4rem; color: var(--g500); max-width: 68ch; }

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer { background: var(--ink); color: var(--white); border-top: 1px solid var(--g700); }
.footer__top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(3.5rem, 8vh, 6rem) 0 clamp(2.5rem, 5vh, 4rem);
}
@media (max-width: 1000px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px)  { .footer__top { grid-template-columns: 1fr; } }

.footer__blurb { max-width: 34ch; color: var(--g300); margin-top: 1.25rem; }
.footer__col h4 {
  font-size: .58rem; font-weight: 400;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--g700);
  margin-bottom: 1.25rem;
}
.footer__col a, .footer__col li {
  display: block; padding: .3rem 0;
  font-size: .88rem; color: var(--g300);
  transition: color var(--dur-fast) var(--ease-out);
}
.footer__col a:hover { color: var(--breeze-w); }

.footer__bottom {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
  padding: 1.75rem 0 3.25rem;
  border-top: 1px solid var(--g700);
  font-size: .72rem; color: var(--g500);
}
.footer__bottom a { color: var(--g500); }
.footer__bottom a:hover { color: var(--g300); }
.footer__legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer__by {
  position: absolute; left: 50%; bottom: 1rem;
  transform: translateX(-50%);
  font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--g700); white-space: nowrap;
}
.footer__by:hover { color: var(--g500); }
@media (max-width: 700px) {
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   CHROME — scroll progress, toast
   -------------------------------------------------------------------------- */
.scroll-bar {
  position: fixed; top: 0; left: 0;
  z-index: 200;
  width: 100%; height: 2px;
  background: var(--breeze);
  transform: scaleX(0);
  transform-origin: left;
}

/* Hidden by opacity and visibility rather than by transform alone — an empty
   toast is short, so translating it by a percentage of its own height does not
   reliably clear the bottom of the viewport and it peeks through. */
.toast {
  position: fixed; left: 50%; bottom: 2rem;
  z-index: 250;
  transform: translate(-50%, 1rem);
  opacity: 0; visibility: hidden;
  background: var(--ink); color: var(--white);
  padding: .9rem 1.5rem;
  font-size: .8rem;
  box-shadow: var(--shadow-float);
  transition: transform var(--dur-med) var(--ease-expo),
              opacity var(--dur-fast) var(--ease-out),
              visibility var(--dur-med);
  max-width: calc(100vw - 2rem);
}
.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1; visibility: visible;
}
