/* ThuisVolt — homepage stylesheet */

:root {
  --bordeaux: #7a1832;
  --bordeaux-dark: #591224;
  --bordeaux-darker: #400c1a;
  --gold: #c9a02b;
  --gold-light: #e2c05f;
  --offwhite: #faf7f2;
  --beige: #f1e9dc;
  --white: #ffffff;
  --anthracite: #17181a;
  --anthracite-soft: #24262a;
  --text: #221c1e;
  --text-muted: #5c5457;
  --radius: 14px;
  --max: 1180px;
  --shadow: 0 12px 30px -12px rgba(23, 24, 26, 0.25);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

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

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gold);
  color: var(--anthracite);
}
.btn-primary:hover { background: var(--gold-light); }

.btn-secondary {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
.btn-secondary:hover { border-color: var(--white); }

.btn-outline {
  background: transparent;
  border-color: var(--bordeaux);
  color: var(--bordeaux);
  padding: 10px 20px;
  font-size: 14px;
}
.btn-outline:hover { background: var(--bordeaux); color: var(--white); }

.btn-dark {
  background: var(--anthracite);
  color: var(--white);
}
.btn-dark:hover { background: var(--anthracite-soft); }

/* ─── Header / Nav ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.96);
  backdrop-filter: saturate(150%) blur(6px);
  border-bottom: 1px solid rgba(23,24,26,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img { height: 46px; width: auto; }

.main-nav {
  display: none;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: border-color .2s ease, color .2s ease;
}
.main-nav a:hover { border-color: var(--gold); color: var(--bordeaux); }

.header-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.header-call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--bordeaux);
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
}

@media (min-width: 900px) {
  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
  .header-call { display: none; }
}

/* ─── Hero ─── */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--anthracite) 0%, var(--bordeaux-darker) 65%, var(--bordeaux-dark) 100%);
  color: var(--white);
  overflow: hidden;
  /* .hero is a <section>; override the generic "section { padding: 68px 0 }" default below —
     spacing here is fully controlled by .hero .container's own padding instead. */
  padding: 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 56px;
}

.hero-copy .eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-copy h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero-copy p.lead {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  max-width: 52ch;
  margin-bottom: 30px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
}
.trust-line span { display: inline-flex; align-items: center; gap: 6px; }
.trust-line span::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual .glow {
  position: absolute;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(201,160,43,0.35) 0%, rgba(201,160,43,0) 70%);
  top: -30px;
  right: 10%;
  z-index: 0;
}

.hero-photo-frame {
  position: relative;
  z-index: 1;
  border-radius: 22px;
  overflow: hidden;
  max-width: 380px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,0.06);
}

.hero-photo-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(23,24,26,0.55) 0%, rgba(23,24,26,0) 35%);
}

/* Cutout photos (transparent PNG, no background): no card frame, no shadow, no gradient overlay */
.hero-photo-frame-cutout {
  max-width: 460px;
  box-shadow: none;
  overflow: visible;
}
.hero-photo-frame-cutout::after { display: none; }

/* When the hero uses a cutout photo, let the section end exactly at the photo's feet instead of
   centering it with slack above/below: text top-aligns, the photo bottom-aligns, and the row's
   own bottom padding is removed so nothing but the photo's own pixels sit below it. */
.hero:has(.hero-photo-frame-cutout) .container {
  padding-bottom: 0;
}
.hero:has(.hero-photo-frame-cutout) .hero-copy {
  align-self: flex-start;
}
.hero:has(.hero-photo-frame-cutout) .hero-visual {
  align-self: flex-end;
}

@media (min-width: 860px) {
  .hero .container {
    grid-template-columns: 1.1fr 0.9fr;
    padding-top: 88px;
    padding-bottom: 80px;
  }
  .hero-visual { justify-content: flex-end; }
}

/* ─── Section basics ─── */
section { padding: 68px 0; }

.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--anthracite);
  margin-bottom: 12px;
}

.section-head p { color: var(--text-muted); font-size: 16px; }

