/* =========================
   1. VARIABLES
========================= */

:root {
  --bg-page: #0a0e14;
  --bg-section-alt: #0d1219;
  --bg-section-deep: #080b10;
  --bg-card-elevated: #161f2a;
  --bg-card-featured: #182230;
  --bg-nav: rgba(10, 14, 20, 0.94);

  --text-main: #f1f5f9;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;

  --accent: #14d4b8;
  --accent-hover: #2ee8cc;
  --accent-dim: rgba(20, 212, 184, 0.12);

  --border-soft: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(20, 212, 184, 0.32);
  --border-card-strong: rgba(148, 163, 184, 0.32);
  --border-card-medium: rgba(148, 163, 184, 0.24);
  --border-card-subtle: rgba(148, 163, 184, 0.14);

  --shadow-elevated: 0 10px 36px rgba(0, 0, 0, 0.38);
  --shadow-card-rest:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 4px 18px rgba(0, 0, 0, 0.26);
  --shadow-card-rest-featured:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 6px 22px rgba(0, 0, 0, 0.32);
  --shadow-card-medium:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 2px 12px rgba(0, 0, 0, 0.22);

  --font-sans:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  --font-mono: Monaco, Consolas, "Courier New", monospace;

  --container-max: 1120px;
  --nav-max: 1260px;
  --section-pad-y: clamp(4rem, 8vw, 6rem);
  --scroll-offset: 5.25rem;

  --radius-sm: 6px;
  --radius-md: 10px;

  --transition-fast: 0.2s ease;
  --transition-mid: 0.35s ease;
}


/* =========================
   2. RESET AND BASE
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--scroll-offset);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  line-height: 1.65;
  background-color: var(--bg-page);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

main {
  width: 100%;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}


/* =========================
   3. TYPOGRAPHY
========================= */

h1,
h2,
h3,
h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

h1 {
  font-size: clamp(1.875rem, 4.5vw, 3.125rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.625rem, 3.5vw, 2.375rem);
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
}

h4 {
  font-size: 1.0625rem;
}

strong {
  font-weight: 700;
  color: var(--text-main);
}


/* =========================
   4. SHARED LAYOUT UTILITIES
========================= */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 1.75rem);
}

section {
  padding-block: var(--section-pad-y);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.88;
  margin: 0 0 0.75rem;
}

.section-header h2 {
  margin-bottom: 0.875rem;
}

.section-intro {
  max-width: 40rem;
  margin-inline: auto;
  color: var(--text-body);
  line-height: 1.7;
  font-size: 0.9375rem;
}

#hero,
#services,
#work,
#process,
#faq,
#contact {
  scroll-margin-top: var(--scroll-offset);
}


/* =========================
   5. NAVIGATION
========================= */

#site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 1px 0 rgba(20, 212, 184, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
  min-height: 3.75rem;
  padding-block: 0.625rem;
}

#site-nav .nav-inner.container {
  max-width: var(--nav-max);
  padding-inline: clamp(0.875rem, 2.2vw, 1.25rem);
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  border-radius: var(--radius-sm);
}

.nav-logo img {
  height: clamp(1.625rem, 3.8vw, 2.5rem);
  width: auto;
}

.nav-list {
  display: flex;
  list-style: none;
  flex: 1;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(0.375rem, 1.8vw, 1.75rem);
  min-width: 0;
}

.nav-list a {
  color: var(--text-body);
  font-size: clamp(0.75rem, 2.2vw, 0.9375rem);
  font-weight: 600;
  white-space: nowrap;
  padding: 0.25rem 0.125rem;
  transition: color var(--transition-fast);
}

.nav-cta {
  border: 1px solid var(--border-strong);
  background: var(--accent-dim);
  color: var(--accent) !important;
  padding: 0.375rem clamp(0.5rem, 2vw, 0.875rem) !important;
  border-radius: var(--radius-sm);
  font-size: clamp(0.7rem, 2vw, 0.875rem) !important;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}


/* =========================
   6. BUTTONS AND LINKS
========================= */

