/* =============================================
   SUN & SNOW HOMES — POWDER MOUNTAIN PROPERTIES
   Style: Alpine Luxury (Modern & Minimalist)
   ============================================= */

/* ----- VARIABLES ----- */
:root {
  --bg-dark:      #1A1A1A;
  --bg-dark-2:    #222222;
  --bg-light:     #F5F0EB;
  --bg-light-2:   #EDE8E2;
  --gold:         #C9A96E;
  --gold-light:   #D9C090;
  --gold-dark:    #A8844A;
  --text-light:   #F0ECE6;
  --text-muted:   #9A9590;
  --text-dark:    #1A1A1A;
  --text-body:    #3A3530;
  --border:       rgba(201, 169, 110, 0.2);
  --border-light: rgba(255, 255, 255, 0.1);

  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;

  --nav-h:       72px;
  --max-w:       1280px;
  --section-gap: 120px;
  --radius:      4px;

  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text-body);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ----- UTILITY ----- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

.section-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-dark);
}

.section-title em {
  font-style: italic;
  color: var(--gold);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 520px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-subtitle {
  margin: 16px auto 0;
}

/* Light section overrides */
.section-title--light { color: var(--text-light); }

/* ----- BUTTONS ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.btn--gold {
  background: var(--gold);
  color: var(--bg-dark);
  border-color: var(--gold);
}
.btn--gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.btn--outline {
  background: transparent;
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--full { width: 100%; justify-content: center; }

/* ----- BADGES ----- */
.badge {
  display: inline-block;
  padding: 5px 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.badge--white  { background: rgba(255,255,255,0.9); color: var(--bg-dark); }
.badge--gold   { background: var(--gold); color: var(--bg-dark); }
.badge--outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.6);
  color: #fff;
}

/* ----- REVEAL ANIMATION ----- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- NAVIGATION ----- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.nav.scrolled {
  background: rgba(20, 18, 16, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border-light);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.02em;
  transition: color 0.3s;
}
.nav__logo:hover { color: var(--gold); }

.nav__logo-img {
  height: 52px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1); /* white logo on dark nav */
  transition: filter 0.3s;
}
.nav__logo:hover .nav__logo-img { filter: brightness(0) saturate(100%) invert(74%) sepia(30%) saturate(600%) hue-rotate(2deg); }

.nav__logo-img--mobile { display: none; }

@media (max-width: 480px) {
  .nav__logo-img--desktop { display: none; }
  .nav__logo-img--mobile  { display: block; height: 32px; }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240, 236, 230, 0.75);
  transition: color 0.3s;
}
.nav__links a:hover { color: var(--gold); }

.nav__cta {
  padding: 9px 24px !important;
  border: 1px solid var(--border) !important;
  color: var(--gold) !important;
  transition: all 0.3s var(--ease) !important;
}
.nav__cta:hover {
  background: var(--gold) !important;
  color: var(--bg-dark) !important;
}

/* Mobile 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: 1.5px;
  background: var(--text-light);
  transition: all 0.3s var(--ease);
}
.nav__toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ----- HERO ----- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero__bg.loaded { transform: scale(1); }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 8, 6, 0.35) 0%,
    rgba(10, 8, 6, 0.55) 50%,
    rgba(10, 8, 6, 0.75) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 860px;
}

.hero__eyebrow {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--text-light);
  margin-bottom: 24px;
}
.hero__title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero__subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 300;
  color: rgba(240, 236, 230, 0.75);
  letter-spacing: 0.02em;
  margin-bottom: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240, 236, 230, 0.5);
  transition: color 0.3s;
  animation: bounce 2s infinite;
}
.hero__scroll:hover { color: var(--gold); }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ----- ABOUT ----- */
.about {
  padding: var(--section-gap) 0;
  background: var(--bg-light);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__image {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}

/* Flip card */
.flip-card {
  width: 100%;
  height: 100%;
  perspective: 1200px;
}

.flip-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease);
}

