/* Mobile */
@media (max-width: 1024px), (pointer: coarse) {
  :root {
    --site-scale: 1;
  }

  .site-header {
    padding: 0;
  }

  .top-nav {
    min-height: 78px;
    padding: 0 14px;
  }

  .site-header.is-scrolled .top-nav {
    min-height: 64px;
    padding-inline: 14px;
  }

  .brand-link {
    width: clamp(138px, 36vw, 176px);
    min-height: 68px;
  }

  .site-header.is-scrolled .brand-link {
    width: clamp(132px, 32vw, 168px);
    min-height: 56px;
  }

  .brand-link img {
    max-height: 76px;
    transform: translateY(8px);
  }

  .site-header.is-scrolled .brand-link img {
    max-height: 54px;
    transform: translateY(2px);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--gold-border-24);
    border-radius: var(--radius-small);
    background: var(--cream-98);
    box-shadow: var(--shadow-mobile-menu);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity var(--transition-fast),
      transform var(--transition-fast);
  }

  .nav-menu .nav-links,
  .nav-menu {
    width: 100%;
  }

  .top-nav.is-open .nav-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-menu .nav-links {
    display: grid;
    gap: 4px;
  }

  .nav-menu .nav-links a {
    min-height: 44px;
    padding: 0 4px;
    color: var(--text-dark-76);
    text-shadow: none;
  }

  .nav-menu .nav-links a::after {
    display: none;
  }

  .nav-action {
    width: 100%;
  }

  .first-section {
    min-height: auto;
    padding: 104px 18px 44px;
    overflow: hidden;
  }

  .first-section::before {
    background:
      linear-gradient(180deg, rgba(19, 32, 43, 0.78), rgba(19, 32, 43, 0.36)),
      var(--gradient-dark-side);
    -webkit-mask-image: none;
    mask-image: none;
  }

  .first-section::after {
    display: none;
  }

  .first-section-img {
    position: relative;
    left: auto;
    bottom: auto;
    width: min(360px, 84vw);
    height: auto;
    max-width: 100%;
    margin: 20px auto 0;
  }

  .first-section-content {
    width: 100%;
    min-height: 0;
    padding: 0;
  }

  .first-section-content .eyebrow {
    grid-template-columns: 1fr;
    gap: 0;
    font-size: 18px;
  }

  .first-section-content .eyebrow::before,
  .first-section-content .eyebrow::after {
    display: none;
  }

  .first-section-content h1 {
    font-size: clamp(38px, 11vw, 58px);
  }

  .hero-text {
    font-size: 18px;
  }

  .hero-actions {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .hero-button {
    width: 100%;
  }

  .second-section {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "houses";
    gap: 28px;
    min-height: auto;
    padding: 96px 16px 56px;
    background: rgba(255, 253, 248, 0.90);
  }

  .second-section::before {
    background: linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(247, 240, 226, 0.88));
  }

  .second-section::after,
  .second-section-roof {
    display: none;
  }

  .second-section-content {
    grid-area: content;
  }

  .cplx-houses {
    grid-area: houses;
  }

  .second-section-content {
    align-items: center;
    max-width: 100%;
    margin: 0;
    text-align: center;
    padding-top: 0;
    transform: none;
  }

  .second-section-content .section-title {
    font-size: clamp(30px, 8vw, 44px);
  }

  .second-section-content .section-lead {
    max-width: 100%;
  }

  .cplx-houses {
    width: min(520px, 100%);
    margin: 0 auto;
    grid-template-columns: 1fr;
    justify-content: stretch;
    row-gap: 16px;
    column-gap: 0;
    transform: none;
    filter: none;
  }

  .cplx-house,
  .cplx-house:nth-child(even) {
    aspect-ratio: auto;
    margin-top: 0;
    margin-inline: 0;
    padding: 18px 18px;
    border: 1px solid rgba(201, 168, 76, 0.22);
    border-radius: 18px;
    background: rgba(255, 253, 248, 0.86);
    box-shadow: 0 14px 28px rgba(19, 32, 43, 0.10);
  }

  .house-frame {
    display: none;
  }

  .cplx-house-body {
    position: static;
    inset: auto;
    grid-template-columns: 46px minmax(0, 1fr);
    row-gap: 10px;
    column-gap: 12px;
    padding: 0;
  }

  .cplx-house h3 {
    margin: 0;
    font-size: 22px;
    text-align: right;
  }

  .cplx-house p {
    font-size: 16px;
    line-height: 1.45;
    text-align: right;
  }

  .mortgage-build-inner {
    margin-top: 0;
  }

  .mortgage-build-section {
    min-height: auto;
    padding: 42px 16px 34px;
    background: linear-gradient(180deg, #a87343 0 160px, rgba(255, 253, 248, 0.92) 160px 100%);
    overflow: hidden;
  }

  .mortgage-build-head h2 {
    font-size: clamp(34px, 9vw, 46px);
  }

  .mortgage-build-head > p:not(.mortgage-build-kicker) {
    font-size: 17px;
    line-height: 1.55;
  }

  .mortgage-build-cards {
    width: min(520px, 100%);
    margin-inline: auto;
    grid-template-columns: 1fr;
    padding-bottom: 22px;
  }

  .mortgage-build-cards::before {
    display: none;
  }

  .build-card {
    min-height: 0;
    padding: 24px 20px;
    border-radius: 18px;
  }

  .partners-section,
  .testimonials-section,
  .contact-shell,
  .advisor-resume-inner {
    max-width: 100%;
  }

  .advisor-resume-section {
    padding: 56px 18px 28px;
  }

  .advisor-resume-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "card"
      "photo";
    gap: 0;
    max-width: 100%;
    margin: 0 auto;
  }

  .advisor-resume-card {
    padding: 32px 24px;
    min-height: auto;
    width: 100%;
  }

  .advisor-resume-photo {
    width: 100%;
    min-height: 0;
    margin: 0 auto;
    aspect-ratio: 4 / 3;
  }

  .partners-section {
    width: calc(100% - 36px);
    min-height: auto;
    margin: 20px auto 22px;
    padding: 34px 18px 42px;
    border-radius: 22px;
  }

  .partners-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 18px;
  }

  .testimonials-section {
    width: calc(100% - 36px);
    margin: 0 auto 20px;
    padding: 34px 18px 42px;
    border-radius: 24px;
  }

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

  .contact-section {
    padding: 18px 18px 44px;
  }

  .quick-lead-bar {
    display: none;
  }

  .quick-lead-form {
    min-height: 0;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px;
    border-radius: 20px;
  }

  .quick-lead-title {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    text-align: right;
  }

  .quick-lead-title h2 {
    font-size: 19px;
  }

  .quick-lead-form input,
  .quick-lead-form select,
  .quick-lead-form button {
    min-height: 50px;
    border-radius: 12px;
    font-size: 16px;
  }

  .quick-lead-form button {
    grid-column: 1 / -1;
  }

  .contact-shell {
    grid-template-columns: 1fr;
    padding: 30px 20px;
    border-radius: 24px;
  }

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

  .contact-copy h2::after {
    margin-inline: auto;
  }

  .contact-copy > p:not(.contact-kicker) {
    margin-inline: auto;
  }

  .contact-methods {
    justify-items: center;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .legal-page {
    padding: 104px 14px 34px;
  }

  .legal-shell {
    padding: 26px 18px;
    border-radius: 18px;
  }
}