a {
  color: inherit;
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.8125rem 1.375rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.3;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.btn-primary {
  background-color: var(--accent);
  color: #071018;
  border-color: var(--accent);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background-color: rgba(20, 212, 184, 0.1);
  color: var(--text-main);
  border-color: rgba(20, 212, 184, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(20, 212, 184, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.22);
}

.package-cta {
  width: 100%;
  margin-top: auto;
}


/* =========================
   7. HERO
========================= */

#hero {
  position: relative;
  text-align: center;
  background-color: var(--bg-section-deep);
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
}

#hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, 90vw);
  height: min(480px, 60vh);
  background: radial-gradient(
    ellipse at center,
    rgba(20, 212, 184, 0.09) 0%,
    rgba(20, 212, 184, 0.03) 40%,
    transparent 70%
  );
  pointer-events: none;
}

#hero .container {
  position: relative;
  padding-top: clamp(5.5rem, 12vw, 7.5rem);
  padding-bottom: clamp(3.5rem, 8vw, 5.5rem);
}

.hero-mark {
  display: block;
  width: clamp(5.625rem, 16vw, 7.5rem);
  height: auto;
  margin-inline: auto;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 0 14px rgba(20, 212, 184, 0.22));
  animation: softFloat 5.5s ease-in-out infinite;
}

.hero-eyebrow {
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
}

.hero-intro {
  max-width: 38rem;
  margin-inline: auto;
  margin-bottom: 2rem;
  color: var(--text-body);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.hero-trust {
  color: var(--text-muted);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}


/* =========================
   8. VALUE STRIP
========================= */

#value-strip {
  background-color: var(--bg-section-alt);
  border-bottom: 1px solid var(--border-soft);
  padding-block: 1.375rem;
}

.value-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 0;
  list-style: none;
}

.value-item {
  display: inline-flex;
  align-items: center;
  color: var(--text-body);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}

.value-item:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-inline: clamp(0.625rem, 2vw, 1.125rem);
  border-radius: 50%;
  background-color: var(--accent);
  opacity: 0.75;
  flex-shrink: 0;
}


/* =========================
   9. SERVICES AND PRICING
========================= */

#services {
  background-color: var(--bg-section-alt);
  border-bottom: 1px solid var(--border-soft);
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  align-items: stretch;
}

.package-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-card-strong);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-card-rest);
  transition:
    transform var(--transition-mid),
    border-color var(--transition-mid),
    box-shadow var(--transition-mid);
}

.package-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -120%;
  width: 70%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(20, 212, 184, 0.07),
    transparent
  );
  pointer-events: none;
  transition: left 0.5s ease;
}

.package-card > * {
  position: relative;
  z-index: 1;
}

.package-card--featured {
  background: var(--bg-card-featured);
  border-color: rgba(148, 163, 184, 0.38);
  box-shadow: var(--shadow-card-rest-featured);
}

.package-badge {
  display: inline-block;
  margin-bottom: 0.875rem;
  padding: 0.2rem 0.625rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.package-header h3 {
  margin-bottom: 0.375rem;
}

.package-price {
  margin-bottom: 0.125rem;
}

.price-amount {
  font-family: var(--font-mono);
  font-size: clamp(1.375rem, 3vw, 1.625rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.price-note {
  margin-bottom: 0.875rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.package-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: 0.75rem;
}

.package-features,
.care-features {
  list-style: none;
  margin-bottom: 1rem;
  flex: 1;
}

.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  margin-bottom: 0.4rem;
}

.feature-row--included {
  color: var(--text-body);
}

.feature-row--excluded {
  color: var(--text-muted);
}

.feature-status {
  flex-shrink: 0;
  width: 1.125rem;
  text-align: center;
  font-weight: 700;
}

.feature-row--included .feature-status {
  color: var(--accent);
}

.feature-row--excluded .feature-status {
  color: var(--text-muted);
  opacity: 0.85;
}

.feature-row--emphasis {
  font-weight: 600;
  color: var(--text-main);
}

.package-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.pricing-note {
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: 2rem;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--text-muted);
  text-align: center;
}

.services-value-statement {
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: 2.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border-card-subtle);
  border-left: 3px solid rgba(20, 212, 184, 0.45);
  border-radius: var(--radius-sm);
  background: rgba(10, 14, 20, 0.45);
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-body);
}

.services-value-statement strong {
  font-family: var(--font-sans);
  color: var(--text-main);
}

