:root {
  --d2-navy: #1a2b4d;
  --d2-navy-dark: #12203b;
  --d2-gold: #d4af37;
  --d2-offwhite: #f8f8f6;
  --d2-charcoal: #3a3a3a;
  --d2-white: #ffffff;
  --d2-line: #e2e4e8;
}

.home-page {
  background: var(--d2-offwhite);
  color: var(--d2-navy);
  font-family: 'Inter', system-ui, sans-serif;
}

.home-page .nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 80px;
  border-bottom: 1px solid transparent;
  background: rgba(26, 43, 77, .42);
  box-shadow: none;
  backdrop-filter: blur(8px);
  transition: height .3s ease, background .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.home-page .nav.scrolled {
  height: 60px;
  border-color: rgba(212, 175, 55, .3);
  background: rgba(26, 43, 77, .88);
  box-shadow: 0 10px 30px rgba(8, 17, 33, .18);
  backdrop-filter: blur(16px);
}

.home-page .nav-inner {
  min-height: 100%;
  height: 100%;
  padding: 0;
}

.home-page .brand {
  min-width: 245px;
  gap: 10px;
}

.home-page .brand > img {
  width: 40px;
  height: 40px;
  padding: 5px;
  border-radius: 4px;
  background: var(--d2-gold);
  filter: none;
  object-fit: contain;
}

.home-page .brand-title {
  color: var(--d2-white);
  font-size: 19px;
  font-weight: 700;
}

.home-page .brand-sub {
  color: rgba(255, 255, 255, .68);
  font-size: 9px;
}

.home-page .nav-links {
  gap: 28px;
}

.home-page .nav-links a {
  padding: 19px 0;
  color: rgba(255, 255, 255, .9);
  font-size: 13px;
  font-weight: 600;
}

.home-page .nav-links a::after {
  height: 2px;
  background: var(--d2-gold);
}

.home-page .nav-actions .btn {
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 4px;
}

.home-page .nav-actions .btn-gold {
  background: var(--d2-gold);
  color: var(--d2-navy);
  box-shadow: 0 0 18px rgba(212, 175, 55, .3);
}

.p-hero {
  position: relative;
  min-height: 100vh;
  background-color: var(--d2-navy);
  background-image: url('https://images.unsplash.com/photo-1697638164340-6c5fc558bdf2?auto=format&fit=crop&w=2000&q=88');
  background-position: center;
  background-size: cover;
}

.p-hero::before {
  position: absolute;
  z-index: 0;
  background: rgba(26, 43, 77, .64);
  content: "";
  inset: 0;
}

.p-hero::after {
  position: absolute;
  right: auto;
  bottom: 0;
  left: 0;
  width: 68%;
  height: 100%;
  background: rgba(26, 43, 77, .62);
  content: "";
}

.p-hero-emblem {
  display: none;
}

.p-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 150px;
  padding-bottom: 110px;
}

.p-hero .p-kicker {
  display: flex;
  margin-bottom: 24px;
  align-items: center;
  gap: 16px;
  color: var(--d2-gold);
  font-size: 13px;
  font-weight: 700;
}

.p-hero .p-kicker::before {
  width: 48px;
  height: 2px;
  background: var(--d2-gold);
  content: "";
}

.p-hero h1 {
  max-width: 780px;
  color: var(--d2-white);
  font-size: 72px;
  font-weight: 700;
  line-height: 1.08;
}

.p-hero-lead {
  max-width: 690px;
  margin-top: 26px;
  color: rgba(255, 255, 255, .82);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.7;
}

.p-hero-actions {
  margin-top: 38px;
  gap: 16px;
}

.p-hero-actions .p-button {
  min-height: 56px;
  padding: 15px 30px;
  border-radius: 3px;
  background: var(--d2-gold);
  color: var(--d2-navy);
  box-shadow: 0 14px 35px rgba(6, 14, 30, .25);
}

.p-hero-actions > a {
  min-height: 56px;
  padding: 15px 26px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 3px;
  color: var(--d2-white);
  backdrop-filter: blur(8px);
}

