/* ==========================================================================
   Signature Site — sales page for photographers
   Gallery-white, one amber accent, EXIF-label system.
   ========================================================================== */

/* Self-hosted fonts (GDPR: no Google Fonts requests) --------------------- */

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/instrument-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/instrument-sans-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/instrument-sans-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/instrument-serif-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/instrument-serif-400.woff2') format('woff2');
}

:root {
  --paper: oklch(97% 0.005 90);
  --ink: oklch(18% 0.01 270);
  --ink-soft: oklch(40% 0.01 270);
  --amber: oklch(62% 0.17 45);
  --amber-deep: oklch(54% 0.16 45);
  --line: oklch(88% 0.005 90);

  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Instrument Sans", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --space-section: clamp(5rem, 12vw, 10rem);
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --measure: 38rem;
}

/* Base ------------------------------------------------------------------- */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); max-width: 20ch; }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }

p { margin: 0 0 1rem; max-width: var(--measure); }

a { color: var(--amber-deep); }

::selection { background: var(--amber); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--amber-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* EXIF label system ------------------------------------------------------ */

.exif {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
  max-width: none;
}

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.6rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.btn-primary {
  background: var(--amber);
  color: oklch(99% 0.003 90);
}
.btn-primary:hover { background: var(--amber-deep); transform: translateY(-1px); }

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

.btn-small { min-height: 40px; padding: 0.45rem 1.1rem; font-size: 0.9rem; }
.btn-wide { width: 100%; }

/* Header ----------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  padding: 0.9rem var(--gutter);
  background: color-mix(in oklch, var(--paper) 85%, transparent);
  backdrop-filter: blur(8px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}
.wordmark-dot { color: var(--amber); }

/* Layout ----------------------------------------------------------------- */

.section {
  padding: var(--space-section) var(--gutter);
  max-width: 72rem;
  margin-inline: auto;
}

/* 1. Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-content: center;
  padding: 6rem var(--gutter) 4rem;
  overflow: clip;
}

.hero-gallery {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  align-items: center;
  opacity: 0.14;
  pointer-events: none;
}

.hero-strip {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  will-change: transform;
}

.hero-strip img {
  width: clamp(180px, 24vw, 300px);
  height: auto;
  border-radius: 4px;
  filter: grayscale(1) contrast(1.05);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: grid;
  justify-items: center;
}

.hero-h1 {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 0.98;
  margin-bottom: 1.6rem;
}
.hero-h1 em { font-style: italic; color: var(--amber-deep); }

/* mask wrappers for the line reveal */
.hero .line { display: block; overflow: clip; }
.hero .line > span { display: block; }
.exif[data-hero-line],
.hero-sub[data-hero-line],
.hero-ctas[data-hero-line] { overflow: clip; }
.exif[data-hero-line] > span,
.hero-sub[data-hero-line] > span,
.hero-ctas[data-hero-line] > span { display: block; }

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: 2.2rem;
}

.hero-ctas > span {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  translate: -50% 0;
  margin: 0;
  font-size: 0.62rem;
}

/* 2. Problem ------------------------------------------------------------- */

.problem { border-top: 1px solid var(--line); }

.problem-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.problem-list li {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.6vw, 2.6rem);
  line-height: 1.12;
  max-width: 24ch;
  border-left: 2px solid var(--amber);
  padding-left: clamp(1rem, 3vw, 2rem);
}

/* 3. Proof --------------------------------------------------------------- */

.proof { border-top: 1px solid var(--line); }

.proof-intro { padding-bottom: 2rem; }

.proof-pin { overflow: clip; }

.proof-track {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

/* horizontal layout only when JS drives the pinned scroll */
@media (min-width: 768px) {
  .js .proof-track { flex-direction: row; }
}

.proof-panel {
  flex: 0 0 100%;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem var(--gutter);
}

.proof-metric {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  margin-bottom: 0.4rem;
}

.proof-number {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  display: block;
  color: var(--amber-deep);
}

.proof-panel-visual img {
  border-radius: 6px;
  margin-bottom: 1.25rem;
  max-width: min(100%, 46rem);
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -36px oklch(18% 0.01 270 / 0.3);
}

.proof-note { color: var(--ink-soft); }

.proof-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--amber-deep);
}
.proof-link:hover { text-decoration: underline; }

/* stacked fallback (mobile / reduced motion): panels flow vertically */
@media (max-width: 767px) {
  .proof-panel { min-height: 0; padding-block: 3rem; }
}

