/* yourhome.help — single stylesheet, no framework */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/fraunces.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/manrope.woff2") format("woff2");
}

:root {
  --white: #ffffff;
  --mist: #f6f7f7;
  --mist-2: #eef1f0;
  --line: #e2e6e5;
  --charcoal: #22272b;
  --ink-soft: #4d555b;
  --ink-mute: #6b7479;
  --sea: #0a8f89;        /* accessible seafoam for text & buttons */
  --sea-deep: #077570;
  --sea-bright: #3fc1b5; /* decorative Tiffany/seafoam */
  --sea-tint: #e7f5f3;
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(34, 39, 43, 0.04), 0 18px 40px -24px rgba(34, 39, 43, 0.25);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 40px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--sea-deep);
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  font-variation-settings: "opsz" 96;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--charcoal);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: 3px;
}

/* ---------- Logo ---------- */

.logo {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.035em;
  color: var(--charcoal);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

.logo .dot {
  color: var(--sea);
}

.logo .tld {
  color: var(--sea);
  font-weight: 600;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--charcoal);
}

.nav .btn {
  color: var(--white);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  margin-right: -10px;
  cursor: pointer;
  color: var(--charcoal);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (max-width: 820px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--pad) 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 14px 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--mist-2);
  }

  .nav .btn {
    margin-top: 16px;
    border-bottom: 0;
    justify-content: center;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--sea);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--sea-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--charcoal);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.92rem;
}

.btn .arrow {
  transition: transform 0.18s ease;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* ---------- Eyebrow ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sea-deep);
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--sea-bright);
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(32px, 6vw, 72px) 0 clamp(64px, 9vw, 112px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.9rem, 7.2vw, 5.6rem);
  line-height: 1;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}

.hero h1 em {
  font-style: normal;
  color: var(--sea);
}

.hero .lede {
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 30em;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.hero-phone {
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-phone:hover {
  color: var(--sea-deep);
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--mist-2);
}

.hero-tag {
  position: absolute;
  left: -28px;
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  line-height: 1.35;
}

.hero-tag .pin {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--sea-tint);
  color: var(--sea-deep);
  display: grid;
  place-items: center;
}

.hero-tag strong {
  display: block;
  font-weight: 700;
}

.hero-tag p span {
  display: block;
  color: var(--ink-mute);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
  }

  .hero-media img {
    aspect-ratio: 4 / 3.4;
  }

  .hero-tag {
    left: 16px;
    bottom: 16px;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(72px, 10vw, 128px) 0;
}

.section-mist {
  background: var(--mist);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section-head h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
}

.section-head p {
  color: var(--ink-soft);
  margin: 0;
  max-width: 30em;
}

@media (max-width: 820px) {
  .section-head {
    grid-template-columns: 1fr;
  }
}

/* ---------- Services ---------- */

.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 32px);
}

.service {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.service-media {
  position: relative;
  overflow: hidden;
}

.service-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--mist-2);
}

.service-index {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.service-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(28px, 3.6vw, 44px);
}

.service h3 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

.service p {
  color: var(--ink-soft);
  max-width: 32em;
  margin-bottom: 30px;
}

.service .btn {
  margin-top: auto;
  align-self: flex-start;
}

@media (max-width: 820px) {
  .services {
    grid-template-columns: 1fr;
  }
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}

.about-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--mist-2);
}

.about-copy h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  margin-bottom: 28px;
}

.about-copy .statement {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.1vw, 1.6rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  font-variation-settings: "opsz" 32;
  margin-bottom: 40px;
}

.principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.principles li {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.principles strong {
  display: block;
  color: var(--charcoal);
  font-weight: 700;
  margin-bottom: 4px;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-media img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 560px) {
  .principles {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}

.contact-intro h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  margin-bottom: 20px;
}

.contact-intro > p {
  color: var(--ink-soft);
  margin-bottom: 36px;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.contact-list li {
  display: flex;
  gap: 14px;
  align-items: center;
}

.contact-list .ic {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--sea-deep);
  display: grid;
  place-items: center;
}

.contact-list small {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.contact-list a,
.contact-list span {
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 600;
}

.contact-list a:hover {
  color: var(--sea-deep);
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label,
.field legend {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
}

.field .opt {
  font-weight: 500;
  color: var(--ink-mute);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sea);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(10, 143, 137, 0.14);
}

.field input[aria-invalid="true"] {
  border-color: #b4463b;
}

.field-error {
  font-size: 0.85rem;
  color: #a23b31;
  min-height: 0;
}

.field-error:empty {
  display: none;
}

fieldset.field {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

fieldset.field legend {
  padding: 0;
  margin-bottom: 8px;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.choice span {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--mist);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all 0.15s ease;
}

.choice input:checked + span {
  background: var(--sea-tint);
  border-color: var(--sea);
  color: var(--sea-deep);
  font-weight: 600;
}

.choice input:focus-visible + span {
  outline: 2px solid var(--sea);
  outline-offset: 2px;
}

.consents {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 4px;
  display: grid;
  gap: 16px;
}

.consents-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0;
}

.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink-soft);
  cursor: pointer;
}

