/* Theme B — KindAid. Preview: /?theme=b */
@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap");

:root {
  --ivory: #fcf8ec;
  --paper: #ffffff;
  --navy: #620035;
  --navy-deep: #4a0028;
  --ink: #620035;
  --amber: #ffca24;
  --coral: #ff4121;
  --stone: #efe6c9;
  --muted: #68665e;
  --line: rgba(98, 0, 53, 0.12);
  --shadow: 0 18px 40px rgba(98, 0, 53, 0.08);
  --mist: #fcf8ec;
  --sage: #620035;
  --amber-soft: #fff3c4;
  --radius: 4px;
  --radius-sm: 4px;
  --pill: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: "Vazirmatn", Tahoma, sans-serif;
  line-height: 1.9;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.container { width: min(1280px, calc(100% - 56px)); margin-inline: auto; }

/* Trust + header */
.trust-bar {
  min-height: 42px;
  display: flex;
  align-items: center;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.trust-inner { display: flex; justify-content: space-between; gap: 24px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ivory);
  border-bottom: 0;
}
.header-inner {
  width: min(1280px, calc(100% - 56px));
  margin-inline: auto;
  min-height: 82px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 18px;
}
.brand {
  display: flex;
  flex-direction: column;
  width: max-content;
  color: var(--navy);
  line-height: 1.15;
  flex-shrink: 0;
}
.brand-mark { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.brand-subtitle {
  color: var(--coral);
  font-size: 11px;
  margin-top: 4px;
  letter-spacing: .08em;
  font-weight: 700;
}
.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 14px;
  flex-wrap: nowrap;
  min-width: 0;
}
.main-nav > a,
.nav-dropdown-trigger {
  position: relative;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  white-space: nowrap;
  border-radius: 0;
}
.main-nav > a::after,
.nav-dropdown-trigger::after { display: none; }
.main-nav > a:hover,
.nav-dropdown-trigger:hover { background: transparent; color: var(--coral); }
.main-nav > a.active,
.nav-dropdown.active .nav-dropdown-trigger,
.nav-dropdown-trigger.active {
  background: transparent;
  color: var(--coral);
}
.nav-caret { font-size: 11px; opacity: .7; }
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  max-width: 340px;
  padding: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .18s ease;
  z-index: 30;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  white-space: normal;
  line-height: 1.6;
  border-radius: 0;
}
.nav-dropdown-menu a::after { display: none; }
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active { background: var(--ivory); color: var(--coral); }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(98, 0, 53, .2);
  border-radius: 0;
  background: var(--paper);
  padding: 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy); border-radius: 2px; }
.mobile-nav-panel { display: none; background: var(--ivory); }
.phone-link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 0;
  min-height: 48px;
  padding-inline: 22px;
  color: #fff;
  background: var(--coral);
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
}
.phone-link:hover { background: var(--navy); }

/* Hero — KindAid split: cream copy + full-bleed photo */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 0;
  display: block;
  padding: 0;
  overflow: visible;
  background: var(--ivory);
}
.hero::before,
.hero::after { display: none; }
.hero-grid {
  position: relative;
  z-index: 1;
  min-height: min(86vh, 760px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: stretch;
  gap: 0;
  width: 100%;
  text-align: right;
}
.hero-copy {
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 72px;
  padding-inline-end: 48px;
  padding-inline-start: max(28px, calc((100vw - 1280px) / 2 + 28px));
}
.hero-copy .eyebrow {
  background: transparent;
  border: 0;
  color: var(--navy);
  letter-spacing: 0;
  justify-content: flex-start;
  padding: 0;
  margin-bottom: 18px;
  font-size: 18px;
  font-weight: 600;
}
.hero-copy .eyebrow::before { display: none; }
.hero-copy h1 {
  color: var(--navy);
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.55;
  letter-spacing: -.02em;
}
.hero-intro {
  max-width: 520px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 2;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
  justify-content: flex-start;
}
.hero .button.primary {
  background: var(--coral);
  color: #fff;
}
.hero .button.primary:hover {
  background: var(--navy);
  color: #fff;
}
.hero .button.secondary {
  background: var(--amber);
  border: 0;
  color: var(--navy);
}
.hero .button.secondary:hover {
  background: var(--navy);
  color: #fff;
}
.hero .trust-points {
  justify-content: flex-start;
  color: var(--navy);
  gap: 10px;
  margin-top: 28px;
}
.hero .trust-points span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber);
  border: 0;
  border-radius: 0;
  padding: 10px 14px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}
