/* ===== FIRST Real Estate — Luxury-Beige Editorial ===== */

/* --- CSS Variables --- */
:root {
  --color-primary: #1C1C1E;
  --color-gold: #C4A265;
  --color-gold-light: #D4B87A;
  --color-cream: #F5F0E8;
  --color-warm-gray: #E8E2D8;
  --color-text: #2D2D2D;
  --color-text-light: #6B6560;
  --color-white: #FDFBF7;
  --color-overlay: rgba(28, 28, 30, 0.55);
  --color-border: #D5CFC5;

  --font-display: 'Frank Ruhl Libre', 'David Libre', serif;
  --font-body: 'Heebo', 'Rubik', sans-serif;

  --radius-sm: 2px;
  --radius-md: 4px;
  --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-base: 0.35s ease;
  --max-width: 1200px;
  --max-width-narrow: 900px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.75;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-gold); text-decoration: none; transition: color var(--transition-base); }
a:hover { color: var(--color-gold-light); }
ul, ol { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: 2rem;
}

.container--narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding-inline: 2rem;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.25;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1.5rem;
}

.section-divider {
  width: 60px;
  height: 2px;
  background: var(--color-gold);
  margin-bottom: 2rem;
}

/* RTL section divider alignment */
.text-center .section-divider {
  margin-inline: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.85rem 2.2rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  letter-spacing: 0.02em;
}

.btn--primary {
  background: var(--color-gold);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-gold-light);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--color-gold);
  border: 1.5px solid var(--color-gold);
}

.btn--outline:hover {
  background: var(--color-gold);
  color: var(--color-white);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn--white:hover {
  background: var(--color-cream);
}

.btn--large {
  padding: 1rem 3rem;
  font-size: 1.05rem;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.nav--scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.nav__logo span {
  color: var(--color-gold);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding-bottom: 2px;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-gold);
  transition: width var(--transition-base);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--color-gold);
}

.nav__cta {
  background: var(--color-gold);
  color: var(--color-white) !important;
  padding: 0.55rem 1.4rem;
  font-size: 0.85rem !important;
}

.nav__cta::after { display: none !important; }

.nav__cta:hover {
  background: var(--color-gold-light);
  color: var(--color-white) !important;
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  transition: all var(--transition-base);
}

/* --- Hero Sections --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: 72px;
}

.hero--short {
  min-height: 50vh;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--color-overlay);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
  color: var(--color-white);
}

.hero__content h1 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.hero__content p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero__badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  padding: 0.4rem 1.2rem;
  margin-bottom: 1.5rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Sections --- */
.section {
  padding: 5rem 0;
}

.section--cream {
  background: var(--color-cream);
}

.section--warm {
  background: var(--color-warm-gray);
}

.section--dark {
  background: var(--color-primary);
  color: var(--color-cream);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-white);
}

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

/* --- Bento Grid (Services) --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 1.25rem;
}

.bento-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 3px;
  background: var(--color-gold);
  transition: width var(--transition-slow);
}

.bento-card:hover::before {
  width: 100%;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.bento-card--wide {
  grid-column: span 2;
}

.bento-card--tall {
  grid-row: span 2;
}

.bento-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.bento-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.bento-card__text {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.65;
}

.bento-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-gold);
}

.bento-card__link svg {
  transition: transform var(--transition-base);
}

.bento-card__link:hover svg {
  transform: translateX(-4px);
}

/* --- Listings Grid --- */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.listing-card {
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all var(--transition-slow);
  background: var(--color-white);
}

.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.listing-card__img {
  height: 220px;
  background: var(--color-warm-gray);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.listing-card__img svg {
  width: 48px;
  height: 48px;
  color: var(--color-text-light);
  opacity: 0.3;
}

.listing-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  background: var(--color-gold);
  color: var(--color-white);
}

.listing-card__body {
  padding: 1.25rem;
}

.listing-card__price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.35rem;
}

.listing-card__address {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
}

