/* ============================================================
   909 Firethorne Trail — Stylesheet
   Jordan, MN 55352
   
   COLOR SYSTEM: Edit variables in :root to retheme the site.
   --primary  = main blue (buttons, badges, accents)
   --ink      = deep navy text
   --accent   = warm gold (callouts, highlights)
   ============================================================ */

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

:root {
  --primary:      #2E6DA4;
  --primary-dark: #1D4F7A;
  --sky-light:    #D6E8F5;
  --sky-pale:     #EEF5FB;
  --sky-mid:      #A8CCE8;
  --slate:        #6B7E95;
  --slate-pale:   #F0F4F8;
  --rule:         #C8D6E8;
  --accent:       #E8A830;
  --accent-pale:  #FEF6E4;
  --white:        #FDFEFF;
  --ink:          #1A2535;
  --mid:          #4A5E72;
  --shadow:       0 4px 32px rgba(26,37,53,0.10);
}

html { scroll-behavior: smooth; }
body { background: var(--white); color: var(--ink); font-family: 'Jost', sans-serif; font-weight: 300; line-height: 1.6; overflow-x: hidden; }

/* NAV */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 3rem; background: rgba(253,254,255,0.93); backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); }
.nav-logo { font-family: 'DM Mono', monospace; font-size: 0.68rem; letter-spacing: 0.18em; color: var(--mid); text-transform: uppercase; }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a { font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; color: var(--mid); text-decoration: none; text-transform: uppercase; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }
.nav-cta { background: var(--primary); color: var(--white) !important; padding: 0.5rem 1.2rem; border-radius: 2px; }
.nav-cta:hover { background: var(--ink) !important; }

/* HERO */
.hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding-top: 60px; }
.hero-photo { position: absolute; inset: 0; background-image: url('https://s3.amazonaws.com/photos.spacecrafting.com/1S1QFTGFoOJcUsOU02hXBQ.jpg'); background-size: cover; background-position: center 30%; z-index: 0; }
.hero-sky { position: absolute; top: 0; left: 0; right: 0; height: 50%; background: linear-gradient(180deg, #5BA8D4 0%, #A8CCE8 50%, transparent 100%); z-index: 1; opacity: 0.45; }
.hero-overlay { position: absolute; inset: 0; z-index: 2; background: linear-gradient(160deg, rgba(180,210,240,0.25) 0%, rgba(26,37,53,0.0) 40%, rgba(26,37,53,0.82) 100%); }
.hero-content { position: relative; z-index: 3; padding: 0 4rem 5rem; display: grid; grid-template-columns: 1fr auto; align-items: flex-end; gap: 3rem; }
.hero-tag { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--primary); color: var(--white); font-family: 'DM Mono', monospace; font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; padding: 0.45rem 1rem; margin-bottom: 1.5rem; opacity: 0; animation: slideIn 0.7s ease 0.3s forwards; }
.hero-tag::before { content: ''; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
h1.hero-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(3.2rem, 7vw, 6.5rem); font-weight: 700; line-height: 0.95; color: var(--white); margin-bottom: 1.5rem; text-shadow: 0 2px 32px rgba(26,37,53,0.5); opacity: 0; animation: slideIn 0.8s ease 0.5s forwards; }
h1.hero-title em { font-style: italic; font-weight: 400; color: #9DD5F5; }
.hero-sub { font-size: 1.05rem; color: rgba(255,255,255,0.82); max-width: 520px; line-height: 1.75; border-left: 3px solid var(--accent); padding-left: 1.2rem; opacity: 0; animation: slideIn 0.8s ease 0.7s forwards; }
.hero-right { display: flex; flex-direction: column; gap: 1px; opacity: 0; animation: fadeIn 1s ease 1s forwards; }
.hero-stat-box { background: rgba(255,255,255,0.12); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.2); padding: 1.2rem 1.8rem; text-align: right; min-width: 160px; }
.hero-stat-box .hsb-num { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 700; color: var(--white); line-height: 1; }
.hero-stat-box .hsb-label { font-family: 'DM Mono', monospace; font-size: 0.58rem; letter-spacing: 0.15em; color: rgba(255,255,255,0.45); text-transform: uppercase; margin-top: 0.2rem; }
.hero-scroll-hint { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; opacity: 0; animation: fadeIn 1s ease 1.4s forwards; }
.scroll-line { width: 1px; height: 50px; background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent); animation: scrollPulse 2s ease infinite; }
.scroll-label { font-family: 'DM Mono', monospace; font-size: 0.58rem; letter-spacing: 0.2em; color: rgba(255,255,255,0.4); text-transform: uppercase; }