.fix-callout {
  margin-bottom: 3rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--border-card-medium);
  border-radius: var(--radius-md);
  background: rgba(17, 24, 32, 0.82);
  box-shadow: var(--shadow-card-medium);
  transition:
    border-color var(--transition-mid),
    box-shadow var(--transition-mid);
}

.fix-callout-inner {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 260px);
  gap: 1.5rem 2rem;
  align-items: start;
}

.fix-callout-content h3 {
  margin-bottom: 0.75rem;
}

.fix-callout-content p {
  color: var(--text-body);
  font-size: 0.875rem;
  line-height: 1.65;
}

.fix-callout-action {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.fix-price {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-main);
}

.fix-price strong {
  font-size: 1.375rem;
  color: var(--accent);
}

.care-plans {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-soft);
  text-align: center;
}

.care-plans-heading {
  margin-bottom: 0.75rem;
}

.care-plans-intro {
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: 1.75rem;
  color: var(--text-body);
  font-size: 0.875rem;
  line-height: 1.65;
}

.care-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  text-align: left;
}

.care-card {
  background: rgba(19, 27, 36, 0.88);
  border: 1px solid var(--border-card-medium);
  border-radius: var(--radius-md);
  padding: 1.375rem;
  box-shadow: var(--shadow-card-medium);
  transition:
    transform var(--transition-mid),
    border-color var(--transition-mid),
    box-shadow var(--transition-mid);
}

.care-header h4 {
  margin-bottom: 0.25rem;
}

.care-price {
  margin-bottom: 0.75rem;
}

.care-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-body);
  margin-bottom: 0.875rem;
}

.care-note {
  max-width: 40rem;
  margin-inline: auto;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.shared-foundation {
  margin-top: 3rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--border-card-subtle);
  border-radius: var(--radius-md);
  background: rgba(10, 14, 20, 0.42);
  text-align: center;
}

.shared-foundation h3 {
  margin-bottom: 0.625rem;
}

.foundation-intro {
  max-width: 38rem;
  margin-inline: auto;
  margin-bottom: 1.25rem;
  color: var(--text-body);
  font-size: 0.875rem;
  line-height: 1.65;
}

.foundation-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1.5rem;
  max-width: 44rem;
  margin-inline: auto;
  margin-bottom: 1rem;
  list-style: none;
  text-align: left;
}

.foundation-list li {
  position: relative;
  padding-left: 1.125rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-body);
}

.foundation-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
}

.foundation-note {
  max-width: 38rem;
  margin-inline: auto;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-muted);
}


/* =========================
   10. FEATURED WORK
========================= */

#work {
  background-color: var(--bg-page);
  border-bottom: 1px solid var(--border-soft);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card-elevated);
  border: 1px solid var(--border-card-strong);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-card-rest);
  transition:
    transform var(--transition-mid),
    border-color var(--transition-mid),
    box-shadow var(--transition-mid);
}

.project-card h3 {
  margin-bottom: 0.625rem;
}

.project-card p {
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-body);
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  list-style: none;
  margin-bottom: 1.125rem;
}

.project-tags li {
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: rgba(20, 212, 184, 0.04);
  color: var(--text-muted);
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: auto;
}

.project-actions a {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0.25rem 0;
  transition: color var(--transition-fast);
}


/* =========================
   11. HOW IT WORKS
========================= */

#process {
  background-color: var(--bg-section-alt);
  border-bottom: 1px solid var(--border-soft);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  list-style: none;
  counter-reset: process;
}

.process-step {
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 1.375rem;
  border: 1px solid var(--border-card-subtle);
  border-radius: var(--radius-md);
  background: rgba(12, 17, 24, 0.55);
  counter-increment: process;
}

.process-step::before {
  content: counter(process, decimal-leading-zero);
  display: block;
  margin-bottom: 0.625rem;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  opacity: 0.9;
}

.process-step h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.process-step p {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--text-body);
}


/* =========================
   12. FAQ
========================= */

#faq {
  background-color: var(--bg-page);
  border-bottom: 1px solid var(--border-soft);
}

.faq-list {
  max-width: 44rem;
  margin-inline: auto;
}