.p-hero-actions > a:hover {
  border-color: var(--d2-white);
  background: var(--d2-white);
  color: var(--d2-navy);
}

.p-proof {
  position: relative;
  z-index: 3;
  border: 0;
  background: var(--d2-offwhite);
}

.p-proof-grid {
  padding: 42px 0;
}

.p-proof-grid > div {
  display: flex;
  min-height: 0;
  padding: 8px 34px;
  align-items: center;
  flex-direction: column;
  border-color: rgba(26, 43, 77, .12);
  text-align: center;
}

.d2-trust-icon {
  display: grid !important;
  width: 34px;
  height: 34px;
  margin: 0 0 10px !important;
  place-items: center;
  color: var(--d2-gold) !important;
}

.d2-trust-icon svg,
.d2-service-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.p-proof-grid strong {
  color: var(--d2-navy);
  font-size: 27px;
}

.p-proof-grid span:not(.d2-trust-icon) {
  max-width: 260px;
  margin-top: 4px;
  color: var(--d2-charcoal);
  font-size: 13px;
}

.p-section {
  padding: 92px 0;
}

.p-kicker {
  color: var(--d2-gold);
  font-size: 13px;
  font-weight: 700;
}

.p-heading h2,
.p-section-head h2,
.p-profile-copy h2,
.p-contact h2 {
  color: var(--d2-navy);
  font-size: 48px;
  font-weight: 700;
}

.p-heading > p:not(.p-kicker),
.p-section-head > p:not(.p-kicker) {
  color: var(--d2-charcoal);
}

.p-application {
  background: var(--d2-white);
}

.p-application .p-split {
  padding: 52px;
  border: 1px solid #edf0f3;
  border-radius: 12px;
  background: var(--d2-offwhite);
  box-shadow: 0 20px 55px rgba(26, 43, 77, .08);
}

.p-button-dark {
  border-radius: 4px;
  background: var(--d2-navy);
}

.p-flow {
  border-color: rgba(26, 43, 77, .14);
}

.p-flow > div {
  border-color: rgba(26, 43, 77, .14);
}

.p-flow strong {
  color: var(--d2-navy);
}

.p-flow span {
  color: var(--d2-charcoal);
}

.p-services {
  background: var(--d2-offwhite);
  color: var(--d2-navy);
}

.p-services .p-section-head h2 {
  color: var(--d2-navy);
}

.p-services .p-section-head > p:not(.p-kicker) {
  color: var(--d2-charcoal);
}

.p-service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 360px;
  gap: 22px;
  border: 0;
}

.p-service {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  padding: 30px !important;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e1e4e8 !important;
  border-radius: 12px;
  background: var(--d2-white);
  color: var(--d2-navy);
  box-shadow: 0 8px 28px rgba(26, 43, 77, .05);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease;
}

.p-service:nth-child(3) {
  border-color: var(--d2-navy) !important;
  background: var(--d2-navy);
  color: var(--d2-white);
}

.p-service:hover {
  border-color: var(--d2-gold) !important;
  box-shadow: 0 24px 55px rgba(26, 43, 77, .14);
  transform: translateY(-7px);
}

.d2-service-icon {
  display: grid;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  padding: 13px;
  place-items: center;
  border-radius: 8px;
  background: rgba(26, 43, 77, .06);
  color: var(--d2-navy);
  transition: background .3s ease, color .3s ease;
}

.p-service:hover .d2-service-icon {
  background: var(--d2-navy);
  color: var(--d2-gold);
}

.p-service:nth-child(3) .d2-service-icon {
  background: rgba(255, 255, 255, .1);
  color: var(--d2-gold);
}