/* 4. Pricing ------------------------------------------------------------- */

.pricing {
  border-top: 1px solid var(--line);
  display: grid;
  justify-items: start;
}

.price-card {
  width: 100%;
  max-width: 34rem;
  margin-top: 2.5rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  background: oklch(99% 0.003 90);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 24px 60px -36px oklch(18% 0.01 270 / 0.25);
}

.price-card-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.price-name { margin-bottom: 0.4rem; }

.price-amount { margin: 0 0 0.8rem; }

.price-number {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1;
}

.price-net {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.price-exif { margin-bottom: 0; color: var(--amber-deep); }

.price-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.price-list li {
  padding-left: 1.5rem;
  position: relative;
}

.price-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--amber);
}

.price-after { margin-top: 2rem; }
.price-trust {
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink-soft);
}

/* 5. Process ------------------------------------------------------------- */

.process { border-top: 1px solid var(--line); }

.process-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .process-list { grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
}

.process-list li {
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

.process-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--amber-deep);
  display: block;
  margin-bottom: 0.8rem;
}

.process-list h3 { margin-bottom: 0.5rem; }
.process-list p { color: var(--ink-soft); margin: 0; }

/* 6. About --------------------------------------------------------------- */

.about { border-top: 1px solid var(--line); }

.about-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .about-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; }
}

.about-photo img { border-radius: 6px; margin-bottom: 0.8rem; }
.about-photo .exif { margin: 0; font-size: 0.62rem; }

/* 7. FAQ ------------------------------------------------------------------ */

.faq { border-top: 1px solid var(--line); }

.faq-list {
  margin-top: 2rem;
  max-width: 44rem;
  border-top: 1px solid var(--line);
}

.faq-list details { border-bottom: 1px solid var(--line); }

.faq-list summary {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  padding: 1.2rem 2.5rem 1.2rem 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  font-family: var(--font-mono);
  position: absolute;
  right: 0.25rem;
  top: 50%;
  translate: 0 -50%;
  color: var(--amber-deep);
  transition: rotate 200ms ease;
}

.faq-list details[open] summary::after { rotate: 45deg; }

.faq-list details p {
  padding: 0 0 1.4rem;
  color: var(--ink-soft);
}

/* 8. Booking -------------------------------------------------------------- */

.booking { border-top: 1px solid var(--line); }

.booking-sub { color: var(--ink-soft); margin-bottom: 2.5rem; }

.booking-embed {
  min-height: 220px;
  display: grid;
  border: 1px dashed var(--line);
  border-radius: 10px;
  margin-bottom: 2.5rem;
}

.booking-embed-consent {
  place-self: center;
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  text-align: center;
  padding: 2rem;
}

.booking-embed-note { margin: 0; }
.booking-embed-hint {
  font-size: 0.85rem;
  color: var(--ink-soft);
  max-width: 30rem;
  margin: 0 0 0.5rem;
}

.booking-embed-cal { min-height: 500px; }

.form-status {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--amber-deep);
  min-height: 1.2em;
  margin: 0;
}

.booking-form {
  max-width: 34rem;
  display: grid;
  gap: 1.2rem;
}

.form-row { display: grid; gap: 0.4rem; }

.booking-form label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.form-optional { text-transform: none; letter-spacing: 0; }

.booking-form input,
.booking-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: oklch(99% 0.003 90);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.75rem 0.9rem;
  min-height: 44px;
  width: 100%;
}

.booking-form input:focus-visible,
.booking-form textarea:focus-visible {
  outline: 2px solid var(--amber-deep);
  outline-offset: 0;
  border-color: var(--amber-deep);
}

.booking-whatsapp {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--ink-soft);
}

/* 9. Footer --------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer .exif { margin: 0; }

.site-footer nav { display: flex; gap: 1.5rem; }

.site-footer a {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* Legal pages -------------------------------------------------------------- */

.legal {
  max-width: 44rem;
  margin-inline: auto;
  padding: 8rem var(--gutter) 4rem;
}

/* Reveal initial states (JS only — page fully readable without JS) --------- */

.js [data-reveal] { opacity: 0; }
.js .hero .line > span,
.js [data-hero-line] > span { transform: translateY(110%); }

/* Reduced motion ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js [data-reveal] { opacity: 1; }
  .js .hero .line > span,
  .js [data-hero-line] > span { transform: none; }
}
