/* ============================================================
   CLOUD PAINTS — Services page
   Painters / process / warranty / book-a-visit.
   ============================================================ */

body[data-page="services"] { background: var(--bg); }

/* ---------- Hero ---------- */
.sv-hero {
  position: relative;
  padding: clamp(120px, 17vh, 180px) 0 clamp(60px, 9vh, 110px);
  color: #f5f1e8;
  overflow: hidden;
  isolation: isolate;
}
.sv-hero-bg {
  position: absolute; inset: 0;
  background: url(../images/showroom/finishing.jpg) center/cover no-repeat;
  z-index: -2;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.sv-hero:hover .sv-hero-bg { transform: scale(1.0); }
.sv-hero::before {
  content:""; position: absolute; inset: 0;
  background: linear-gradient(155deg,
    rgba(10,10,18,0.85) 0%,
    rgba(10,10,18,0.55) 50%,
    rgba(10,10,18,0.88) 100%);
  z-index: -1;
}
.sv-hero::after {
  content:""; position: absolute; inset: 0;
  background-image: var(--grain);
  opacity: 0.07; mix-blend-mode: overlay;
  pointer-events: none; z-index: -1;
}
.sv-hero-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: end;
}
.sv-hero .eyebrow {
  color: var(--gold-2);
  background: rgba(232,163,23,0.10);
  border-color: rgba(232,163,23,0.30);
}
.sv-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin: 18px 0 22px;
  color: #fff;
}
.sv-hero h1 em {
  font-style: italic;
  background: linear-gradient(92deg, var(--red-glow, #f43f5e) 0%, var(--gold-2, #ffc93d) 100%);
  background-clip: text; -webkit-background-clip: text;
  color: transparent;
}
.sv-hero .lede {
  color: rgba(245,241,232,0.78);
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  line-height: 1.65;
  max-width: 560px;
}
.sv-hero-ctas {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 30px;
}
.sv-hero-ctas .btn-pour {
  background: linear-gradient(135deg, var(--red-glow, #f43f5e), var(--red-2, #d92843));
  color: #fff;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 0 18px 40px -14px rgba(217,40,67,0.6);
  transition: transform var(--t-fast);
  text-decoration: none;
}
.sv-hero-ctas .btn-pour:hover { transform: translateY(-2px); }
.sv-hero-ctas .btn-ghost-d {
  color: #f5f1e8;
  border: 1px solid rgba(245,241,232,0.25);
  background: transparent;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: border-color var(--t-fast), background var(--t-fast);
  display: inline-flex; align-items: center;
}
.sv-hero-ctas .btn-ghost-d:hover {
  border-color: var(--gold-2);
  background: rgba(232,163,23,0.08);
}
.sv-hero-stats {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
}
.sv-hero-stats .st {
  display: flex; flex-direction: column;
  border-left: 2px solid rgba(232,163,23,0.45);
  padding-left: 14px;
}
.sv-hero-stats .st .n {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  font-weight: 500;
  line-height: 1;
  color: #fff;
}
.sv-hero-stats .st .l {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,241,232,0.7);
  font-weight: 700;
  margin-top: 6px;
}

/* ---------- Section heads ---------- */
.sv-section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(40px, 6vw, 60px);
}
.sv-section-head .eyebrow { color: var(--red-2); border-color: rgba(217,40,67,0.25); background: rgba(217,40,67,0.06); }
.sv-section-head h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 14px 0 12px;
}
.sv-section-head h2 em { font-style: italic; color: var(--red-2); }
.sv-section-head p {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- 4-pillar promise grid ---------- */
.sv-promise-wrap {
  padding: clamp(60px, 9vw, 110px) 0;
  background: var(--bg);
  position: relative;
}
.sv-promise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 1.8vw, 24px);
}
.sv-promise {
  position: relative;
  padding: clamp(24px, 2.6vw, 32px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
  overflow: hidden;
  isolation: isolate;
}
.sv-promise::before {
  content:""; position: absolute; top: -30px; left: -30px;
  width: 160px; height: 70px;
  background: var(--accent, var(--red-2));
  filter: blur(36px); opacity: 0.32;
  pointer-events: none; z-index: -1;
}
.sv-promise:hover {
  transform: translateY(-4px);
  border-color: var(--accent, var(--red-2));
  box-shadow: var(--shadow-2);
}
.sv-promise .ic {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  color: var(--accent, var(--red-2));
  background: color-mix(in srgb, var(--accent, var(--red-2)) 12%, transparent);
  border-radius: 14px;
  margin-bottom: 20px;
}
.sv-promise h3 {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.7vw, 1.55rem);
  line-height: 1.15;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.sv-promise h3 em { color: var(--accent, var(--red-2)); font-style: italic; }
.sv-promise p { color: var(--text-2); line-height: 1.65; font-size: 0.96rem; }

/* ---------- Process timeline ---------- */
.sv-process-wrap {
  padding: clamp(60px, 9vw, 110px) 0;
  background: var(--bg-soft);
  position: relative;
}
/* Six-step process visual (full-bleed infographic) — sits between the
   section header and the five-step text list. The graphic is portrait;
   capped to a comfortable width so it doesn't dominate the section. */
.sv-process-visual {
  max-width: 560px;
  margin: clamp(28px, 4vw, 48px) auto clamp(36px, 5vw, 56px);
  padding: 0;
  position: relative;
}
.sv-process-visual img {
  display: block;
  width: 100%; height: auto;
  border-radius: 18px;
  box-shadow: 0 24px 60px -28px rgba(0,0,0,0.55);
}
.sv-process-visual figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.5;
  font-style: italic;
}
.sv-process {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
  position: relative;
}
.sv-process::before {
  content: ""; position: absolute;
  left: 0; right: 0; top: 32px;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--border) 0 8px,
    transparent 8px 14px);
  z-index: 0;
}
.sv-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2.2vw, 28px);
  z-index: 1;
  transition: transform var(--t-mid), box-shadow var(--t-mid);
}
.sv-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}
.sv-step-n {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold-2, #ffc93d);
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  position: relative; z-index: 2;
}
.sv-step h4 {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.sv-step p {
  color: var(--text-2);
  line-height: 1.55;
  font-size: 0.92rem;
}
.sv-step strong { color: var(--text); font-weight: 600; }

/* ---------- Our painters ---------- */
.sv-painters-wrap {
  padding: clamp(60px, 9vw, 110px) 0;
  background: var(--bg);
}
.sv-painters-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.sv-painters-copy .eyebrow { color: var(--blue-2); border-color: rgba(37,71,184,0.25); background: rgba(37,71,184,0.06); }
.sv-painters-copy h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 14px 0 18px;
}
.sv-painters-copy h2 em { color: var(--blue-2); font-style: italic; }
.sv-painters-copy p {
  color: var(--text-2);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 22px;
}
.sv-painters-copy .btn-line {
  display: inline-flex;
  align-items: center; gap: 8px;
  padding: 14px 24px;
  border: 1.5px solid var(--blue-2);
  color: var(--blue-2);
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
}
.sv-painters-copy .btn-line:hover { background: var(--blue-2); color: #fff; }

.sv-painters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
}
/* Skill-spec cards (no personal photos, by request) */
.sv-skill {
  position: relative;
  padding: clamp(22px, 2.4vw, 30px);
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
}
.sv-skill::before {
  content: ""; position: absolute;
  top: -40px; left: -40px;
  width: 180px; height: 90px;
  background: var(--accent, var(--red-2));
  filter: blur(46px);
  opacity: 0.28;
  pointer-events: none;
  z-index: -1;
}
.sv-skill:hover {
  transform: translateY(-5px);
  border-color: var(--accent, var(--red-2));
  box-shadow: var(--shadow-2);
}
.sv-skill-num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent, var(--red-2));
  color: #fff;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.sv-skill h4 {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  font-weight: 500;
}
.sv-skill p {
  color: var(--text-2);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* ---------- Trust strip ---------- */
.sv-trust-wrap {
  padding: clamp(40px, 6vw, 70px) 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border-2);
  border-bottom: 1px solid var(--border-2);
}
.sv-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.sv-trust-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.sv-trust-ic {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  color: var(--gold);
  background: rgba(232,163,23,0.12);
}
.sv-trust-cell h4 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.sv-trust-cell p {
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.6;
}
.sv-trust-cell a {
  color: var(--red-2);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}