.p-service h3 {
  display: flex;
  width: 100%;
  min-height: 68px;
  align-items: flex-start;
  color: inherit;
  font-size: 27px;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.p-service:nth-child(1) h3 {
  max-width: none;
  font-size: 27px;
}

.p-service p {
  width: 100%;
  min-height: 48px;
  margin: 14px 0 0;
  color: var(--d2-charcoal);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.p-service:nth-child(3) p {
  color: rgba(255, 255, 255, .75);
}

.p-service > span {
  margin-top: auto;
  padding-top: 24px;
  color: var(--d2-navy);
}

.p-service:nth-child(3) > span {
  color: var(--d2-gold);
}

.p-intake {
  background: var(--d2-white);
}

.p-intake-list {
  overflow: hidden;
  border: 1px solid #e1e4e8;
  border-radius: 12px;
  background: var(--d2-white);
  box-shadow: 0 16px 42px rgba(26, 43, 77, .07);
}

.p-intake-list button {
  padding-right: 24px;
  padding-left: 24px;
  border-color: #e7e9ed;
}

.p-intake-list button:hover {
  border-color: var(--d2-gold);
  background: rgba(212, 175, 55, .08);
  color: var(--d2-navy);
}

.p-intake-list small {
  color: var(--d2-gold);
}

.p-profile {
  background: var(--d2-white);
}

.p-profile-grid {
  max-width: 920px;
  grid-template-columns: .78fr 1.22fr;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 22px 60px rgba(26, 43, 77, .1);
}

.p-monogram-panel {
  min-height: 540px;
  background: var(--d2-navy);
}

.p-monogram {
  border-color: rgba(212, 175, 55, .7);
  color: var(--d2-gold);
}

.p-profile-copy h2,
.p-profile-lead,
.p-official-line {
  color: var(--d2-navy);
}

.p-profile-copy > p:not(.p-kicker):not(.p-profile-lead):not(.p-official-line) {
  color: var(--d2-charcoal);
}

.p-tags span {
  border-radius: 6px;
}

.p-testimonials {
  position: relative;
  overflow: hidden;
  background: var(--d2-navy);
  color: var(--d2-white);
}

.p-testimonials::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 240px;
  height: 240px;
  border-radius: 0 0 0 100%;
  background: rgba(212, 175, 55, .06);
  content: "";
}

.p-testimonial-grid {
  position: relative;
  z-index: 1;
  display: block;
}

.p-testimonial-grid .p-heading {
  max-width: 700px;
  margin: 0 auto 54px;
  text-align: center;
}

.p-testimonial-grid .p-heading h2 {
  color: var(--d2-white);
}

.p-testimonial-grid .p-heading > p:not(.p-kicker) {
  margin-right: auto;
  margin-left: auto;
  color: rgba(255, 255, 255, .7);
}

.p-testimonial {
  overflow: hidden;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.p-quote {
  display: none;
}

.p-testimonial .review-track {
  display: flex;
  gap: 22px;
  transition: transform .4s ease;
}

.p-testimonial .review-slide {
  display: flex;
  min-width: calc((100% - 44px) / 3);
  min-height: 330px;
  padding: 34px;
  justify-content: space-between;
  border-radius: 12px;
  background: var(--d2-white);
  box-shadow: 0 20px 50px rgba(5, 12, 25, .25);
}

.p-testimonial .review-slide::before {
  color: var(--d2-gold);
  font-size: 19px;
  letter-spacing: 3px;
  content: "★★★★★";
}

.p-testimonial .review-slide p {
  margin-top: 24px;
  color: var(--d2-navy);
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-style: italic;
  line-height: 1.75;
}

.p-testimonial .review-slide strong {
  color: var(--d2-navy);
  font-size: 14px;
}

.p-slider-footer {
  min-height: 76px;
  padding: 26px 0 0;
  border: 0;
  background: transparent;
}

.p-slider-footer > span {
  color: rgba(255, 255, 255, .65);
}

.p-slider-footer button {
  width: 48px;
  height: 48px;
  border-color: rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: transparent;
  color: var(--d2-white);
}

.p-slider-footer button:hover {
  border-color: var(--d2-gold);
  background: var(--d2-gold);
  color: var(--d2-navy);
}

.p-journal {
  background: var(--d2-offwhite);
}

.p-journal-grid {
  gap: 22px;
  border: 0;
  background: transparent;
}

.p-journal-grid a {
  border: 1px solid #e1e4e8;
  border-radius: 12px;
  box-shadow: 0 10px 32px rgba(26, 43, 77, .05);
}

.p-journal-grid a:hover {
  border-color: var(--d2-gold);
  background: var(--d2-white);
  box-shadow: 0 20px 48px rgba(26, 43, 77, .12);
  transform: translateY(-5px);
}

.p-journal-grid small,
.p-journal-grid a > span {
  color: var(--d2-gold);
}

.p-faq {
  background: var(--d2-white);
}

.p-faq-list {
  overflow: hidden;
  border: 1px solid #e1e4e8;
  border-radius: 12px;
  background: var(--d2-white);
  box-shadow: 0 14px 40px rgba(26, 43, 77, .06);
}

.p-faq .faq-item {
  padding: 0 24px;
  border-color: #e7e9ed;
}

.p-faq .faq-q > span {
  border-color: rgba(26, 43, 77, .2);
  color: var(--d2-gold);
}

.p-contact {
  padding: 92px 0;
  background: var(--d2-offwhite);
  color: var(--d2-navy);
}

.d2-contact-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid #edf0f3;
  border-radius: 16px;
  background: var(--d2-white);
  box-shadow: 0 24px 65px rgba(26, 43, 77, .13);
}

.d2-contact-form {
  padding: 58px;
}

.d2-contact-form h2 {
  max-width: 560px;
  margin: 0;
  color: var(--d2-navy);
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  line-height: 1.15;
}

.d2-contact-lead {
  margin: 14px 0 0;
  color: var(--d2-charcoal);
  font-size: 14px;
  line-height: 1.7;
}

.d2-contact-links {
  display: flex;
  margin-top: 22px;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.d2-contact-links a {
  color: var(--d2-navy);
  font-size: 12px;
  font-weight: 800;
}

.d2-contact-links a:hover {
  color: var(--d2-gold);
}

.d2-contact-form form {
  margin-top: 28px;
}

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

.d2-contact-form .field label {
  margin-bottom: 1px;
  color: var(--d2-navy);
  letter-spacing: 0;
}

.d2-contact-form .field label span {
  color: #8a8f98;
  font-size: 9px;
  text-transform: none;
}

.d2-contact-form input,
.d2-contact-form select,
.d2-contact-form textarea {
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  background: var(--d2-offwhite);
}

.d2-contact-form textarea {
  min-height: 110px;
}

.d2-contact-form input:focus,
.d2-contact-form select:focus,
.d2-contact-form textarea:focus {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--d2-gold);
}

.d2-contact-form .consent {
  margin: 16px 0;
}

.d2-submit {
  display: flex;
  width: 100%;
  min-height: 54px;
  padding: 14px 20px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  background: var(--d2-gold);
  color: var(--d2-navy);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.d2-submit:hover {
  background: var(--d2-navy);
  color: var(--d2-white);
  transform: translateY(-2px);
}

.d2-map {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: var(--d2-navy);
}

.d2-map iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(90%) hue-rotate(180deg) contrast(.75);
  inset: 0;
}

.d2-map-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  background: rgba(212, 175, 55, .22);
  transform: translate(-50%, -50%);
  animation: d2-pulse 2.2s ease-in-out infinite;
}

