/* VentaSafe Windows Project Review — brand tokens from style guide */
:root {
  --atlantic-navy: #0d1f2d;
  --coastal-teal: #4d7f80;
  --teal-ink: #2f6667; /* teal for small emphasized text (AA on ivory) */
  --warm-stone: #d6d0c4;
  --soft-ivory: #f7f5f1;
  --safety-orange: #b95a1b;
  --safety-orange-hover: #a34d14;
  --white: #ffffff;
  --text: #1d2f3e;
  --border-subtle: #e4dfd6;
  --divider: #e2ddd3;
  --teal-tint: #eef4f3;
  --stone-tint: #efece6;
  --radius: 6px;
  --radius-lg: 10px;
  --font-serif: "Source Serif 4", "Georgia", "Times New Roman", serif;
  --font-sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
  --gutter: 1.25rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--soft-ivory);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

p {
  margin: 0 0 0.85rem;
}

a {
  color: var(--teal-ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--coastal-teal);
  outline-offset: 2px;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--soft-ivory);
  border-bottom: 1px solid var(--divider);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--atlantic-navy);
}

.logo-link:hover {
  text-decoration: none;
}

.logo-mark {
  width: 38px;
  height: 45px;
  flex: none;
}

/* Same lockup as the site header (css/site.css .vs-logo): .logo-type sets the size, the orange line
   spans the wider of name and tagline. */
.logo-type {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  line-height: 1;
  font-size: 1.45rem;
}

.logo-name {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--atlantic-navy);
  padding-bottom: 0.12em;
  border-bottom: 2px solid var(--safety-orange);
}

.logo-tag {
  margin-top: 0.7em;
  font-size: 0.27em;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coastal-teal);
  white-space: nowrap;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--atlantic-navy);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
}

.header-phone:hover {
  text-decoration: none;
  color: var(--teal-ink);
}

.header-phone img {
  width: 18px;
  height: 18px;
}

@media (max-width: 480px) {
  .site-header__inner {
    padding: 0.7rem 1rem;
  }
  .logo-mark {
    width: 30px;
    height: 36px;
  }
  .logo-type {
    font-size: 1.1rem;
  }
  .header-phone {
    font-size: 0.85rem;
    gap: 0.35rem;
  }
  .header-phone img {
    width: 15px;
    height: 15px;
  }
}

/* ---------- Layout ---------- */

.site-main {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem var(--gutter) 2.5rem;
}

@media (min-width: 900px) {
  .site-main {
    padding: 1.75rem 2.5rem 3rem;
  }
}

.layout-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .layout-split {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 3rem;
  }
  /* Not-a-fit pages: photo column stretches to the height of the copy */
  .layout-split--stretch {
    align-items: stretch;
  }
}

.layout-split > section {
  min-width: 0;
}

.sidebar-desktop {
  display: none;
}

@media (min-width: 900px) {
  .sidebar-desktop {
    display: block;
  }
  .layout-split > .sidebar-desktop:first-child,
  .layout-split > #sidebar {
    padding-top: 0.25rem;
  }
}

.hero-photo {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  aspect-ratio: 16 / 10;
  background: var(--warm-stone);
}

.hero-photo--tall {
  height: 100%;
  min-height: 420px;
  aspect-ratio: auto;
}

/* ---------- Sidebar fit card ---------- */

.fit-card {
  margin-top: 1rem;
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.75rem 0.6rem;
}

.fit-card h2 {
  font-size: 1.45rem;
  text-align: center;
  margin: 0 0 0.9rem;
}

.fit-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fit-list li {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid var(--divider);
}

.fit-list strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--atlantic-navy);
  margin-bottom: 0.15rem;
}

.fit-list span {
  display: block;
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Outlined teal circle around a line icon (icons are glyph-only SVGs) */
.icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1.5px solid var(--coastal-teal);
  display: grid;
  place-items: center;
  flex: none;
  background: var(--white);
}

.icon-circle img {
  width: 26px;
  height: 26px;
}

.icon-circle--lg {
  width: 64px;
  height: 64px;
}

