/*
 * Dallas Financial Planning approved homepage.
 * All selectors are scoped to .dfp-homepage to limit child-theme conflicts.
 */

html:has(body.dfp-homepage-template),
body.dfp-homepage-template {
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html:has(body.dfp-homepage-template)::-webkit-scrollbar,
body.dfp-homepage-template::-webkit-scrollbar {
  display: none;
}

.dfp-homepage {
  --green: #022714;
  --tan: #d3c19f;
  --brown: #87643a;
  --cream: #f7f1e8;
  --ink: #15271f;
  --line: #ded2c5;
  --font-serif: 'Book Antiqua', 'Palatino Linotype', Palatino, Georgia, serif;
  --font-sans: Roboto, Arial, sans-serif;
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin: 0 calc(50% - 50vw);
  padding: 0;
  overflow-x: hidden;
  border: 0;
  background: var(--cream);
  color: var(--green);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
}

.dfp-homepage,
.dfp-homepage *,
.dfp-homepage *::before,
.dfp-homepage *::after {
  box-sizing: border-box;
}

.dfp-homepage a {
  font: inherit;
}

.dfp-homepage img {
  display: block;
  max-width: 100%;
  border: 0;
}

.dfp-homepage figure,
.dfp-homepage blockquote,
.dfp-homepage table {
  margin: 0;
}

.dfp-homepage section {
  margin: 0;
  padding: 0;
  border: 0;
}

.dfp-homepage .site-frame {
  width: min(89.2%, 1285px);
  margin-inline: auto;
}

.dfp-homepage .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0, 0, 0, 0);
}

.dfp-homepage .hero {
  position: relative;
  min-height: clamp(416px, calc(39.4vw + 96px), 664px);
  overflow: hidden;
  background: var(--cream);
}