.eyebrow-small {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bordeaux);
  margin-bottom: 10px;
}

/* ─── Why section ─── */
.why { background: var(--offwhite); }

.usp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.usp-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 22px;
  border: 1px solid rgba(23,24,26,0.06);
  box-shadow: 0 8px 20px -14px rgba(23,24,26,0.2);
}

.usp-card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(122,24,50,0.08);
  color: var(--bordeaux);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

.usp-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.usp-card p { font-size: 14.5px; color: var(--text-muted); }

@media (min-width: 700px) {
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .usp-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ─── Services ─── */
.service-card {
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow);
}

.service-card.primary {
  background: linear-gradient(160deg, var(--bordeaux) 0%, var(--bordeaux-dark) 100%);
  color: var(--white);
}
.service-card.primary h3 { font-size: 22px; }
.service-card.primary p { color: rgba(255,255,255,0.85); font-size: 15px; }

.service-card-lead {
  margin-bottom: 22px;
}

.service-card.secondary {
  background: var(--offwhite);
  border: 1px solid rgba(23,24,26,0.07);
  color: var(--text);
  box-shadow: none;
}
.service-card.secondary h3 { font-size: 18px; }
.service-card.secondary p { font-size: 14.5px; color: var(--text-muted); }

.service-card .btn { align-self: flex-start; margin-top: 6px; }

.services-grid-secondary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

@media (min-width: 760px) {
  .service-card-lead { padding: 40px 44px; }
  .service-card-lead h3 { font-size: 28px; }
  .service-card-lead p { font-size: 16px; max-width: 55ch; }
  .services-grid-secondary { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Process ─── */
.process { background: var(--anthracite); color: var(--white); }
.process .section-head h2 { color: var(--white); }
.process .section-head p { color: rgba(255,255,255,0.7); }
.process .eyebrow-small { color: var(--gold-light); }

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.step {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 24px;
}

.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--anthracite);
  font-weight: 800;
  margin-bottom: 14px;
}

.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: rgba(255,255,255,0.75); }

@media (min-width: 700px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .steps-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ─── Contact block ─── */
.contact {
  background: linear-gradient(160deg, var(--bordeaux) 0%, var(--bordeaux-dark) 100%);
  color: var(--white);
}
.contact-inner {
  display: grid;
  gap: 30px;
  align-items: center;
}
.contact .section-head h2 { color: var(--white); }
.contact .eyebrow-small { color: var(--gold-light); }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 26px;
}
.contact-details a {
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}
.contact-details span {
  display: block;
  font-size: 12.5px;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.contact-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

@media (min-width: 760px) {
  .contact-inner { grid-template-columns: 1fr; }
}

/* ─── FAQ ─── */
.faq { background: var(--offwhite); }

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid rgba(23,24,26,0.08);
  border-radius: 12px;
  padding: 6px 22px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 700;
  font-size: 15.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--bordeaux);
  flex: none;
}
.faq-item[open] summary::after { content: "\2212"; }

.faq-item p {
  padding-bottom: 20px;
  color: var(--text-muted);
  font-size: 14.5px;
  max-width: 65ch;
}

/* ─── Footer ─── */
.site-footer {
  background: var(--anthracite);
  color: rgba(255,255,255,0.8);
  padding: 56px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  margin-bottom: 34px;
}

.footer-brand img { height: 40px; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; max-width: 40ch; color: rgba(255,255,255,0.65); }

.footer-nav h3, .footer-contact h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  margin-bottom: 14px;
}

.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-contact a { text-decoration: none; color: rgba(255,255,255,0.8); font-size: 14.5px; }
.footer-nav a:hover, .footer-contact a:hover { color: var(--gold-light); }

.footer-contact { display: flex; flex-direction: column; gap: 10px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.72);
  font-weight: 600;
  text-decoration: none;
}

.footer-credit img {
  width: 64px;
  height: auto;
}

.footer-credit:hover {
  color: var(--gold-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}
