/* =========================================================
 Oakridge Chiropractic - Demo Clinic Site
 ========================================================= */

:root {
  --teal-900: #0a5558;
  --teal-700: #0d7377;
  --teal-500: #14919b;
  --teal-100: #e8f5f5;
  --teal-50: #f4fbfb;
  --sage: #2a9d8f;
  --charcoal: #1a2e35;
  --slate: #3d5259;
  --muted: #6b7f86;
  --cream: #faf8f5;
  --white: #ffffff;
  --border: #dce8e9;
  --shadow-sm: 0 1px 3px rgba(26, 46, 53, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 46, 53, 0.08);
  --shadow-lg: 0 20px 50px rgba(26, 46, 53, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --max: 1120px;
  --header-h: 76px;
  --demo-banner-h: 32px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--demo-banner-h) + var(--header-h) + 16px);
}

body {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--teal-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--teal-900);
}

ul {
  list-style: none;
}

/* ---------- Utilities ---------- */

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.section {
  padding: 5.5rem 0;
}

.section--alt {
  background: var(--white);
}

.section--teal {
  background: linear-gradient(160deg, var(--teal-700) 0%, var(--teal-900) 100%);
  color: var(--white);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin-bottom: 0.75rem;
}

.section--teal .eyebrow {
  color: rgba(255, 255, 255, 0.75);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.55rem);
  font-weight: 550;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  margin-bottom: 1rem;
}

.section--teal .section-title {
  color: var(--white);
}

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

.section--teal .section-lead {
  color: rgba(255, 255, 255, 0.85);
}

.section-header {
  margin-bottom: 3rem;
}

.section-header--center {
  text-align: center;
}

.section-header--center .section-lead {
  margin-inline: auto;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    transform 0.2s var(--ease),
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--teal-700);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(13, 115, 119, 0.3);
}

.btn--primary:hover {
  background: var(--teal-900);
  color: var(--white);
}

.btn--secondary {
  background: var(--white);
  color: var(--teal-700);
  border-color: var(--border);
}

.btn--secondary:hover {
  border-color: var(--teal-500);
  color: var(--teal-900);
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn--light {
  background: var(--white);
  color: var(--teal-700);
}

.btn--light:hover {
  background: var(--teal-50);
  color: var(--teal-900);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ---------- Demo banner ---------- */

.demo-banner {
  position: sticky;
  top: 0;
  z-index: 110;
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.35;
  text-align: center;
  padding: 0.4rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-banner a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}

.demo-banner a:hover {
  color: #ffffff;
}

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

.site-header {
  position: sticky;
  top: var(--demo-banner-h);
  z-index: 100;
  min-height: var(--header-h);
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img,
.logo svg {
  height: 44px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 0.05rem;
  min-width: 0;
}

.nav a {
  padding: 0.45rem 0.55rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  transition:
    color 0.15s ease,
    background 0.15s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--teal-700);
  background: var(--teal-100);
}

.header-cta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  flex-shrink: 0;
}

/* Stack label above number - never side-by-side */
.header-phone {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.12rem;
  text-decoration: none;
  line-height: 1.15;
  white-space: nowrap;
  text-align: right;
}

.header-phone-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1;
}

.header-phone-number {
  display: block;
  font-size: 0.92rem;
  color: var(--charcoal);
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.header-cta .btn {
  flex-shrink: 0;
  padding: 0.7rem 1.15rem;
  font-size: 0.88rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  place-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition:
    transform 0.25s var(--ease),
    opacity 0.2s ease;
}

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

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

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

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

.hero {
  position: relative;
  padding: 3.5rem 0 5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: var(--teal-100);
  color: var(--teal-900);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.25);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.35rem);
  font-weight: 550;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--charcoal);
  margin-bottom: 1.15rem;
}

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

.hero-text {
  font-size: 1.12rem;
  color: var(--slate);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.hero-meta-item strong {
  font-size: 0.95rem;
  color: var(--charcoal);
}

.hero-meta-item span {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
}

.hero-visual-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}

