/* Aide & Abode — single-page site
   Palette: black, white, and aqua */

:root {
  --ink: #0a0a0a;
  --ink-muted: #3d4a4b;
  --aqua: #00b3b8;
  --aqua-deep: #007a7e;
  --aqua-hover: #005c5f;
  --aqua-soft: #e0f7f8;
  --aqua-mist: #f5fbfc;
  --paper: #ffffff;
  --line: #cfe8e9;
  --focus: #007a7e;
  --shadow: 0 14px 40px rgba(10, 10, 10, 0.08);
  --shadow-soft: 0 8px 24px rgba(10, 10, 10, 0.06);
  --radius: 1.25rem;
  --radius-sm: 0.85rem;
  --header-h: 4.5rem;
  --font-sans: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Fraunces", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --max: 70rem;
  --space: clamp(1.25rem, 4vw, 2rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
.logo-name,
.footer-name,
.success-title {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.05rem, 5vw, 3.35rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  margin: 0 0 0.75rem;
}

h3 {
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--aqua-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--aqua-hover);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  background: var(--aqua-deep);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
  color: #fff;
}

.container {
  width: min(100% - (var(--space) * 2), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 122, 126, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.logo:hover {
  color: var(--ink);
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 0.85rem;
  background: var(--aqua-deep);
  font-size: 1.2rem;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 122, 126, 0.25);
}

.logo-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.logo-name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-tag {
  font-size: 0.75rem;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--paper);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
}

.nav-toggle-bar {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--aqua-deep);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--aqua-deep);
  color: #fff;
  border-color: var(--aqua-deep);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--aqua-hover);
  border-color: var(--aqua-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--aqua-deep);
  border-color: rgba(0, 122, 126, 0.35);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--aqua-soft);
  color: var(--aqua-hover);
}

.btn-block {
  width: 100%;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem);
}

.hero-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 85% 20%, rgba(224, 247, 248, 0.95), transparent 60%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(0, 179, 184, 0.14), transparent 55%),
    linear-gradient(180deg, #f5fbfc 0%, #ffffff 100%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aqua-deep);
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-muted);
  max-width: 38rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 1.5rem;
}

.hero-points {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-points li::before {
  content: "✓";
  color: var(--aqua-deep);
  font-weight: 700;
}

.hero-panel {
  display: grid;
  gap: 1rem;
  justify-items: stretch;
}

.hero-card {
  background: var(--paper);
  border: 1px solid rgba(0, 122, 126, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card-main {
  padding: 1.5rem 1.6rem 1.35rem;
}

.hero-card-kicker {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--aqua-deep);
}

.hero-card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.hero-card-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.05rem;
}

.icon-bubble,
.service-icon,
.why-icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.85rem;
  background: var(--aqua-soft);
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.hero-card-note {
  padding: 1rem 1.25rem;
  background: var(--aqua-deep);
  color: #fff;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0, 122, 126, 0.22);
}

.hero-card-note p {
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.section {
  padding: clamp(3rem, 7vw, 5.25rem) 0;
}

.about {
  background: var(--paper);
  border-block: 1px solid rgba(0, 122, 126, 0.10);
}

.split {
  display: grid;
  grid-template-columns: minmax(14rem, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.prose {
  font-size: 1.0625rem;
  color: var(--ink-muted);
}

.prose p + p {
  margin-top: 1rem;
}

.section-intro.centre {
  text-align: center;
  max-width: 46rem;
  margin: 0 auto 2.4rem;
}

.section-lede {
  color: var(--ink-muted);
  font-size: 1.08rem;
}

.services {
  background:
    linear-gradient(180deg, #f5fbfc 0%, #e0f7f8 100%);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.service-card,
.why-card {
  background: var(--paper);
  border: 1px solid rgba(0, 122, 126, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.service-card {
  padding: 1.6rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.service-icon {
  width: 3rem;
  height: 3rem;
  font-size: 1.45rem;
  margin-bottom: 0.65rem;
  background: linear-gradient(160deg, var(--aqua-soft), #f5fbfc);
}

.service-card p,
.why-card p {
  color: var(--ink-muted);
}

.service-card ul {
  margin: auto 0 0;
  padding: 0.85rem 0 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.service-card li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--ink);
  font-size: 0.98rem;
}

.service-card li::before {
  content: "•";
  position: absolute;
  left: 0.15rem;
  color: var(--aqua-deep);
  font-weight: 700;
}

.why {
  background: var(--paper);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.why-card {
  padding: 1.4rem 1.25rem 1.3rem;
}

.why-icon {
  margin-bottom: 0.85rem;
  background: var(--aqua-soft);
}

.contact {
  background:
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(0, 179, 184, 0.12), transparent 55%),
    var(--aqua-mist);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-list {
  list-style: none;
  margin: 1.5rem 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.contact-list li {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.contact-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--aqua-deep);
}

.contact-value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.35rem;
  overflow-wrap: anywhere;
}

.contact-list a {
  overflow-wrap: anywhere;
}

.contact-or {
  margin: 0;
  color: var(--ink-muted);
}

.form-note {
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.form-wrap {
  background: var(--paper);
  border: 1px solid rgba(0, 122, 126, 0.12);
  border-radius: calc(var(--radius) + 0.15rem);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.quote-form {
  display: grid;
  gap: 1rem;
}

.quote-form[hidden],
[hidden] {
  display: none !important;
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

.form-row label {
  font-weight: 600;
}

.optional {
  font-weight: 500;
  color: var(--ink-muted);
  font-size: 0.9em;
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #b9d5d6;
  border-radius: 0.7rem;
  padding: 0.7rem 0.85rem;
  min-height: 2.85rem;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--aqua);
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(0, 122, 126, 0.28);
  border-color: var(--aqua-deep);
}

.form-success {
  text-align: center;
  padding: 2rem 0.5rem;
}

.success-title {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
  color: var(--aqua-deep);
}

.site-footer {
  background: #0a0a0a;
  color: #d4d4d4;
  padding: 2rem 0;
}

.footer-inner {
  display: grid;
  gap: 1.1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-name {
  margin: 0;
  color: #fff;
  font-size: 1.1rem;
}

.footer-tag,
.footer-copy,
.footer-disclaimer {
  margin: 0;
  font-size: 0.92rem;
  color: #cfcfcf;
}

.footer-copy {
  display: grid;
  gap: 0.45rem;
}

.footer-disclaimer {
  max-width: 48rem;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .section-intro.centre {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0.75rem var(--space) 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list a {
    display: block;
    padding: 0.75rem 0.25rem;
  }

  .nav-cta {
    width: 100%;
  }

  .logo-tag {
    display: none;
  }

  .logo-name {
    white-space: normal;
    line-height: 1.2;
  }
}

@media (max-width: 640px) {
  .card-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.card-grid > .service-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.form-error {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: #fdecec;
  color: #8a1c1c;
}