@media (max-width: 560px) {
  .second-section {
    padding-inline: 12px;
    padding-bottom: 42px;
  }

  .cplx-houses {
    row-gap: 14px;
  }

  .cplx-house {
    padding: 16px;
  }

  .cplx-house-body {
    grid-template-columns: 40px minmax(0, 1fr);
    row-gap: 8px;
    padding: 0 4px;
  }

  .cplx-icon {
    width: 38px;
    height: 38px;
  }

  .cplx-house h3 {
    margin: 0;
    font-size: 19px;
  }

  .cplx-house p {
    font-size: 15px;
    line-height: 1.42;
  }

  .mortgage-build-cards {
    grid-template-columns: 1fr;
  }

  .mortgage-meeting-button {
    width: 100%;
  }

  .advisor-resume-card h2 {
    font-size: 34px;
  }

  .advisor-resume-card li {
    font-size: 16px;
  }

  .partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 18px;
  }

  .partner-logo {
    min-height: 52px;
  }

  .partner-logo img {
    width: min(128px, 100%);
    height: 52px;
    max-height: 52px;
  }

  .testimonials-head h2 {
    font-size: 28px;
  }

  .testimonial-card {
    min-height: 0;
  }

  .lead-form {
    grid-template-columns: 1fr;
    padding: 20px 16px;
  }

  .quick-lead-form {
    grid-template-columns: 1fr;
  }

  .contact-copy h2 {
    font-size: 32px;
  }

  .footer-inner nav {
    display: grid;
    gap: 12px;
  }
}