/* ---------- Final CTA ---------- */
.sv-cta-wrap {
  padding: clamp(80px, 12vw, 140px) 0;
  background: var(--bg);
}
.sv-cta {
  position: relative;
  padding: clamp(50px, 7vw, 80px);
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2, #1c1131) 100%);
  border-radius: var(--radius-xl, 28px);
  text-align: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.sv-cta::before {
  content: ""; position: absolute;
  top: -120px; right: -120px;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,163,23,0.45), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}
.sv-cta::after {
  content: ""; position: absolute; inset: 0;
  background-image: var(--grain);
  opacity: 0.08; mix-blend-mode: overlay;
  pointer-events: none;
}
.sv-cta .eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--gold-2, #ffc93d);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  border-radius: 100px;
}
.sv-cta h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 18px 0 14px;
}
.sv-cta h2 em { font-style: italic; color: var(--gold-2, #ffc93d); }
.sv-cta p {
  color: rgba(255,255,255,0.78);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.65;
}
.sv-cta p strong { color: #fff; font-weight: 700; }
.sv-cta-btns {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.sv-cta .btn-pour {
  background: var(--gold);
  color: var(--ink);
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  transition: transform var(--t-fast);
}
.sv-cta .btn-pour:hover { transform: translateY(-2px); }
.sv-cta .btn-ghost-d {
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.25);
  background: transparent;
  padding: 16px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.sv-cta .btn-ghost-d:hover {
  background: rgba(255,255,255,0.08);
  border-color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .sv-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .sv-hero-stats { flex-direction: row; flex-wrap: wrap; justify-content: space-between; }
  .sv-promise-grid { grid-template-columns: repeat(2, 1fr); }
  .sv-process { grid-template-columns: repeat(2, 1fr); }
  .sv-process::before { display: none; }
  .sv-painters-inner { grid-template-columns: 1fr; }
  .sv-painters-grid { grid-template-columns: repeat(2, 1fr); max-width: 480px; }
  .sv-trust { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .sv-promise-grid { grid-template-columns: 1fr; }
  .sv-process { grid-template-columns: 1fr; }
  .sv-painters-grid { grid-template-columns: 1fr 1fr; }
  .sv-hero-ctas .btn-pour, .sv-hero-ctas .btn-ghost-d { width: 100%; justify-content: center; }
  .sv-cta-btns .btn-pour, .sv-cta-btns .btn-ghost-d { width: 100%; justify-content: center; }
}

/* ============================================================
   PROMISE CARD ACCENTS
   Were inline hex values on each card. Two of them (#166534 green,
   #1f4088 navy) are dark enough that on the dark theme — which is the
   default — the accented <em> in the heading was barely readable. They
   are classes now so each can carry a lifted dark-theme value.
   ============================================================ */
.sv-promise--red   { --accent: #d92843; }
.sv-promise--navy  { --accent: #1f4088; }
.sv-promise--gold  { --accent: #b8791a; }
.sv-promise--green { --accent: #15803d; }

[data-theme="dark"] .sv-promise--red   { --accent: #ff6b7f; }
[data-theme="dark"] .sv-promise--navy  { --accent: #7ea8ff; }
[data-theme="dark"] .sv-promise--gold  { --accent: #ffc93d; }
[data-theme="dark"] .sv-promise--green { --accent: #4ade80; }
