:root {
  --coral: #ed795f;
  --coral-deep: #c95d48;
  --coral-soft: #f49a85;
  --cream: #fff7ef;
  --white: #ffffff;
  --ink: #17141a;
  --muted-ink: #41343a;
  --charcoal: #251e22;
  --shadow: 0 28px 90px rgba(23, 20, 26, 0.28);
  --border: rgba(255, 247, 239, 0.45);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top left, rgba(255, 247, 239, 0.45), transparent 30%),
    radial-gradient(circle at bottom right, rgba(23, 20, 26, 0.28), transparent 32%),
    linear-gradient(135deg, var(--coral) 0%, #ec7d65 46%, var(--coral-deep) 100%);
  color: var(--cream);
}

body.modal-open { overflow: hidden; }

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

button { font-family: inherit; }

.page-shell,
.subpage-shell {
  min-height: 100vh;
  width: 100%;
  padding: 28px;
  display: grid;
  place-items: center;
}

.subpage-shell { align-items: start; }

.gateway-card,
.subpage-card {
  width: min(var(--max-width), 100%);
  min-height: calc(100vh - 56px);
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 247, 239, 0.16), rgba(255, 247, 239, 0.06)),
    rgba(237, 121, 95, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.gateway-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(22px, 3vw, 34px);
}

.subpage-card {
  display: grid;
  gap: 26px;
}

.gateway-card::before,
.subpage-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 247, 239, 0.28);
  border-radius: calc(var(--radius-xl) - 12px);
  pointer-events: none;
}

.brand-lockup {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.logo {
  width: clamp(115px, 16vw, 180px);
  height: auto;
  display: block;
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(23, 20, 26, 0.18);
}

.intro,
.subpage-hero {
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 247, 239, 0.88);
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.05rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--white);
}

.lede,
.lede-dark {
  margin-bottom: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.6;
  color: rgba(255, 247, 239, 0.9);
}

.primary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  position: relative;
  z-index: 1;
}

.path-card {
  min-height: 285px;
  padding: 24px;
  border: 1px solid rgba(255, 247, 239, 0.42);
  border-radius: var(--radius-lg);
  background: rgba(255, 247, 239, 0.13);
  color: var(--cream);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.path-card:hover,
.path-card:focus-visible {
  transform: translateY(-5px);
  background: rgba(255, 247, 239, 0.22);
  border-color: rgba(255, 247, 239, 0.75);
  box-shadow: 0 18px 45px rgba(23, 20, 26, 0.18);
  outline: none;
}

.path-card-featured {
  background: var(--cream);
  color: var(--ink);
  border-color: rgba(255, 247, 239, 0.95);
}

.path-card-featured:hover,
.path-card-featured:focus-visible { background: var(--white); }

.path-label {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.12);
  color: inherit;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.path-card h2 {
  margin-bottom: 10px;
  font-size: clamp(1.55rem, 2vw, 2.05rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.path-card p {
  margin-bottom: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.96rem;
  line-height: 1.55;
  color: currentColor;
  opacity: 0.86;
}

.button {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button-secondary,
.button-light {
  background: var(--cream);
  color: var(--coral-deep);
}

.not-sure {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  position: relative;
  z-index: 1;
  font-family: Arial, Helvetica, sans-serif;
  color: rgba(255, 247, 239, 0.95);
}

.not-sure p { margin: 0; }

.text-button {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  cursor: pointer;
}

.legal-modal,
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
}

.legal-modal[hidden],
.contact-modal[hidden] { display: none; }

.contact-modal { z-index: 30; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 20, 26, 0.68);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  border-radius: var(--radius-xl);
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 42px);
}

.contact-panel { width: min(760px, 100%); }

.close-button {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(237, 121, 95, 0.16);
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.modal-header {
  max-width: 760px;
  margin-bottom: 24px;
}

.modal-header .eyebrow { color: var(--coral-deep); }

.modal-header h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.modal-header p {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--muted-ink);
  line-height: 1.6;
}

.service-list,
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.service-card,
.service-button-card,
.content-panel,
.notice-panel,
.regulatory-panel {
  padding: 20px;
  border: 1px solid rgba(201, 93, 72, 0.22);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
}

.service-card,
.service-button-card {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.service-button-card {
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.service-card:hover,
.service-card:focus-visible,
.service-button-card:hover,
.service-button-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(201, 93, 72, 0.58);
  box-shadow: 0 14px 34px rgba(23, 20, 26, 0.1);
  outline: none;
}

.service-card h3,
.service-button-card h3,
.content-panel h2,
.notice-panel h2,
.regulatory-panel h2 {
  margin-bottom: 8px;
  font-size: 1.34rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.service-card p,
.service-button-card p,
.content-panel p,
.notice-panel p,
.regulatory-panel p {
  margin-bottom: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--muted-ink);
  line-height: 1.55;
  font-size: 0.94rem;
}

.modal-footer { margin-top: 22px; }

.full-width { width: 100%; }

.contact-form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 7px;
  font-family: Arial, Helvetica, sans-serif;
}

.form-row label {
  font-weight: 800;
  color: var(--ink);
}

.form-row label span {
  font-weight: 500;
  color: var(--muted-ink);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(201, 93, 72, 0.28);
  border-radius: 14px;
  padding: 13px 14px;
  background: var(--white);
  color: var(--ink);
  font: 1rem Arial, Helvetica, sans-serif;
}

textarea { resize: vertical; }

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(237, 121, 95, 0.26);
  border-color: var(--coral-deep);
}