.dfp-homepage .hero-pattern {
  position: absolute;
  top: 50%;
  right: 0;
  width: auto;
  height: 130%;
  aspect-ratio: 1600 / 520;
  background-image: url('../assets/hero-connector-pattern.svg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
  transform: translateY(-50%) scaleX(0.464);
  transform-origin: right center;
}

.dfp-homepage .hero-content {
  position: relative;
  z-index: 1;
  padding-top: clamp(29px, 3.55vw, 51px);
}

.dfp-homepage .hero h1 {
  max-width: 44vw;
  margin: 0;
  color: var(--green);
  font-family: var(--font-serif);
  font-size: clamp(35.5px, 4.35vw, 63px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.dfp-homepage .hero h1 span,
.dfp-homepage .hero h1 strong,
.dfp-homepage .hero h1 em {
  display: block;
}

.dfp-homepage .hero h1 strong {
  font-weight: 700;
  letter-spacing: -0.055em;
  word-spacing: 0.22em;
}

.dfp-homepage .hero h1 > span:nth-of-type(2) {
  letter-spacing: -0.096em;
  word-spacing: 0.22em;
}

.dfp-homepage .hero h1 em {
  margin-top: clamp(7px, 0.85vw, 12px);
  color: var(--brown);
  font-size: 0.86em;
  font-style: normal;
  font-weight: 400;
}

.dfp-homepage .hero p {
  width: min(39vw, 562px);
  margin: clamp(10px, 0.8vw, 12px) 0 clamp(17px, 2.1vw, 30px);
  color: #1e2722;
  font-family: var(--font-sans);
  font-size: clamp(12px, 1.4vw, 20px);
  font-weight: 400;
  line-height: 1.62;
}

.dfp-homepage .cta {
  display: inline-flex;
  width: clamp(215px, 26.15vw, 377px);
  min-height: clamp(43px, 5.6vw, 81px);
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 1.75vw, 25px);
  padding-inline: clamp(20px, 2.38vw, 34px);
  border: 0;
  border-radius: 4px;
  background: var(--brown);
  color: #fff;
  font-family: var(--font-sans);
  font-size: clamp(13px, 1.56vw, 22px);
  font-weight: 500;
  line-height: normal;
  text-decoration: none;
}

.dfp-homepage .cta:hover,
.dfp-homepage .cta:focus-visible {
  background: #76532f;
  color: #fff;
  text-decoration: none;
}

.dfp-homepage a:focus-visible {
  outline: 3px solid #b67b27;
  outline-offset: 3px;
}

.dfp-homepage .coastal-photo {
  width: 100%;
  height: clamp(249px, 30.7vw, 442px);
  margin: 0;
  overflow: hidden;
  background: #c9c3b7;
}

.dfp-homepage .coastal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.dfp-homepage .risk-section {
  background: var(--cream);
  padding-block: clamp(42px, 5.3vw, 76px) clamp(21px, 1.95vw, 26px);
}

.dfp-homepage .risk-layout {
  display: grid;
  grid-template-columns: minmax(0, 44%) minmax(0, 1fr);
  gap: clamp(24px, 2.2vw, 32px);
  align-items: start;
}

.dfp-homepage .eyebrow {
  margin: 0;
  color: var(--brown);
  font-family: var(--font-sans);
  font-size: clamp(10px, 1.22vw, 17.5px);
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.dfp-homepage .risk-copy h2 {
  max-width: 485px;
  margin: clamp(14px, 1.67vw, 24px) 0 0;
  color: var(--green);
  font-family: var(--font-serif);
  font-size: clamp(29px, 3.32vw, 47px);
  font-weight: 400;
  letter-spacing: -0.043em;
  line-height: 1.16;
}

.dfp-homepage .question-list {
  margin: -12px 0 0;
  padding: 0;
  list-style: none;
}

.dfp-homepage .question-list li {
  display: grid;
  min-height: clamp(40px, 5.05vw, 73px);
  grid-template-columns: clamp(23px, 2.85vw, 41px) minmax(0, 1fr);
  gap: clamp(9px, 1.25vw, 18px);
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.dfp-homepage .question-list li:last-child {
  border-bottom: 0;
}

.dfp-homepage .question-mark {
  display: grid;
  width: clamp(23px, 2.85vw, 41px);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: #9f650e;
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(14px, 1.75vw, 25px);
  line-height: 1;
}

.dfp-homepage .question-list p {
  margin: 0;
  color: #1d2722;
  font-family: var(--font-sans);
  font-size: clamp(11px, 1.52vw, 21px);
  font-weight: 400;
  line-height: 1.25;
  white-space: nowrap;
}

.dfp-homepage .expertise-section {
  position: relative;
  height: clamp(358px, 44.1vw, 635px);
  overflow: visible;
  background: #022714;
  color: #fff;
}

.dfp-homepage .expertise-pattern {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 0;
  width: auto;
  height: 130%;
  aspect-ratio: 1600 / 520;
  background-image: url('../assets/green-section-connector-pattern.svg');
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  clip-path: inset(11.5385% 0);
  opacity: 0.72;
  pointer-events: none;
  transform: translateY(-50%) scaleX(0.318);
  transform-origin: left center;
}

.dfp-homepage .diagram-wrap {
  position: absolute;
  z-index: 1;
  inset: 0 0 0 auto;
  width: 61%;
  height: 100%;
  isolation: isolate;
  background: #022714;
  pointer-events: none;
}

.dfp-homepage .diagram-wrap::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: radial-gradient(
    ellipse 56% 86% at 49% 50%,
    rgb(255 255 255) 0%,
    rgb(255 255 255 / 98%) 30%,
    rgb(250 247 239 / 82%) 48%,
    rgb(229 226 214 / 44%) 65%,
    rgb(2 39 20 / 0%) 84%
  );
  content: '';
}

.dfp-homepage .risk-wheel-art {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 49%;
  width: auto;
  max-width: none;
  height: 98%;
  opacity: 1;
  transform: translate(-50%, -50%);
}

.dfp-homepage .expertise-content {
  position: relative;
  z-index: 2;
  padding-top: clamp(72px, 6.75vw, 97px);
  padding-left: clamp(20px, 2.85vw, 41px);
}

.dfp-homepage .expertise-heading-group {
  position: relative;
  display: inline-block;
}

.dfp-homepage .expertise-transition-arrow {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  display: block;
  width: clamp(44px, 4.3vw, 60px);
  max-width: none;
  height: auto;
  margin: 0;
  pointer-events: none;
  transform: translateX(-50%);
}

.dfp-homepage .expertise-eyebrow {
  margin: 0;
  color: #b97415;
  font-family: var(--font-serif);
  font-size: clamp(19px, 2.67vw, 38px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
}

.dfp-homepage .expertise-content h2 {
  max-width: 39%;
  margin: clamp(13px, 1.6vw, 23px) 0 clamp(22px, 2.5vw, 36px);
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(27px, 3vw, 43px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.28;
}

.dfp-homepage .reviews-section {
  height: clamp(286px, 35.2vw, 507px);
  overflow: hidden;
  background: var(--cream);
  padding-block: clamp(36px, 4.5vw, 65px) clamp(23px, 2.85vw, 41px);
}

.dfp-homepage .reviews-shell {
  position: relative;
  width: min(91%, 1310px);
  margin-inline: auto;
}

.dfp-homepage .reviews-viewport {
  overflow: hidden;
}

.dfp-homepage .reviews-track {
  display: flex;
  column-gap: 0;
  align-items: stretch;
  transform: translate3d(0, 0, 0);
  transition: none;
  will-change: transform;
}

.dfp-homepage .reviews-track.is-moving {
  transition: transform 680ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.dfp-homepage .review {
  display: flex;
  min-width: 0;
  height: clamp(220px, 25.2vw, 363px);
  min-height: 0;
  flex: 0 0 calc(100% / 3);
  flex-direction: column;
  margin: 0;
  padding-inline: clamp(23px, 2.75vw, 40px);
  border: 0;
  background: transparent;
}

.dfp-homepage .review-stars {
  color: #9d6b2c;
  font-family: Georgia, serif;
  font-size: clamp(19px, 2.45vw, 35px);
  letter-spacing: 0.24em;
  line-height: 1;
  white-space: nowrap;
}

.dfp-homepage .review blockquote {
  margin: clamp(16px, 2vw, 29px) 0 0;
  padding: 0;
  border: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.98vw, 28px);
  font-style: normal;
  font-weight: 400;
  line-height: 1.45;
}

.dfp-homepage .review cite {
  margin-top: auto;
  padding-top: clamp(6px, 0.75vw, 11px);
  color: #274438;
  font-family: var(--font-serif);
  font-size: clamp(15px, 2vw, 28px);
  font-style: italic;
  font-weight: 400;
  line-height: normal;
  text-align: right;
  transform: translateY(-8px);
}

.dfp-homepage .comparison-section {
  min-height: clamp(409px, 50.4vw, 726px);
  border-top: 1px solid #e1d8cf;
  background: var(--cream);
  padding-block: clamp(14px, 1.75vw, 25px) clamp(27px, 3.35vw, 48px);
}

.dfp-homepage .comparison-eyebrow {
  margin: 0;
  color: var(--brown);
  font-family: var(--font-sans);
  font-size: clamp(9px, 1.14vw, 16px);
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.dfp-homepage .comparison-content > h2 {
  margin: clamp(5px, 0.65vw, 9px) 0 clamp(17px, 2.1vw, 30px);
  color: var(--green);
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 43px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-align: center;
}

.dfp-homepage .comparison-scroll {
  position: relative;
  left: -0.5vw;
  width: 98%;
  margin-inline: auto;
  overflow-x: auto;
  border-radius: clamp(8px, 1vw, 14px);
}

.dfp-homepage .comparison-table {
  width: 100%;
  min-width: 700px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-collapse: separate;
  border-radius: clamp(8px, 1vw, 14px);
  border-spacing: 0;
  background: var(--cream);
  table-layout: fixed;
}

.dfp-homepage .comparison-table th,
.dfp-homepage .comparison-table td {
  height: clamp(40px, 4.9vw, 71px);
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background-image: none;
  box-shadow: none;
  color: inherit;
  font-family: var(--font-sans);
  line-height: normal;
}

.dfp-homepage .comparison-table thead th {
  height: clamp(66px, 8.2vw, 118px);
}

.dfp-homepage .comparison-table tbody tr:last-child th,
.dfp-homepage .comparison-table tbody tr:last-child td {
  border-bottom: 0;
}

.dfp-homepage .service-heading,
.dfp-homepage .comparison-table tbody th {
  width: 35.5%;
}

.dfp-homepage .dallas-heading,
.dfp-homepage .dallas-cell {
  width: 31%;
}

.dfp-homepage .planner-heading,
.dfp-homepage .comparison-table tbody td:last-child {
  width: 33.5%;
}

.dfp-homepage .comparison-table tbody th {
  padding-inline: clamp(19px, 2.35vw, 34px);
  color: #26362f;
  font-size: clamp(11px, 1.4vw, 20px);
  font-weight: 400;
  text-align: left;
}

.dfp-homepage .comparison-table tbody th img {
  display: inline-block;
  width: clamp(25px, 3.3vw, 47px);
  height: clamp(26px, 3.45vw, 50px);
  margin-right: clamp(14px, 2.1vw, 30px);
  object-fit: contain;
  vertical-align: middle;
}

.dfp-homepage .comparison-table tbody th span {
  vertical-align: middle;
}

.dfp-homepage .dallas-heading,
.dfp-homepage .dallas-cell {
  border-bottom-color: rgb(211 193 159 / 19%) !important;
  background: var(--green) !important;
}

.dfp-homepage .dallas-heading img {
  width: 100%;
  height: auto;
  margin-inline: auto;
  filter: grayscale(1) brightness(2.35) contrast(1.18);
  transform: scale(0.99);
}

.dfp-homepage .planner-heading {
  padding: 8px;
  color: #746d63;
  font-size: clamp(9px, 1.15vw, 16px);
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
}

.dfp-homepage .planner-heading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.dfp-homepage .planner-heading-content img {
  width: clamp(44px, 5.23vw, 68px);
  height: auto;
  margin-block: clamp(-8px, -0.625vw, -5px);
  margin-inline: auto;
}

.dfp-homepage .planner-heading-content span {
  display: block;
}

.dfp-homepage .comparison-table td {
  text-align: center;
}

.dfp-homepage .status {
  display: inline-grid;
  width: clamp(22px, 2.6vw, 37px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--font-sans);
  font-size: clamp(13px, 1.5vw, 22px);
  font-weight: 400;
  line-height: 1;
}

.dfp-homepage .status-dallas {
  color: #05c578;
}

.dfp-homepage .status-general {
  color: #a9762b;
}

.dfp-homepage .status-missing {
  color: #c6c3bd;
}

@media (max-width: 900px) {
  .dfp-homepage .review {
    flex-basis: 50%;
  }
}

@media (max-width: 720px) {
  .dfp-homepage .site-frame {
    width: calc(100% - 40px);
  }

  .dfp-homepage .hero {
    min-height: 570px;
  }

  .dfp-homepage .hero-pattern {
    inset: 50% 0 auto auto;
    width: auto;
    height: 130%;
    opacity: 0.68;
    transform: translateY(-50%) scaleX(0.192);
  }

  .dfp-homepage .hero-content {
    padding-top: 46px;
  }

  .dfp-homepage .hero h1 {
    max-width: 100%;
    font-size: clamp(42px, 12vw, 58px);
  }

  .dfp-homepage .hero p {
    width: min(100%, 420px);
    margin-block: 26px 24px;
    font-size: 15px;
  }

  .dfp-homepage .cta {
    min-height: 43px;
    font-size: 14px;
  }

  .dfp-homepage .coastal-photo {
    height: clamp(260px, 64vw, 390px);
  }

  .dfp-homepage .risk-section {
    padding-block: 55px 44px;
  }

  .dfp-homepage .risk-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .dfp-homepage .risk-copy h2 {
    font-size: clamp(32px, 8.7vw, 44px);
  }

  .dfp-homepage .question-list li {
    min-height: 56px;
  }

  .dfp-homepage .question-list p {
    font-size: 14px;
    white-space: normal;
  }

  .dfp-homepage .expertise-section {
    height: auto;
    min-height: 820px;
  }

  .dfp-homepage .expertise-pattern {
    top: 50%;
    bottom: auto;
    width: auto;
    height: 130%;
    transform: translateY(-50%) scaleX(0.12);
  }

  .dfp-homepage .diagram-wrap {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    margin-top: 50px;
  }

  .dfp-homepage .expertise-content {
    padding: 58px 0 0;
  }

  .dfp-homepage .expertise-content h2 {
    max-width: 100%;
    font-size: clamp(32px, 8.5vw, 44px);
  }

  .dfp-homepage .reviews-section {
    padding-block: 50px 36px;
  }

  .dfp-homepage .reviews-shell {
    width: calc(100% - 40px);
  }

  .dfp-homepage .review {
    min-height: 300px;
    flex-basis: 100%;
    padding-inline: 0;
  }

  .dfp-homepage .review blockquote {
    font-size: clamp(20px, 5.7vw, 26px);
  }

  .dfp-homepage .review cite {
    font-size: 18px;
  }

  .dfp-homepage .comparison-section {
    padding-block: 32px 46px;
  }

  .dfp-homepage .comparison-scroll {
    left: 0;
  }

  .dfp-homepage .comparison-content > h2 {
    font-size: clamp(31px, 8vw, 41px);
  }
}

@media (max-width: 430px) {
  .dfp-homepage .hero {
    min-height: 600px;
  }

  .dfp-homepage .hero h1 {
    font-size: 42px;
  }

  .dfp-homepage .comparison-content {
    width: calc(100% - 28px);
  }
}

/* Phone-only corrections. Desktop and tablet rules above remain unchanged. */
@media (max-width: 480px) {
  .dfp-homepage .risk-section .eyebrow {
    font-size: 15px;
  }

  .dfp-homepage .risk-section {
    padding-bottom: 5px;
  }

  .dfp-homepage .hero-pattern {
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      rgb(0 0 0 / 18%) 30%,
      #000 82%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      rgb(0 0 0 / 18%) 30%,
      #000 82%
    );
  }

  .dfp-homepage .coastal-photo {
    height: auto;
    aspect-ratio: 2048 / 629;
  }

  .dfp-homepage .coastal-photo img {
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  .dfp-homepage .risk-layout {
    gap: 34px;
    padding-bottom: 34px;
  }

  .dfp-homepage .expertise-section {
    display: flex;
    height: auto;
    min-height: 0;
    flex-direction: column;
  }

  .dfp-homepage .expertise-content {
    z-index: 2;
    order: 1;
    padding: 70px 0 78px;
  }

  .dfp-homepage .diagram-wrap {
    position: relative;
    order: 2;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    margin-top: 0;
    background: var(--cream);
  }

  .dfp-homepage .diagram-wrap::before {
    display: none;
  }

  .dfp-homepage .risk-wheel-art {
    left: 50%;
    height: 96%;
  }

  .dfp-homepage .reviews-section {
    height: auto;
    padding-block: 42px 32px;
  }

  .dfp-homepage .reviews-shell {
    width: calc(100% - 24px);
  }

  .dfp-homepage .review {
    height: auto;
    min-height: 0;
    flex-basis: 50%;
    padding-inline: 10px;
  }

  .dfp-homepage .review-stars {
    font-size: 19px;
    letter-spacing: 0.16em;
  }

  .dfp-homepage .review blockquote {
    min-height: 155px;
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.38;
  }

  .dfp-homepage .review cite {
    margin-top: 8px;
    padding-top: 0;
    font-size: 16px;
    transform: none;
  }

  .dfp-homepage .comparison-eyebrow {
    font-size: 13.5px;
  }

  .dfp-homepage .comparison-content {
    width: calc(100% - 16px);
  }

  .dfp-homepage .comparison-scroll {
    left: 0;
    width: 100%;
    overflow-x: hidden;
    border-radius: 6px;
  }

  .dfp-homepage .comparison-table {
    width: 100%;
    min-width: 0;
    border-radius: 6px;
  }

  .dfp-homepage .service-heading,
  .dfp-homepage .comparison-table tbody th {
    width: 48%;
  }

  .dfp-homepage .dallas-heading,
  .dfp-homepage .dallas-cell,
  .dfp-homepage .planner-heading,
  .dfp-homepage .comparison-table tbody td:last-child {
    width: 26%;
  }

  .dfp-homepage .comparison-table th,
  .dfp-homepage .comparison-table td {
    height: 42px;
  }

  .dfp-homepage .comparison-table thead th {
    height: 64px;
  }

  .dfp-homepage .comparison-table tbody th {
    padding-inline: 4px;
    font-size: 9.5px;
    white-space: nowrap;
  }

  .dfp-homepage .comparison-table tbody th img {
    width: 16px;
    height: 16px;
    margin-right: 4px;
  }

  .dfp-homepage .dallas-heading img {
    width: 94%;
    transform: none;
  }

  .dfp-homepage .planner-heading {
    padding: 2px;
    font-size: 7.5px;
    line-height: 1.05;
  }

  .dfp-homepage .planner-heading-content {
    gap: 1px;
  }

  .dfp-homepage .planner-heading-content img {
    width: 24px;
    margin: 0 auto;
  }

  .dfp-homepage .status {
    width: 18px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dfp-homepage *,
  .dfp-homepage *::before,
  .dfp-homepage *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
