/* Studio Luminelli – styles.css
   Mobile first. Tokens sampled from luminelli_mobile_mockup.png. */

@font-face {
  font-family: "Quicksand";
  src: url("../fonts/quicksand-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --c-text: #1a1a1a;
  --c-text-muted: #4a4a4a;
  --c-bg: #ffffff;
  --c-coral: #ee6e70;          /* link underline, chip, focus ring */
  --c-btn: #ea6668;            /* button: white bold 19px text = large text, 3.18:1 (AA needs 3:1) */
  --c-btn-hover: #d9585b;      /* 3.82:1 */
  --c-footer: #616161;
  --c-footer-pill: #767676;
  --c-footer-text: #ffffff;
  --c-footer-muted: #ececec;   /* 5.4:1 on footer grey */
  --c-chip-bg: #fde3e3;
  --c-error: #b3261e;
  --c-focus: #1a1a1a;

  /* Hero overlay: #F03737 @ 20% → #3C3E29 @ 100% (opaque from 95%) */
  --hero-overlay: linear-gradient(180deg, rgb(240 55 55 / 20%) 0%, rgb(60 62 41 / 1) 95%, rgb(60 62 41 / 1) 100%);

  --font: "Quicksand", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  --maxw: 1100px;
  --radius-pill: 999px;
  --section-gap: clamp(6rem, 4rem + 8vw, 10rem);

  --fs-body: clamp(1.25rem, 1.15rem + .4vw, 1.375rem);
  --fs-small: .875rem;
  --fs-statement: clamp(1.5rem, 1.1rem + 2.2vw, 2.75rem);
  --fs-intro: clamp(1.375rem, 1.05rem + 1.6vw, 2.25rem);
  --fs-h2: clamp(1.5rem, 1.3rem + .8vw, 1.875rem);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
}
body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }

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

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter); top: -100px;
  z-index: 100;
  padding: .75rem 1.25rem;
  background: var(--c-text); color: #fff;
  border-radius: var(--radius-pill);
  font-size: 1rem;
}
.skip-link:focus { top: .75rem; }

.container {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Header ---------- */
.site-header { padding-block: 1rem .75rem; }
.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--c-text);
  text-decoration: none;
}
.logo svg { width: clamp(150px, 120px + 8vw, 200px); height: auto; }
.logo:focus-visible { outline-offset: 6px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 1rem 2.5rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--c-btn);
  color: #fff;
  font: inherit;
  font-size: 1.1875rem;  /* >= 18.66px bold counts as large text for contrast */
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--c-btn-hover); }
.btn:active { transform: scale(.98); }
.btn[disabled] { cursor: progress; opacity: .75; }

.text-link {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--c-text);
  text-align: left;
  text-decoration: underline;
  text-decoration-color: var(--c-coral);
  text-decoration-thickness: 2px;
  text-underline-offset: .2em;
  cursor: pointer;
  /* 44px minimum target: line-height 1.6 × 1.25rem ≈ 32px, extend hit area vertically */
  padding-block: .375rem;
}
.text-link:hover { text-decoration-thickness: 3px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(48rem, 100svh - 4rem);
  color: #fff;
  overflow: hidden;
}
.hero__media, .hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  z-index: -2;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hero-overlay);
}
.hero__inner {
  display: grid;
  gap: 1.5rem;
  padding-top: 8rem;
  padding-bottom: 1.25rem;
}
.hero__statement {
  font-size: var(--fs-statement);
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .02em;
  hyphens: manual;
  text-shadow: 0 1px 2px rgb(0 0 0 / .3), 0 0 22px rgb(40 20 30 / .45);
}
.hero__statement span { display: block; }
.hero__cta { justify-self: end; margin-top: 3rem; min-width: 13.5rem; padding-block: 1.25rem; }
.hero__visit {
  margin-top: 2rem;
  font-size: var(--fs-small);
  line-height: 1.8;
  text-align: center;
  text-wrap: balance;
}
.hero__visit a {
  /* inline link in a sentence: exempt from WCAG 2.5.8 target size */
  text-decoration-color: rgb(255 255 255 / .6);
  text-underline-offset: .2em;
}

/* ---------- Intro ---------- */
.intro { margin-top: var(--section-gap); }
.intro__text {
  max-width: 34ch;
  font-size: var(--fs-intro);
  font-weight: 500;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .01em;
}