/* ADDRESS BAND */
.address-band { background: var(--primary); color: var(--white); display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 4rem; flex-wrap: wrap; gap: 1rem; }
.address-band .addr { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 600; }
.address-band .details { display: flex; gap: 2.5rem; }
.address-band .detail-item { text-align: center; }
.address-band .d-val { font-family: 'DM Mono', monospace; font-size: 1rem; font-weight: 500; color: var(--accent); }
.address-band .d-lbl { font-size: 0.68rem; color: rgba(255,255,255,0.6); letter-spacing: 0.08em; text-transform: uppercase; }

/* SHARED */
section { padding: 7rem 4rem; }
.section-eyebrow { font-family: 'DM Mono', monospace; font-size: 0.65rem; letter-spacing: 0.22em; color: var(--primary); text-transform: uppercase; margin-bottom: 1rem; }
.section-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.2rem, 4.5vw, 3.8rem); font-weight: 700; line-height: 1.05; color: var(--ink); margin-bottom: 1.5rem; }
.section-title em { font-style: italic; color: var(--primary); }
.section-body { font-size: 1.05rem; color: var(--mid); max-width: 600px; line-height: 1.8; }

/* WHY WIN */
.win-section { background: var(--sky-pale); }
.win-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 4rem; }
.win-card { background: var(--white); border: 1px solid var(--rule); padding: 2.5rem 2rem; position: relative; overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.win-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.win-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--sky-mid)); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.win-card:hover::after { transform: scaleX(1); }
.win-card .wc-icon { font-size: 1.6rem; margin-bottom: 1.2rem; }
.win-card .wc-title { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 600; color: var(--ink); margin-bottom: 0.7rem; }
.win-card .wc-body { font-size: 0.88rem; color: var(--mid); line-height: 1.75; }
.win-card .wc-callout { margin-top: 1.2rem; font-family: 'DM Mono', monospace; font-size: 0.65rem; color: var(--primary); background: var(--sky-pale); padding: 0.4rem 0.75rem; display: inline-block; }