.hero .trust-points span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--navy);
  flex-shrink: 0;
}
.hero .trust-points span + span {
  border-inline-start: 0;
  padding-inline-start: 14px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--coral);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.eyebrow::before { display: none; }
h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.45;
  letter-spacing: -.03em;
  font-weight: 800;
}
.button {
  min-height: 54px;
  padding: 0 28px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: .18s ease-out;
  border: 0;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(98, 0, 53, .16); }
.button.primary { background: var(--coral); color: white; }
.button.primary:hover { background: var(--navy); color: #fff; }
.button.secondary {
  border: 0;
  color: var(--navy);
  background: var(--amber);
}
.button.secondary:hover { background: var(--navy); color: #fff; }
.trust-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}
.trust-points span {
  padding: 8px 14px;
  position: relative;
  border: 0;
  background: transparent;
  border-radius: 0;
}
.trust-points span:last-child { border-left: 0; }
.trust-points span::before { content: none; }
.hero-photo {
  position: relative;
  inset: auto;
  z-index: 0;
  max-width: none;
  height: auto;
  min-height: min(86vh, 760px);
}
.hero-photo::before,
.hero-photo::after { display: none; }
.hero-photo > img {
  width: 100%;
  height: 100%;
  min-height: min(86vh, 760px);
  object-fit: cover;
  border-radius: 0;
  aspect-ratio: auto;
  animation: none;
  box-shadow: none;
}
.hero-frame {
  position: absolute;
  z-index: 2;
  width: 148px;
  height: 168px;
  bottom: 56px;
  inset-inline-start: -42px;
  border: 10px solid var(--amber);
  overflow: hidden;
  background: var(--ivory);
  pointer-events: none;
}
.hero-frame img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

/* Content blocks */
.content-section { padding: 88px 0; }
.article-grid { display: grid; grid-template-columns: 220px 1fr; gap: 64px; }
.section-kicker {
  position: sticky;
  top: 120px;
  align-self: start;
  color: var(--sage);
  padding: 0;
  border: 0;
}
.section-kicker span { display: inline-block; font-size: 13px; margin-bottom: 10px; font-weight: 700; }
.section-kicker strong { display: block; color: var(--navy); font-size: 28px; line-height: 1.55; }
.prose { max-width: 920px; }
.prose h2 { color: var(--navy); font-size: 30px; line-height: 1.55; margin: 0 0 20px; }
.prose h2:not(:first-child) { margin-top: 56px; }
.prose p { margin: 0 0 20px; color: var(--muted); font-size: 17px; line-height: 2.15; text-align: justify; }

#about {
  position: relative;
  padding: 72px 0 96px;
  overflow: visible;
}
#about .article-grid {
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
#about .section-kicker {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 4px 0 0 0;
  padding-inline-start: 14px;
  border: 0;
  border-inline-start: 4px solid var(--amber);
  z-index: 2;
}
#about .section-kicker span {
  margin: 0;
  color: var(--coral);
  font-size: 13px;
  font-weight: 700;
}
#about .section-kicker strong {
  font-size: 22px;
  line-height: 1.45;
  color: var(--navy);
}
#about .prose {
  position: relative;
  max-width: none;
  color: var(--muted);
  font-size: 16px;
  line-height: 2.05;
  text-align: justify;
  padding-inline-end: 0;
}
#about .prose::before { display: none; }
#about .prose .container {
  width: 100%;
  max-width: none;
  margin: 0;
}
#about .row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
#about .col-md-6,
#about .col-lg-6,
#about .col-sm-12,
#about .col-xs-12 {
  width: 100%;
  max-width: none;
  float: none;
  text-align: right;
  background: var(--paper);
  padding: 32px 28px 36px;
  box-shadow: var(--shadow);
}
#about .mydiv,
#about .mydivhome {
  width: 100% !important;
  margin: 0 !important;
}
#about .prose h2 {
  color: var(--navy);
  font-size: 22px;
  line-height: 1.6;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--amber);
}
#about .prose h2:not(:first-child) { margin-top: 0; }
#about .prose h2 span { font-size: inherit !important; }
#about .prose p { color: var(--muted); }
#about .prose a {
  color: var(--coral);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#about .prose a:hover { color: var(--navy); }

