/* ============================================================
   RenovaHaus — Renovation & Home Repair Services
   Shared stylesheet
   ============================================================ */

:root {
  --ink: #1a1a1a;
  --ink-2: #2d2d2d;
  --ink-soft: #6b7280;
  --cream: #faf9f7;
  --paper: #ffffff;
  --accent: #d97706;
  --accent-dark: #b45309;
  --line: rgba(26, 26, 26, 0.1);

  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", monospace;

  --max: 1280px;
  --radius: 8px;
  --shadow-sm: 0 1px 3px rgba(26, 26, 26, 0.06), 0 1px 2px rgba(26, 26, 26, 0.04);
  --shadow-md: 0 8px 24px rgba(26, 26, 26, 0.08);
  --shadow-lg: 0 24px 60px rgba(26, 26, 26, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.1; color: var(--ink); }

p { text-wrap: pretty; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-dark); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--cream); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--accent-dark); padding: 0; }
.btn-ghost:hover { color: var(--accent); gap: 12px; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); display: inline-block; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13.5px;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 42px;
  flex-wrap: wrap;
}
.topbar-left { display: flex; gap: 26px; flex-wrap: wrap; }
.topbar a { color: rgba(255, 255, 255, 0.85); }
.topbar a:hover { color: #fff; }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar-item svg { width: 15px; height: 15px; stroke: var(--accent); }
.topbar-right { display: flex; gap: 14px; }
.topbar-right a { display: inline-flex; }
.topbar-right svg { width: 16px; height: 16px; }

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 46px; height: 46px;
  border-radius: var(--radius);
  background: var(--ink);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.brand-mark svg { width: 26px; height: 26px; stroke: var(--accent); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 23px; color: var(--ink); }
.brand-sub { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }

nav.main { display: flex; align-items: center; gap: 34px; }
nav.main a {
  color: var(--ink-2);
  font-weight: 500;
  font-size: 15px;
  position: relative;
}
nav.main a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--accent); transition: width .22s ease;
}
nav.main a:hover, nav.main a.active { color: var(--ink); }
nav.main a:hover::after, nav.main a.active::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 16px; }

/* mobile nav via checkbox toggle (no JS) */
.nav-toggle, .nav-toggle-label { display: none; }

/* ---------- Hero ---------- */
.hero { background: var(--cream); overflow: hidden; }
.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
}
.hero h1 {
  font-size: clamp(40px, 5vw, 68px);
  margin: 22px 0 24px;
}
.hero h1 em { color: var(--accent-dark); font-style: italic; }
.hero p.lead { font-size: 19px; color: var(--ink-soft); max-width: 52ch; }
.hero-actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.stat .num { font-family: var(--serif); font-size: 40px; color: var(--ink); line-height: 1; }
.stat .label { font-size: 13.5px; color: var(--ink-soft); margin-top: 8px; }

.hero-media { position: relative; }
.hero-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 560px;
  object-fit: cover;
}
.hero-badge {
  position: absolute;
  left: -28px; bottom: 40px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 20px 24px;
  display: flex; align-items: center; gap: 16px;
  max-width: 260px;
}
.hero-badge .ico { width: 46px; height: 46px; border-radius: var(--radius); background: var(--cream); display: grid; place-items: center; flex-shrink: 0; }
.hero-badge svg { width: 24px; height: 24px; stroke: var(--accent-dark); }
.hero-badge .b-title { font-family: var(--serif); font-size: 18px; }
.hero-badge .b-sub { font-size: 12.5px; color: var(--ink-soft); }

/* ---------- Section frame ---------- */
.section { padding: 96px 0; }
.section.tinted { background: var(--cream); }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(32px, 3.6vw, 46px); margin: 18px 0 16px; }
.section-head p { color: var(--ink-soft); font-size: 17px; }