.icon-circle--lg img {
  width: 34px;
  height: 34px;
}

/* ---------- Progress ---------- */

.progress-block {
  margin-bottom: 1.6rem;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.progress-meta span:first-child {
  color: var(--teal-ink);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.progress-meta span:last-child {
  color: var(--atlantic-navy);
  white-space: nowrap;
}

.progress-bar {
  height: 8px;
  background: #e6e1d8;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  background: var(--coastal-teal);
  border-radius: 999px;
}

/* ---------- Type ---------- */

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--atlantic-navy);
  letter-spacing: -0.005em;
}

h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  text-wrap: balance;
}

h2 {
  font-size: 1.5rem;
  line-height: 1.25;
}

.lead {
  margin: 0 0 1.25rem;
  max-width: 36rem;
}

.divider {
  border: 0;
  border-top: 1px solid var(--divider);
  margin: 1.5rem 0;
}

.question {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--atlantic-navy);
  margin: 0 0 0.5rem;
  text-wrap: balance;
}

.hint {
  font-size: 0.85rem;
  margin: 0 0 1.1rem;
}

.em-teal {
  color: var(--teal-ink);
  font-weight: 700;
}

/* ---------- Answer cards (step 1) ---------- */

.option-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 1.1rem 0 1.25rem;
}

@media (min-width: 640px) {
  .option-cards.option-cards--row {
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
  }
}

.option-card {
  appearance: none;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-height: 150px;
  background: var(--white);
  border: 1px solid var(--warm-stone);
  border-radius: var(--radius);
  padding: 1.35rem 1rem 1.2rem;
  cursor: pointer;
  text-align: center;
  color: var(--atlantic-navy);
  font-family: inherit;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.option-card:hover {
  border-color: var(--coastal-teal);
  box-shadow: 0 2px 10px rgba(13, 31, 45, 0.06);
}

.option-card img {
  height: 52px;
  width: auto;
}

.option-card span {
  display: block;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.25;
}

.option-card.is-selected {
  background: var(--teal-tint);
  border-color: var(--coastal-teal);
  box-shadow: inset 0 0 0 1px var(--coastal-teal);
}

.option-card.is-selected::after {
  content: "";
  position: absolute;
  top: -12px;
  right: -12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--soft-ivory);
  background: url("/assets/icons/check-circle.svg") center / contain no-repeat;
}

@media (max-width: 639px) {
  /* Mobile: horizontal card, icon left, label right */
  .option-card {
    flex-direction: row;
    justify-content: flex-start;
    min-height: 0;
    gap: 1.1rem;
    padding: 1rem 1.1rem;
    text-align: left;
  }
  .option-card img {
    height: 40px;
    width: 64px;
    object-fit: contain;
  }
  .option-card.is-selected::after {
    top: -10px;
    right: -8px;
    width: 24px;
    height: 24px;
  }
}

/* ---------- Radio answers (step 2) ---------- */

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.5rem 0 0;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.55rem 0;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--atlantic-navy);
  cursor: pointer;
}

.radio-option input {
  appearance: none;
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1.5px solid var(--atlantic-navy);
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.radio-option input::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--coastal-teal);
  transform: scale(0);
  transition: transform 0.12s ease;
}

.radio-option input:checked {
  border-color: var(--coastal-teal);
}

.radio-option input:checked::before {
  transform: scale(1);
}

/* ---------- Info note (step 1) ---------- */

.info-banner {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.75rem;
  align-items: start;
  margin: 0 0 1.6rem;
  font-size: 0.85rem;
}

.info-banner img {
  width: 22px;
  height: 22px;
}

.info-banner p {
  margin: 0;
}

/* ---------- CTA ---------- */

.cta {
  display: block;
  width: 100%;
  max-width: 340px;
  margin: 1.75rem auto 0;
  appearance: none;
  border: none;
  border-radius: 4px;
  background: var(--safety-orange);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.95rem 1.5rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 0 rgba(13, 31, 45, 0.08);
  transition: background-color 0.15s ease;
}

.cta:hover {
  background: var(--safety-orange-hover);
  text-decoration: none;
  color: var(--white);
}