.d2-map-marker span {
  width: 22px;
  height: 22px;
  border: 2px solid var(--d2-white);
  border-radius: 50%;
  background: var(--d2-gold);
  box-shadow: 0 0 18px var(--d2-gold);
}

.d2-map > a {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  padding: 12px 18px;
  border-radius: 4px;
  background: var(--d2-gold);
  color: var(--d2-navy);
  font-size: 12px;
  font-weight: 900;
}

@keyframes d2-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .9; }
  50% { transform: translate(-50%, -50%) scale(1.12); opacity: 1; }
}

.d2-footer {
  padding: 72px 0 28px;
  background: var(--d2-charcoal);
  color: var(--d2-white);
}

.d2-footer-grid {
  display: grid;
  margin-bottom: 60px;
  grid-template-columns: 1.35fr .75fr .8fr 1.1fr;
  gap: 56px;
}

.d2-footer-grid > div {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  flex-direction: column;
}

.d2-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.d2-footer-brand > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 4px;
  background: var(--d2-gold);
}

.d2-footer-brand img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.d2-footer-brand strong {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
}

.d2-footer-grid h3 {
  margin: 0 0 20px;
  color: var(--d2-gold);
  font-family: 'Playfair Display', serif;
  font-size: 19px;
}

.d2-footer-grid p,
.d2-footer-grid a:not(.d2-footer-brand) {
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.d2-footer-grid a:not(.d2-footer-brand) {
  margin-bottom: 8px;
}

.d2-footer-grid a:hover {
  color: var(--d2-gold);
}

.d2-footer-grid > div:first-child > p {
  max-width: 310px;
  margin-top: 20px;
}

.d2-instagram {
  margin-top: 14px;
}

.d2-footer-bottom {
  display: flex;
  padding-top: 24px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 2px solid rgba(212, 175, 55, .3);
  color: rgba(255, 255, 255, .56);
  font-size: 12px;
}

.home-page .chat-toggle {
  border-color: rgba(212, 175, 55, .58);
  background: var(--d2-navy);
  box-shadow: 0 14px 36px rgba(8, 17, 33, .28);
}

.home-page .chat-head,
.home-page .chat-input button {
  background: var(--d2-navy);
}

.home-page .chat-progress-bar,
.home-page .quick-row button:hover {
  border-color: var(--d2-gold);
  color: var(--d2-gold);
}

.home-page :is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--d2-gold);
  outline-offset: 3px;
}

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

