.hero {
  position: relative;
  overflow: clip;
  padding: 100px 0 80px;
  background: var(--color-navy);
  color: #fff;
}
.hero-scene {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(7, 27, 53, 0.94) 0%,
      rgba(7, 27, 53, 0.82) 50%,
      rgba(7, 27, 53, 0.3) 100%
    ),
    url("../img/backgrounds/hero-bg.png") center/cover no-repeat;
}
.hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 480px);
  gap: 64px;
  align-items: center;
  min-height: 620px;
}
.hero-copy {
  max-width: 700px;
  padding: 0;
}
.hero-copy h1 {
  color: #fff;
  max-width: 22ch;
}
.hero-intro {
  margin-top: 24px;
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
  color: #e4ebf5;
}
.hero-supporting {
  margin-top: 14px;
  max-width: 58ch;
  color: #b0c2de;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}
.hero-meta-card {
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
}
.hero-meta-card strong {
  color: #fff;
}
.hero-meta-label {
  display: block;
  margin-bottom: 8px;
  color: #a3b8cc;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hero-visual {
  position: relative;
  min-height: 580px;
  display: grid;
  align-items: end;
}
.hero-photo-frame {
  position: relative;
  z-index: 2;
  justify-self: center;
  width: min(100%, 470px);
  padding: 42px 30px 0;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.02)
    ),
    linear-gradient(135deg, rgba(0, 75, 155, 0.15), rgba(223, 23, 43, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
}
.hero-photo-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
}
.hero-badge {
  position: absolute;
  left: 0;
  bottom: 44px;
  z-index: 3;
  display: grid;
  gap: 6px;
  width: min(240px, 52vw);
  padding: 18px 20px;
  background: rgba(7, 27, 53, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  color: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.hero-badge span {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.72;
}
.hero-badge strong {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
}

.credential-strip {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  margin-top: -50px;
  margin-bottom: 60px;
  padding: 24px 28px;
  background: #ffffff;
  border: 1px solid #d0d5dd;
  border-top: 4px solid var(--color-secondary);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px rgba(11, 37, 69, 0.14);
}
.credential-chip {
  display: grid;
  place-items: center;
  min-height: 72px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(251, 247, 241, 0.92)
  );
  color: var(--color-navy);
  font-weight: 700;
  text-align: center;
  box-shadow: var(--shadow-edge);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  border: 1px solid transparent;
}
.credential-chip span {
  line-height: 1.3;
}
a.credential-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(11, 37, 69, 0.08);
  border-color: rgba(0, 75, 155, 0.25);
  color: var(--color-navy);
}
.credential-chip__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--color-primary);
  background: rgba(223, 23, 43, 0.08);
  flex: 0 0 auto;
}
.credential-chip:nth-child(even) .credential-chip__icon {
  color: var(--color-secondary);
  background: rgba(0, 75, 155, 0.08);
}
.credential-chip--wide {
  grid-column: span 2;
}
.credential-chip--brokerage {
  background: linear-gradient(
    180deg,
    rgba(0, 75, 155, 0.08),
    rgba(255, 255, 255, 0.96)
  );
  border-color: rgba(0, 75, 155, 0.14);
  color: var(--color-secondary);
}

.section-dark h2 {
  color: #ffffff;
}
.section-dark .section-lead {
  color: #ffffff;
}
.section-dark .section-body {
  color: #ccd7e6;
}
.section-dark .signature {
  color: #e4ebf5;
}
.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 64px;
  align-items: start;
}
.about-copy {
  padding-top: 6px;
}
.about-points {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}
.about-point {
  margin: 0;
  padding-left: 18px;
  border-left: 2px solid rgba(223, 23, 43, 0.4);
  color: #ccd7e6;
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.value-card {
  position: relative;
  padding: 36px 108px 38px 36px;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
}
.value-card:nth-child(even) {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  border-color: rgba(255, 255, 255, 0.08);
}
.value-card__icon {
  position: absolute;
  right: 18px;
  bottom: 8px;
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.025);
  transform: rotate(18deg);
  opacity: 0.8;
  pointer-events: none;
}
.value-card__icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.35;
}
.value-card h3 {
  color: #ffffff;
  max-width: 14ch;
}
.value-card p {
  margin-top: 12px;
  max-width: 34ch;
  color: #ccd7e6;
}

