:root {
  --navy: #072f68;
  --blue: #0e5bb7;
  --light-blue: #eaf3ff;
  --gold: #b59a62;
  --ink: #152844;
  --muted: #667185;
  --line: #dce3ec;
  --paper: #fbfaf8;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: #f8f7f4; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #73aef2; outline-offset: 3px; }

.screen { display: none; min-height: 100svh; height: 100svh; overflow: hidden; }
.screen.is-active { display: flex; }

.language-screen {
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 3vh, 34px);
  background:
    radial-gradient(circle at 15% 15%, rgba(14,91,183,.09), transparent 30%),
    linear-gradient(150deg, #fff 0 58%, #edf3fa 58% 100%);
}

.language-card { width: min(100%, 470px); text-align: center; }
.brand-logo { width: clamp(126px, 20vw, 175px); height: auto; object-fit: contain; }
.eyebrow { margin: 2.6vh 0 1.4vh; color: var(--gold); font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.language-card h1 { margin: 0; font: 600 clamp(2rem, 5.5vh, 3.35rem)/1.08 "Playfair Display", serif; color: #17243b; }
.language-card h1 span { display: block; color: var(--blue); font-weight: 700; }
.gold-rule { width: 58px; height: 4px; margin: 2.2vh auto; border-radius: 9px; background: var(--gold); }
.intro { margin: 0; color: var(--muted); font-size: clamp(.88rem, 1.8vh, 1rem); }
.preference-icon { display: grid; place-items: center; width: 42px; height: 42px; margin: 2.6vh auto 1vh; border-radius: 50%; background: #eaf2fc; color: var(--blue); font-size: 1.35rem; }
.preference-label { margin: 0 0 1.5vh; font-weight: 600; }
.language-options { display: grid; gap: clamp(10px, 1.5vh, 15px); }
.language-button { display: grid; grid-template-columns: 42px 1fr 24px; align-items: center; width: 100%; min-height: clamp(58px, 8vh, 74px); padding: 9px 18px; border: 1px solid #e1e7ef; border-radius: 16px; color: var(--ink); background: white; box-shadow: 0 8px 24px rgba(26,48,79,.08); font-size: clamp(1rem, 2.1vh, 1.1rem); font-weight: 600; text-align: left; cursor: pointer; transition: transform .2s, border-color .2s, box-shadow .2s; }
.language-button:hover { transform: translateY(-2px); border-color: #9dc1ed; box-shadow: 0 12px 28px rgba(26,48,79,.14); }
.play-small { display: grid; place-items: center; width: 36px; height: 36px; padding-left: 2px; border: 1px solid var(--blue); border-radius: 50%; color: var(--blue); font-size: .75rem; }
.arrow { color: var(--blue); font-size: 1.2rem; }

.video-screen { align-items: stretch; justify-content: center; gap: clamp(16px, 3vw, 42px); padding: clamp(14px, 2.5vh, 28px); background: linear-gradient(135deg, #061d3b, #0a376f); color: white; }
.video-shell { position: relative; aspect-ratio: 9/16; max-height: calc(100svh - clamp(28px, 5vh, 56px)); max-width: 56.25vh; overflow: hidden; border-radius: 24px; background: #06162b url("https://nazconconstruction.com/Images/site/residential.png") center/cover; box-shadow: 0 28px 70px rgba(0,0,0,.35); }
.video-shell video { width: 100%; height: 100%; object-fit: cover; background: rgba(2,18,40,.38); }
.video-overlay { position: absolute; top: 18px; left: 18px; right: 18px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; text-shadow: 0 2px 8px #000; }
.video-overlay img { width: 92px; max-height: 40px; object-fit: contain; }
.video-overlay p { margin: 0; font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; }
.back-link { position: absolute; left: 14px; bottom: 58px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0,0,0,.48); color: white; font-size: 1.25rem; cursor: pointer; }
.video-actions { align-self: center; display: grid; width: min(100%, 360px); gap: 13px; }
.video-caption { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 7px; color: #dcecff; text-align: left; }
.video-caption span { font-size: 2rem; color: #75b0f6; }
.video-caption strong { font-size: 1rem; line-height: 1.35; }
.primary-action, .secondary-action { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 62px; border-radius: 12px; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; }
.primary-action { border: 1px solid #2a7dd8; color: white; background: linear-gradient(135deg, #0e68cb, #074595); box-shadow: 0 12px 28px rgba(0,0,0,.2); }
.secondary-action { border: 2px solid #8db8eb; color: white; background: rgba(255,255,255,.06); }
.primary-action span, .secondary-action span { font-size: 1.4rem; }

.contact-page { display: none; min-height: 100svh; padding-bottom: 26px; background: #f9f8f6; }
.contact-page.is-active { display: block; }
.contact-hero { position: relative; min-height: 390px; overflow: hidden; background: linear-gradient(115deg, #fff 0 55%, #eaf2fb 55% 100%); }
.hero-copy { position: relative; z-index: 2; width: min(92%, 820px); margin: auto; padding: 38px 0 35px; }
.hero-copy .brand-logo { width: 145px; margin-bottom: 25px; }
.hero-copy h2 { margin: 0; font: 600 clamp(2.7rem, 6vw, 4.8rem)/.98 "Playfair Display", serif; color: #092d63; }
.hero-copy .gold-rule { margin: 22px 0; }
.hero-copy p { margin: 0 0 22px; color: var(--muted); font-size: 1.1rem; line-height: 1.5; }
.step-pill { display: inline-flex; align-items: center; gap: 8px; padding: 12px 21px; border: 1px solid #d8dee7; border-radius: 99px; background: rgba(255,255,255,.8); color: #667185; font-size: 1rem; }
.step-pill span, .step-pill strong { color: var(--navy); }
.hero-building { position: absolute; z-index: 1; right: 0; bottom: -10%; width: min(50%, 650px); height: 115%; object-fit: cover; object-position: left center; opacity: .65; mask-image: linear-gradient(90deg, transparent, black 28%); }
.contact-back-top { position: absolute; z-index: 3; right: 24px; top: 24px; padding: 10px 16px; border: 1px solid #cfdae7; border-radius: 9px; color: var(--navy); background: rgba(255,255,255,.75); cursor: pointer; }

.project-form { width: min(1080px, calc(100% - 24px)); margin: -15px auto 0; position: relative; z-index: 4; }
.question-card { min-width: 0; margin: 0 0 10px; padding: 20px 24px 20px; border: 1px solid #e6e7e9; border-radius: 18px; background: rgba(255,255,255,.96); box-shadow: 0 4px 15px rgba(19,43,75,.035); }
.question-card legend { margin-left: 116px; padding: 0 6px; color: #0d315f; font-size: 1.08rem; font-weight: 700; }
.question-number { display: inline-grid; place-items: center; width: 36px; height: 36px; margin-right: 18px; border: 1px solid #d4dce7; border-radius: 50%; background: linear-gradient(145deg, #fff, #dbe5f2); }
.question-content { display: grid; grid-template-columns: 92px 1fr; gap: 24px; align-items: center; }
.question-icon { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; color: #396b9f; background: #fbf8f4; font-size: 2.6rem; }
.choices { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 10px 14px; }
.choices.four-up { grid-template-columns: repeat(4, 1fr); }
.choices label { min-width: 0; }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices span { position: relative; display: grid; place-items: center; min-height: 54px; padding: 9px 18px; border: 1px solid #d9dee6; border-radius: 13px; color: #38465a; background: white; line-height: 1.2; text-align: center; cursor: pointer; transition: .18s ease; }
.choices input:checked + span { padding-right: 42px; border-color: #a9c6e8; color: var(--navy); background: linear-gradient(135deg, #eff6ff, #e0edfc); font-weight: 600; }
.choices input:checked + span::after { content: "✓"; position: absolute; right: 13px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: white; background: var(--navy); }
.choices input:focus-visible + span { outline: 3px solid #73aef2; outline-offset: 2px; }
.text-field, .phone-field { display: flex; width: 100%; min-height: 56px; align-items: center; border: 1px solid #d7dde6; border-radius: 13px; background: white; }
.text-field input, .phone-field input { flex: 1; min-width: 0; padding: 0 18px; border: 0; outline: 0; color: var(--ink); background: transparent; }
.country-code { padding: 0 18px; border-right: 1px solid #d7dde6; color: #455977; }
.form-actions { display: grid; grid-template-columns: 1fr 1.18fr; gap: 24px; margin: 18px 18px 0; }
.form-back, .form-submit { min-height: 70px; border-radius: 15px; font-size: 1.2rem; font-weight: 600; cursor: pointer; }
.form-back { border: 1px solid #9babc1; color: #4c6d96; background: white; }
.form-submit { border: 0; color: white; background: linear-gradient(135deg, #6096d5, #1760aa); box-shadow: 0 10px 22px rgba(18,79,148,.18); }
.form-status { min-height: 24px; margin: 14px 0 0; text-align: center; color: var(--navy); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 760px) {
  .video-screen { flex-direction: column; align-items: center; gap: 10px; padding: 10px; }
  .video-shell { max-height: calc(100svh - 220px); max-width: calc((100svh - 220px) * .5625); border-radius: 17px; }
  .video-actions { width: min(100%, 420px); gap: 8px; }
  .video-caption { margin: 0; font-size: .82rem; }
  .video-caption span { font-size: 1.35rem; }
  .video-caption strong { font-size: .8rem; }
  .primary-action, .secondary-action { min-height: 50px; }
  .contact-hero { min-height: 350px; }
  .hero-copy { padding: 55px 24px 30px; }
  .hero-copy .brand-logo { width: 116px; margin-bottom: 22px; }
  .hero-copy h2 { font-size: clamp(2.45rem, 12vw, 3.6rem); }
  .hero-copy p { font-size: .95rem; }
  .hero-building { width: 72%; opacity: .25; }
  .contact-back-top { top: 12px; right: 12px; font-size: .8rem; }
  .project-form { width: calc(100% - 12px); }
  .question-card { padding: 15px 13px; border-radius: 14px; }
  .question-card legend { margin-left: 0; font-size: .98rem; }
  .question-number { width: 32px; height: 32px; margin-right: 8px; }
  .question-content { grid-template-columns: 1fr; gap: 10px; }
  .question-icon { display: none; }
  .choices, .choices.four-up { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .choices span { min-height: 50px; padding: 8px; font-size: .86rem; }
  .choices input:checked + span { padding-right: 30px; }
  .choices input:checked + span::after { right: 7px; width: 20px; height: 20px; }
  .form-actions { gap: 10px; margin: 14px 5px 0; }
  .form-back, .form-submit { min-height: 58px; font-size: 1rem; }
}

@media (max-height: 650px) and (min-width: 761px) {
  .language-card { transform: scale(.86); }
  .video-caption { display: none; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