.faq-list details {
  margin-bottom: 0.75rem;
  border: 1px solid var(--border-card-medium);
  border-radius: var(--radius-md);
  background: rgba(19, 27, 36, 0.88);
  box-shadow: var(--shadow-card-medium);
  overflow: hidden;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.faq-list details[open] {
  border-color: var(--border-strong);
  box-shadow:
    inset 0 1px 0 rgba(20, 212, 184, 0.04),
    0 4px 16px rgba(20, 212, 184, 0.1);
}

.faq-list summary {
  position: relative;
  padding: 1rem 2.75rem 1rem 1.125rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details > p {
  padding: 0 1.125rem 1rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-body);
}

.faq-list details > p + p {
  padding-top: 0;
}


/* =========================
   13. CONTACT
========================= */

#contact {
  position: relative;
  background-color: var(--bg-section-deep);
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
}

#contact::before {
  content: "";
  position: absolute;
  bottom: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: min(600px, 85vw);
  height: min(360px, 50vh);
  background: radial-gradient(
    ellipse at center,
    rgba(20, 212, 184, 0.08) 0%,
    transparent 68%
  );
  pointer-events: none;
}

#contact .container {
  position: relative;
  text-align: center;
}

#contact h2 {
  position: relative;
  display: inline-block;
}

#contact .section-header {
  margin-bottom: 1.25rem;
}

#contact .section-header h2 {
  margin-bottom: 0;
}

#contact h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.625rem;
  width: 55%;
  height: 2px;
  transform: translateX(-50%);
  background: var(--accent);
  border-radius: 999px;
  opacity: 0.55;
  animation: contactGlow 3.2s ease-in-out infinite;
}

#contact .container > p:not(.contact-note) {
  max-width: 38rem;
  margin-inline: auto;
  margin-bottom: 1.5rem;
  color: var(--text-body);
  line-height: 1.75;
}

.contact-email-cta {
  margin-bottom: 0.875rem;
}

.contact-note {
  max-width: 32rem;
  margin-inline: auto !important;
  margin-bottom: 1.75rem !important;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem 2rem;
  list-style: none;
}

.contact-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-list .icon {
  color: var(--accent);
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.contact-list a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-body);
  transition: color var(--transition-fast);
}


/* =========================
   14. FOOTER
========================= */

#footer {
  padding-block: 1.25rem;
  background-color: var(--bg-section-deep);
  border-top: 1px solid var(--border-soft);
}

.footer-inner {
  max-width: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#footer p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-logo {
  height: 1.875rem;
  width: auto;
  opacity: 0.9;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-legal-links a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-body);
  transition: color var(--transition-fast);
}

.footer-legal-links a[aria-current="page"] {
  color: var(--accent);
}


/* =========================
   15. LEGAL PAGES
========================= */

.legal-page {
  padding-top: clamp(5rem, 10vw, 6.5rem);
  padding-bottom: clamp(3rem, 6vw, 4rem);
  background-color: var(--bg-page);
}

.legal-hero {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.legal-hero h1 {
  margin-bottom: 0.5rem;
}

.legal-effective {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.legal-back-link {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content {
  max-width: 48rem;
}

.legal-intro {
  margin-bottom: 1.25rem;
  color: var(--text-body);
  line-height: 1.75;
  font-size: 0.9375rem;
}

.legal-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-card-subtle);
}

.legal-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.legal-section h2 {
  margin-bottom: 0.75rem;
  font-size: 1.125rem;
}

.legal-section p {
  color: var(--text-body);
  line-height: 1.75;
  font-size: 0.9375rem;
}

.legal-section ul {
  margin: 0.75rem 0 1rem;
  padding-left: 1.25rem;
}

.legal-section li {
  margin-bottom: 0.4rem;
  color: var(--text-body);
  line-height: 1.65;
  font-size: 0.9375rem;
}

.legal-section code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--text-main);
}

.legal-section a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* =========================
   ANIMATIONS (KEYFRAMES)
========================= */

@keyframes contactGlow {
  0%,
  100% {
    opacity: 0.35;
    transform: translateX(-50%) scaleX(0.8);
  }

  50% {
    opacity: 0.7;
    transform: translateX(-50%) scaleX(1);
  }
}

@keyframes softFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}


