:root {
  --navy: #263c91;
  --navy-dark: #142768;
  --red: #f1182b;
  --red-dark: #c90f20;
  --ink: #142033;
  --muted: #5e6f88;
  --bg: #f3f7fc;
  --soft-blue: #eaf4ff;
  --paper: #ffffff;
  --line: #d7e3f2;
  --shadow: 0 18px 45px rgba(20, 39, 104, .13);
  --radius: 18px;
  --leading-line-color: var(--navy);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(20, 39, 104, .08);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: 190px;
  height: auto;
}

.links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-weight: 800;
  color: var(--navy-dark);
  font-size: 15px;
  white-space: nowrap;
}

.phone-btn,
.btn {
  border: 0;
  border-radius: 10px;
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 950;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.phone-btn {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: white;
  box-shadow: 0 12px 24px rgba(20, 39, 104, .22);
}

.btn:hover,
.phone-btn:hover,
.agent-card-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.btn.primary {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(241, 24, 43, .22);
}

.btn.secondary {
  background: #ffffff;
  color: var(--navy);
  border: 1px solid rgba(38, 60, 145, .28);
  box-shadow: 0 12px 28px rgba(20, 39, 104, .10);
}

.btn.full {
  width: 100%;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 64px;
  background:
    linear-gradient(90deg, rgba(243, 247, 252, .97), rgba(234, 244, 255, .90), rgba(243, 247, 252, .78)),
    url('assets/photo-1564013799919-ab600027ffc6-auto=format&fit=crop&w=1800&q=80.jpg');
  background-size: cover;
  background-position: center right;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 420px;
  gap: 34px;
  align-items: center;
}

.hero-copy {
  text-align: left;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .16em;
  margin: 0 0 18px;
}

.eyebrow::before {
  content: "";
  width: 56px;
  height: 2px;
  opacity: 0.35;
  background: var(--leading-line-color);
}

.eyebrow.small {
  font-size: 12px;
  margin-bottom: 12px;
}

h1 {
  margin: 0;
  color: var(--navy-dark);
  font-size: clamp(44px, 6vw, 76px);
  line-height: .98;
  letter-spacing: -.06em;
  font-weight: 950;
}

h1 span {
  color: var(--red);
}

.subtitle {
  max-width: 720px;
  margin: 18px 0 0;
  color: #2d3445;
  font-size: clamp(18px, 2vw, 23px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
  max-width: 760px;
}

.trust-row div {
  background: rgba(255, 255, 255, .76);
  border: 1px solid rgba(38, 60, 145, .16);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(20, 39, 104, .08);
}

.trust-row strong {
  display: block;
  color: var(--navy-dark);
  font-size: 26px;
  line-height: 1;
  font-weight: 950;
}

.trust-row span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.hero-card {
  background: rgba(255, 255, 255, .93);
  border: 1px solid rgba(215, 227, 242, .95);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.card-kicker {
  margin: 0 0 8px;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  font-weight: 950;
}

.hero-card h2 {
  margin: 0;
  color: var(--navy-dark);
  font-size: 31px;
  line-height: 1.05;
  letter-spacing: -.045em;
}

.hero-card p {
  color: var(--muted);
  margin: 14px 0 0;
}

.mini-contact {
  display: grid;
  gap: 9px;
  margin: 22px 0;
}

.mini-contact a,
.mini-contact span {
  display: block;
  color: var(--ink);
  font-weight: 850;
}

.section {
  padding: 64px 0;
}

.contact-copy h2 {
  margin: 0;
  color: var(--navy-dark);
  font-size: clamp(34px, 4.8vw, 54px);
  line-height: 1.02;
  letter-spacing: -.055em;
  font-weight: 950;
}

/* =========================================================
   CONTACT
   ========================================================= */

.team-section {
  background: #ffffff;
}

.team-grid {
  max-width: 1120px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  align-items: stretch;
}

.contact-section {
  padding-top: 64px;
}

.contact-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.contact-copy {
  background: linear-gradient(135deg, var(--navy-dark), #07184c);
  color: #ffffff;
  border-radius: 24px;
  padding: 34px;
  box-shadow: var(--shadow);
  --leading-line-color: white;
}

.contact-copy .eyebrow,
.contact-copy h2 {
  color: #ffffff;
}

.contact-copy p {
  color: rgba(255, 255, 255, .82);
  font-size: 17px;
  line-height: 1.7;
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-methods a {
  display: grid;
  gap: 4px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  padding: 15px;
}

.contact-methods strong {
  color: #ffffff;
}

.contact-methods span {
  color: rgba(255, 255, 255, .80);
}

.client-reviews {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow);
  height: 100%;
  --leading-line-color: var(--muted);
}

.client-reviews h3 {
  margin: 0;
  color: var(--navy-dark);
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.04em;
}

.client-reviews > p {
  margin: 8px 0 4px;
  color: var(--muted);
}

.client-reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 22px;
}

.client-reviews-grid div {
  display: flex;
  gap: 15px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  background: #f7faff;
}

.client-reviews-grid strong {
  color: var(--navy-dark);
}

.client-reviews-grid span {
  color: var(--muted);
  font-weight: 950;
}

.client-reviews-grid img {
  --img-size: 25px;
  width: var(--img-size);
  height: var(--img-size);
}

/* =========================================================
   MODALS
   ========================================================= */

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background: rgba(20, 32, 51, 0.74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
}

.modal.is-open {
  display: flex;
}

body.modal-open {
  overflow: hidden;
}

.modal-card {
  background: #ffffff;
  color: var(--ink);
  border-radius: 18px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
  position: relative;
  animation: pop 0.18s ease-out;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.close {
  position: sticky;
  top: 0;
  float: right;
  color: #53647f;
  font-size: 31px;
  line-height: 1;
  text-decoration: none;
  z-index: 5;
  font-weight: 400;
}

.about-hero {
  text-align: center;
  padding: 0 24px 32px;
  border-bottom: 1px solid #d7e3f2;
  margin-bottom: 32px;
}

.about-hero .mini {
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 950;
  font-size: 12px;
  margin-bottom: 13px;
}

.about-hero h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -0.055em;
  color: var(--navy-dark);
  text-align: center;
  font-weight: 950;
}

.about-hero h2 span {
  color: var(--red);
}

.about-hero p {
  max-width: 820px;
  margin: 13px auto 0;
  color: #5b6d89;
  font-size: 17px;
  line-height: 1.75;
  text-align: center;
}

.about-hero p strong {
  color: #53647f;
  font-weight: 900;
}

.air-video-container {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
  /* Commented divider */
  /* padding-bottom: 32px;
  border-bottom: 1px solid #d7e3f2; */
}

.air-video {
  width: 560px;
  max-width: 560px;
  /* Commented border around video */
  /* padding: 22px;
  border: 1px solid #d7e3f2;
  border-radius: 18px; */
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.agent-card {
  background: #fbfdff;
  border: 1px solid #d7e3f2;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 16px 40px rgba(20, 39, 104, 0.08);
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 14px;
  min-height: 585px;
}

.owner-card {
  border-color: rgba(241, 24, 43, .28);
  background: #fffdfd;
}

.owner-card-photo {
  width: 100%;
  height: 285px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center 24%;
}

.compact-licenses {
  gap: 3px;
  font-size: 12px;
}

.license-list {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.license-list strong {
  color: var(--navy-dark);
  font-size: 14px;
}

.bio-license-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7faff;
}

.bio-license-list strong {
  grid-column: 1 / -1;
}

.agent-top {
  display: flex;
  gap: 16px;
  align-items: center;
  min-width: 0;
}

.agent-avatar {
  width: 96px;
  height: 96px;
  min-width: 96px;
  flex: 0 0 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  object-fit: cover;
  object-position: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,.95), rgba(255,255,255,.25) 42%, transparent 44%),
    linear-gradient(135deg, #f6f9ff, #eef3ff);
  color: var(--navy-dark);
  border: 4px solid #ffffff;
  box-shadow: 0 12px 26px rgba(20, 39, 104, 0.14);
  font-weight: 950;
  letter-spacing: -.04em;
}

img.agent-avatar {
  object-position: center 28%;
}

.agent-avatar.large {
  width: 112px;
  height: 112px;
  min-width: 112px;
  flex: 0 0 112px;
  font-size: 24px;
}

.agent-card h3 {
  margin: 0;
  color: var(--navy-dark);
  font-size: 23px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 950;
}

.agent-role {
  color: #5b6d89;
  font-weight: 900;
  margin-top: 5px;
  line-height: 1.35;
}

.agent-line {
  width: 100%;
  height: 3px;
  background: var(--red);
  border-radius: 99px;
}

.agent-contact a,
.agent-contact span
{
  display: block;
  color: var(--ink);
  margin: 4px 0;
  font-size: 15px;
  text-decoration: none;
  line-height: 1.35;
}

.agent-blurb {
  color: #5b6d89;
  font-size: 14px;
  line-height: 1.5;
  min-height: 72px;
}

.agent-card-btn {
  min-height: 44px;
  border-radius: 9px;
  border: 0;
  color: #ffffff;
  font-weight: 950;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(20, 39, 104, 0.18);
  text-decoration: none;
  width: 100%;
  transition: transform .18s ease, filter .18s ease;
}

.more-btn {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
}

/* Bio modals */
.bio-card {
  width: min(820px, calc(100vw - 34px));
  max-height: 88vh;
  overflow: auto;
  padding: 28px;
  scrollbar-width: none;
}

.bio-head {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding-right: 30px;
}

.bio-head h2 {
  text-align: left;
  margin: 0;
  color: var(--navy-dark);
  font-size: 34px;
  letter-spacing: -.04em;
}

.bio-head p {
  text-align: left;
  margin: 5px 0 0;
  color: var(--muted);
}

.bio-text p {
  text-align: left;
  max-width: none;
  line-height: 1.7;
  color: var(--muted);
}

.agent-modal-links > a {
  color: blue;
}

.credential-groups {
  display: grid;
  gap: 7px;
  margin: 16px 0;
}

.credential-group {
  display: grid;
  grid-template-columns: 116px 1fr;
  align-items: center;
  gap: 10px;
}

.credential-group > strong {
  color: var(--navy);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.credential-summary {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.credential-items {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.credential-items span {
  padding: 4px 8px;
  border: 1px solid #cdd9ff;
  border-radius: 999px;
  background: #f4f7ff;
  color: var(--navy);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

.contact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.contact-strip a {
  min-height: 44px;
  border-radius: 9px;
  border: 1px solid #d7e3f2;
  color: var(--navy);
  font-weight: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  text-decoration: none;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  background: linear-gradient(135deg, var(--navy-dark), #07184c);
  color: white;
  padding: 34px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-logo {
  display: block;
  width: min(250px, 100%);
  height: auto;
  margin-bottom: 12px;
  padding: 8px;
  border-radius: 10px;
  background: #ffffff;
}

.footer h3 {
  margin: 0 0 12px;
}

.footer p,
.footer a {
  color: rgba(255, 255, 255, .82);
}

.footer a {
  display: block;
  margin: 6px 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 980px) {
  .hero-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  html {
    scroll-padding-top: 150px;
  }

  .links {
    width: 100%;
    order: 3;
    justify-content: center;
    gap: 24px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .nav {
    flex-wrap: wrap;
    padding: 12px 0;
    gap: 12px;
  }

  .phone-btn {
    min-height: 44px;
    padding: 0 14px;
  }

  .hero {
    padding: 58px 0 42px;
  }

  .hero-actions,
  .trust-row,
  .contact-strip {
    grid-template-columns: 1fr;
  }

  .trust-row {
    display: grid;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .modal {
    padding: 16px;
  }

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

  .about-hero {
    padding: 0 6px 24px;
  }

  .about-hero h2 {
    font-size: 36px;
  }

  .agent-top {
    align-items: flex-start;
  }

  .agent-card {
    min-height: 675px;
  }

  .owner-card-photo {
    height: 320px;
    object-position: center 22%;
  }

  .agent-avatar {
    width: 88px;
    height: 88px;
    min-width: 88px;
    flex-basis: 88px;
  }

  .bio-head {
    flex-direction: column;
    align-items: flex-start;
  }

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

@media (max-width: 460px) {
  html {
    scroll-padding-top: 130px;
  }

  .brand img {
    width: 120px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-card,
  .client-reviews,
  .contact-copy {
    padding: 22px;
  }

  .client-reviews-grid,
  .bio-license-list {
    grid-template-columns: 1fr;
  }

  .bio-license-list strong {
    grid-column: auto;
  }

  .credential-group {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}