/* ---------- Services cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.svc-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  display: flex; flex-direction: column;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.svc-icon {
  width: 60px; height: 60px; border-radius: var(--radius);
  background: var(--cream); display: grid; place-items: center; margin-bottom: 22px;
}
.svc-card:hover .svc-icon { background: var(--accent); }
.svc-icon svg { width: 30px; height: 30px; stroke: var(--accent-dark); transition: stroke .22s ease; }
.svc-card:hover .svc-icon svg { stroke: #fff; }
.svc-card h3 { font-size: 24px; margin-bottom: 12px; }
.svc-card p { color: var(--ink-soft); font-size: 15.5px; flex-grow: 1; }
.svc-card .btn-ghost { margin-top: 22px; }

/* ---------- About / Why us ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; height: 520px; object-fit: cover; }
.features-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 36px; }
.feature { display: flex; gap: 16px; }
.feature .f-ico { width: 48px; height: 48px; flex-shrink: 0; border-radius: var(--radius); background: var(--cream); display: grid; place-items: center; }
.feature svg { width: 24px; height: 24px; stroke: var(--accent-dark); }
.feature h4 { font-size: 19px; margin-bottom: 6px; }
.feature p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Process timeline ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 30px; left: 12%; right: 12%;
  height: 2px; background: var(--line); z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; }
.step-num {
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--accent);
  color: var(--accent-dark); font-family: var(--serif); font-size: 24px;
  display: grid; place-items: center; margin: 0 auto 22px;
}
.section.tinted .step-num { background: var(--cream); }
.step h4 { font-size: 21px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Portfolio ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery figure {
  position: relative; overflow: hidden; border-radius: var(--radius);
  height: 300px;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 40px 22px 20px;
  background: linear-gradient(to top, rgba(26,26,26,.82), transparent);
  color: #fff;
  opacity: 0; transform: translateY(10px); transition: opacity .3s ease, transform .3s ease;
}
.gallery figure:hover figcaption { opacity: 1; transform: translateY(0); }
.gallery figcaption .g-cat { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #f5c98a; }
.gallery figcaption .g-title { font-family: var(--serif); font-size: 20px; }

/* ---------- CTA strip ---------- */
.cta-strip { background: var(--ink); color: #fff; }
.cta-strip .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; padding: 72px 24px; flex-wrap: wrap;
}
.cta-strip h2 { color: #fff; font-size: clamp(30px, 3.4vw, 44px); max-width: 20ch; }
.cta-strip p { color: rgba(255,255,255,.7); margin-top: 14px; max-width: 46ch; }

/* ---------- Testimonials / trust ---------- */
.logos { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: center; justify-content: center; opacity: .6; }
.logos span { font-family: var(--serif); font-size: 22px; color: var(--ink-soft); }

/* ---------- Footer ---------- */
footer.site { background: var(--ink); color: rgba(255,255,255,.66); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 56px; }
footer.site .brand-name { color: #fff; }
footer.site .brand-sub { color: rgba(255,255,255,.5); }
footer.site .brand-mark { background: rgba(255,255,255,.08); }
footer.site p.about { margin-top: 20px; font-size: 14.5px; max-width: 34ch; }
.foot-col h5 { font-family: var(--sans); font-weight: 600; color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 20px; }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.foot-col a { color: rgba(255,255,255,.66); font-size: 14.5px; }
.foot-col a:hover { color: #fff; }
.foot-contact li { display: flex; gap: 12px; font-size: 14.5px; margin-bottom: 14px; }
.foot-contact svg { width: 18px; height: 18px; stroke: var(--accent); flex-shrink: 0; margin-top: 2px; }
.footer-bar { border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; }
.footer-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13.5px; }
.footer-bar .links { display: flex; gap: 24px; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { background: var(--ink); color: #fff; padding: 88px 0; position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(217,119,6,.18), transparent 55%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .breadcrumb { font-size: 13.5px; color: rgba(255,255,255,.55); margin-bottom: 20px; }
.page-hero .breadcrumb a { color: rgba(255,255,255,.75); }
.page-hero h1 { color: #fff; font-size: clamp(38px, 5vw, 60px); max-width: 18ch; }
.page-hero h1 em { color: var(--accent); font-style: italic; }
.page-hero p { color: rgba(255,255,255,.72); font-size: 18px; margin-top: 20px; max-width: 56ch; }
.page-hero .eyebrow { color: var(--accent); }
.page-hero .eyebrow::before { background: var(--accent); }

/* ---------- Service detail ---------- */
.svc-layout { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 56px; align-items: start; }
.svc-body h2 { font-size: 34px; margin: 8px 0 20px; }
.svc-body h3 { font-size: 26px; margin: 40px 0 16px; }
.svc-body p { color: var(--ink-2); margin-bottom: 18px; font-size: 16.5px; }
.svc-body img { border-radius: var(--radius); box-shadow: var(--shadow-md); margin: 8px 0 32px; width: 100%; height: 400px; object-fit: cover; }
.check-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; margin: 8px 0 24px; }
.check-list li { display: flex; gap: 12px; font-size: 15.5px; color: var(--ink-2); }
.check-list svg { width: 22px; height: 22px; stroke: var(--accent-dark); flex-shrink: 0; }
.svc-aside { position: sticky; top: 100px; background: var(--cream); border-radius: var(--radius); padding: 32px; border: 1px solid var(--line); }
.svc-aside h4 { font-size: 22px; margin-bottom: 8px; }
.svc-aside p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 20px; }
.price-tag { font-family: var(--serif); font-size: 15px; color: var(--ink-soft); margin-bottom: 24px; }
.price-tag strong { font-size: 34px; color: var(--ink); display: block; }
.svc-aside .btn { width: 100%; justify-content: center; }
.mini-features { display: grid; gap: 16px; margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); }
.mini-feature { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.mini-feature svg { width: 20px; height: 20px; stroke: var(--accent-dark); flex-shrink: 0; }

.benefits-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.benefit { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.section.tinted .benefit { background: #fff; }
.benefit .b-ico { width: 54px; height: 54px; border-radius: var(--radius); background: var(--cream); display: grid; place-items: center; margin-bottom: 20px; }
.benefit svg { width: 27px; height: 27px; stroke: var(--accent-dark); }
.benefit h4 { font-size: 21px; margin-bottom: 10px; }
.benefit p { color: var(--ink-soft); font-size: 15px; }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: start; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; color: var(--ink-2); }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--sans); font-size: 15px;
  padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--cream); color: var(--ink); transition: border-color .2s ease, background .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); background: #fff;
}
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.contact-info { display: flex; flex-direction: column; gap: 8px; }
.info-item { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.info-item:last-child { border-bottom: none; }
.info-item .i-ico { width: 48px; height: 48px; border-radius: var(--radius); background: var(--cream); display: grid; place-items: center; flex-shrink: 0; }
.info-item svg { width: 23px; height: 23px; stroke: var(--accent-dark); }
.info-item h4 { font-family: var(--sans); font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.info-item p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.5; }
.map-placeholder {
  height: 320px; border-radius: var(--radius); margin-top: 40px;
  background:
    linear-gradient(rgba(26,26,26,.35), rgba(26,26,26,.35)),
    url("https://images.unsplash.com/photo-1524661135-423995f22d0b?w=1200&auto=format&fit=crop");
  background-size: cover; background-position: center;
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-sm);
}
.map-placeholder .pin { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.map-placeholder svg { width: 40px; height: 40px; stroke: #fff; }
.map-placeholder span { font-family: var(--serif); font-size: 20px; }

/* ---------- Legal / long text ---------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-size: 30px; margin: 44px 0 16px; }
.legal h3 { font-size: 22px; margin: 30px 0 12px; }
.legal p { color: var(--ink-2); margin-bottom: 16px; font-size: 16px; }
.legal ul { margin: 0 0 18px 22px; color: var(--ink-2); }
.legal li { margin-bottom: 8px; }
.legal .updated { color: var(--ink-soft); font-size: 14px; font-style: italic; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; gap: 48px; padding-top: 56px; padding-bottom: 56px; }
  .hero-media img { height: 440px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .svc-layout { grid-template-columns: 1fr; }
  .svc-aside { position: static; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .section { padding: 72px 0; }
}

@media (max-width: 768px) {
  nav.main, .header-cta .btn { display: none; }
  .nav-toggle-label {
    display: grid; place-items: center; width: 44px; height: 44px;
    cursor: pointer; border: 1px solid var(--line); border-radius: var(--radius);
  }
  .nav-toggle-label svg { width: 24px; height: 24px; stroke: var(--ink); }
  .header-cta { display: flex; }
  nav.main {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0;
    box-shadow: var(--shadow-md);
  }
  .nav-toggle:checked ~ nav.main { display: flex; }
  nav.main a { padding: 14px 24px; }
  nav.main a::after { display: none; }

  .cards-3, .steps, .gallery, .benefits-3, .features-2, .field-row, .check-list { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .hero-stats { gap: 16px; }
  .stat .num { font-size: 32px; }
  .hero-badge { left: 16px; bottom: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-strip .container { flex-direction: column; align-items: flex-start; }
  .section { padding: 60px 0; }
  .topbar-left { gap: 16px; font-size: 12.5px; }
  .topbar-right { display: none; }
}