.form-note {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(237, 121, 95, 0.12);
  color: var(--muted-ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  font-size: 0.92rem;
}

.subpage-top,
.subpage-actions {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.back-link {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.subpage-logo {
  width: 90px;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(23, 20, 26, 0.16);
}

.content-grid,
.notice-panel,
.regulatory-panel,
.subpage-actions,
.profile-hero {
  position: relative;
  z-index: 1;
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: center;
}

.profile-copy h1 {
  max-width: 780px;
}

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

.profile-card {
  margin: 0;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: rgba(255, 247, 239, 0.22);
  border: 1px solid rgba(255, 247, 239, 0.36);
  box-shadow: 0 18px 45px rgba(23, 20, 26, 0.14);
}

.profile-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
}

.profile-card figcaption {
  display: grid;
  gap: 3px;
  padding: 14px 4px 2px;
  color: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
}

.profile-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  color: var(--white);
}

.profile-card span {
  opacity: 0.88;
  line-height: 1.4;
}

.compliance-warning {
  border-color: rgba(23, 20, 26, 0.22);
  background: rgba(255, 247, 239, 0.95);
}

.regulatory-panel dl {
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}

.regulatory-panel div {
  display: grid;
  grid-template-columns: minmax(160px, 0.4fr) 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(201, 93, 72, 0.18);
  font-family: Arial, Helvetica, sans-serif;
}

.regulatory-panel dt {
  font-weight: 800;
  color: var(--ink);
}

.regulatory-panel dd {
  margin: 0;
  color: var(--muted-ink);
}

.link-list {
  margin: 12px 0 0;
  padding-left: 18px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--muted-ink);
  line-height: 1.7;
}

.link-list a {
  color: var(--coral-deep);
  font-weight: 800;
}

.link-list span {
  color: var(--muted-ink);
  opacity: 0.72;
}


.contact-line {
  margin-top: 16px;
  font-family: Arial, Helvetica, sans-serif;
  color: rgba(255, 247, 239, 0.94);
  line-height: 1.6;
}

.contact-line a {
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}


.service-section {
  position: relative;
  z-index: 1;
}

.service-section > h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--white);
}

.service-list-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card-static {
  padding: 20px;
  border: 1px solid rgba(255, 247, 239, 0.36);
  border-radius: var(--radius-md);
  background: rgba(255, 247, 239, 0.18);
  color: var(--cream);
}