.services-section { background: var(--ivory); padding: 96px 0; }
.section-heading { margin-bottom: 44px; text-align: center; }
.section-heading h2 { color: var(--navy); font-size: clamp(28px, 3vw, 42px); line-height: 1.4; margin: 12px 0 0; }
.section-heading .eyebrow { justify-content: center; color: var(--coral); }
.services-section .section-heading h2 { color: var(--navy); }
.services-section .eyebrow {
  background: transparent;
  border: 0;
  color: var(--coral);
}
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 0;
  border-radius: 0;
  overflow: hidden;
  padding: 0;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: 0 24px 48px rgba(98, 0, 53, .14);
  background: var(--paper);
}
.service-card-image {
  display: block;
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  isolation: isolate;
}
.service-card-image::after { display: none; }
.service-card-image img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform .45s ease;
}
.service-card:hover .service-card-image img { transform: scale(1.05); }
.service-card-body {
  position: relative;
  padding: 20px 18px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-number {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 24px;
  padding: 0;
  margin-bottom: 10px;
  color: var(--coral);
  background: transparent;
  border-radius: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}
.service-card h3 { max-width: none; margin: 0 0 10px; color: var(--navy); font-size: 20px; line-height: 1.5; }
.service-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.service-card-body > a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  margin-inline: 0;
  padding: 14px 16px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}
.service-card-body > a:hover { background: var(--coral); color: #fff; }
.services-section:not(.is-plain) .service-card:first-child .service-card-image img {
  height: 200px;
}

.residence-section { padding: 96px 0; background: var(--navy); color: white; }
.section-heading.light h2 { color: white; }
.section-heading.light .eyebrow {
  color: var(--amber);
  background: transparent;
  border: 0;
  justify-content: center;
}
.residence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  background: transparent;
  border: 0;
}
.residence-grid article,
.residence-card {
  min-height: auto;
  display: flex;
  flex-direction: column;
  padding: 0 0 8px;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  transition: transform .2s ease;
}
.residence-card:hover,
.residence-grid article:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: none;
}
.residence-card-image {
  display: block;
  overflow: hidden;
  border-radius: 0;
}
.residence-card-image img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform .45s ease;
}
.residence-card:hover .residence-card-image img,
.residence-grid article:hover .residence-card-image img { transform: scale(1.05); }
.residence-grid article > span,
.residence-card > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 18px 0 0;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  background: var(--amber);
  border-radius: 0;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  width: 48px;
}
.residence-grid h3,
.residence-card h3 { margin: 12px 0 10px; font-size: 22px; }
.residence-grid p,
.residence-card p { margin: 0; color: rgba(255,255,255,.72); line-height: 1.9; flex: 1; }
.residence-grid article > a,
.residence-card > a {
  display: inline-flex;
  gap: 8px;
  margin: 16px 0 0;
  color: var(--amber);
  font-weight: 700;
}