.flip-card:hover .flip-card__inner {
  transform: rotateY(180deg);
}

.flip-card__front,
.flip-card__back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

.flip-card__back {
  transform: rotateY(180deg);
}

.flip-card__front img,
.flip-card__back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 60%;
  height: 60%;
  border: 2px solid var(--gold);
  z-index: -1;
  opacity: 0.4;
}

.about__content .section-title { color: var(--text-dark); }

.about__text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-body);
  margin-top: 20px;
}

.about__stats {
  display: flex;
  gap: 40px;
  margin: 40px 0;
  padding: 32px 0;
  border-top: 1px solid var(--bg-light-2);
  border-bottom: 1px solid var(--bg-light-2);
}

.about__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about__stat-number {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--gold-dark);
  line-height: 1;
}

/* Force numeric rendering for stat numbers that look like letters in serif */
.stat-number--numeric {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 2.4rem;
  letter-spacing: -0.02em;
}

.about__stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ----- PROPERTIES ----- */
.properties {
  padding: var(--section-gap) 0;
  background: var(--bg-dark);
}

.properties .section-title { color: var(--text-light); }
.properties .section-eyebrow { color: var(--gold); }
.properties .section-subtitle { color: var(--text-muted); margin: 16px auto 0; text-align: center; }

.properties__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.properties__grid--featured {
  display: flex;
  gap: 2px;
  align-items: stretch;
}

.property-card--big {
  flex: 1.6;
  display: flex;
  flex-direction: column;
}

.property-card--big .property-card__image {
  aspect-ratio: unset;
  flex: 1;
}

.properties__small-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.properties__small-col .property-card {
  flex: 1;
}

.property-card {
  background: var(--bg-dark-2);
  overflow: hidden;
  transition: transform 0.4s var(--ease);
}
.property-card:hover { transform: translateY(-4px); }

.property-card--featured {
  grid-column: span 1;
}

.property-card__image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.property-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.property-card:hover .property-card__image img {
  transform: scale(1.04);
}

.property-card__image .badge {
  position: absolute;
  top: 16px;
  left: 16px;
}

.property-card__body {
  padding: 28px;
}

.property-card__location {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.property-card__title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-light);
  margin-bottom: 12px;
}

.property-card__desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.property-card__link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  transition: gap 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.property-card__link:hover span { margin-left: 4px; }

/* ----- GALLERY ----- */
.gallery {
  padding: var(--section-gap) 0 0;
  background: var(--bg-dark);
}

.gallery .section-title { color: var(--text-light); }
.gallery .section-eyebrow { color: var(--gold); }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 3px;
  margin-top: 0;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery__item:hover img { transform: scale(1.06); }

.gallery__item--wide      { grid-column: span 2; }
.gallery__item--fullwidth { grid-column: 1 / -1; height: 320px; }

.gallery__item--video {
  cursor: default;
}

.gallery__item--video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 6, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery__item:hover .gallery__overlay { opacity: 1; }

.gallery__overlay span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 8px 20px;
}

/* ----- LIGHTBOX ----- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox__inner {
  max-width: 90vw;
  max-height: 90vh;
}
.lightbox__inner img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: color 0.2s;
  font-size: 2rem;
  line-height: 1;
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { color: var(--gold); }

.lightbox__close { top: 24px; right: 32px; font-size: 2.5rem; }
.lightbox__prev  { left: 24px; font-size: 3rem; }
.lightbox__next  { right: 24px; font-size: 3rem; }

/* ----- LOCATION ----- */
.location {
  padding: var(--section-gap) 0;
  background: var(--bg-light);
}

.location .section-title    { color: var(--text-dark); }
.location .section-subtitle { color: var(--text-muted); }

.location__grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}