/* Only while a form is being sent: steps keep the button active and point at what is missing. */
.cta:disabled,
.cta[aria-disabled="true"] {
  background: var(--safety-orange);
  opacity: 0.7;
  cursor: progress;
}

@media (max-width: 639px) {
  .cta {
    max-width: none;
  }
}

/* ---------- Fields ---------- */

.field {
  margin-bottom: 0.9rem;
}

.field label {
  display: block;
  font-weight: 500;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: var(--atlantic-navy);
}

.req {
  color: var(--safety-orange);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--warm-stone);
  border-radius: 4px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 1rem; /* ≥16px avoids iOS zoom */
  color: var(--atlantic-navy);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8b95a0;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--coastal-teal);
  box-shadow: 0 0 0 3px rgba(77, 127, 128, 0.18);
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

/* Hint under a typed field whose value failed the check on submit. */
.field input[aria-invalid="true"] {
  border-color: var(--safety-orange);
}

.field-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--safety-orange-hover);
  animation: hint-in 0.2s ease-out;
}

.field-hint:empty {
  display: none;
}

.field-hint__icon {
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 0.1rem;
}

@keyframes hint-in {
  from { opacity: 0; transform: translateY(-2px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Help on a press with something missing (js/assist.js) ---------- */

/* A soft orange ring that fades out, three times; no size change, so nothing around it moves. */
@keyframes help-pulse {
  0% { box-shadow: 0 0 0 0 rgba(185, 90, 27, 0.35); }
  100% { box-shadow: 0 0 0 8px rgba(185, 90, 27, 0); }
}

.field.needs-help input,
.field.needs-help textarea {
  border-color: var(--safety-orange);
  background: #fdf3ec;
}

.field.needs-help input:focus,
.field.needs-help textarea:focus {
  border-color: var(--safety-orange);
  box-shadow: 0 0 0 3px rgba(185, 90, 27, 0.18);
}

.field.needs-help--pulse input,
.field.needs-help--pulse textarea,
.option-cards.needs-help--pulse .option-card,
.radio-group.needs-help--pulse,
.sms-row.needs-help--pulse {
  animation: help-pulse 1s ease-out 3;
}

.option-cards.needs-help .option-card {
  border-color: var(--safety-orange);
  background: #fdf3ec;
}

.radio-group.needs-help {
  /* Padding offset by margins: the answers stay where they were. */
  margin: 0.25rem 0 -0.25rem -0.75rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--safety-orange);
  border-radius: var(--radius);
  background: #fdf3ec;
}

.sms-row.needs-help {
  border-color: var(--safety-orange);
  background: #fdf3ec;
}

.option-cards + .field-hint,
.radio-group + .field-hint,
.sms-row + .field-hint {
  margin: 0.5rem 0 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
  .field-hint,
  .field.needs-help--pulse input,
  .field.needs-help--pulse textarea,
  .option-cards.needs-help--pulse .option-card,
  .radio-group.needs-help--pulse,
  .sms-row.needs-help--pulse {
    animation: none;
  }
}

.field--zip {
  max-width: 320px;
  margin: 0.5rem 0 1.5rem;
}

.field--zip input {
  padding: 0.9rem 1rem;
}

@media (max-width: 639px) {
  .field--zip {
    max-width: none;
  }
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 1.25rem;
}

@media (min-width: 640px) {
  .field-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-note {
  font-size: 0.8rem;
  margin: -0.25rem 0 1rem;
}

/* ---------- Contact authorization + SMS consent ---------- */

.auth-box {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 1rem;
  align-items: center;
  background: var(--teal-tint);
  border: 1px solid #cfdcdb;
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  line-height: 1.5;
}

.auth-box h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--atlantic-navy);
}

.auth-box p {
  margin: 0;
}

.sms-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.85rem;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 0 0 0.25rem;
  font-size: 0.82rem;
  line-height: 1.55;
  cursor: pointer;
}

.sms-row input {
  width: 18px;
  height: 18px;
  margin: 0.1rem 0 0;
  accent-color: var(--coastal-teal);
  cursor: pointer;
}