/* ---------- Services ---------- */
.services {
  display: grid;
  gap: var(--section-gap);
  margin-top: var(--section-gap);
}
.service h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.3;
}
.service p { margin-top: .25rem; max-width: 38ch; }
.service .text-link { margin-top: 1.5rem; display: inline-block; max-width: 20ch; }

/* ---------- About ---------- */
.about { margin-top: var(--section-gap); }
.about h2, .faq h2 {
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}
.about p { max-width: 60ch; }
.about p + p { margin-top: 1rem; }

/* ---------- FAQ ---------- */
.faq { margin-top: var(--section-gap); margin-bottom: var(--section-gap); }
.faq__list { border-top: 1px solid #d6d6d6; }
.faq details { border-bottom: 1px solid #d6d6d6; }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 44px;
  padding-block: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: .75rem; height: .75rem;
  border-right: 2px solid var(--c-coral);
  border-bottom: 2px solid var(--c-coral);
  transform: translateY(-25%) rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(25%) rotate(-135deg); }
.faq details > div { padding-bottom: 1.5rem; max-width: 62ch; }
.faq details p + p { margin-top: .75rem; }

/* ---------- Form status (no-JS fallback, shown via :target) ---------- */
.notice { display: none; }
.notice:target {
  display: block;
  margin-block: 0 2rem;
  padding: 1rem 1.25rem;
  scroll-margin-top: 2rem;
  border-radius: 1rem;
  background: var(--c-chip-bg);
  font-size: 1rem;
}
.notice[data-type="error"]:target { background: #fbe1df; }

/* ---------- Contact (inline form without JS) ---------- */
.contact { margin-bottom: var(--section-gap); }
.contact > .inquiry__inner { max-width: 36rem; padding: 0; }
.js .contact { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-footer);
  color: var(--c-footer-text);
  font-size: 1rem;
  line-height: 1.6;
  padding-top: 4.5rem;
}
.site-footer .logo { color: #fff; }
.site-footer .logo svg { width: 130px; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem 1.5rem;
  margin-top: 2.5rem;
}
.footer__grid address { font-style: normal; color: var(--c-footer-muted); }
.footer__grid strong, .footer__heading {
  display: block;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
}
.footer__grid a {
  color: var(--c-footer-muted);
  text-decoration-color: rgb(255 255 255 / .45);
  text-underline-offset: .2em;
}
.footer__grid a:hover { color: #fff; text-decoration-color: #fff; }
.footer__contact { display: block; margin-top: 1.5rem; }
.footer__contact a { display: inline-block; padding-block: .6rem; line-height: 1.4; }
.footer__nav ul { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.footer__nav a {
  display: inline-block;
  padding-block: .6rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.footer__bar {
  margin-top: 4rem;
  padding: 1rem 1.25rem;
  background: var(--c-footer-pill);
  border-radius: 1rem 1rem 0 0;
  text-align: center;
  font-size: .9375rem;
  font-weight: 600;
}
.site-footer :focus-visible { outline-color: #fff; }

/* ---------- Legal pages ---------- */
.legal { padding-block: 3rem var(--section-gap); }
.legal h1 { font-size: clamp(2rem, 1.6rem + 2vw, 3rem); line-height: 1.2; margin-bottom: 2rem; }
.legal h2 { font-size: var(--fs-h2); line-height: 1.3; margin: 2.5rem 0 .75rem; }
.legal p, .legal address, .legal ul { max-width: 65ch; font-style: normal; }
.legal p + p { margin-top: 1rem; }
.todo { background: #fff4c2; padding: .1em .35em; border-radius: .25em; }

/* ---------- Modal ---------- */
.inquiry {
  --from-x: 0px;
  --from-y: 0px;
  --from-scale: .2;
  width: min(36rem, 100% - 2rem);
  max-height: min(90vh, 52rem);
  padding: 0;
  border: 0;
  border-radius: 1.5rem;
  color: var(--c-text);
  background: var(--c-bg);
  box-shadow: 0 30px 80px rgb(0 0 0 / .3);
  overflow: auto;
  overscroll-behavior: contain;
}
.inquiry::backdrop { background: rgb(40 30 35 / .55); }
.inquiry__inner { padding: 2.75rem 1.75rem 2rem; position: relative; }
.inquiry__title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  padding-right: 2.5rem;
}
.inquiry__close {
  position: absolute;
  top: .75rem; right: .75rem;
  z-index: 1;  /* above .inquiry__inner, which comes later in the DOM */
  display: grid; place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--c-text);
  cursor: pointer;
}
.inquiry__close:hover { background: #f1f1f1; }
.inquiry__close svg { width: 20px; height: 20px; }

.chip {
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
  padding: .3rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--c-chip-bg);
  border: 1.5px solid var(--c-coral);
  font-size: .9375rem;
  font-weight: 600;
}
.chip[hidden] { display: none; }

.field { display: grid; gap: .375rem; margin-top: 1.5rem; }
.field label { font-size: 1rem; font-weight: 600; }
.field input, .field textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid #8a8a8a;
  border-radius: .875rem;
  background: #fff;
  color: var(--c-text);
  font: inherit;
  font-size: 1.0625rem;  /* >= 16px: no iOS zoom */
  line-height: 1.5;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--c-coral);
  outline-offset: 1px;
  border-color: var(--c-text);
}
.field [aria-invalid="true"] { border-color: var(--c-error); }
.field__error { min-height: 0; color: var(--c-error); font-size: .9375rem; font-weight: 600; }
.field__error:empty { display: none; }
.field__hint { font-size: .875rem; color: var(--c-text-muted); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.inquiry__privacy { margin-top: 1.25rem; font-size: .9375rem; color: var(--c-text-muted); }
.inquiry__privacy a { text-decoration-color: var(--c-coral); text-underline-offset: .2em; }
.inquiry__error {
  margin-top: 1rem;
  padding: .75rem 1rem;
  border-radius: .75rem;
  background: #fbe1df;
  color: var(--c-error);
  font-size: .9375rem;
  font-weight: 600;
}
.inquiry__error:empty { display: none; }
.inquiry__submit { margin-top: 1.5rem; width: 100%; }
.inquiry__submit[aria-busy="true"]::after {
  content: "";
  width: 1em; height: 1em;
  margin-left: .6em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Grow-from-trigger animation (only transform + opacity) */
.inquiry[open] { animation: inquiry-in .32s cubic-bezier(.2, .8, .2, 1) both; }
.inquiry.is-closing { animation: inquiry-out .26s cubic-bezier(.4, 0, .8, .4) both; }
.inquiry[open]::backdrop { animation: fade-in .32s ease-out both; }
.inquiry.is-closing::backdrop { animation: fade-in .26s ease-in reverse both; }
@keyframes inquiry-in {
  from { opacity: 0; transform: translate(var(--from-x), var(--from-y)) scale(var(--from-scale)); }
  to   { opacity: 1; transform: none; }
}
@keyframes inquiry-out {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translate(var(--from-x), var(--from-y)) scale(var(--from-scale)); }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Small screens: bottom sheet */
@media (max-width: 599px) {
  .inquiry {
    width: 100%;
    max-width: 100%;
    max-height: 92svh;
    margin: auto 0 0;
    border-radius: 1.5rem 1.5rem 0 0;
  }
  .inquiry__inner { padding-bottom: max(2rem, env(safe-area-inset-bottom)); }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  z-index: 50;
  max-width: calc(100% - 2rem);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-pill);
  background: var(--c-text);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgb(0 0 0 / .25);
  transform: translate(-50%, 150%);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
  pointer-events: none;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.toast:empty { visibility: hidden; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .inquiry[open], .inquiry.is-closing { animation-name: fade-in; animation-duration: .15s; }
  .inquiry.is-closing { animation-direction: reverse; }
  .toast { transition: opacity .2s ease; transform: translate(-50%, 0); }
  .btn, .faq summary::after { transition: none; }
}

/* ---------- Tablet / desktop ---------- */
@media (min-width: 720px) {
  .site-header { padding-block: 1.5rem 1.25rem; }
  .hero { min-height: min(44rem, 85svh); }
  .hero__media img { object-position: 50% 35%; }
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 3rem;
    padding-bottom: 2rem;
  }
  .hero__visit { grid-column: 1 / -1; }
  .hero__statement { grid-column: 1; }
  .service .text-link { max-width: none; }
  .hero__cta { grid-column: 2; grid-row: 1; margin-top: 0; }
  .hero__visit { text-align: left; margin-top: 2.5rem; }
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5rem 4rem;
  }
  .footer__grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer__nav { display: contents; }
  .footer__bar { border-radius: 1rem 1rem 0 0; }
}
@media (min-width: 1024px) {
  .intro { margin-inline: auto; }
}