.hero-visual-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card {
  position: absolute;
  bottom: -1.25rem;
  left: -1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  max-width: 220px;
}

.hero-card strong {
  display: block;
  font-size: 1.35rem;
  font-family: var(--font-display);
  color: var(--teal-700);
  line-height: 1.1;
}

.hero-card span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- Trust bar ---------- */

.trust-bar {
  background: var(--white);
  border-block: 1px solid var(--border);
  padding: 1.35rem 0;
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.75rem;
  text-align: center;
}

.trust-item {
  font-size: 0.9rem;
  color: var(--slate);
  font-weight: 500;
}

.trust-item strong {
  color: var(--charcoal);
}

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

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.about-body p {
  color: var(--slate);
}

.about-points {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.about-point {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  background: var(--teal-50);
  border-radius: 10px;
  border: 1px solid var(--teal-100);
}

.about-point-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal-700);
  color: white;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.about-point strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.about-point span {
  font-size: 0.88rem;
  color: var(--muted);
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #b8d9db;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--teal-100);
  color: var(--teal-700);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 550;
  margin-bottom: 0.55rem;
  color: var(--charcoal);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--slate);
  margin-bottom: 0.85rem;
}

.service-card .duration {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal-700);
  letter-spacing: 0.02em;
}

/* ---------- Conditions ---------- */

.conditions-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.conditions-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.condition-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--charcoal);
}

.condition-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
  flex-shrink: 0;
}

.conditions-note {
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: var(--radius);
  padding: 1.5rem;
  font-size: 0.95rem;
  color: var(--slate);
}

.conditions-note strong {
  color: var(--charcoal);
}

/* ---------- Fees ---------- */

.fees-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.fee-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  position: relative;
}

.fee-card--featured {
  border-color: var(--teal-500);
  box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, var(--teal-50) 0%, var(--white) 40%);
}

.fee-card--featured::before {
  content: "Most popular";
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal-700);
  color: white;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}

.fee-card h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 0.35rem;
}

.fee-price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 550;
  color: var(--teal-700);
  line-height: 1;
  margin: 0.75rem 0 0.35rem;
}

.fee-price small {
  font-size: 1rem;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--muted);
}

.fee-card > p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.15rem;
}

.fee-card ul {
  display: grid;
  gap: 0.5rem;
}

.fee-card li {
  font-size: 0.9rem;
  color: var(--slate);
  padding-left: 1.3rem;
  position: relative;
}

.fee-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sage);
  font-weight: 700;
}

.fees-note {
  margin-top: 1.75rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Team ---------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.team-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.team-photo {
  aspect-ratio: 3 / 4;
  min-height: 100%;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-body {
  padding: 1.5rem 1.5rem 1.5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-body h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 550;
  margin-bottom: 0.2rem;
}

.team-role {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--teal-700);
  margin-bottom: 0.85rem;
}

.team-body p {
  font-size: 0.95rem;
  color: var(--slate);
}

.team-creds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.team-creds span {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  background: var(--teal-100);
  color: var(--teal-900);
  border-radius: 6px;
}

/* ---------- Visit / What to expect ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}

.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal-700);
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 0.45rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--slate);
}

/* ---------- Hours & Location ---------- */

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.info-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.info-panel h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 550;
  margin-bottom: 1.25rem;
  color: var(--charcoal);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table tr {
  border-bottom: 1px solid var(--border);
}

.hours-table tr:last-child {
  border-bottom: none;
}

.hours-table td {
  padding: 0.7rem 0;
  font-size: 0.95rem;
}

.hours-table td:first-child {
  font-weight: 600;
  color: var(--charcoal);
}

.hours-table td:last-child {
  text-align: right;
  color: var(--slate);
}

.hours-table tr.is-closed td:last-child {
  color: var(--muted);
}

.address-block {
  display: grid;
  gap: 1.15rem;
}

.address-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.address-item svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  color: var(--teal-700);
  margin-top: 2px;
}

