/* ============================================================
   Raphael Sanchez — Plomberie & Chauffage, Toulouse
   Palette: desaturated 70s photo (mustard / avocado / ochre /
   burnt sienna / warm off-white) + grain overlay.
   ============================================================ */

:root {
  --bg: #efe6d0;
  --ink: #3a2f1a;
  --a: #a67c00;   /* mustard */
  --b: #6b7a3a;   /* avocado */
  --c: #c04e1a;   /* burnt sienna */
  --ochre: #d9a441;
  --paper: #f6efdd;
  --line: rgba(58, 47, 26, 0.22);
  --shadow: 0 1px 0 rgba(58, 47, 26, 0.12), 0 14px 34px -22px rgba(58, 47, 26, 0.55);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Bricolage Grotesque", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --wrap: 1180px;
  --gutter: clamp(1.15rem, 4vw, 3rem);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain: subtle SVG noise over the whole page, 70s print feel */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

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

a { color: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 900; line-height: 1.02; margin: 0; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.9rem, 1.2rem + 3.1vw, 3.4rem); }
h3 { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem); font-weight: 600; }
p { margin: 0 0 1.05rem; }
p:last-child { margin-bottom: 0; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- scroll progress: a design strip, not floating chrome ---------- */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 5px;
  z-index: 60;
  background: rgba(58, 47, 26, 0.14);
}
.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--a), var(--c) 55%, var(--b));
  transform-origin: 0 50%;
  transform: scaleX(0);
  animation: fill linear both;
  animation-timeline: scroll(root block);
}
@keyframes fill { to { transform: scaleX(1); } }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.7rem var(--gutter);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  flex: none;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.brand-text { display: flex; flex-direction: column; font-family: var(--serif); font-weight: 600; font-size: 1.02rem; line-height: 1.15; }
.brand-text em { font-family: var(--mono); font-style: normal; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; }

.topnav { display: flex; gap: 1.35rem; margin-left: auto; font-size: 0.9rem; }
.topnav a { text-decoration: none; padding: 0.35rem 0; border-bottom: 2px solid transparent; }
.topnav a:hover { border-bottom-color: var(--c); }

.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.55rem 1.05rem;
  background: var(--c);
  color: #fff5e6;
  text-decoration: none;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  border: 1px solid rgba(58, 47, 26, 0.35);
  box-shadow: var(--shadow);
}
.call-btn:hover { background: #a63f12; }
.call-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ffe9c9;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.25; transform: scale(0.75); } }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(2.5rem, 7vw, 5.5rem) var(--gutter) clamp(2.5rem, 6vw, 4.5rem);
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c);
  margin: 0 0 0.9rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 1.4rem + 6.4vw, 5.6rem);
  margin-bottom: 0.35rem;
}
/* caret-blinking headline */
.hero h1::after {
  content: "_";
  font-family: var(--mono);
  font-weight: 400;
  color: var(--c);
  margin-left: 0.06em;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- signature: frequency bars under the hero name ---------- */
.viz {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 46px;
  margin: 0.5rem 0 1.4rem;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
}
.viz i {
  flex: 1 1 0;
  min-width: 3px;
  height: 100%;
  background: var(--b);
  transform-origin: 50% 100%;
  transform: scaleY(0.18);
  animation: bar 1.5s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -0.075s);
}
.viz i:nth-child(3n) { background: var(--a); }
.viz i:nth-child(4n) { background: var(--c); }
@keyframes bar {
  0%   { transform: scaleY(0.14); }
  35%  { transform: scaleY(0.92); }
  60%  { transform: scaleY(0.34); }
  100% { transform: scaleY(0.68); }
}

.hero-lede { font-size: clamp(1.02rem, 0.98rem + 0.35vw, 1.2rem); max-width: 46ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.6rem 0 1.5rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--c); border-color: var(--c); color: #fff5e6; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }
.btn-lg { padding: 1rem 2.1rem; font-size: 1rem; }

.hero-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.6rem;
  font-size: 0.86rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}
.hero-facts strong { font-family: var(--mono); }

.hero-photo { margin: 0; }
.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--ink);
  box-shadow: 10px 10px 0 var(--a);
}
.hero-photo figcaption {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.72;
  margin-top: 0.85rem;
}