/* COMPETITION */
.comp-section { background: var(--ink); padding: 7rem 4rem; color: var(--white); }
.comp-section .section-title { color: var(--white); }
.comp-section .section-body { color: rgba(255,255,255,0.55); }
.comp-verdict { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 4rem; }
.verdict-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); padding: 2rem; border-top: 2px solid transparent; }
.verdict-card.winner { border-top-color: var(--accent); background: var(--primary); border-color: var(--primary-dark); }
.verdict-card .vc-address { font-family: 'DM Mono', monospace; font-size: 0.62rem; letter-spacing: 0.12em; color: rgba(255,255,255,0.3); text-transform: uppercase; margin-bottom: 0.75rem; }
.verdict-card.winner .vc-address { color: var(--accent); }
.verdict-card .vc-price { font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; font-weight: 700; color: var(--white); line-height: 1; margin-bottom: 1rem; }
.verdict-card .vc-bullets { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.verdict-card .vc-bullets li { font-size: 0.82rem; color: rgba(255,255,255,0.45); padding-left: 1rem; position: relative; }
.verdict-card .vc-bullets li::before { content: '—'; position: absolute; left: 0; color: rgba(255,255,255,0.2); }
.verdict-card.winner .vc-bullets li { color: rgba(255,255,255,0.92); }
.verdict-card.winner .vc-bullets li::before { color: var(--accent); }
.verdict-verdict { margin-top: 1.2rem; font-family: 'DM Mono', monospace; font-size: 0.62rem; letter-spacing: 0.1em; padding: 0.5rem 0.9rem; display: inline-block; }
.verdict-card.winner .verdict-verdict { background: rgba(232,255,30,0.18); color: var(--white); border: 1px solid rgba(255,255,255,0.35); }
.verdict-card.loser1 .verdict-verdict, .verdict-card.loser2 .verdict-verdict { background: var(--sky-pale); color: var(--primary-dark); border: 1px solid var(--rule); }

/* Loser cards: white background with dark text for readability */
.verdict-card.loser1,
.verdict-card.loser2 {
  background: #ffffff;
  border: 1px solid var(--rule);
  border-top: 2px solid var(--slate);
}
.verdict-card.loser1 .vc-address,
.verdict-card.loser2 .vc-address {
  color: var(--mid);
}
.verdict-card.loser1 .vc-price,
.verdict-card.loser2 .vc-price {
  color: var(--ink);
}
.verdict-card.loser1 .vc-bullets li,
.verdict-card.loser2 .vc-bullets li {
  color: var(--mid);
}
.verdict-card.loser1 .vc-bullets li::before,
.verdict-card.loser2 .vc-bullets li::before {
  color: var(--slate);
}
.comp-table { margin-top: 4rem; border: 1px solid rgba(255,255,255,0.1); overflow: hidden; }
.comp-table-head { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; background: rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.1); }
.col-head { padding: 1rem 1.5rem; font-family: 'DM Mono', monospace; font-size: 0.62rem; letter-spacing: 0.15em; color: rgba(255,255,255,0.35); text-transform: uppercase; }
.col-head.ours { color: var(--accent); background: rgba(232,168,48,0.08); }
/* Loser column headers — white */
.comp-table-head .col-head:nth-child(3),
.comp-table-head .col-head:nth-child(4) { background: #ffffff; color: var(--mid); border-left: 1px solid var(--rule); }
.comp-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; border-bottom: 1px solid rgba(255,255,255,0.06); }
.comp-row:last-child { border-bottom: none; }
.comp-cell { padding: 1.2rem 1.5rem; font-size: 0.88rem; color: rgba(255,255,255,0.5); display: flex; align-items: center; }
.comp-cell.feature-label { color: rgba(255,255,255,0.8); }
.comp-cell.ours { background: rgba(232,168,48,0.06); color: var(--accent); font-weight: 500; }
/* Loser columns in table rows — white background, dark text */
.comp-row .comp-cell:nth-child(3),
.comp-row .comp-cell:nth-child(4) { background: #ffffff; color: var(--mid); border-left: 1px solid var(--rule); }
.comp-row .comp-cell:nth-child(3).neutral,
.comp-row .comp-cell:nth-child(4).neutral { color: var(--mid); }
.check { color: #2A9D6F; font-size: 1.1rem; }
.cross { color: #D94040; font-weight: 600; }
.neutral { color: rgba(255,255,255,0.3); }

/* UPGRADES */
.upgrades-section { background: var(--slate-pale); }
.upgrades-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 6rem; margin-top: 4rem; align-items: start; }
.upgrade-total { margin-top: 2.5rem; background: var(--primary); color: var(--white); padding: 2.5rem; }
.ut-label { font-family: 'DM Mono', monospace; font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 0.5rem; }
.ut-num { font-family: 'Cormorant Garamond', serif; font-size: 3rem; font-weight: 700; line-height: 1; }
.ut-sub { font-size: 0.82rem; color: rgba(255,255,255,0.65); margin-top: 0.5rem; }
.upgrade-categories { display: flex; flex-direction: column; gap: 2.5rem; }
.upgrade-cat { border-top: 1px solid var(--rule); padding-top: 1.5rem; }
.uc-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.uc-icon { font-size: 1.1rem; }
.uc-title { font-family: 'Jost', sans-serif; font-weight: 600; font-size: 0.88rem; letter-spacing: 0.05em; color: var(--ink); text-transform: uppercase; }
.upgrade-items { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.upgrade-tag { background: var(--white); border: 1px solid var(--rule); padding: 0.35rem 0.75rem; font-size: 0.78rem; color: var(--mid); border-radius: 2px; }
.upgrade-tag .year-badge { font-family: 'DM Mono', monospace; font-size: 0.6rem; color: var(--slate); margin-left: 0.4rem; }

/* GALLERY */
.gallery-section { background: var(--white); }
.gallery-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; margin-bottom: 3.5rem; }
.gallery-count { font-family: 'Cormorant Garamond', serif; font-size: 5rem; font-weight: 700; color: var(--rule); line-height: 1; }
.gallery-hero-img { width: 100%; height: 520px; object-fit: cover; display: block; margin-bottom: 4px; cursor: pointer; transition: opacity 0.2s; }
.gallery-hero-img:hover { opacity: 0.92; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.gallery-grid img { width: 100%; height: 220px; object-fit: cover; display: block; cursor: pointer; transition: opacity 0.2s, transform 0.2s; }
.gallery-grid img:hover { opacity: 0.88; transform: scale(1.01); }
.gallery-grid img.tall { grid-row: span 2; height: 444px; }
.gallery-grid img.wide { grid-column: span 2; }

/* LIGHTBOX */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(26,37,53,0.97); z-index: 9999; justify-content: center; align-items: center; flex-direction: column; padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 80vh; object-fit: contain; }
.lightbox-nav { display: flex; gap: 1rem; margin-top: 1.5rem; align-items: center; }
.lightbox-btn { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: white; padding: 0.6rem 1.4rem; font-size: 1rem; cursor: pointer; font-family: 'Jost', sans-serif; transition: background 0.2s; }
.lightbox-btn:hover { background: rgba(255,255,255,0.2); }
.lightbox-counter { font-family: 'DM Mono', monospace; font-size: 0.68rem; color: rgba(255,255,255,0.4); letter-spacing: 0.15em; min-width: 60px; text-align: center; }
.lightbox-close { position: absolute; top: 1.5rem; right: 2rem; background: none; border: none; color: rgba(255,255,255,0.5); font-size: 2.5rem; cursor: pointer; line-height: 1; transition: color 0.2s; }
.lightbox-close:hover { color: white; }

/* STATS */
.stats-section { background: var(--sky-pale); }
.stats-header { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-bottom: 4rem; align-items: end; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.stat-card { background: var(--white); padding: 2.5rem 1.8rem; position: relative; overflow: hidden; transition: background 0.2s; }
.stat-card:hover { background: var(--sky-pale); }
.sc-platform { font-family: 'DM Mono', monospace; font-size: 0.58rem; letter-spacing: 0.15em; color: var(--mid); text-transform: uppercase; margin-bottom: 0.9rem; opacity: 0.7; }
.sc-num { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.2rem, 3.5vw, 3.2rem); font-weight: 700; color: var(--ink); line-height: 1; margin-bottom: 0.3rem; }
.sc-num span { color: var(--primary); }
.sc-label { font-size: 0.82rem; color: var(--mid); margin-bottom: 0.6rem; }
.sc-hint { font-family: 'DM Mono', monospace; font-size: 0.58rem; color: var(--primary); letter-spacing: 0.08em; }
.sc-bar { position: absolute; bottom: 0; left: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--sky-mid)); width: 0; transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1); }
.stat-card.wide { grid-column: span 2; }