/* Phone-first experience */
@media (max-width: 760px), (pointer: coarse) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  body {
    zoom: 1;
    background: #13202b;
  }

  .site-bg {
    width: 100vw;
    height: 100dvh;
  }

  .site-header {
    background: rgba(255, 253, 248, 0.94);
    border-bottom: 1px solid rgba(180, 135, 67, 0.20);
    backdrop-filter: blur(12px);
  }

  .top-nav {
    min-height: 72px;
    padding: 0 14px;
  }

  .brand-link {
    width: 156px;
    min-height: 66px;
    order: 1;
  }

  .brand-link img,
  .site-header.is-scrolled .brand-link img {
    max-height: 58px;
    transform: none;
  }

  .menu-toggle {
    order: 2;
    width: 50px;
    height: 50px;
    border-color: rgba(180, 135, 67, 0.22);
    background: rgba(255, 255, 255, 0.82);
    color: #13202b;
    box-shadow: 0 10px 22px rgba(19, 32, 43, 0.10);
  }

  .nav-menu {
    top: calc(100% + 8px);
    right: 12px;
    left: 12px;
    width: auto;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 253, 248, 0.98);
  }

  .nav-menu .nav-links {
    gap: 2px;
  }

  .nav-menu .nav-links a {
    min-height: 48px;
    padding: 0 12px;
    border-radius: 12px;
    color: #13202b;
    font-size: 17px;
    font-weight: 900;
  }

  .nav-menu .nav-links a:active {
    background: rgba(201, 168, 76, 0.14);
  }

  .nav-action {
    min-height: 50px;
    border-radius: 14px;
    background: linear-gradient(180deg, #d9c36a 0%, #b9933e 100%);
    color: #13202b;
    font-size: 17px;
    font-weight: 900;
  }

  .first-section {
    min-height: 100svh;
    padding: 96px 18px 30px;
    display: grid;
    align-content: center;
    gap: 18px;
    text-align: center;
  }

  .first-section::before {
    background:
      linear-gradient(180deg, rgba(19, 32, 43, 0.84), rgba(19, 32, 43, 0.42)),
      linear-gradient(135deg, rgba(0, 0, 0, 0.45), rgba(180, 135, 67, 0.18));
  }

  .first-section-content {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    padding: 0;
    align-items: center;
  }

  .first-section-content .eyebrow {
    width: 100%;
    margin-bottom: 12px;
    font-size: 16px;
  }

  .first-section-content h1 {
    max-width: 100%;
    font-size: clamp(34px, 10.5vw, 48px);
    line-height: 1.04;
  }

  .first-section-content h1 span {
    display: inline;
  }

  .first-section-content h1 .gold-line {
    display: block;
    margin-top: 8px;
  }

  .hero-text {
    max-width: 34ch;
    margin-top: 18px;
    font-size: 17px;
    line-height: 1.55;
  }

  .hero-actions {
    width: min(360px, 100%);
    margin-top: 22px;
    gap: 10px;
  }

  .hero-button {
    min-height: 52px;
    border-radius: 14px;
    font-size: 17px;
  }

  .first-section-img {
    width: min(260px, 72vw);
    margin-top: 12px;
    opacity: 0.96;
  }

  .second-section,
  .mortgage-build-section,
  .contact-section {
    width: 100%;
    margin: 0;
  }

  .second-section {
    padding: 46px 16px;
    background: #fffdf8;
  }

  .second-section-content {
    max-width: 430px;
    margin: 0 auto;
    color: #13202b;
  }

  .section-kicker {
    margin-bottom: 8px;
    font-size: 15px;
  }

  .second-section-content .section-title {
    color: #13202b;
    font-size: clamp(30px, 8.7vw, 40px);
    line-height: 1.08;
    text-shadow: none;
  }

  .second-section-content .section-title-gold {
    color: #a87343;
    text-shadow: none;
  }

  .section-title-divider {
    width: min(260px, 80%);
    margin-bottom: 16px;
  }

  .second-section-content .section-lead {
    color: rgba(19, 32, 43, 0.72);
    font-size: 16px;
    line-height: 1.55;
  }

  .section-consult-button {
    width: min(340px, 100%);
    min-height: 52px;
    margin-top: 20px;
    border-radius: 14px;
    font-size: 17px;
  }

  .cplx-services-heading {
    margin: 6px 0 4px;
    gap: 8px;
  }

  .cplx-services-heading img {
    width: 66px;
  }

  .cplx-services-heading p {
    font-size: 26px;
  }

  .cplx-houses {
    width: min(430px, 100%);
    gap: 12px;
  }

  .cplx-house {
    display: block;
    padding: 16px;
    border-radius: 16px;
    background:
      linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(247, 240, 226, 0.90));
  }

  .cplx-house-body {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-areas:
      "icon title"
      "text text";
    align-items: center;
    gap: 8px 12px;
  }

  .cplx-house-body::after {
    display: none;
  }

  .cplx-icon {
    grid-area: icon;
    width: 40px;
    height: 40px;
  }

  .cplx-house-body > div {
    display: contents;
  }

  .cplx-house h3 {
    grid-area: title;
    color: #13202b;
    font-size: 20px;
    line-height: 1.12;
  }

  .cplx-house p {
    grid-area: text;
    color: rgba(19, 32, 43, 0.68);
    font-size: 15px;
    line-height: 1.48;
  }

  .mortgage-build-section {
    padding: 42px 16px;
    background:
      linear-gradient(180deg, #a87343 0 128px, #fffdf8 128px 100%);
  }

  .mortgage-build-inner {
    min-height: 0;
    gap: 22px;
  }

  .mortgage-build-head {
    max-width: 430px;
    padding: 0;
  }

  .mortgage-build-head h2 {
    color: #13202b;
    font-size: clamp(31px, 9vw, 42px);
    line-height: 1.08;
  }

  .mortgage-build-head h2 span {
    display: block;
    color: #fffdf8;
    text-shadow: 0 6px 22px rgba(91, 58, 27, 0.22);
  }

  .mortgage-build-head > p:not(.mortgage-build-kicker) {
    margin-top: 16px;
    color: rgba(19, 32, 43, 0.88);
    font-size: 16px;
    font-weight: 700;
  }

  .mortgage-build-cards {
    width: min(430px, 100%);
    gap: 12px;
    margin-top: 2px;
  }

  .build-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: start;
    gap: 8px 12px;
    padding: 18px;
    text-align: right;
  }

  .build-card::before,
  .build-card::after {
    display: none;
  }

  .build-card-icon {
    width: 44px;
    height: 44px;
    margin: 0;
  }

  .build-card-icon img {
    width: 28px;
    height: 28px;
  }

  .build-card h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.2;
  }

  .build-card h3::after {
    display: none;
  }

  .build-card p {
    grid-column: 1 / -1;
    font-size: 15px;
    line-height: 1.5;
  }

  .mortgage-build-action {
    margin-top: 4px;
  }

  .mortgage-meeting-button {
    width: min(340px, 100%);
    min-height: 52px;
    border-radius: 14px;
    font-size: 17px;
  }

  .advisor-resume-section {
    width: 100%;
    margin: 0;
    padding: 26px 0 0;
    overflow: visible;
  }

  .advisor-resume-inner {
    width: min(430px, calc(100% - 32px));
    margin: 0 auto;
    border-radius: 18px;
    grid-template-areas:
      "card"
      "photo";
    overflow: hidden;
  }

  .advisor-resume-card {
    padding: 26px 20px;
  }

  .advisor-resume-page {
    font-size: 14px;
  }

  .advisor-resume-card h2 {
    font-size: 36px;
  }

  .advisor-resume-card ul {
    gap: 10px;
  }

  .advisor-resume-card li {
    font-size: 16px;
    line-height: 1.45;
  }

  .advisor-resume-photo {
    aspect-ratio: 1.2 / 1;
  }

  .advisor-resume-photo img {
    width: 90%;
    max-height: 84%;
    margin-top: 18px;
    transform: none;
  }

  .partners-section {
    width: min(430px, calc(100% - 32px));
    max-height: none;
    margin: 18px auto;
    padding: 28px 16px 30px;
    border-radius: 18px;
  }

  .partners-head {
    margin-bottom: 20px;
  }

  .partners-head h2 {
    font-size: 26px;
  }

  .partners-head p:last-child {
    font-size: 15px;
  }

  .partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
  }

  .partner-logo {
    min-height: 46px;
  }

  .partner-logo img {
    width: min(118px, 100%);
    height: 46px;
    max-height: 46px;
  }

  .testimonials-section {
    width: min(430px, calc(100% - 32px));
    margin: 18px auto;
    padding: 28px 16px;
    border-radius: 18px;
  }

  .testimonials-head {
    margin-bottom: 18px;
  }

  .testimonials-head h2 {
    font-size: 27px;
  }

  .testimonial-card {
    padding: 18px;
    border-radius: 14px;
  }

  .contact-section {
    padding: 18px 16px 34px;
    background: transparent;
  }

  .contact-shell {
    width: min(430px, 100%);
    padding: 24px 16px;
    border-radius: 18px;
  }

  .contact-copy h2 {
    font-size: 32px;
  }

  .contact-copy > p:not(.contact-kicker) {
    font-size: 16px;
  }

  .contact-methods a {
    width: 100%;
    justify-content: center;
  }

  .lead-form {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .lead-form input,
  .lead-form select,
  .lead-form textarea {
    min-height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
  }

  .lead-form button {
    min-height: 54px;
    border-radius: 14px;
  }

  .site-footer {
    padding: 28px 16px;
  }

  .footer-inner {
    width: min(430px, 100%);
    gap: 18px;
  }

  .footer-inner img {
    width: 132px;
    margin-inline: auto;
  }

  .footer-inner nav {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