.gallery-section { padding: 96px 0; }
.section-heading.split { display: flex; justify-content: space-between; align-items: end; gap: 32px; text-align: right; }
.section-heading.split .eyebrow { justify-content: flex-start; }
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery-filters button {
  border: 1px solid var(--stone);
  background: var(--paper);
  color: var(--navy);
  border-radius: 0;
  padding: 8px 16px;
  cursor: pointer;
}
.gallery-filters button.selected { background: var(--navy); color: white; border-color: var(--navy); }
.gallery-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  grid-template-rows: repeat(2, 270px);
  gap: 18px;
}
.gallery-placeholder {
  position: relative;
  background: linear-gradient(135deg, #f0e8d1, #c9a36a);
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.gallery-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(98, 0, 53, .55));
  pointer-events: none;
}
.gallery-placeholder:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 56px rgba(98, 0, 53, .16);
}
.gallery-placeholder.large { grid-row: span 2; background: linear-gradient(135deg, #e8c96a, #620035); }
.gallery-placeholder span {
  position: absolute;
  z-index: 1;
  right: 20px;
  bottom: 18px;
  background: rgba(255,255,255,.94);
  color: var(--navy);
  padding: 8px 14px;
  border-radius: 0;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 20px rgba(98, 0, 53, .12);
}

.faq-section { padding: 96px 0; background: var(--ivory); }
.faq-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 64px; }
.faq-title h2 { color: var(--navy); font-size: 36px; margin: 12px 0 16px; }
.faq-title > p:not(.eyebrow) { color: var(--muted); margin-bottom: 24px; }
.faq-list details {
  border: 0;
  border-bottom: 1px solid var(--stone);
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0;
  transition: none;
}
.faq-list details:last-child { border-bottom: 1px solid var(--stone); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  color: var(--navy);
  font-size: 17px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span {
  color: var(--coral);
  width: 28px;
  height: 28px;
  border-radius: 0;
  background: transparent;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: none;
  font-size: 22px;
}
.faq-list details[open] { background: transparent; box-shadow: none; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { color: var(--muted); line-height: 2; padding: 0 0 16px; }

.site-footer { background: var(--navy); color: white; padding: 72px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.1fr .9fr; gap: 48px; }
.footer-brand { color: white; margin-bottom: 12px; }
.footer-brand .brand-subtitle { color: var(--amber); }
.footer-grid h2 { font-size: 15px; color: var(--amber); margin: 0 0 16px; letter-spacing: .04em; }
.footer-grid p { color: rgba(255,255,255,.66); }
.footer-grid > div:nth-child(2) {
  background: var(--amber);
  color: var(--navy);
  padding: 28px 24px;
}
.footer-grid > div:nth-child(2) h2,
.footer-grid > div:nth-child(2) a,
.footer-grid > div:nth-child(2) p,
.footer-grid > div:nth-child(2) div { color: var(--navy); }
.footer-grid > div:last-child { display: flex; flex-direction: column; align-items: start; gap: 8px; }
.footer-links { max-height: 320px; overflow: auto; }
.footer-links a { color: rgba(255,255,255,.78); }
.footer-links a:hover { color: #fff; }
.copyright {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 48px;
  padding-top: 20px;
  color: rgba(255,255,255,.46);
  font-size: 13px;
}

/* Internal pages */
.internal-hero {
  padding: 48px 0 56px;
  background:
    linear-gradient(180deg, var(--ivory), var(--mist));
  border-bottom: 1px solid var(--line);
}
.internal-hero .container { max-width: 1100px; }
.internal-hero h1 { max-width: 900px; font-size: clamp(26px, 2.8vw, 40px); }
.breadcrumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 13px;
}
.breadcrumbs a { color: var(--navy); font-weight: 700; }
.internal-lead { max-width: 780px; margin: 18px 0 0; color: var(--muted); font-size: 18px; line-height: 2; }
.internal-hero .contact-form { max-width: 560px; margin-top: 24px; }
.internal-hero .button { margin-top: 4px; }
.internal-content { padding: 72px 0 96px; }
.internal-layout {
  max-width: 1100px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
}
.longform { min-width: 0; }
.longform-cover {
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius);
  margin-bottom: 28px;
  object-fit: cover;
}
.text-block { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.text-block h2 { color: var(--navy); font-size: 28px; line-height: 1.6; margin: 0 0 20px; }
.text-block p,
.text-block li { color: var(--muted); font-size: 17px; line-height: 2.15; text-align: justify; }
.text-block p { margin: 0 0 18px; }
.text-block ul { padding: 0 22px 0 0; }
.text-block li::marker { color: var(--amber); }
.text-block img { border-radius: var(--radius-sm); }

.teldiv,
.text-block .teldiv,
.prose .teldiv,
.longform .teldiv {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 28px 0;
  padding: 22px 28px;
  background: var(--navy-deep);
  color: #fff !important;
  border-radius: var(--radius);
  border: 0;
  border-inline-start: 4px solid var(--amber);
  box-shadow: var(--shadow);
  text-align: center !important;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.9;
}
.teldiv span,
.teldiv strong,
.teldiv a { color: #fff !important; font-size: inherit !important; }
.teldiv a { text-decoration: underline; text-underline-offset: 3px; }
.teldiv a:hover { color: var(--amber) !important; }

.consult-card {
  position: sticky;
  top: 110px;
  padding: 28px;
  background: var(--navy);
  color: #fff;
  border: 0;
  border-radius: 0;
}
.consult-card .eyebrow { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); color: #fff; }
.consult-card h2 { color: #fff; font-size: 24px; line-height: 1.55; margin: 0 0 12px; }
.consult-card > p:not(.eyebrow) { color: rgba(255,255,255,.7); line-height: 1.9; }
.consult-card .button { width: 100%; margin-top: 14px; background: var(--coral); color: #fff; }
.consult-card .button:hover { background: var(--amber); color: var(--navy); }
.aside-phone {
  display: block;
  text-align: center;
  color: #fff;
  margin-top: 16px;
  font-weight: 800;
  direction: ltr;
}
.content-preservation-note {
  padding: 24px 28px;
  border-inline-start: 3px solid var(--amber);
  background: var(--ivory);
  color: var(--navy);
  border-radius: var(--radius-sm);
}
.content-preservation-note p { margin: 8px 0 0; color: var(--muted); }

.intro-section { padding: 36px 0 0; }
.services-section.is-plain { background: transparent; }
.services-section.is-plain .section-heading h2 { color: var(--navy); }
.clients-section { padding: 48px 0; }
.clients-strip {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding: 48px 0;
}
.clients-strip img { max-height: 56px; filter: grayscale(1); opacity: .75; }
.clients-strip a:hover img { filter: none; opacity: 1; }
.map-embed { margin-top: 40px; border-radius: var(--radius); overflow: hidden; }
.map-embed iframe { display: block; width: 100%; border: 0; min-height: 320px; }

.page-section .container { padding: 72px 0; text-align: center; }
.page-section .btn,
.page-section a.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  margin: 8px;
  border-radius: var(--pill);
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}

@media (max-width: 1050px) {
  .header-inner { grid-template-columns: 1fr auto auto; width: min(100% - 32px, 1280px); }
  .header-inner > .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav-panel { display: block; border-top: 1px solid var(--line); background: var(--paper); }
  .mobile-nav-panel[hidden] { display: none !important; }
  .mobile-nav-panel .main-nav { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 0 20px; }
  .mobile-nav-panel .main-nav > a,
  .mobile-nav-panel .nav-dropdown-trigger { padding: 14px 24px; border-radius: 0; }
  .mobile-nav-panel .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: 0 0 8px;
    background: var(--ivory);
    display: none;
  }
  .mobile-nav-panel .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .mobile-nav-panel .nav-dropdown-menu a { padding: 10px 36px; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr; gap: 0; }
  .hero-copy {
    max-width: none;
    padding-block: 40px 28px;
    padding-inline: max(28px, calc((100vw - 1280px) / 2 + 28px));
  }
  .hero-photo { max-width: none; min-height: 420px; }
  .hero-photo > img { min-height: 420px; border-radius: 0; }
  .hero-frame { display: none; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card-image img,
  .services-section:not(.is-plain) .service-card:first-child .service-card-image img { height: 200px; }
  .article-grid { grid-template-columns: 1fr; gap: 32px; }
  .section-kicker { position: static; }
  #about .row { grid-template-columns: 1fr; gap: 20px; }
  #about .article-grid {
    grid-template-columns: 1fr;
    padding: 0;
  }
  #about .section-kicker { position: static; }
  #about .prose { padding-inline-end: 0; }
  #about .prose::before { display: none; }
  #about .col-md-6,
  #about .col-lg-6 { padding: 24px 20px 28px; }
  .residence-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-layout { grid-template-columns: 1fr; gap: 36px; }
  .internal-layout { grid-template-columns: 1fr; gap: 36px; }
  .consult-card { position: static; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, 1280px); }
  .trust-inner { justify-content: center; text-align: center; }
  .trust-inner span:last-child { display: none; }
  .header-inner { min-height: 68px; grid-template-columns: 1fr auto; gap: 10px; }
  .brand-mark { font-size: 22px; }
  .phone-link { min-height: 44px; padding-inline: 12px; font-size: 13px; }
  .hero { padding: 0; min-height: 0; }
  .hero-grid { gap: 0; }
  h1 { font-size: 26px; }
  .hero-copy { padding-inline: 20px; padding-block: 32px 20px; }
  .hero-copy h1 { font-size: 28px; }
  .hero-intro { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .button { width: auto; }
  .trust-points { font-size: 13px; }
  .hero .trust-points span { font-size: 13px; padding: 8px 12px; }
  .hero-photo,
  .hero-photo > img { min-height: 280px; border-radius: 0; }
  .service-grid { grid-template-columns: 1fr; }
  .content-section,
  .services-section,
  .residence-section,
  .gallery-section,
  .faq-section { padding-block: 64px; }
  .prose h2,
  .section-heading h2 { font-size: 26px; }
  .prose p { font-size: 16px; text-align: right; }
  .service-grid,
  .residence-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .service-card-body { padding: 18px 12px 0; }
  .service-card-image img,
  .services-section:not(.is-plain) .service-card:first-child .service-card-image img { height: 220px; }
  .residence-card-image img { height: 200px; }
  .section-heading.split { align-items: start; flex-direction: column; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: repeat(3, 240px); }
  .gallery-placeholder.large { grid-row: auto; }
  .site-footer { padding-top: 52px; }
  .internal-hero { padding-block: 36px 44px; }
  .internal-content { padding-block: 52px 72px; }
  .text-block h2 { font-size: 24px; }
  .text-block p,
  .text-block li { font-size: 16px; text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* Listing, article, gallery, FAQ and contact */
.listing-section { padding: 72px 0 96px; }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.article-card {
  background: var(--paper);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  overflow: hidden;
  transition: .2s ease;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.article-image { display: block; height: 210px; overflow: hidden; background: var(--ivory); }
.article-image img { width: 100%; height: 100%; object-fit: cover; transition: .35s ease; }
.article-card:hover .article-image img { transform: scale(1.04); }
.article-card-body { padding: 22px; }
.article-card-body > span { color: var(--coral); font-size: 12px; font-weight: 700; }
.article-card h2 { font-size: 20px; line-height: 1.65; color: var(--navy); margin: 8px 0; }
.article-card p { color: var(--muted); font-size: 14px; line-height: 1.9; }
.text-link { color: var(--coral); font-weight: 700; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 44px; }
.pagination a {
  min-width: 42px;
  height: 42px;
  padding: 0 13px;
  display: grid;
  place-items: center;
  border: 1px solid var(--stone);
  border-radius: var(--pill);
  background: var(--paper);
}
.pagination a.current { background: var(--navy); color: white; border-color: var(--navy); }
.article-cover { margin: 0 0 40px; }
.article-cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); }
.article-cover figcaption { color: var(--muted); font-size: 13px; margin-top: 10px; }
.article-share {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 22px;
  border: 1px solid var(--stone);
  background: var(--paper);
  border-radius: var(--radius-sm);
}
.article-share a { color: var(--navy); font-weight: 700; }
.gallery-page-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.gallery-page-filters button {
  border: 1px solid var(--stone);
  background: var(--paper);
  color: var(--navy);
  padding: 8px 16px;
  border-radius: var(--pill);
  cursor: pointer;
}
.gallery-page-filters button.selected { background: var(--navy); color: white; border-color: var(--navy); }
.gallery-page-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item { margin: 0; background: var(--paper); border: 1px solid var(--stone); border-radius: var(--radius-sm); overflow: hidden; }
.gallery-item > a { display: block; height: 280px; position: relative; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: .3s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-zoom {
  position: absolute;
  inset-inline-start: 14px;
  inset-block-end: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  color: var(--navy);
  font-size: 22px;
}
.gallery-item figcaption { padding: 14px 18px; display: flex; justify-content: space-between; }
.gallery-item figcaption span { color: var(--muted); font-size: 12px; }
.gallery-item figcaption strong { color: var(--navy); }
.implementation-note {
  margin-top: 32px;
  padding: 20px 24px;
  border-inline-start: 3px solid var(--amber);
  background: var(--ivory);
  color: var(--muted);
  border-radius: var(--radius-sm);
}
.implementation-note strong { color: var(--navy); }
.contact-section { padding: 72px 0 96px; }
.contact-grid { max-width: 1040px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; }
.contact-panel {
  padding: 36px;
  background: var(--navy-deep);
  color: white;
  border-radius: var(--radius);
}
.contact-panel h2 { font-size: 28px; }
.contact-panel p { color: rgba(255,255,255,.72); }
.contact-panel > a {
  display: block;
  margin-top: 14px;
  color: white;
  font-size: 20px;
  font-weight: 700;
  direction: ltr;
  text-align: right;
}
.contact-form { display: grid; gap: 16px; background: var(--paper); padding: 28px; border-radius: var(--radius); border: 1px solid var(--stone); }
.contact-form label { display: grid; gap: 8px; color: var(--navy); font-weight: 700; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid var(--stone);
  background: var(--mist);
  padding: 12px 14px;
  border-radius: 12px;
  font: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: 2px solid var(--amber);
  background: var(--paper);
}
.contact-form .button { border: 0; cursor: pointer; width: max-content; }
.math-captcha {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 700;
  padding: 14px;
  border: 1px dashed var(--stone);
  border-radius: 12px;
  background: var(--ivory);
}
.math-captcha input {
  width: 100%;
  border: 1px solid var(--stone);
  background: var(--paper);
  padding: 12px 14px;
  border-radius: 12px;
  font: inherit;
}

@media (max-width: 1050px) {
  .articles-grid,
  .gallery-page-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .listing-section,
  .contact-section { padding: 56px 0 72px; }
  .articles-grid,
  .gallery-page-grid { grid-template-columns: 1fr; }
  .gallery-item > a { height: 240px; }
  .article-image { height: 200px; }
  .contact-panel { padding: 24px; }
  .contact-form { padding: 20px; }
}

.infinite-sentinel { display: flex; justify-content: center; padding: 40px 0 10px; min-height: 48px; }
.infinite-loader { color: var(--muted); font-size: 14px; font-weight: 700; opacity: 0; transition: opacity .2s ease; }
.listing-section.is-loading .infinite-loader { opacity: 1; }

.form-errors { color: #b71c1c; font-weight: 700; display: grid; gap: 6px; margin-bottom: 8px; }
.search-results { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.search-results a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  display: block;
  padding: 14px 18px;
  background: var(--paper);
  border: 1px solid var(--stone);
  border-radius: 12px;
}
.search-results a:hover { color: var(--amber); border-color: var(--amber); }

.float-cta {
  position: fixed !important;
  z-index: 9999;
  left: 18px;
  right: auto;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  top: auto;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}
.float-cta-btn {
  pointer-events: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 10px 28px rgba(98, 0, 53, .32);
  transition: transform .15s ease, box-shadow .15s ease;
}
.float-cta-btn:hover,
.float-cta-btn:focus {
  transform: scale(1.06);
  color: #fff !important;
  box-shadow: 0 14px 32px rgba(98, 0, 53, .4);
}
.float-cta-phone { background: var(--navy-deep); }
.float-cta-wa { background: #25d366; }
@media (max-width: 720px) {
  .float-cta {
    left: 14px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .float-cta-btn { width: 54px; height: 54px; }
}

body.lb-open { overflow: hidden; }
.lb {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 24px;
}
.lb[hidden] { display: none !important; }
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 28, .88);
  cursor: zoom-out;
}
.lb-figure {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  display: grid;
  justify-items: center;
  gap: 12px;
}
.lb-img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
  background: #0b1622;
}
.lb-caption {
  color: #f4f0e8;
  font-weight: 700;
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  max-width: 40rem;
}
.lb-counter { color: rgba(244, 240, 232, .7); font-size: 13px; font-weight: 600; }
.lb-close,
.lb-nav {
  position: absolute;
  z-index: 2;
  border: 0;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .15s ease, transform .15s ease;
}
.lb-close:hover,
.lb-nav:hover { background: rgba(255, 255, 255, .22); }
.lb-close {
  top: 16px;
  left: 16px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}
.lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
}
.lb-prev { right: 16px; }
.lb-next { left: 16px; }
.lb-nav[hidden] { display: none !important; }
@media (max-width: 720px) {
  .lb { padding: 12px; }
  .lb-close { top: 10px; left: 10px; width: 42px; height: 42px; }
  .lb-nav { width: 44px; height: 44px; font-size: 28px; }
  .lb-prev { right: 8px; }
  .lb-next { left: 8px; }
  .lb-img { max-height: 70vh; }
}

.gallery-lb-extra {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