@media (max-width: 980px) {
  .home-page .nav {
    height: 72px;
  }

  .home-page .nav-inner {
    padding: 8px 0;
    align-items: center;
  }

  .home-page .nav-links {
    top: 72px;
    padding: 28px;
    border: 0;
    border-radius: 0;
    background: var(--d2-navy);
  }

  .home-page .nav-links.open {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-page .nav-links a {
    padding: 11px 0;
    font-family: 'Playfair Display', serif;
    font-size: 22px;
  }

  .p-hero h1 {
    font-size: 58px;
  }

  .p-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 340px;
  }

  .p-testimonial .review-slide {
    min-width: calc((100% - 22px) / 2);
  }

  .d2-contact-card {
    grid-template-columns: 1fr;
  }

  .d2-map {
    min-height: 420px;
  }

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

@media (max-width: 640px) {
  .home-page .brand {
    min-width: 0;
  }

  .home-page .brand-title {
    font-size: 16px;
  }

  .home-page .brand-sub {
    display: none;
  }

  .p-hero {
    min-height: 760px;
    background-position: 62% center;
  }

  .p-hero::after {
    width: 100%;
    background: rgba(26, 43, 77, .5);
  }

  .p-hero-inner {
    padding-top: 132px;
    padding-bottom: 100px;
  }

  .p-hero h1 {
    font-size: 44px;
  }

  .p-hero-lead {
    font-size: 17px;
  }

  .p-hero-actions {
    align-items: stretch;
  }

  .p-hero-actions > a,
  .p-hero-actions .p-button {
    width: 100%;
  }

  .p-proof-grid {
    padding: 20px 0;
  }

  .p-proof-grid > div {
    padding: 24px 0;
  }

  .p-application .p-split {
    padding: 28px 22px;
  }

  .p-heading h2,
  .p-section-head h2,
  .p-profile-copy h2,
  .d2-contact-form h2 {
    font-size: 34px;
  }

  .p-service-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 300px;
  }

  .p-service {
    min-height: 0;
  }

  .p-service h3,
  .p-service:nth-child(1) h3 {
    min-height: 58px;
    font-size: 24px;
  }

  .p-service > span {
    padding-top: 18px;
  }

  .p-profile-grid {
    grid-template-columns: 1fr;
  }

  .p-testimonial .review-slide {
    min-width: 100%;
  }

  .d2-contact-form {
    padding: 34px 22px;
  }

  .d2-map {
    min-height: 340px;
  }

  .d2-footer-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .d2-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}