/* NEIGHBORHOOD */
.neighborhood-section { background: var(--white); }
.neighborhood-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 5rem; margin-top: 4rem; align-items: start; }
.neighborhood-features { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.nbhd-feature { background: var(--sky-pale); border: 1px solid var(--rule); padding: 1.8rem 1.5rem; }
.nf-icon { font-size: 1.4rem; margin-bottom: 0.8rem; }
.nf-title { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 600; color: var(--ink); margin-bottom: 0.5rem; }
.nf-body { font-size: 0.82rem; color: var(--mid); line-height: 1.65; }
.neighborhood-callouts { display: flex; flex-direction: column; gap: 1.5rem; }
.nbhd-callout { border-left: 3px solid var(--primary); padding-left: 1.5rem; }
.nc-num { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; font-weight: 700; color: var(--ink); line-height: 1; }
.nc-label { font-size: 0.85rem; color: var(--mid); }

/* CTA */
.cta-section { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); padding: 6rem 4rem; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; top: -100px; right: -100px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(232,168,48,0.18) 0%, transparent 70%); pointer-events: none; }
.cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 4rem; align-items: center; position: relative; z-index: 1; }
.cta-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; color: var(--white); line-height: 1.1; margin-bottom: 1rem; }
.cta-body { font-size: 1rem; color: rgba(255,255,255,0.72); max-width: 500px; line-height: 1.75; }
.cta-actions { display: flex; flex-direction: column; gap: 1rem; min-width: 260px; }
.cta-btn { display: block; text-align: center; padding: 1.1rem 2rem; font-family: 'Jost', sans-serif; font-weight: 500; font-size: 0.88rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; transition: all 0.2s; cursor: pointer; border: none; }
.cta-btn.primary { background: var(--accent); color: var(--ink); }
.cta-btn.primary:hover { background: #F5BF40; }
.cta-btn.secondary { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.35); }
.cta-btn.secondary:hover { border-color: white; background: rgba(255,255,255,0.08); }

/* FOOTER */
footer { background: var(--ink); padding: 2.5rem 4rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-left { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; color: rgba(255,255,255,0.45); }
.footer-right { font-family: 'DM Mono', monospace; font-size: 0.6rem; letter-spacing: 0.1em; color: rgba(255,255,255,0.2); text-align: right; max-width: 400px; line-height: 1.8; }

/* ANIMATIONS */
@keyframes slideIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes scrollPulse { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }


/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; padding: 0 1.5rem 4rem; }
  .hero-right { display: none; }
  .win-grid { grid-template-columns: 1fr; }
  .comp-table-head, .comp-row { grid-template-columns: 2fr 1fr 1fr; }
  .comp-table-head .col-head:last-child, .comp-row .comp-cell:last-child { display: none; }
  .comp-verdict { grid-template-columns: 1fr; }
  .upgrades-grid { grid-template-columns: 1fr; gap: 3rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid img.tall { height: 220px; grid-row: span 1; }
  .stats-header { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card.wide { grid-column: span 1; }
  .neighborhood-grid { grid-template-columns: 1fr; }
  .neighborhood-features { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .address-band { padding: 1.2rem 1.5rem; }
  .address-band .details { gap: 1rem; flex-wrap: wrap; }
  section, .win-section, .comp-section, .upgrades-section, .gallery-section, .stats-section, .neighborhood-section, .cta-section { padding: 4rem 1.5rem; }
  .site-nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  footer { flex-direction: column; padding: 2rem 1.5rem; }
  .gallery-intro { grid-template-columns: 1fr; }
}