.sms-row strong {
  color: var(--atlantic-navy);
  font-weight: 600;
}

.sms-links {
  display: block;
  margin-top: 0.4rem;
}

.sms-links .sep {
  margin: 0 0.6rem;
  color: var(--warm-stone);
}

/* ---------- Alert ---------- */

.alert {
  display: none;
  margin: 0 0 1rem;
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--safety-orange);
  background: #f8e8de;
  color: var(--atlantic-navy);
  font-size: 0.875rem;
}

.alert.is-visible {
  display: block;
}

/* ---------- Not-a-fit feature rows ---------- */

.feature-list {
  border-top: 1px solid var(--divider);
  margin-top: 1.5rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--divider);
}

.feature-row:last-child {
  border-bottom: 0;
}

.feature-row h2 {
  font-size: 1.35rem;
  margin: 0.35rem 0 0.5rem;
}

.feature-row p {
  font-size: 0.875rem;
  margin: 0 0 0.6rem;
}

.feature-row p:last-child {
  margin-bottom: 0;
}

@media (max-width: 639px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .feature-row .icon-circle--lg {
    width: 52px;
    height: 52px;
  }
  .feature-row .icon-circle--lg img {
    width: 28px;
    height: 28px;
  }
  .feature-row h2 {
    font-size: 1.2rem;
    margin-top: 0;
  }
}

/* ---------- Thank-you ---------- */

.thanks-intro {
  padding-top: 0.75rem;
}

.thanks-intro .lead {
  font-size: 0.95rem;
}

.next-steps {
  margin: 2rem 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--divider);
}

@media (min-width: 900px) {
  .next-steps {
    border-top: 0;
    padding-top: 0;
    margin-top: 1.5rem;
  }
  .next-steps::before {
    content: "";
    display: block;
    width: 50%;
    border-top: 1px solid var(--divider);
    margin-bottom: 1.75rem;
  }
}

.next-steps > h2 {
  margin: 0 0 1.25rem;
}

.next-steps__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .next-steps__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
  .step-card {
    padding: 0 1.5rem;
    border-left: 1px solid var(--divider);
  }
  .step-card:first-child {
    padding-left: 0;
    border-left: 0;
  }
  .step-card:last-child {
    padding-right: 0;
  }
}

.step-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;
  align-items: start;
}

.step-card__icon {
  position: relative;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
}

.step-card__icon img {
  width: 40px;
  height: 40px;
}

.step-card__num {
  position: absolute;
  top: -6px;
  left: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--coastal-teal);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px var(--soft-ivory);
}

.step-card h3 {
  font-size: 1.1rem;
  line-height: 1.3;
  margin: 0.1rem 0 0.4rem;
}

.step-card p,
.step-card ul {
  font-size: 0.875rem;
}

.step-card ul {
  margin: 0;
  padding-left: 1.1rem;
}

.step-card li {
  margin-bottom: 0.2rem;
}

.step-card li::marker {
  color: var(--coastal-teal);
}

.callout {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1.5rem;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin: 2.25rem auto 0;
  max-width: 820px;
}

.callout img {
  width: 56px;
  height: 56px;
}

.callout h2 {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.callout p {
  font-size: 0.875rem;
  margin: 0 0 0.5rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

@media (max-width: 639px) {
  .callout {
    grid-template-columns: 44px 1fr;
    gap: 0.9rem;
    padding: 1.1rem;
    background: var(--stone-tint);
  }
  .callout img {
    width: 40px;
    height: 40px;
  }
  .callout h2 {
    font-size: 1.15rem;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--divider);
  background: var(--stone-tint);
  padding: 1.25rem var(--gutter);
  text-align: center;
  font-size: 0.82rem;
  color: var(--atlantic-navy);
}

.site-footer nav {
  margin-bottom: 0.35rem;
}

.site-footer a {
  color: var(--atlantic-navy);
}

.site-footer .sep {
  margin: 0 0.75rem;
  opacity: 0.5;
}

/* ---------- Legal pages ---------- */

.legal-page {
  max-width: 44rem;
}

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