/*
 * Home Services Starter — Back2Life Designs
 * No dependencies. Adjust palette variables or use the demo swatches.
 * A11y: keyboard focus, semantic headings, responsive text, reduced motion.
 */
:root,
html[data-theme="forest"] {
  --ink: #173a30;
  --muted: #4d645c;
  --primary: #155743;
  --primary-hover: #0e4535;
  --on-primary: #ffffff;
  --tint: #e8f1eb;
  --tint-strong: #d5e7da;
  --page: #fbfcfa;
  --line: #d5e2d9;
  --badge: #d9eddf;
  --art-sky: #e1efe8;
  --art-sun: #f5d98f;
  --art-house: #fefcf3;
  --art-roof: #215b48;
  --art-roof-line: #acd3b6;
  --art-door: #bb8059;
  --art-bush: #86ba8c;
  --art-ground: #a6c4a2;
  --art-hill: #cce0c7;
  --art-path: #e4d9bb;
}
html[data-theme="coast"] {
  --ink: #16394c;
  --muted: #4c6472;
  --primary: #14577b;
  --primary-hover: #0e4260;
  --on-primary: #ffffff;
  --tint: #eaf3f8;
  --tint-strong: #cee4ef;
  --page: #fbfdff;
  --line: #cfe0e9;
  --badge: #d8eaf4;
  --art-sky: #e4f2f9;
  --art-sun: #f7dda0;
  --art-house: #fffefa;
  --art-roof: #285c7d;
  --art-roof-line: #a6ccdf;
  --art-door: #bb835e;
  --art-bush: #88b5b0;
  --art-ground: #9dc6c5;
  --art-hill: #c6e2e1;
  --art-path: #e1d9c6;
}
html[data-theme="clay"] {
  --ink: #442d28;
  --muted: #66544e;
  --primary: #8d4b36;
  --primary-hover: #713b2b;
  --on-primary: #ffffff;
  --tint: #f8eee8;
  --tint-strong: #f0d8c9;
  --page: #fffcf9;
  --line: #e7d7ca;
  --badge: #f6e2d5;
  --art-sky: #fae9db;
  --art-sun: #f0c480;
  --art-house: #fffaf1;
  --art-roof: #95553c;
  --art-roof-line: #ecc3a5;
  --art-door: #5c6553;
  --art-bush: #a4ac81;
  --art-ground: #c4be9a;
  --art-hill: #e7dcc0;
  --art-path: #ebd2b4;
}
html[data-theme="slate"] {
  --ink: #252e40;
  --muted: #536071;
  --primary: #35455f;
  --primary-hover: #27354b;
  --on-primary: #ffffff;
  --tint: #edf1f6;
  --tint-strong: #dce3ec;
  --page: #fbfcfe;
  --line: #d8dee7;
  --badge: #e1e7ef;
  --art-sky: #e8eef7;
  --art-sun: #ffc889;
  --art-house: #fdfbf4;
  --art-roof: #3d526e;
  --art-roof-line: #a9b9cd;
  --art-door: #c17d53;
  --art-bush: #7da7a2;
  --art-ground: #a7c8be;
  --art-hill: #d1e0dc;
  --art-path: #e3d4bd;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid #de831d; outline-offset: 4px; }
img, svg { max-width: 100%; }
.container { width: min(1170px, calc(100% - 48px)); margin-inline: auto; }
.visually-hidden { position: absolute; height: 1px; width: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; z-index: 100; left: 15px; top: -65px; padding: 12px 18px; background: #fff; color: #161f2e; border-radius: 8px; }
.skip-link:focus { top: 10px; }
/* Demo-only color picker */
.theme-toolbar { background: #172b29; color: #fff; }
.theme-toolbar__inner { min-height: 56px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 6px; }
.theme-toolbar__heading { display: flex; align-items: center; gap: 9px; letter-spacing: .1em; font-size: 10px; white-space: nowrap; }
.demo-dot { width: 7px; height: 7px; background: #70d4aa; border-radius: 50%; }
.theme-toolbar__hint { color: #bccfcc; font-size: 12px; font-weight: 400; letter-spacing: 0; margin-left: 10px; }
.theme-options { display: flex; align-items: center; gap: 8px; }
.theme-button { display: grid; place-items: center; width: 36px; height: 36px; border: 2px solid #172b29; border-radius: 50%; cursor: pointer; position: relative; background: transparent; }
.theme-button::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--swatch); }
.theme-button--forest { --swatch: #65a484; }
.theme-button--coast { --swatch: #4e98c5; }
.theme-button--clay { --swatch: #c87857; }
.theme-button--slate { --swatch: #8697ae; }
.theme-button[aria-pressed="true"] { border-color: #fff; }
.theme-button:hover::before { box-shadow: 0 0 0 2px #fff7; }
.theme-name { min-width: 86px; font-size: 12px; color: #e2f2ee; margin-left: 4px; }
/* Header */
.site-header { background: var(--page); border-bottom: 1px solid var(--line); }
.header-content { min-height: 93px; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand-icon { width: 47px; height: 47px; flex: 0 0 47px; padding: 9px; background: var(--primary); color: #fff; border-radius: 14px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; gap: 4px; }
.brand-text strong { font-weight: 800; font-size: 18px; letter-spacing: -.04em; }
.brand-text small { color: var(--muted); font-weight: 700; font-size: 10px; letter-spacing: .2em; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 37px); font-weight: 650; font-size: 14px; }
.nav-links > a:not(.nav-cta):hover { color: var(--primary); text-decoration: underline; text-underline-offset: 6px; }
.nav-cta { display: flex; gap: 18px; align-items: center; color: var(--on-primary); background: var(--primary); padding: 14px 19px; border-radius: 10px; }
.nav-cta:hover, .button-primary:hover { background: var(--primary-hover); }
.nav-cta span { font-size: 19px; font-weight: 400; }
.menu-toggle { display: none; border: 1px solid var(--line); background: var(--page); border-radius: 8px; padding: 10px 12px; color: var(--ink); font-weight: 700; gap: 8px; align-items: center; cursor: pointer; }
/* Hero */
.hero { background: var(--tint); overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.04fr) minmax(0,.96fr); align-items: center; gap: clamp(24px, 4.1vw, 55px); padding-block: clamp(56px, 7.6vw, 105px); }
.eyebrow { color: var(--primary); font-size: 12px; letter-spacing: .14em; font-weight: 800; margin: 0 0 21px; }
.eyebrow-line { display: inline-block; width: 19px; height: 2px; background: var(--primary); vertical-align: middle; margin-right: 9px; }
h1,h2,h3,p { overflow-wrap: break-word; }
h1,h2,h3 { line-height: 1.08; letter-spacing: -.055em; }
h1 { font-size: clamp(54px, 6.4vw, 94px); margin: 0 0 27px; font-weight: 810; }
h1 em { font-style: normal; color: var(--primary); }
.hero-lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.75; max-width: 520px; color: var(--muted); margin: 0 0 29px; }
.actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 25px; font-weight: 750; font-size: 15px; white-space: nowrap; }
.button-primary { background: var(--primary); color: var(--on-primary); border-radius: 9px; padding: 16px 20px; }
.button-primary span { font-size: 20px; font-weight: 400; }
.button-text { color: var(--ink); border-bottom: 1.5px solid var(--primary); padding-block: 15px; }
.button-text:hover, .inline-link:hover { color: var(--primary); }
.hero-footnote { margin: 35px 0 0; color: var(--muted); font-size: 13px; }
.hero-footnote strong { color: var(--ink); }
.hero-visual { background: var(--art-sky); border: 1px solid var(--line); border-radius: 26px; min-height: 470px; position: relative; overflow: hidden; box-shadow: 0 24px 50px rgba(23, 58, 48, .08); display: flex; flex-direction: column; justify-content: space-between; }
.visual-header { display: flex; justify-content: space-between; align-items: center; padding: 29px 32px 0; color: var(--ink); position: relative; z-index: 1; }
.mini-kicker { font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.mini-square { font-size: 24px; color: var(--primary); }
.house-art { display: block; width: 100%; margin-top: -10px; }
.house-art .sun { fill: var(--art-sun); }
.house-art .ground { fill: var(--art-ground); }
.house-art .back-hill { fill: var(--art-hill); }
.house-art .house-shadow { fill: #00000016; }
.house-art .house-body { fill: var(--art-house); }
.house-art .roof { stroke: var(--art-roof); }
.house-art .roof-line { stroke: var(--art-roof-line); }
.house-art .house-door { fill: var(--art-door); }
.house-art .door-knob { fill: #fff2cf; }
.house-art .window-frame { fill: var(--art-roof); }
.house-art .window-pane { fill: #cae7ee; }
.house-art .window-cross { stroke: var(--art-roof); }
.house-art .bush { fill: var(--art-bush); }
.house-art .path { fill: var(--art-path); }
.house-art .sparkle { stroke: var(--art-roof); opacity: .5; }
.visual-footer { display: flex; gap: 14px; align-items: center; padding: 18px 27px; background: var(--page); color: var(--muted); font-size: 12px; line-height: 1.45; border-top: 1px solid var(--line); }
.visual-footer strong { color: var(--ink); font-size: 14px; }
.visual-footer__circle { display: grid; place-items: center; border-radius: 50%; width: 36px; height: 36px; color: #fff; background: var(--primary); font-weight: 800; font-size: 16px; flex: 0 0 auto; }
/* Sections */
.section { padding-block: clamp(66px, 8vw, 112px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 33px; }
.section-heading .eyebrow, .about-copy .eyebrow { margin-bottom: 14px; }
h2 { font-size: clamp(36px, 4.1vw, 58px); margin: 0; font-weight: 790; }
.section-description { color: var(--muted); max-width: 375px; font-size: 16px; margin: 0; line-height: 1.65; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 21px; }
.service-card { padding: clamp(26px, 3vw, 37px); border: 1px solid var(--line); background: #fff; border-radius: 18px; display: flex; flex-direction: column; min-height: 299px; }
.service-icon { width: 51px; height: 51px; border-radius: 13px; display: grid; place-items: center; padding: 11px; background: var(--badge); color: var(--primary); margin-bottom: 39px; }
.service-card:nth-child(2) { background: var(--tint); }
.card-number { font-weight: 850; font-size: 11px; color: var(--primary); letter-spacing: .09em; }
.service-card h3 { font-size: 26px; margin: 9px 0 13px; }
.service-card p { font-size: 15px; line-height: 1.72; color: var(--muted); margin: 0; }
/* About */
.about { border-block: 1px solid var(--line); background: var(--tint); }
.about-grid { display: grid; grid-template-columns: .9fr 1fr; gap: clamp(40px, 8vw, 120px); align-items: center; }
.about-feature { border-radius: 21px; background: var(--primary); color: var(--on-primary); min-height: 375px; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; }
.about-feature__top { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .14em; font-weight: 800; }
.about-feature__top span:last-child { font-size: 22px; font-weight: 400; }
.about-feature__symbol { align-self: center; width: 130px; height: 130px; opacity: .82; }
.about-feature p { margin: 0; color: #fff; font-size: 17px; }
.about-feature p strong { font-size: 22px; }
.about-copy p:not(.eyebrow) { color: var(--muted); font-size: 17px; line-height: 1.75; }
.about-copy h2 { margin-bottom: 25px; }
.inline-link { display: inline-flex; align-items: center; gap: 16px; padding: 10px 0; margin-top: 5px; font-weight: 750; border-bottom: 2px solid var(--primary); }
/* Process */
.section-heading--center { align-items: center; text-align: center; flex-direction: column; gap: 8px; }
.section-heading--center .eyebrow { margin: 0 0 5px; }
.section-heading--center .section-description { max-width: 565px; margin-top: 13px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; margin-top: 52px; }
.step { border-top: 2px solid var(--line); padding-top: 22px; }
.step-number { display: block; color: var(--primary); font-size: 14px; font-weight: 750; margin-bottom: 38px; }
.step h3 { font-size: 24px; margin: 0 0 13px; }
.step p { color: var(--muted); margin: 0; line-height: 1.75; }
/* Contact and footer */
.contact { background: var(--primary); color: #fff; }
.contact-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.82fr); gap: clamp(44px, 7vw, 98px); align-items: center; }
.eyebrow--light { color: #fff; opacity: .82; }
.contact h2 { font-size: clamp(45px,5.2vw,76px); }
.contact-copy > p:last-child { color: #f0f6f1; line-height: 1.8; max-width: 450px; margin-top: 26px; font-size: 17px; }
.contact-card { background: var(--page); border-radius: 17px; padding: clamp(23px,3.5vw,39px); color: var(--ink); }
.contact-card__heading { margin: 0 0 20px; font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.contact-detail { padding: 13px 0; display: grid; grid-template-columns: 1fr 1.8fr; gap: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.contact-detail span { color: var(--muted); }
.contact-detail strong { overflow-wrap: anywhere; font-weight: 700; }
.demo-notice { background: var(--tint); border-radius: 8px; color: var(--muted); padding: 12px 14px; line-height: 1.5; font-size: 12px; margin: 21px 0 0; }
.footer { background: #172b29; color: #d8e5e1; font-size: 13px; }
.footer-content { padding-block: 25px; display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.footer a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 950px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 25px; }
  h1 { font-size: clamp(48px, 6vw, 72px); }
  .hero-visual { min-height: 360px; }
  .hero-footnote { margin-top: 20px; }
  .nav-links { gap: 18px; }
  .service-grid { gap: 14px; }
  .service-card { padding: 24px; }
}
@media (max-width: 760px) {
  .container { width: min(100% - 34px, 540px); }
  .theme-toolbar__inner { flex-wrap: wrap; justify-content: center; row-gap: 0; padding-block: 9px; }
  .theme-toolbar__hint { display: none; }
  .theme-name { min-width: 75px; }
  .header-content { min-height: 76px; flex-wrap: wrap; gap: 0; position: relative; }
  .brand-text strong { font-size: 15px; }
  .brand-icon { width: 43px; height: 43px; flex-basis: 43px; padding: 8px; }
  .menu-toggle { display: inline-flex; }
  .nav-links { display: none; flex-direction: column; align-items: stretch; width: 100%; gap: 0; padding-bottom: 14px; }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 13px; border-top: 1px solid var(--line); }
  .nav-links .nav-cta { margin-top: 8px; justify-content: space-between; border-radius: 8px; border: 0; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { padding-block: 58px 60px; }
  h1 { font-size: clamp(51px, 10vw, 76px); }
  .hero-visual { min-height: 380px; }
  .hero-footnote { font-size: 12px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .section-heading--center { align-items: center; }
  .service-grid, .steps { grid-template-columns: 1fr; }
  .service-card { min-height: auto; padding: 27px; }
  .service-icon { margin-bottom: 20px; }
  .about-feature { min-height: 320px; }
  .about-grid { gap: 35px; }
  .steps { margin-top: 32px; }
  .step-number { margin-bottom: 15px; }
}
@media (max-width: 420px) {
  .container { width: calc(100% - 30px); }
  .theme-toolbar__heading { font-size: 9px; }
  .theme-button { width: 33px; height: 33px; }
  .theme-button::before { width: 20px; height: 20px; }
  .actions { gap: 10px; }
  .button { font-size: 14px; gap: 15px; }
  .hero-visual { min-height: 290px; }
  .visual-header { padding: 20px 23px 0; }
  .about-feature { padding: 24px; }
  .contact-detail { grid-template-columns: 1fr; gap: 1px; }
  .footer-content { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