.service-card-static h3 {
  margin-bottom: 8px;
  font-size: 1.34rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.service-card-static p {
  margin-bottom: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: rgba(255, 247, 239, 0.88);
  line-height: 1.55;
  font-size: 0.94rem;
}


.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  align-items: center;
}

.profile-badges a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.profile-badge {
  display: block;
  width: 82px;
  height: 82px;
  object-fit: contain;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(23, 20, 26, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.profile-badge:hover,
.profile-badge:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(23, 20, 26, 0.22);
}

.family-badge {
  width: 86px;
  height: 86px;
}

.cilex-badge {
  width: 86px;
  height: 86px;
}


.phoenix-brand-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 247, 239, 0.36);
  background: rgba(255, 247, 239, 0.18);
}

.phoenix-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
}

.phoenix-logo {
  display: block;
  width: min(360px, 100%);
  height: auto;
}

.phoenix-awards {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 16px;
  align-items: center;
}

.phoenix-award-banner,
.disability-badge {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(23, 20, 26, 0.14);
}

.disability-badge {
  padding: 10px;
}


.amity-regulation-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 247, 239, 0.36);
  background: rgba(255, 247, 239, 0.18);
}

.clc-badge {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(23, 20, 26, 0.14);
}

.amity-regulation-strip h2 {
  margin-bottom: 8px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--white);
}

.amity-regulation-strip p {
  margin-bottom: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: rgba(255, 247, 239, 0.9);
  line-height: 1.55;
}


.avma-panel {
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
  align-items: center;
}

.avma-badge {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(23, 20, 26, 0.14);
}

.avma-panel h2 {
  margin-bottom: 8px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--white);
}

.avma-panel p {
  margin-bottom: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: rgba(255, 247, 239, 0.9);
  line-height: 1.55;
}


.primary-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}

.primary-grid-two .path-card {
  min-height: 255px;
}

@media (max-width: 1060px) {
  .primary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path-card { min-height: 235px; }
  .profile-hero { grid-template-columns: 1fr; }
  .profile-card { max-width: 440px; }
  .service-list-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phoenix-awards { grid-template-columns: 1fr; }
  .disability-badge { max-width: 220px; margin: 0 auto; }
  .amity-regulation-strip { grid-template-columns: 1fr; text-align: center; }
  .clc-badge { margin: 0 auto; }
  .avma-panel { grid-template-columns: 1fr; text-align: center; }
  .avma-badge { margin: 0 auto; }
}

@media (max-width: 720px) {
  .page-shell,
  .subpage-shell {
    padding: 14px;
    align-items: start;
  }

  .gateway-card,
  .subpage-card {
    min-height: calc(100vh - 28px);
    padding: 22px;
    border-radius: 26px;
    justify-content: flex-start;
  }

  .gateway-card::before,
  .subpage-card::before {
    inset: 10px;
    border-radius: 20px;
  }

  .logo {
    width: 108px;
    border-radius: 16px;
  }

  .primary-grid,
  .service-list,
  .content-grid,
  .service-list-wide {
    grid-template-columns: 1fr;
  }

  .path-card {
    min-height: auto;
    padding: 18px;
  }

  .path-card h2 { font-size: 1.45rem; }

  .path-card p { font-size: 0.9rem; }

  .not-sure {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .legal-modal,
  .contact-modal { padding: 12px; }

  .modal-panel {
    max-height: calc(100vh - 24px);
    border-radius: 24px;
    padding: 24px 18px;
  }

  .subpage-top,
  .subpage-actions,
  .hero-actions {
    justify-content: center;
    text-align: center;
  }

  .profile-copy {
    text-align: center;
  }

  .profile-badges {
    justify-content: center;
  }

  .profile-card {
    max-width: 330px;
    margin: 0 auto;
  }

  .regulatory-panel div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