/* ---------- full-bleed colour bands ---------- */
.band { padding: clamp(3.5rem, 9vw, 7.5rem) 0; }
.band-avocado { background: var(--b); color: #f4efdc; }
.band-avocado .eyebrow { color: #ffe0a8; }
.band-ochre { background: var(--ochre); color: #3a2f1a; }
.band-ochre .eyebrow { color: #7a3a0c; }
.band-sienna { background: var(--c); color: #fff2e2; }
.band-sienna .eyebrow { color: #ffd9a8; }
.band-cream { background: var(--paper); color: var(--ink); }
.band-cream .eyebrow { color: var(--c); }

.section-lede { max-width: 62ch; margin-top: 1.1rem; opacity: 0.94; }

/* ---------- menu-first cards ---------- */
.menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.6rem, 3.5vw, 3rem);
  margin-top: clamp(2rem, 4vw, 3.2rem);
}
.menu-block h3 {
  border-bottom: 2px solid currentColor;
  padding-bottom: 0.55rem;
  margin-bottom: 1.1rem;
  font-family: var(--serif);
}
.item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 1.2rem;
  align-items: baseline;
  padding: 0.72rem 0;
  border-bottom: 1px dashed rgba(244, 239, 220, 0.32);
}
.item:last-child { border-bottom: 0; }
.item-name { font-weight: 600; font-size: 0.98rem; }
.item-name em {
  display: block;
  font-style: normal;
  font-weight: 400;
  font-size: 0.83rem;
  line-height: 1.45;
  opacity: 0.82;
  margin-top: 0.15rem;
  max-width: 44ch;
}
.item-price {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  color: #ffe0a8;
}
.menu-note {
  margin-top: 2.2rem;
  font-size: 0.86rem;
  font-family: var(--mono);
  line-height: 1.6;
  opacity: 0.9;
  border-left: 3px solid #ffe0a8;
  padding-left: 1rem;
}

/* ---------- atelier split ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  align-items: start;
}
.split-text h2 { margin-bottom: 1.3rem; }
.split-media { display: grid; gap: 1.1rem; }
.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--ink);
}
.split-media img:last-child { box-shadow: 10px 10px 0 var(--c); }

.chips { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  padding: 0.42rem 0.72rem;
  border: 1px solid var(--ink);
  background: rgba(246, 239, 221, 0.45);
}

/* ---------- three engagement cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.6vw, 2rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.card {
  background: rgba(255, 242, 226, 0.1);
  border: 1px solid rgba(255, 242, 226, 0.42);
  padding: clamp(1.3rem, 2.4vw, 2rem);
}
.card-num {
  display: block;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: #ffd9a8;
  margin-bottom: 0.7rem;
}
.card h3 { margin-bottom: 0.7rem; }
.card p { font-size: 0.93rem; opacity: 0.96; }

/* ---------- hours / address / call cards ---------- */
.footer-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 2.6vw, 2rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.fcard {
  background: var(--bg);
  border: 1px solid var(--ink);
  padding: clamp(1.3rem, 2.4vw, 1.9rem);
  box-shadow: var(--shadow);
}
.fcard h3 { border-bottom: 2px solid var(--ink); padding-bottom: 0.55rem; margin-bottom: 1.1rem; }
.hours { margin: 0; font-size: 0.92rem; }
.hours > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 0.42rem 0;
  border-bottom: 1px dashed var(--line);
}
.hours > div:last-child { border-bottom: 0; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; font-family: var(--mono); font-size: 0.84rem; }
.hours .closed dd { color: var(--c); font-weight: 700; }
.fcard address { font-style: normal; font-size: 0.95rem; line-height: 1.7; margin-bottom: 0.9rem; }
.fcard-note { font-size: 0.86rem; opacity: 0.85; margin-top: 0.9rem; }
.fcard-link {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--c);
  padding-bottom: 2px;
}
.fcard-link:hover { color: var(--c); }
.fcard-call { background: var(--ink); color: var(--bg); }
.fcard-call h3 { border-bottom-color: var(--bg); }
.fcard-call .fcard-note { opacity: 0.82; }
.big-phone {
  display: block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(1.35rem, 1rem + 1.6vw, 1.85rem);
  text-decoration: none;
  color: #ffe0a8;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}
.big-phone:hover { color: #fff; }

/* ---------- closing ---------- */
.closing { text-align: center; }
.closing blockquote { margin: 0 auto; max-width: 34ch; }
.closing blockquote p {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1rem + 2.1vw, 2.35rem);
  font-weight: 600;
  line-height: 1.22;
  margin-bottom: 1.3rem;
  text-wrap: balance;
}
.closing blockquote footer {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 2.2rem;
}
.closing .btn-primary { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.closing .btn-primary:hover { background: var(--c); color: #fff5e6; border-color: var(--c); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding: 2.4rem 0 2.8rem;
  font-size: 0.85rem;
}
.foot-line { margin: 0 0 1.1rem; opacity: 0.86; }
.foot-line a { color: #ffe0a8; }
.claim-banner {
  display: inline-block;
  font-size: 0.76rem;
  padding: 0.4rem 0.7rem;
  background: rgba(239, 230, 208, 0.12);
  border: 1px solid rgba(239, 230, 208, 0.28);
  color: var(--bg);
  text-decoration: none;
  opacity: 0.8;
  margin-bottom: 1.1rem;
}
.claim-banner:hover { opacity: 1; background: rgba(239, 230, 208, 0.2); }
.attribution { margin: 0; font-size: 0.72rem; opacity: 0.55; }
.attribution a { color: inherit; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .split { grid-template-columns: 1fr; }
  .menu { grid-template-columns: 1fr; }
  .cards, .footer-cards { grid-template-columns: 1fr; }
  .topnav { display: none; }
  .call-btn { margin-left: auto; }
}

@media (max-width: 560px) {
  .brand-text em { display: none; }
  .hero-photo img { box-shadow: 6px 6px 0 var(--a); }
  .split-media img:last-child { box-shadow: 6px 6px 0 var(--c); }
  .item { grid-template-columns: 1fr; }
  .item-price { justify-self: start; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .viz i { animation: none; transform: scaleY(0.55); }
  .viz i:nth-child(2n) { transform: scaleY(0.3); }
  .viz i:nth-child(3n) { transform: scaleY(0.78); }
  .hero h1::after { animation: none; }
  .call-dot { animation: none; }
  .progress span { animation: none; transform: scaleX(1); }
  .btn:hover { transform: none; }
}