.services-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 32px 56px;
  align-items: start;
}
.section-heading-block {
  display: grid;
  gap: 16px;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.service-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 28px;
  align-items: start;
  padding: 34px;
  background: #ffffff;
  border: 1px solid #e4e7ec;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at top right,
      rgba(0, 75, 155, 0.1),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.96),
      rgba(251, 247, 241, 0.78)
    );
  pointer-events: none;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(0, 75, 155, 0.18);
}
.service-card__icon {
  position: relative;
  z-index: 2;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  color: var(--color-secondary);
  background: linear-gradient(
    135deg,
    rgba(0, 75, 155, 0.16),
    rgba(0, 75, 155, 0.04)
  );
  border: 1px solid rgba(0, 75, 155, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}
.service-card:nth-child(even) .service-card__icon {
  color: var(--color-primary);
  background: linear-gradient(
    135deg,
    rgba(223, 23, 43, 0.16),
    rgba(223, 23, 43, 0.04)
  );
  border-color: rgba(223, 23, 43, 0.14);
}
.service-card__icon svg {
  width: 34px;
  height: 34px;
  stroke-width: 1.9;
}
.service-card__body {
  position: relative;
  z-index: 2;
  max-width: none;
}
.service-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 10px;
}
.service-card p {
  color: var(--color-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0;
}
.coverage-card p {
  color: var(--color-muted);
}
.area-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.area-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(232, 225, 216, 0.95);
  color: var(--color-navy);
  font-weight: 600;
}

.section-testimonials {
  position: relative;
  overflow: clip;
  background:
    radial-gradient(
      circle at top left,
      rgba(223, 23, 43, 0.18),
      transparent 24%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(0, 75, 155, 0.24),
      transparent 28%
    ),
    linear-gradient(180deg, rgba(11, 37, 69, 0.98), rgba(7, 27, 53, 0.96));
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.testimonials-section {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
}
.text-center {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.section-testimonials h2,
.section-testimonials .section-lead {
  color: #ffffff;
}
.section-testimonials .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}
.testimonials-heading {
  gap: 18px;
}
.community-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.section-community {
  background: linear-gradient(
    180deg,
    rgba(251, 247, 241, 0.96),
    rgba(255, 255, 255, 0.98)
  );
  border-top: 1px solid rgba(232, 225, 216, 0.8);
  border-bottom: 1px solid rgba(232, 225, 216, 0.8);
}
.community-image-wrap {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(232, 225, 216, 0.9);
  box-shadow: var(--shadow-soft);
}
.community-image-wrap img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.community-copy-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.community-copy-card {
  padding: 40px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96),
    rgba(251, 247, 241, 0.88)
  );
  border: 1px solid rgba(0, 75, 155, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.community-body {
  margin-top: 14px;
  margin-bottom: 24px;
  font-size: 1.1rem;
  line-height: 1.65;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 46px 34px 34px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(251, 247, 241, 0.96)
  );
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.18);
}
.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 14px;
  left: 22px;
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 1;
  color: rgba(0, 75, 155, 0.14);
}
.testimonial-card:nth-child(even)::before {
  color: rgba(223, 23, 43, 0.16);
}
.testimonial-card p {
  position: relative;
  z-index: 1;
  color: #344054;
  font-size: 0.98rem;
  line-height: 1.6;
}
.testimonial-card__footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  padding-top: 16px;
  border-top: 1px solid var(--color-navy);
  margin-top: auto;
}
.testimonial-card__footer strong {
  color: var(--color-navy);
}
.testimonial-card__footer span {
  color: var(--color-navy);
  font-weight: 600;
}