/* =========================
   16. HOVER-CAPABLE DEVICE EFFECTS
========================= */

a:focus-visible,
.btn:focus-visible,
.nav-logo:focus-visible,
.nav-list a:focus-visible,
.project-actions a:focus-visible,
.faq-list summary:focus-visible,
.legal-back-link:focus-visible,
.footer-legal-links a:focus-visible,
.legal-section a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .nav-list a:not(.nav-cta):hover {
    color: var(--accent);
  }

  .nav-cta:hover {
    background: rgba(20, 212, 184, 0.2);
    border-color: var(--accent);
    color: var(--accent-hover) !important;
  }

  .btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #051018;
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(20, 212, 184, 0.32);
  }

  .btn-secondary:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #071018;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(20, 212, 184, 0.24);
  }

  .package-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    box-shadow:
      inset 0 1px 0 rgba(20, 212, 184, 0.06),
      var(--shadow-elevated);
  }

  .package-card:hover::before {
    left: 120%;
  }

  .care-card:hover,
  .project-card:hover {
    transform: translateY(-3px);
    border-color: rgba(20, 212, 184, 0.35);
    box-shadow: var(--shadow-elevated);
  }

  .fix-callout:hover {
    border-color: rgba(20, 212, 184, 0.28);
  }

  .project-actions a:hover {
    color: var(--accent-hover);
  }

  .faq-list details:hover {
    border-color: rgba(20, 212, 184, 0.32);
  }

  .contact-list a:hover {
    color: var(--accent);
  }

  .footer-legal-links a:hover {
    color: var(--accent);
  }
}


/* =========================
   17. RESPONSIVE BREAKPOINTS
========================= */

@media (min-width: 1024px) {
  .process-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .package-grid {
    grid-template-columns: 1fr;
    max-width: 28rem;
    margin-inline: auto;
  }

  .package-card--featured {
    order: -1;
  }
}

@media (max-width: 768px) {
  .project-grid,
  .care-grid,
  .foundation-list {
    grid-template-columns: 1fr;
  }

  .fix-callout-inner {
    grid-template-columns: 1fr;
  }

  .fix-callout-action {
    align-items: stretch;
  }

  .fix-callout-action .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --scroll-offset: 6.5rem;
    --text-body: var(--text-muted);
  }

  body {
    color: var(--text-muted);
  }

  #site-nav .nav-inner.container {
    padding-inline: clamp(0.75rem, 3vw, 1rem);
  }

  .nav-inner {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.5rem;
    padding-block: 0.5rem;
  }

  .nav-logo {
    flex: 0 0 auto;
  }

  .nav-list {
    flex: 0 1 auto;
    justify-content: flex-end;
    gap: clamp(0.35rem, 2.5vw, 0.625rem);
  }

  .nav-list a {
    font-size: 0.72rem;
  }

  .nav-cta {
    padding: 0.3rem 0.5rem !important;
    font-size: 0.68rem !important;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .value-list {
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
  }

  .value-item:not(:last-child)::after {
    display: none;
  }

  .value-item::before {
    content: "";
    width: 4px;
    height: 4px;
    margin-right: 0.625rem;
    border-radius: 50%;
    background-color: var(--accent);
    opacity: 0.75;
    flex-shrink: 0;
  }

  .care-features .feature-row--emphasis {
    color: var(--text-muted);
  }

  .project-tags li {
    border-color: rgba(148, 163, 184, 0.24);
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.875rem;
  }
  
  .footer-brand {
    display: contents;
  }
  
  .footer-brand p {
    order: 1;
  }
  
  .footer-legal {
    order: 2;
  }
  
  .footer-logo {
    order: 3;
    position: static;
    margin-top: 0.25rem;
  }
  
  .footer-legal-links {
    justify-content: center;
  }
}

@media (max-width: 360px) {
  .nav-inner {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-list {
    flex: 1 1 100%;
    justify-content: center;
    gap: 0.6rem;
  }

  .nav-list a {
    font-size: 0.68rem;
  }

  .package-card,
  .care-card,
  .project-card {
    padding: 1.25rem;
  }

  .btn {
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
  }
}


/* =========================
   18. ACCESSIBILITY AND REDUCED MOTION
========================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
