/* ==========================================================================
   Coradi — Rénovation intérieure, Bruxelles
   ========================================================================== */

:root {
  --bg: #f7f4ee;
  --bg-alt: #efe9df;
  --ink: #26221c;
  --muted: #6b6459;
  --accent: #b05a33;
  --accent-dark: #8f4626;
  --line: #e2dbcf;
  --white: #fffdf9;
  --radius: 6px;
  --wrap: 1120px;
  --shadow: 0 12px 40px rgba(38, 34, 28, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, .display {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { color: var(--muted); }

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.4rem; }

section { padding: 4.5rem 0; }

.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.section-head { max-width: 640px; margin-bottom: 2.8rem; }
.section-head p { margin-top: 0.8rem; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.brand:hover { text-decoration: none; }
.brand span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--accent-dark); text-decoration: none; }
.nav-links a.active { color: var(--accent); }

.nav-cta {
  background: var(--ink);
  color: var(--white) !important;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius);
}
.nav-cta:hover { background: var(--accent-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.25s, opacity 0.25s;
}

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

.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  transition: background 0.2s, transform 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); }

.btn-ghost {
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--white); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: 78vh;
  padding: 3.5rem 0;
}

.hero-copy .kicker { margin-bottom: 1.2rem; }

.hero-copy p.lead {
  font-size: 1.15rem;
  margin: 1.4rem 0 2.2rem;
  max-width: 480px;
}

.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.hero-figure {
  position: relative;
}
.hero-figure img {
  width: 100%;
  height: min(62vh, 560px);
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  position: absolute;
  left: -1.6rem;
  bottom: 1.8rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1.3rem;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}
.hero-card strong { display: block; font-size: 1.05rem; }

/* --------------------------------------------------------------------------
   Trust strip
   -------------------------------------------------------------------------- */

.strip {
  background: var(--ink);
  color: #cfc8bc;
  padding: 1.6rem 0;
}
.strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  justify-content: space-between;
  font-size: 0.92rem;
}
.strip strong { color: var(--white); font-weight: 600; }

/* --------------------------------------------------------------------------
   Cards / services
   -------------------------------------------------------------------------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.card h3 { margin: 0.9rem 0 0.5rem; }
.card p { font-size: 0.97rem; }

.card .icon {
  width: 44px;
  height: 44px;
  color: var(--accent);
}

/* Service detail rows (services.html) */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3.2rem 0;
  border-bottom: 1px solid var(--line);
}
.service-row:last-of-type { border-bottom: 0; }
.service-row img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.service-row.flip .service-media { order: 2; }
.service-row h2 { margin-bottom: 0.8rem; }
.service-row ul {
  margin: 1.1rem 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.98rem;
}
.service-row li { margin-bottom: 0.35rem; }

/* --------------------------------------------------------------------------
   Before / after slider
   -------------------------------------------------------------------------- */

.ba {
  --pos: 50%;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
  user-select: none;
}

.ba img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba .ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.ba .ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  background: var(--white);
  transform: translateX(-1px);
  pointer-events: none;
}
.ba .ba-divider::after {
  content: "\2194";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.ba input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  margin: 0;
}

.ba .ba-tag {
  position: absolute;
  bottom: 0.9rem;
  padding: 0.25rem 0.7rem;
  border-radius: 3px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(38, 34, 28, 0.78);
  color: var(--white);
  pointer-events: none;
}
.ba .ba-tag-before { left: 0.9rem; }
.ba .ba-tag-after { right: 0.9rem; }

.ba-item h3 { margin: 1.1rem 0 0.3rem; }
.ba-item p { font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}
.about-grid img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-grid .prose p { margin-bottom: 1rem; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 3rem;
}
.fact {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.fact strong {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.6rem;
  color: var(--accent-dark);
}
.fact span { font-size: 0.92rem; color: var(--muted); }

.badge-list { list-style: none; margin-top: 1.2rem; }
.badge-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 0.7rem;
  align-items: center;
  font-size: 0.98rem;
}
.badge-list li:last-child { border-bottom: 0; }
.badge-list svg { color: var(--accent); flex: none; }

/* --------------------------------------------------------------------------
   Steps (process)
   -------------------------------------------------------------------------- */

.steps { counter-reset: step; }
.step {
  position: relative;
  padding-left: 4.2rem;
  margin-bottom: 2.2rem;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--accent);
}
.step h3 { margin-bottom: 0.3rem; }
.step p { font-size: 0.97rem; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  padding: 4.5rem 0;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #b8b0a3; margin: 1rem auto 2rem; max-width: 520px; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h3 { margin-bottom: 0.4rem; }
.contact-block { margin-bottom: 1.8rem; }
.contact-block p { font-size: 0.98rem; }

form .field { margin-bottom: 1.2rem; }
form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
form input,
form select,
form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font: inherit;
  color: var(--ink);
}
form input:focus,
form select:focus,
form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
form textarea { min-height: 140px; resize: vertical; }

.form-note { font-size: 0.85rem; margin-top: 0.8rem; }

.map-embed {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: var(--radius);
  margin-top: 2rem;
  box-shadow: var(--shadow);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: #1c1915;
  color: #a39b8d;
  padding: 3.5rem 0 2rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.site-footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}
.site-footer a { color: #cfc8bc; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.45rem; }
.footer-bottom {
  border-top: 1px solid #383329;
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Page header (inner pages)
   -------------------------------------------------------------------------- */

.page-head {
  padding: 4.5rem 0 3.2rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.page-head p { max-width: 620px; margin-top: 0.9rem; }

/* --------------------------------------------------------------------------
   Reveal animation
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-figure img { height: 340px; }
  .hero-card { left: 1rem; }
  .grid-3, .facts, .gallery { grid-template-columns: 1fr 1fr; }
  .service-row,
  .about-grid,
  .contact-grid,
  .grid-2 { grid-template-columns: 1fr; }
  .service-row.flip .service-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .grid-3, .facts, .gallery, .footer-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 4.4rem;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 1.4rem;
    gap: 1.1rem;
    display: none;
  }
  .nav-links.open { display: flex; }

  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