.contact-section {
  margin-top: 0;
  padding: 120px 0;
  background: var(--color-navy);
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.46fr) minmax(0, 0.54fr);
  gap: 56px;
  align-items: start;
}
.contact-sidebar {
  display: grid;
  gap: 18px;
}
.contact-sidebar h2 {
  color: #ffffff;
}
.contact-sidebar p {
  color: #ccd7e6;
}
.contact-details {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}
.contact-line {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  color: #ffffff;
  text-decoration: none;
}
.contact-line svg {
  color: #a3b8cc;
  margin-top: 2px;
}
.contact-form {
  display: grid;
  gap: 14px;
  padding: 40px;
  background: #ffffff;
  border: 1px solid rgba(232, 225, 216, 0.95);
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.25);
  color: var(--color-text);
}
.contact-form__heading {
  display: grid;
  gap: 8px;
}
.contact-form__heading p {
  color: var(--color-muted);
}
.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--color-muted);
  font-size: 0.92rem;
  font-weight: 600;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d8dde5;
  border-radius: 14px;
  font: inherit;
  background: #fff;
}
.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.form-success {
  padding: 14px 16px;
  background: #eaf7ef;
  color: #106b34;
  border-radius: 14px;
  font-weight: 700;
}

.contact-form__fields {
  display: grid;
  gap: 14px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.contact-form__fields.fade-out {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

/* Alert banner */
.contact-form__alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: hsla(350, 85%, 96%, 1);
  border: 1px solid hsla(350, 80%, 90%, 1);
  color: hsla(350, 75%, 35%, 1);
  border-radius: 14px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.contact-form__alert .alert-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: hsla(350, 75%, 45%, 1);
}

@keyframes slideDown {
  0% {
    opacity: 0;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Spinner inside button */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-top: -10px;
  margin-left: -10px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Success Card UI */
.contact-success-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  animation: fadeInSuccess 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeInSuccess {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-icon-wrap {
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
}

.success-checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: block;
  stroke-width: 3;
  stroke: var(--color-primary);
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px var(--color-primary);
  animation: fillSuccess .4s ease-in-out .4s forwards, scaleSuccess .3s ease-in-out .9s both;
}

.success-checkmark__circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 3;
  stroke-miterlimit: 10;
  stroke: var(--color-primary);
  fill: none;
  animation: strokeSuccess 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark__check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke-width: 3;
  stroke: #ffffff;
  animation: strokeSuccess 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes strokeSuccess {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes scaleSuccess {
  0%, 100% {
    transform: none;
  }
  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

@keyframes fillSuccess {
  100% {
    box-shadow: inset 0px 0px 0px 40px var(--color-primary);
  }
}

.contact-success-state h3 {
  font-family: var(--font-serif, inherit);
  font-size: 1.8rem;
  margin: 0 0 12px;
  color: var(--color-navy);
}

.contact-success-state p {
  color: var(--color-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 28px;
  max-width: 380px;
}

.contact-success-state button {
  padding: 10px 24px;
}

@media (max-width: 1180px) {
  .hero-shell,
  .about-section,
  .services-layout,
  .community-layout,
  .contact-layout,
  .coverage-card {
    grid-template-columns: 1fr;
  }
  .hero-copy h1 {
    max-width: none;
  }
  .hero-visual {
    min-height: 520px;
  }
}
@media (max-width: 880px) {
  .credential-strip,
  .value-grid,
  .service-grid,
  .testimonial-grid,
  .hero-meta,
  .two-col {
    grid-template-columns: 1fr;
  }
  .credential-strip {
    margin-top: 30px;
  }
}
@media (max-width: 640px) {
  .hero {
    padding-top: 18px;
  }
  .hero-shell {
    gap: 24px;
    min-height: 0;
  }
  .hero-copy {
    padding-top: 14px;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-photo-frame {
    padding: 28px 18px 0;
  }
  .hero-badge {
    position: static;
    width: auto;
    margin-top: 16px;
  }
  .service-card {
    padding: 28px;
  }
  .community-copy-card,
  .testimonial-card {
    padding-left: 24px;
    padding-right: 24px;
  }
  .community-copy-card {
    padding-top: 28px;
    padding-bottom: 28px;
  }
  .value-card {
    padding-right: 92px;
  }
  .contact-section {
    margin-top: 62px;
    padding: 62px 0;
  }
  .contact-form {
    padding: 22px;
  }
}
