/* ===========================================================
   DiBlue Home Services — landing page
   Three switchable design directions via [data-option]
   =========================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4 { margin: 0; color: var(--ink); font-family: var(--font-display); line-height: 1.05; font-weight: var(--display-weight); letter-spacing: var(--display-spacing); }
p { margin: 0; text-wrap: pretty; }

/* ---------- shared tokens ---------- */
.site {
  --accent: #1668e3;
  --accent-2: #2e86ff;
  --on-accent: #ffffff;
  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 64px);
  min-height: 100vh;
}
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.eyebrow {
  font-family: "Manrope", sans-serif;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.section { padding-block: clamp(64px, 8vw, 112px); }
.section__head { max-width: 640px; margin-bottom: clamp(36px, 4vw, 56px); }
.section__head h2 { font-size: clamp(30px, 4vw, 48px); margin-top: 16px; }
.section__head p { margin-top: 18px; font-size: 18px; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 15.5px; line-height: 1;
  padding: 16px 26px; border-radius: calc(var(--radius) * 0.7);
  border: 1.5px solid transparent; white-space: nowrap;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
}
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 26px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px color-mix(in srgb, var(--accent) 75%, transparent); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--light { background: #fff; color: var(--accent); }
.btn--light:hover { transform: translateY(-2px); }
.btn--lg { padding: 18px 32px; font-size: 16.5px; }

/* ---------- announcement bar ---------- */
.announce {
  background: var(--navy, #0b2a5c); color: #fff;
  font-size: 13.5px; letter-spacing: 0.01em;
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 9px 16px; text-align: center; flex-wrap: wrap;
}
.announce strong { font-weight: 800; letter-spacing: 0.02em; }
.announce a { text-decoration: underline; text-underline-offset: 2px; font-weight: 700; }

/* ---------- header / nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; gap: 28px; height: 92px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 64px; width: auto; }
.nav__links { display: flex; gap: 30px; margin-left: 14px; }
.nav__links a { font-size: 15px; font-weight: 600; color: var(--text); transition: color .15s; }
.nav__links a:hover { color: var(--accent); }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.nav__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--ink); font-size: 15.5px; }
.nav__phone span { color: var(--accent); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 6vw, 96px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__text { max-width: 600px; }
.hero h1 { font-size: clamp(40px, 6vw, 70px); margin-top: 22px; color: var(--hero-ink, var(--ink)); }
.hero__sub { margin-top: 24px; font-size: clamp(17px, 1.5vw, 20px); color: var(--hero-muted, var(--muted)); max-width: 520px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--hero-muted, var(--muted)); }
.chip svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.hero__media { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hero__logo { width: 100%; max-width: 440px; height: auto; filter: drop-shadow(0 26px 44px rgba(11,35,92,.20)); }
.hero__badge {
  background: #fff; color: var(--ink); border-radius: 16px;
  padding: 16px 20px; box-shadow: var(--shadow); display: inline-flex; align-items: center; gap: 14px;
  border: 1px solid var(--line); margin-top: 6px;
}
.hero__badge .stars { color: #f5a623; font-size: 16px; letter-spacing: 1px; }
.hero__badge b { font-family: var(--font-display); font-size: 22px; color: var(--ink); display: block; line-height: 1; }
.hero__badge small { font-size: 12.5px; color: var(--muted); }

/* ---------- services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px 32px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.svc-card__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); margin-bottom: 22px;
}
.svc-card__icon svg { width: 26px; height: 26px; }
.svc-card h3 { font-size: 21px; margin-bottom: 9px; }
.svc-card p { font-size: 15px; color: var(--muted); }
.svc-note { margin-top: 28px; font-size: 15.5px; color: var(--muted); }
.svc-note b { color: var(--ink); font-weight: 700; }

/* ---------- last services (work) ---------- */
.work { background: var(--surface-2); }
.work__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.work-card { position: relative; }
.work-card__img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.work-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.work-card__meta h4 { font-family: "Manrope", sans-serif; font-size: 15.5px; font-weight: 700; color: var(--ink); }
.work-card__meta span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); padding: 5px 10px; border-radius: 999px; margin-top: 6px; }

/* ---------- why / trust ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why-card { text-align: left; padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.why-card__ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); margin-bottom: 18px; }
.why-card__ic svg { width: 23px; height: 23px; }
.why-card h4 { font-family: var(--font-display); font-size: 18px; color: var(--ink); margin-bottom: 6px; }
.why-card p { font-size: 14px; color: var(--muted); }

/* ---------- estimate / form ---------- */
.estimate { background: var(--cta-bg); color: var(--cta-ink, #fff); position: relative; overflow: hidden; }
.estimate__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.estimate__intro h2 { color: var(--cta-ink, #fff); font-size: clamp(30px, 3.6vw, 46px); margin-top: 16px; }
.estimate__intro .eyebrow { color: var(--cta-eyebrow, #9ec2ff); }
.estimate__intro .eyebrow::before { background: var(--cta-eyebrow, #9ec2ff); }
.estimate__intro p { margin-top: 18px; font-size: 18px; color: var(--cta-muted, rgba(255,255,255,.78)); }
.estimate__contact { margin-top: 34px; display: grid; gap: 18px; }
.estimate__contact a, .estimate__contact div { display: flex; gap: 14px; align-items: flex-start; }
.estimate__contact .ic { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.12); display: grid; place-items: center; flex: none; color: #fff; }
.estimate__contact .ic svg { width: 20px; height: 20px; }
.estimate__contact b { color: #fff; font-size: 16.5px; font-weight: 700; display: block; }
.estimate__contact small { color: var(--cta-muted, rgba(255,255,255,.7)); font-size: 13.5px; }

.form { background: #fff; border-radius: calc(var(--radius) + 4px); padding: clamp(26px, 3vw, 40px); box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: #1c2a44; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 11px; border: 1.5px solid #e3e8f0;
  font-family: inherit; font-size: 15px; color: #18233a; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 104px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.form .btn--primary { width: 100%; margin-top: 6px; }
.form .btn--primary:disabled { opacity: .65; transform: none; cursor: wait; }
.form__fine { margin-top: 16px; font-size: 12.5px; color: #6b7892; text-align: center; }
.form__success { text-align: center; padding: 30px 10px; }
.form__success .check { width: 64px; height: 64px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, #fff); color: var(--accent); display: grid; place-items: center; margin: 0 auto 18px; }
.form__success .check svg { width: 32px; height: 32px; }
.form__success h3 { font-family: var(--font-display); font-size: 26px; color: #14233f; margin-bottom: 10px; }
.form__success p { color: #5a6781; font-size: 15.5px; }

/* ---------- footer ---------- */
.foot { background: var(--foot-bg); color: var(--foot-text); padding-block: 56px 30px; border-top: 1px solid var(--foot-line); }
.foot__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; align-items: start; }
.foot__brand img { height: 52px; margin-bottom: 18px; }
.foot__brand p { font-size: 14.5px; color: var(--foot-muted); max-width: 320px; }
.foot__col h5 { font-family: "Manrope", sans-serif; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--foot-text); margin: 0 0 16px; }
.foot__col a, .foot__col p { display: block; font-size: 14.5px; color: var(--foot-muted); margin-bottom: 11px; }
.foot__col a:hover { color: var(--accent); }
.foot__col a.btn--primary { color: #fff; }
.foot__col a.btn--primary:hover { color: #fff; }
.foot__bar { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--foot-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--foot-muted); }

/* ===========================================================
   OPTION A — Editorial Clean (premium, airy, serif display)
   =========================================================== */
.site[data-option="a"] {
  --bg: #f6f8fb; --surface: #ffffff; --surface-2: #eef2f8;
  --ink: #0d1f3c; --text: #45536b; --muted: #76849c; --line: #e5eaf2;
  --navy: #0b2347;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(13,31,60,.05);
  --shadow: 0 30px 60px -28px rgba(13,31,60,.30);
  --font-display: "Newsreader", Georgia, serif;
  --display-weight: 500; --display-spacing: -0.01em;
  --hero-ink: #0d1f3c; --hero-muted: #5a6884;
  --cta-bg: #0b2347; --cta-ink: #fff; --cta-eyebrow: #8fb6ff;
  --foot-bg: #0b2347; --foot-text: #eaf0fb; --foot-muted: #93a6c6; --foot-line: rgba(255,255,255,.12);
}
.site[data-option="a"] .hero h1 { font-weight: 500; letter-spacing: -0.015em; }
.site[data-option="a"] .hero h1 em { font-style: italic; color: var(--accent); }

/* ===========================================================
   OPTION B — Bold Blue (brand-forward, navy hero, heavy sans)
   =========================================================== */
.site[data-option="b"] {
  --bg: #ffffff; --surface: #f5f8fd; --surface-2: #f0f5fc;
  --ink: #07224d; --text: #3a4a66; --muted: #6a7a96; --line: #e2e9f4;
  --navy: #061a3c;
  --radius: 16px;
  --shadow-sm: 0 2px 4px rgba(7,34,77,.06);
  --shadow: 0 34px 70px -28px rgba(7,34,77,.40);
  --font-display: "Archivo", system-ui, sans-serif;
  --display-weight: 800; --display-spacing: -0.02em;
  --cta-bg: #061a3c; --cta-ink: #fff; --cta-eyebrow: #6ea8ff;
  --foot-bg: #061a3c; --foot-text: #eef3fc; --foot-muted: #8ba0c4; --foot-line: rgba(255,255,255,.12);
  --media-border: none;
}
/* navy hero block */
.site[data-option="b"] .hero { background: radial-gradient(120% 120% at 80% -10%, #103a7e 0%, #061a3c 55%, #04132c 100%); }
.site[data-option="b"] .hero h1, .site[data-option="b"] .hero .eyebrow { color: #fff; }
.site[data-option="b"] .hero .eyebrow { color: #6ea8ff; }
.site[data-option="b"] .hero .eyebrow::before { background: #6ea8ff; }
.site[data-option="b"] { --hero-muted: rgba(226,236,251,.82); }
.site[data-option="b"] .hero .chip { color: rgba(226,236,251,.9); }
.site[data-option="b"] .hero .chip svg { color: #6ea8ff; }
.site[data-option="b"] .hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.32); }
.site[data-option="b"] .hero .btn--ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.site[data-option="b"] .eyebrow { letter-spacing: 0.2em; }
.site[data-option="b"] h1, .site[data-option="b"] .section__head h2 { text-transform: none; }

/* ===========================================================
   OPTION C — Warm Trust (warm neutrals, friendly, rounded)
   =========================================================== */
.site[data-option="c"] {
  --bg: #f3efe7; --surface: #fffdf8; --surface-2: #ece6da;
  --ink: #28303c; --text: #56606e; --muted: #8b8f98; --line: #e7ded0;
  --navy: #233140;
  --radius: 22px;
  --shadow-sm: 0 2px 6px rgba(40,48,60,.05);
  --shadow: 0 34px 64px -30px rgba(40,48,60,.32);
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --display-weight: 700; --display-spacing: -0.015em;
  --cta-bg: #233140; --cta-ink: #fff; --cta-eyebrow: #9cc2ff;
  --foot-bg: #233140; --foot-text: #f1ede5; --foot-muted: #aeb4bd; --foot-line: rgba(255,255,255,.12);
}
.site[data-option="c"] .hero__grid { grid-template-columns: 1fr; text-align: center; gap: 44px; }
.site[data-option="c"] .hero__text { max-width: 760px; margin: 0 auto; }
.site[data-option="c"] .hero__sub { margin-left: auto; margin-right: auto; }
.site[data-option="c"] .hero__cta, .site[data-option="c"] .hero__chips { justify-content: center; }
.site[data-option="c"] .section__head { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__media { max-width: 460px; }
  .svc-grid, .work-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .estimate__grid { grid-template-columns: 1fr; }
  .foot__top { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
}
@media (max-width: 600px) {
  .svc-grid, .work-grid, .why-grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .foot__top { grid-template-columns: 1fr; }
  .nav__phone { display: none; }
  .hero__badge { left: 0; }
}