.location__features {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.location__feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.location__icon {
  width: 44px;
  height: 44px;
  background: var(--bg-light-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold-dark);
}

.location__feature h4 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.location__feature p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.location__map {
  height: 480px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.location__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ----- CONTACT ----- */
.contact {
  padding: var(--section-gap) 0;
  background: var(--bg-dark);
}

.contact .section-title { color: var(--text-light); }
.contact .section-eyebrow { color: var(--gold); }

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact__text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-top: 20px;
  margin-bottom: 40px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__detail {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
  color: rgba(240, 236, 230, 0.7);
  transition: color 0.3s;
}
.contact__detail:hover { color: var(--gold); }
.contact__detail svg { color: var(--gold); flex-shrink: 0; }

/* ----- FORM ----- */
.contact__form-wrapper {
  background: var(--bg-dark-2);
  padding: 48px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form__group label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form__group input,
.form__group select,
.form__group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-light);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

.form__group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9A96E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form__group input::placeholder,
.form__group textarea::placeholder { color: rgba(240,236,230,0.25); }

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus { border-color: var(--gold); }

.form__group textarea { resize: vertical; min-height: 100px; }

.form__group select option { background: var(--bg-dark-2); color: var(--text-light); }

.form__note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--gold);
  text-align: center;
  min-height: 20px;
}

/* ----- FOOTER ----- */
.footer {
  background: #111;
  padding: 72px 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer__logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-light);
  display: block;
  margin-bottom: 12px;
}

.footer__tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.footer__social {
  display: flex;
  gap: 16px;
}
.footer__social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s;
}
.footer__social a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer__nav h4,
.footer__contact h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 20px;
}

.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__nav a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.3s;
}
.footer__nav a:hover { color: var(--gold); }

.footer__contact p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.5;
}
.footer__contact a {
  color: var(--text-muted);
  transition: color 0.3s;
}
.footer__contact a:hover { color: var(--gold); }


.footer__bottom {
  padding: 20px 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer__bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.05em;
}
.footer__bottom a {
  color: rgba(201,169,110,0.5);
  transition: color 0.3s;
}
.footer__bottom a:hover { color: var(--gold); }

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1100px) {
  .properties__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { gap: 48px; }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  :root { --section-gap: 80px; }

  .container { padding: 0 24px; }

  .nav__links { display: none; flex-direction: column; gap: 0; }
  .nav__links.open {
    display: flex;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(20, 18, 16, 0.98);
    padding: 20px 0 40px;
    border-top: 1px solid var(--border-light);
  }
  .nav__links.open li { border-bottom: 1px solid rgba(255,255,255,0.05); }
  .nav__links.open a {
    display: block;
    padding: 16px 32px;
    font-size: 13px;
  }
  .nav__links.open .nav__cta {
    margin: 16px 32px 0;
    text-align: center;
    border: 1px solid var(--border) !important;
  }
  .nav__toggle { display: flex; }

  .about__grid { grid-template-columns: 1fr; }
  .about__image { aspect-ratio: 16/9; }
  .about__image-accent { display: none; }
  .about__stats { gap: 24px; }

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

  .location__grid { grid-template-columns: 1fr; }
  .location__map { height: 320px; }

  .contact__grid { grid-template-columns: 1fr; }
  .contact__form-wrapper { padding: 32px; }

  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
}

@media (max-width: 640px) {
  :root { --section-gap: 64px; }

  .container { padding: 0 20px; }

  .hero__title { font-size: 2.6rem; }
  .hero__subtitle { font-size: 0.9rem; }
  .hero__actions { flex-direction: column; align-items: center; }

  .about__stats { flex-direction: column; gap: 20px; }

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

  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 180px;
  }
  .gallery__item--wide,
  .gallery__item--fullwidth {
    grid-column: span 2;
  }

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

  .footer__inner { grid-template-columns: 1fr; }
  .footer__brand { grid-column: span 1; }

  .contact__form-wrapper { padding: 24px; }
}
