/* Infinitude Realty — site styles */

:root {
  --navy: #0b2a4a;
  --navy-dark: #071b31;
  --blue: #3b6ea5;
  --grey: #b3b3b6;
  --grey-light: #f6f2ea;
  --grey-mid: #6b7280;
  --red: #c0392b;
  --white: #ffffff;
  --cream: #fbf8f3;
  --border: #e7e1d5;
  --radius: 12px;
  --shadow: 0 10px 28px rgba(11, 42, 74, 0.07);
  --shadow-lg: 0 18px 44px rgba(11, 42, 74, 0.13);
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1c2733;
  background: var(--cream);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: 'Jost', 'IBM Plex Sans', sans-serif;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.25;
  letter-spacing: 0.005em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.3rem, 4.2vw, 3.4rem); font-weight: 400; letter-spacing: 0.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 400; }
h3 { font-size: 1.25rem; font-weight: 500; }

p { margin: 0 0 1em; color: #4a5364; }

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

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 72px 0; }

.section-tight { padding: 48px 0; }

.section-alt { background: var(--grey-light); }

.section-navy {
  background: var(--navy);
  color: var(--white);
}
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: #cdd9e6; }

.eyebrow {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.lead {
  font-size: 1.15rem;
  color: #3a4757;
  max-width: 640px;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}
.section-head p { margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 6px;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 0.96rem;
  letter-spacing: 0.02em;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover { background: #a5301f; }

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

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

.btn-ghost {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: var(--white); }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1140px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { height: 42px; width: auto; }
.brand-text {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  color: var(--navy);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
nav.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: #33455a;
  position: relative;
}
nav.main-nav a.active,
nav.main-nav a:hover { color: var(--navy); }
nav.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--red);
}

.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
}

@media (max-width: 860px) {
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  nav.main-nav.open { max-height: 420px; }
  nav.main-nav a {
    width: 100%;
    padding: 14px 24px;
    border-top: 1px solid var(--border);
  }
  .header-phone { display: none; }
  .nav-toggle { display: block; }
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, #0f3862 60%, var(--blue) 130%);
  color: var(--white);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero.has-photo {
  background-size: cover;
  background-position: center;
  padding: 120px 0 100px;
}
.hero.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,27,49,0.75) 0%, rgba(7,27,49,0.55) 45%, rgba(7,27,49,0.92) 100%);
}
.hero.has-photo .container { position: relative; z-index: 1; }
.hero .eyebrow { color: #f2b8ab; }
.hero h1 { color: var(--white); max-width: 780px; }
.hero p.lead { color: #d7e2ee; max-width: 620px; }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  font-size: 1.9rem;
  color: var(--white);
}
.hero-stat span { color: #b9c8da; font-size: 0.9rem; }

/* Cards */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card-photo {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.card:hover .card-photo img,
.card-photo.zoom:hover img { transform: scale(1.07); }
.card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,27,49,0) 55%, rgba(7,27,49,0.45) 100%);
  pointer-events: none;
}

.photo-placeholder {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 20px;
  position: relative;
}
.photo-placeholder svg { width: 40px; height: 40px; opacity: 0.8; margin-bottom: 10px; }
.photo-placeholder .ph-label {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

.badge {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(7,27,49,0.68);
  backdrop-filter: blur(3px);
  color: var(--white);
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(7,27,49,0.25);
}
.badge-status {
  position: static;
  background: var(--grey-light);
  color: var(--navy);
  border: 1px solid var(--border);
}

.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card-price {
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--red);
  font-size: 1.3rem;
  margin-bottom: 4px;
}
.card-address { font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.card-sub { color: var(--grey-mid); font-size: 0.9rem; margin-bottom: 14px; }
.card-specs {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #4a5a6c;
  margin-bottom: 16px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}
.card-actions { margin-top: auto; }

/* Method steps */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.step p { font-size: 0.92rem; margin-bottom: 0; }

/* Compare list */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare > div { padding: 18px 24px; }
.compare .head { font-weight: 500; font-family: 'Jost', sans-serif; letter-spacing: 0.01em; }
.compare .most { background: var(--grey-light); color: #4a5a6c; }
.compare .me { background: var(--navy); color: var(--white); }
.compare .row { border-top: 1px solid var(--border); display: contents; }
.compare .row > div { border-top: 1px solid var(--border); font-size: 0.95rem; }
.compare .row .me { border-top-color: rgba(255,255,255,0.15); }
@media (max-width: 640px) {
  .compare { grid-template-columns: 1fr; }
  .compare .row { display: block; }
}

/* Team */
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.team-photo {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--grey-light);
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-mid);
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 1.6rem;
  border: 3px solid var(--grey-light);
}
.team-role {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

/* Quote / proof callout */
.callout {
  border-left: 4px solid var(--red);
  background: var(--grey-light);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.05rem;
  color: var(--navy);
  font-style: italic;
  margin: 0 0 20px;
}

/* Forms */
.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  color: #1c2733;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,110,165,0.15);
}
textarea { resize: vertical; min-height: 120px; }