.listing-card__details {
  display: flex;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.listing-card__details span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* --- Stats Row --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item__number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-item__label {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* --- Agent Section --- */
.agent-section {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.agent-photo {
  aspect-ratio: 3/4;
  background: var(--color-warm-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
}

.agent-photo svg {
  width: 80px;
  height: 80px;
  color: var(--color-text-light);
  opacity: 0.2;
}

.agent-info h2 {
  margin-bottom: 0.5rem;
}

.agent-info .agent-title {
  color: var(--color-gold);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.agent-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.credential {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-light);
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
}

.credential svg {
  width: 16px;
  height: 16px;
  color: var(--color-gold);
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 2rem;
  position: relative;
}

.testimonial-card__quote {
  font-size: 2.5rem;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 1rem;
  font-family: var(--font-display);
}

.testimonial-card__text {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-card__author {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-primary);
}

.testimonial-card__role {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  transition: border-color var(--transition-base);
  direction: rtl;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-gold);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.contact-info-card {
  background: var(--color-cream);
  padding: 2.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.contact-info-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 3px;
}

.contact-info-item h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.contact-info-item p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* --- About Page --- */
.about-hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.value-card {
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--color-border);
  background: var(--color-white);
}

.value-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.value-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.value-card__text {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* --- Team Grid --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.team-card {
  text-align: center;
}

.team-card__photo {
  width: 160px;
  height: 160px;
  margin: 0 auto 1.25rem;
  background: var(--color-warm-gray);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--color-gold);
}

.team-card__photo svg {
  width: 60px;
  height: 60px;
  color: var(--color-text-light);
  opacity: 0.25;
}

.team-card__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.team-card__role {
  color: var(--color-gold);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.team-card__bio {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: right;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color var(--transition-base);
}

.faq-question:hover {
  color: var(--color-gold);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
  color: var(--color-gold);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-slow);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 1.5rem;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.75;
}

/* --- Funnel Page --- */
.funnel-section {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.funnel-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 3rem;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.funnel-steps {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.funnel-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.funnel-step__num {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-border);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text-light);
  transition: all var(--transition-base);
}

.funnel-step.active .funnel-step__num {
  border-color: var(--color-gold);
  background: var(--color-gold);
  color: var(--color-white);
}

.funnel-step__label {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

.funnel-step.active .funnel-step__label {
  color: var(--color-gold);
  font-weight: 500;
}

/* --- Quote Flow --- */
.quote-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
}

.quote-progress__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  transition: all var(--transition-base);
}

.quote-progress__dot.active {
  background: var(--color-gold);
  width: 30px;
  border-radius: 5px;
}

.quote-step {
  display: none;
}

.quote-step.active {
  display: block;
}

.quote-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.quote-option {
  padding: 1.5rem;
  border: 2px solid var(--color-border);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-base);
  background: var(--color-white);
}

.quote-option:hover,
.quote-option.selected {
  border-color: var(--color-gold);
}

.quote-option.selected {
  background: rgba(196, 162, 101, 0.05);
}

.quote-option__icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.quote-option__label {
  font-weight: 600;
  font-size: 0.95rem;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 5rem 0;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  max-width: 600px;
  margin: 0 auto 2rem;
  color: var(--color-text-light);
}

/* --- Footer --- */
.footer {
  background: var(--color-primary);
  color: var(--color-cream);
  padding: 4rem 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.footer__brand span {
  color: var(--color-gold);
}

.footer__desc {
  font-size: 0.9rem;
  color: rgba(245, 240, 232, 0.65);
  line-height: 1.7;
}

.footer h4 {
  color: var(--color-white);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.footer__links a {
  display: block;
  font-size: 0.9rem;
  color: rgba(245, 240, 232, 0.65);
  margin-bottom: 0.6rem;
  transition: color var(--transition-base);
}

.footer__links a:hover {
  color: var(--color-gold);
}

.footer__bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(245, 240, 232, 0.45);
}

.footer-signature {
  font-size: 0.75rem;
  text-align: center;
  color: rgba(245, 240, 232, 0.6);
  margin-top: 1rem;
  padding-bottom: 1rem;
}

.footer-signature a {
  color: rgba(245, 240, 232, 0.6);
  border-bottom: 1px dotted currentColor;
  transition: opacity var(--transition-base);
}

.footer-signature a:hover {
  opacity: 1;
  color: var(--color-gold);
}

/* --- Form Messages --- */
.form-message {
  padding: 1rem 1.5rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  display: none;
}

.form-message--success {
  background: rgba(76, 175, 80, 0.1);
  color: #2e7d32;
  border: 1px solid rgba(76, 175, 80, 0.3);
  display: block;
}

.form-message--error {
  background: rgba(244, 67, 54, 0.1);
  color: #c62828;
  border: 1px solid rgba(244, 67, 54, 0.3);
  display: block;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Privacy & Content Pages --- */
.content-page {
  padding: 6rem 0 4rem;
  margin-top: 72px;
}

.content-page h1 {
  margin-bottom: 2rem;
}

.content-page h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.content-page p,
.content-page li {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

.content-page ul {
  padding-right: 1.5rem;
  margin-bottom: 1rem;
}

.content-page ul li {
  position: relative;
  padding-right: 1rem;
  margin-bottom: 0.5rem;
}

.content-page ul li::before {
  content: '—';
  position: absolute;
  right: -0.5rem;
  color: var(--color-gold);
}

/* --- Service Detail Page --- */
.service-detail {
  padding: 4rem 0;
}

.service-detail__header {
  text-align: center;
  margin-bottom: 3rem;
}

.service-process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
}

.process-step {
  text-align: center;
  padding: 2rem;
}

.process-step__num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-gold);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 1rem;
}

.process-step__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.process-step__text {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.65;
}

/* --- Alert Form --- */
.alert-form {
  display: flex;
  gap: 0.75rem;
  max-width: 500px;
  margin: 0 auto;
}

.alert-form input {
  flex: 1;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.alert-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .listings-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card--wide { grid-column: span 1; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .agent-section { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .service-process { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  .nav__links.open { display: flex; }
  .nav__toggle { display: flex; }

  .hero { min-height: 70vh; }
  .hero--short { min-height: 40vh; }
  .hero__bg { background-attachment: scroll; }

  .section { padding: 3.5rem 0; }

  .listings-grid { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card--tall { grid-row: span 1; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .about-hero-content { grid-template-columns: 1fr; gap: 2rem; }
  .service-process { grid-template-columns: 1fr; }

  .alert-form { flex-direction: column; }

  .quote-options { grid-template-columns: 1fr; }
  .funnel-steps { gap: 1rem; }
  .funnel-card { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
  .container, .container--narrow { padding-inline: 1.25rem; }
  .hero__content { padding: 1.5rem; }
  .stats-row { grid-template-columns: 1fr; }
  .stat-item { padding: 1rem 0; border-bottom: 1px solid var(--color-border); }
  .stat-item:last-child { border-bottom: none; }
}

/* --- Multi-step flow step visibility (hotfix) --- */
.funnel-page { display: none; }
.funnel-page.active { display: block; }