.address-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.address-item p,
.address-item a {
  font-size: 1rem;
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 550;
}

.address-item a:hover {
  color: var(--teal-700);
}

.map-placeholder {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal-100), #d4ebe8);
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.map-placeholder p {
  font-size: 0.9rem;
  color: var(--slate);
  max-width: 16rem;
}

.map-placeholder strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--teal-900);
  margin-bottom: 0.35rem;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 740px;
  margin-inline: auto;
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.15rem 1.35rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--charcoal);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--teal-700);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-answer {
  padding: 0 1.35rem 1.25rem;
  color: var(--slate);
  font-size: 0.95rem;
}

.faq-item .faq-answer p + p {
  margin-top: 0.75rem;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.5rem;
  max-width: 28rem;
}

.contact-channels {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-channel {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}

.contact-channel:hover {
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
}

.contact-channel svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  opacity: 0.9;
  margin-top: 2px;
}

.contact-channel strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.75;
  margin-bottom: 0.15rem;
}

.contact-channel span {
  font-weight: 600;
  font-size: 1.02rem;
}

.contact-form {
  background: var(--white);
  color: var(--charcoal);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.contact-form h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.contact-form > p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.35rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--charcoal);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--cream);
  color: var(--charcoal);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(20, 145, 155, 0.15);
  background: var(--white);
}

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

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.85rem;
}

.form-success {
  display: none;
  padding: 1rem;
  background: var(--teal-100);
  border-radius: 10px;
  color: var(--teal-900);
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.form-success.is-visible {
  display: block;
}

/* ---------- Policies strip ---------- */

.policies {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.policies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.policy h4 {
  font-size: 0.95rem;
  font-weight: 650;
  margin-bottom: 0.4rem;
  color: var(--charcoal);
}

.policy p {
  font-size: 0.88rem;
  color: var(--muted);
}

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

.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 0 0;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 22rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: grid;
  gap: 0.5rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: white;
}

.footer-col p {
  font-size: 0.92rem;
  line-height: 1.55;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

.demo-credit {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  padding: 0.65rem 1rem 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-credit a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.demo-credit a:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Responsive ---------- */

/* Phone block: stacked label + number from tablet up */
@media (min-width: 900px) {
  .header-phone {
    display: flex;
    flex-direction: column;
  }
}

/* Mid widths: hide nav links, keep logo + phone + book + menu feel via hamburger earlier */
@media (max-width: 1100px) {
  .nav a {
    padding: 0.4rem 0.4rem;
    font-size: 0.82rem;
  }

  .header-cta {
    gap: 0.65rem;
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .conditions-wrap,
  .location-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    left: 1rem;
    bottom: 1rem;
  }

  .services-grid,
  .fees-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

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

/* Collapse primary nav earlier so header never crushes the phone block */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: calc(var(--demo-banner-h) + var(--header-h)) 0 auto 0;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.25rem 1.25rem;
    gap: 0.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.3s var(--ease),
      opacity 0.25s ease;
    box-shadow: var(--shadow-md);
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
  }

  .header-phone {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  .header-cta .btn {
    display: none;
  }
}

@media (max-width: 760px) {
  .demo-banner {
    font-size: 0.68rem;
    padding: 0.45rem 0.85rem;
  }

  :root {
    --demo-banner-h: 40px;
  }

  .header-phone-label {
    display: none;
  }

  .header-phone-number {
    font-size: 0.88rem;
  }

  .services-grid,
  .fees-grid,
  .steps,
  .conditions-list,
  .form-row,
  .footer-main {
    grid-template-columns: 1fr;
  }

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

  .team-photo {
    aspect-ratio: 16 / 10;
    max-height: 260px;
  }

  .team-body {
    padding: 0 1.35rem 1.5rem;
  }

  .section {
    padding: 3.75rem 0;
  }

  .hero {
    padding-top: 2rem;
  }
}

/* ---------- Reduced motion ---------- */

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

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