/* CTA banner */
.cta-banner {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin-bottom: 6px; }
.cta-banner p { color: #cdd9e6; margin-bottom: 0; }

/* Video / 3D tour embeds */
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow);
}
.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Newsletter / email signup */
.newsletter-bar {
  background: var(--blue);
  color: var(--white);
}
.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 32px 0;
}
.newsletter-inner h4 { color: var(--white); margin-bottom: 4px; }
.newsletter-inner p { color: #e2ecf6; margin-bottom: 0; max-width: 420px; }
.newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.newsletter-form input {
  min-width: 240px;
  border: none;
}
.newsletter-section {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
}
.newsletter-section h2 { color: var(--white); }
.newsletter-section p { color: #cdd9e6; max-width: 520px; margin: 0 auto 24px; }
.newsletter-section .newsletter-form {
  justify-content: center;
}
.newsletter-note {
  font-size: 0.78rem;
  color: #7f93a8;
  margin-top: 14px;
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: #b9c8da;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 16px; }
.site-footer a { color: #b9c8da; }
.site-footer a:hover { color: var(--white); }
.site-footer .brand-text { color: var(--white); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  font-size: 0.82rem;
  color: #7f93a8;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.compliance-note {
  font-size: 0.78rem;
  color: #7f93a8;
  max-width: 760px;
  margin-top: 8px;
}

/* Page hero (interior pages) */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 64px 0 48px;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { color: var(--white); }
.page-hero p { color: #cdd9e6; max-width: 620px; }
.page-hero.has-photo {
  background-size: cover;
  background-position: center;
  padding: 100px 0 64px;
}
.page-hero.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,27,49,0.8) 0%, rgba(7,27,49,0.6) 50%, rgba(7,27,49,0.94) 100%);
}
.page-hero.has-photo .container { position: relative; z-index: 1; }
.page-hero.has-photo .eyebrow { color: #f2b8ab; }

/* Photo gallery + lightbox */
.gallery {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: repeat(2, 190px);
  grid-auto-rows: 190px;
  gap: 10px;
  border-radius: var(--radius);
}
.gallery-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: zoom-in;
}
.gallery-item.main { grid-row: span 2; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7,27,49,0);
  transition: background 0.2s ease;
}
.gallery-item:hover::after { background: rgba(7,27,49,0.12); }
.gallery-item .gallery-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(7,27,49,0.7);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  z-index: 2;
}
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 130px 130px; }
  .gallery-item.main { grid-column: span 2; grid-row: auto; }
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7,27,49,0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 32px;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 82vh;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}
.lightbox-caption {
  position: absolute;
  bottom: 28px;
  left: 0; right: 0;
  text-align: center;
  color: #cdd9e6;
  font-size: 0.88rem;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--white);
  cursor: pointer;
  line-height: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.2); }
.lightbox-close { top: 20px; right: 24px; width: 40px; height: 40px; font-size: 1.6rem; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 1.8rem; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 1.5rem; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Utility */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* Full photo wall (6269-gallery.html) */
.photo-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 28px;
}
.photo-wall .gallery-item { aspect-ratio: 3 / 2; background: var(--grey-light); }
.show-numbers .photo-wall .gallery-item::before {
  content: attr(data-num);
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 3px 9px;
  border-radius: 100px;
}

/* Vertical video + 3D tour row (6269) */
.media-row {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 32px;
  align-items: start;
}
.video-embed.vertical { aspect-ratio: 9 / 16; }
.video-embed.tall { aspect-ratio: auto; height: 604px; }
@media (max-width: 800px) {
  .media-row { grid-template-columns: 1fr; }
  .video-embed.vertical { max-width: 340px; margin: 0 auto; }
  .video-embed.tall { height: auto; aspect-ratio: 4 / 3; }
}

.gallery-item.more { display: none; }

/* Lead form status (js/tracking.js) */
.form-status { margin: 12px 0 0; font-size: 0.92rem; min-height: 1.2em; }
.form-status.ok { color: #1f6f43; }
.form-status.err { color: #b42318; }

/* 3D tour embed */
.tour-embed { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius, 8px); overflow: hidden; background: #0b2a4a; }
.tour-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) { .tour-embed { aspect-ratio: 4 / 5; } }
