/* ============================================================
   Home Transform Care — Main Stylesheet
   ============================================================ */

:root {
  --bg: #faf6f0;
  --surface: #ffffff;
  --ink: #22303c;
  --muted: #5f6d78;
  --accent: #cf6a33;
  --accent-dark: #b3541f;
  --accent-soft: #faeade;
  --navy: #16334a;
  --navy-deep: #10283c;
  --line: #eadfd2;
  --radius: 16px;
  --shadow: 0 14px 34px rgba(31, 47, 61, 0.09);
  --container: 1140px;
  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; transform: translateY(-2px); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn-ghost-light { border-color: #fff; color: #fff; background: transparent; }
.btn-ghost-light:hover { background: #fff; color: var(--accent-dark); }
.btn-light { background: #fff; color: var(--accent-dark); }
.btn-light:hover { background: var(--accent-soft); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--ink);
  white-space: nowrap;
}
.brand strong { color: var(--accent); }
.brand-mark {
  width: 42px;
  height: 42px;
  background: var(--accent);
  border-radius: 12px;
  padding: 6px;
  flex: 0 0 auto;
}
.main-nav { display: flex; align-items: center; gap: 1.4rem; }
.main-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.97rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.main-nav a:hover { color: var(--accent); }
.main-nav a.active { color: var(--accent); border-bottom-color: var(--accent); }
.main-nav a.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  border-bottom: none;
}
.main-nav a.nav-cta:hover { background: var(--accent-dark); color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- Hero (homepage) ---------- */
.hero {
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--bg) 100%);
  padding: 4.5rem 0 4rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--accent-dark);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 em { color: var(--accent); font-style: normal; }
.lead { font-size: 1.12rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.hero-note { margin-top: 1.2rem; font-size: 0.92rem; color: var(--muted); }

.hero-media { position: relative; }
.hero-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid #fff;
}
.hero-card {
  position: absolute;
  bottom: -1.4rem;
  left: -1.4rem;
  background: var(--navy);
  color: #eaf1f6;
  border-radius: 14px;
  padding: 1rem 1.4rem;
  box-shadow: var(--shadow);
  max-width: 250px;
}
.hero-card strong { display: block; font-family: var(--font-head); color: #fff; margin-bottom: 0.2rem; }
.hero-card span { font-size: 0.9rem; color: #cfe0ec; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: #fff; }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head h2 { margin-bottom: 0.8rem; }
.section-head p { color: var(--muted); }
.kicker {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  display: block;
}

/* ---------- Split layouts ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.2rem;
  align-items: center;
}
.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 6px solid #fff;
}
.split h2 { margin-bottom: 1rem; }
.ticks { list-style: none; margin: 1.2rem 0 1.8rem; }
.ticks li { position: relative; padding-left: 2rem; margin-bottom: 0.7rem; color: var(--ink); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cf6a33' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 62% no-repeat;
}

/* ---------- Grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card, .service-card, .feature-card, .quote-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover, .service-card:hover, .feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: #f0dcc9;
}

.icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  color: var(--accent-dark);
}
.icon-badge svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.service-card h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.service-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.9rem; }
.card-link { font-weight: 600; font-size: 0.92rem; }
.card-link::after { content: " →"; }

.feature-card { text-align: left; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.feature-card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  position: relative;
}
.step-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.step-dot svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }
.step p { color: var(--muted); font-size: 0.93rem; margin-bottom: 0; }

/* ---------- Testimonials ---------- */
.quote-card { position: relative; }
.quote-card::before {
  content: "\201C";
  font-family: var(--font-head);
  font-size: 3.6rem;
  line-height: 1;
  color: var(--accent);
  display: block;
  margin-bottom: 0.4rem;
}
.quote-card p { color: var(--ink); font-size: 0.98rem; font-style: italic; }
.quote-card cite { display: block; margin-top: 1rem; font-style: normal; font-weight: 600; }
.quote-card cite span { display: block; font-weight: 400; font-size: 0.88rem; color: var(--muted); }

/* ---------- Blog cards ---------- */
.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.post-media { aspect-ratio: 16 / 9; overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post-card:hover .post-media img { transform: scale(1.05); }
.post-body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.tag {
  align-self: flex-start;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}
.post-body h3 { font-size: 1.18rem; margin-bottom: 0.5rem; }
.post-body h3 a { color: var(--ink); }
.post-body h3 a:hover { color: var(--accent); }
.post-body p { color: var(--muted); font-size: 0.95rem; }
.post-body .card-link { margin-top: auto; }
.post-meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.4rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #eaf1f6;
  border-radius: 22px;
  padding: 3.4rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 0.5rem; }
.cta-band p { color: #bfd4e2; margin-bottom: 0; max-width: 560px; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--navy) 0%, #1e425f 60%, var(--accent-dark) 140%);
  color: #eaf1f6;
  padding: 4rem 0;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 0.7rem; }
.page-hero p { color: #bfd4e2; max-width: 640px; margin: 0 auto; }
.crumbs { font-size: 0.88rem; color: #9db8ca; margin-bottom: 0.9rem; }
.crumbs a { color: #f6c9a8; }
.crumbs a:hover { color: #fff; }

/* ---------- Article (blog post) ---------- */
.article-wrap { max-width: 780px; margin: 0 auto; }
.article-hero {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 2.2rem 0 2rem;
  border: 6px solid #fff;
}
.article-wrap h2 { margin: 2.4rem 0 1rem; }
.article-wrap p { color: #3c4954; }
.article-wrap .lede { font-size: 1.15rem; color: var(--ink); }
.takeaways {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 12px;
  padding: 1.6rem 1.8rem;
  margin: 2.2rem 0;
}
.takeaways h3 { margin-bottom: 0.7rem; }
.takeaways ul { padding-left: 1.2rem; color: var(--muted); }
.takeaways li { margin-bottom: 0.4rem; }
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.6rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}

/* ---------- Service detail blocks (services page) ---------- */
.service-detail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
  scroll-margin-top: 6rem;
}
.service-detail .icon-badge { width: 68px; height: 68px; margin-bottom: 0.8rem; }
.service-detail .icon-badge svg { width: 34px; height: 34px; }
.service-detail .side { text-align: left; }
.service-detail h2 { font-size: 1.45rem; margin-bottom: 0.6rem; }
.service-detail p { color: var(--muted); }
.include-list { list-style: none; margin-top: 0.8rem; columns: 2; column-gap: 2rem; }
.include-list li { position: relative; padding-left: 1.5rem; margin-bottom: 0.5rem; color: var(--ink); font-size: 0.95rem; break-inside: avoid; }
.include-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42rem;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cf6a33' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 62% no-repeat;
}

/* ---------- FAQ ---------- */
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 0.8rem;
  padding: 1.05rem 1.4rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-head);
  font-size: 1.05rem;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1.3;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0.7rem 0 0.2rem; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 600; font-size: 0.93rem; margin-bottom: 0.4rem; }
.field label em { color: var(--accent); font-style: normal; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 0.96rem;
  color: var(--ink);
  background: #fffdfb;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(207, 106, 51, 0.15);
}
.field input.invalid, .field select.invalid, .field textarea.invalid { border-color: #c0392b; }
.field-err { display: block; color: #c0392b; font-size: 0.83rem; margin-top: 0.3rem; min-height: 1em; }
.check { display: flex; gap: 0.7rem; align-items: flex-start; margin: 0.4rem 0 1.4rem; }
.check input { margin-top: 0.3rem; width: 1.05rem; height: 1.05rem; accent-color: var(--accent); flex: 0 0 auto; }
.check label { font-size: 0.92rem; color: var(--muted); font-weight: 400; }
.form-ok {
  background: #eaf7ef;
  border: 1px solid #bfe3cd;
  color: #1f7a45;
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 1rem; }

/* ---------- Contact ---------- */
.info-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  text-align: center;
}
.info-tile .icon-badge { margin: 0 auto 0.9rem; }
.info-tile h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.info-tile p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0; }
.info-tile a { font-weight: 600; }

/* ---------- Prose pages (privacy / terms) ---------- */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 1.45rem; margin: 2.2rem 0 0.7rem; }
.prose p, .prose li { color: #3c4954; }
.prose ul { padding-left: 1.3rem; margin-bottom: 1.1rem; }
.prose li { margin-bottom: 0.45rem; }
.updated-note {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2rem;
  display: inline-block;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #b9cdda;
  margin-top: 4.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding: 3.5rem 1.25rem 2.5rem;
}
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-grid a { color: #b9cdda; display: block; font-size: 0.94rem; margin-bottom: 0.55rem; }
.footer-grid a:hover { color: #fff; }
.footer-about { font-size: 0.94rem; margin: 0.9rem 0 1.2rem; color: #9db8ca; }
.footer-contact p { font-size: 0.94rem; margin-bottom: 0.6rem; }
.footer-contact a { display: inline; font-weight: 600; color: #f6c9a8; }
.footer-contact a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-head); font-size: 1.25rem; color: #fff; }
.footer-brand strong { color: var(--accent); }
.footer-brand svg { width: 36px; height: 36px; background: var(--accent); border-radius: 10px; padding: 5px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.3rem 1.25rem;
  text-align: center;
  font-size: 0.88rem;
  color: #8aa5b8;
}
.footer-bottom span { color: #f6c9a8; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 60;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--accent-dark); transform: translateY(-3px); }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 2.2rem; }
  .hero-card { left: 1rem; bottom: -1rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-detail { grid-template-columns: 1fr; }
  .split-media { order: -1; }
}

@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem 1.25rem 1rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.75rem 0.2rem; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: none; }
  .main-nav a.nav-cta { text-align: center; margin-top: 0.6rem; border-bottom: none; }
  .grid-3, .grid-2, .form-row, .include-list { grid-template-columns: 1fr; }
  .include-list { columns: 1; }
  .grid-4, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .section { padding: 3.2rem 0; }
  .cta-band { padding: 2.4rem 1.6rem; }
  .form-card { padding: 1.6rem; }
}


.brand img{
  width: 250px;
}