.consent input {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  border: 1.5px solid #b9c2c0;
  border-radius: 6px;
  background: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.consent input::after {
  content: "";
  width: 6px;
  height: 11px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
  opacity: 0;
}

.consent input:checked {
  background: var(--sea);
  border-color: var(--sea);
}

.consent input:checked::after {
  opacity: 1;
}

.consent strong {
  color: var(--charcoal);
  font-weight: 700;
}

.consent-links {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin: 0;
}

.form-footer {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 6px;
}

.form-note {
  font-size: 0.84rem;
  color: var(--ink-mute);
  margin: 0;
  max-width: 28em;
}

.form-status {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.92rem;
}

.form-status.error {
  color: #a23b31;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.hidden-field {
  display: none;
}

.form-success {
  text-align: center;
  padding: clamp(24px, 5vw, 56px) 8px;
}

.form-success .check {
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--sea-tint);
  color: var(--sea-deep);
  display: grid;
  place-items: center;
}

.form-success h3 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.form-success p {
  color: var(--ink-soft);
  max-width: 26em;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-footer .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  background: var(--white);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.footer-brand .logo {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.footer-brand address {
  font-style: normal;
  color: var(--ink-soft);
  line-height: 1.8;
}

.footer-brand address a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-brand address a:hover {
  color: var(--sea-deep);
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--charcoal);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--mist-2);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--ink-mute);
}

.footer-bottom p {
  margin: 0;
}

.footer-legal a {
  color: var(--ink-mute);
}

/* ---------- Legal pages ---------- */

.legal-hero {
  background: var(--mist);
  padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px);
}

.legal-hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 3.8rem);
  margin-bottom: 16px;
}

.legal-hero p {
  color: var(--ink-soft);
  margin: 0;
}

.legal {
  padding: clamp(48px, 7vw, 88px) 0 clamp(72px, 10vw, 120px);
}

.legal-body {
  max-width: 760px;
}

.legal-body h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  margin: 2.4em 0 0.7em;
  font-variation-settings: "opsz" 48;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body h3 {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 1.8em 0 0.5em;
}

.legal-body p,
.legal-body li {
  color: var(--ink-soft);
}

.legal-body ul {
  padding-left: 1.2em;
  margin: 0 0 1.2em;
}

.legal-body li {
  margin-bottom: 0.5em;
}

.legal-body strong {
  color: var(--charcoal);
}

.callout {
  background: var(--sea-tint);
  border-left: 3px solid var(--sea);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  margin: 0 0 1.4em;
}

.callout p {
  color: var(--charcoal);
  margin: 0;
}

.callout p + p {
  margin-top: 0.6em;
}

.operator-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 0 0 2em;
  background: var(--white);
}

.operator-box p {
  margin: 0;
  color: var(--charcoal);
}

.operator-box p + p {
  margin-top: 4px;
  color: var(--ink-soft);
}

.legal-toc {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 0 0 2.4em;
}

.legal-toc p {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 10px;
}

.legal-toc ol {
  margin: 0;
  padding-left: 1.2em;
  columns: 2;
  column-gap: 32px;
  font-size: 0.95rem;
}

.legal-toc li {
  margin-bottom: 4px;
  break-inside: avoid;
}

.legal-toc a {
  color: var(--ink-soft);
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--sea-deep);
  text-decoration: underline;
}

@media (max-width: 560px) {
  .legal-toc ol {
    columns: 1;
  }
}

/* ---------- Simple pages (thank you / 404) ---------- */

.simple-page {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 0;
}

.simple-page h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 16px;
}

.simple-page p {
  color: var(--ink-soft);
  max-width: 30em;
  margin: 0 auto 28px;
}
