/* Renting My Way — design tokens + engineering standard */

:root {
  --canvas: #182437;
  --canvas-deep: #101827;
  --panel: #22314a;
  --panel-2: #2b3c58;
  --accent: #c8952f;
  --accent-hover: #a6791f;
  --accent-muted: rgba(200, 149, 47, 0.2);
  --text-primary: #f4f1ea;
  --text-secondary: #aab3c2;
  --line: rgba(170, 179, 194, 0.22);
  --radius: 8px;
  --tshadow: 0 1px 2px rgba(5, 5, 10, 0.9), 0 3px 12px rgba(5, 5, 10, 0.7), 0 10px 44px rgba(5, 5, 10, 0.75);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { overflow-x: hidden; overflow-x: clip; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.paused *, body.paused *::before, body.paused *::after {
  animation-play-state: paused !important;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--panel); color: var(--text-primary);
  padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin-top: 0; color: var(--text-primary); }
h2 { font-size: 1.8rem; }
.eyebrow { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }

p { color: var(--text-secondary); max-width: 68ch; }

/* Header / nav */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(16, 24, 39, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1140px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.brand {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 600;
  color: var(--text-primary); text-decoration: none;
}
.brand span { color: var(--accent); }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.main-nav a {
  color: var(--text-secondary); text-decoration: none; font-size: 0.95rem;
  padding: 8px 12px; border-radius: var(--radius); transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.main-nav a:hover, .main-nav a.active { color: var(--text-primary); background: rgba(255,255,255,0.06); }

.nav-toggle {
  display: none; flex-direction: column; gap: 4px; background: none; border: none; padding: 8px; cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; }

/* Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: var(--radius); text-decoration: none;
  font-weight: 600; font-size: 0.95rem; border: 2px solid transparent; cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--accent); color: var(--canvas-deep); }
.btn-gold:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; border-color: rgba(244,241,234,0.4); color: var(--text-primary); }
.btn-outline:hover { background: rgba(255,255,255,0.08); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
@media (pointer: coarse) {
  .btn { min-height: 44px; }
}

/* Hero (scrub-driven skyline) */

.hero-pin {
  position: relative;
  height: 400vh;
}
.hero-stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; align-items: flex-start; justify-content: center; padding-top: min(14vh, 130px);
  background: radial-gradient(ellipse 120% 70% at 50% 0%, #24344e 0%, var(--canvas) 55%, var(--canvas-deep) 100%);
}
.hero-pin.static-hero .hero-scrub,
.hero-pin.static-hero .scroll-cue,
.hero-pin.static-hero .hero-bands { display: none; }
.hero-pin:not(.static-hero) .hero-static-copy { display: none; }

.particles { position: absolute; inset: 0; pointer-events: none; }
.particles span {
  position: absolute; top: calc(var(--pt, 50) * 1%); width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent-muted);
  animation: drift 70s linear infinite;
  animation-delay: calc(var(--pd, 0) * -1s);
}
@keyframes drift {
  from { transform: translateY(10vh) translateX(0); opacity: 0; }
  10% { opacity: 0.7; }
  90% { opacity: 0.5; }
  to { transform: translateY(-110vh) translateX(20px); opacity: 0; }
}

.scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 120% 90% at 50% 40%, rgba(10,10,18,0) 30%, rgba(10,10,18,0.6) 100%);
}

.skyline { position: relative; height: min(70vh, 700px); width: auto; z-index: 1; }
.skyline [data-draw] { fill: none; stroke: var(--text-secondary); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.skyline [data-window] { fill: var(--accent); opacity: 0; transition: none; }
.skyline [data-sign] { opacity: 0; }
.hero-pin.static-hero .skyline [data-draw] { stroke-dashoffset: 0 !important; }
.hero-pin.static-hero .skyline [data-window] { opacity: 1 !important; }
.hero-pin.static-hero .skyline [data-sign] { opacity: 1 !important; }

.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--text-secondary);
  z-index: 2; transition: opacity 0.3s var(--ease-soft);
}
.scroll-cue::after { content: ""; display: block; width: 1px; height: 26px; background: var(--line); margin: 8px auto 0; }

.hero-bands { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.band {
  position: absolute; left: 0; right: 0; top: 34%; transform: translateY(-50%);
  text-align: center; padding: 0 20px; opacity: 0;
}
.band::before {
  content: ""; position: absolute; inset: -6% -4%; z-index: -1; pointer-events: none;
  opacity: calc(0.3 + 0.7 * var(--k, 1));
  background: radial-gradient(ellipse 78% 64% at 50% 50%, rgba(5,5,10,0.66) 0%, rgba(5,5,10,0.4) 48%, rgba(5,5,10,0) 76%);
}
.band h2, .band p { text-shadow: var(--tshadow); }
.band h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); max-width: 18ch; margin: 0 auto 14px; }
.band p { font-size: 1.05rem; max-width: 46ch; margin: 0 auto; color: #dfe4ea; }
.band .btn-row { justify-content: center; margin-top: 22px; }

/* word rise entrance, driven by band --k */
.band .w {
  display: inline-block;
  --kc: clamp(0, (var(--k, 0) - var(--th, 0)) * 2.8, 1);
  opacity: var(--kc);
  transform: translateY(calc((1 - var(--kc)) * 18px));
}

.hero-static-copy {
  position: relative; z-index: 2; text-align: center; padding: 90px 20px 60px; max-width: 640px;
}
.hero-static-copy h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); text-shadow: var(--tshadow); }
.hero-static-copy p { color: #dfe4ea; margin: 0 auto 24px; }

/* Inner-page light static hero */
.page-hero {
  padding: 120px 0 56px;
  background: radial-gradient(ellipse 120% 70% at 50% 0%, #24344e 0%, var(--canvas) 60%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { font-size: clamp(1.7rem, 4.5vw, 2.3rem); }
.page-hero p { max-width: 52ch; margin: 10px auto 0; }
.page-hero .mini-skyline { position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: min(900px, 140%); opacity: 0.5; }
.page-hero .mini-skyline path { fill: none; stroke: var(--text-secondary); stroke-width: 2; }
.page-hero .mini-skyline rect { fill: var(--accent); opacity: 0.6; }

/* Sections */

section { padding: 64px 0; }
section.alt { background: var(--canvas-deep); }
.section-intro { max-width: 640px; margin: 0 auto 32px; text-align: center; color: var(--text-secondary); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease-soft), transform 0.6s var(--ease-soft); }
.reveal.in { opacity: 1; transform: translateY(0); }
.grid > .reveal:nth-child(1) { transition-delay: 0ms; }
.grid > .reveal:nth-child(2) { transition-delay: 80ms; }
.grid > .reveal:nth-child(3) { transition-delay: 160ms; }
.grid > .reveal:nth-child(4) { transition-delay: 240ms; }
.grid > .reveal:nth-child(5) { transition-delay: 320ms; }
.grid > .reveal:nth-child(6) { transition-delay: 400ms; }
.grid.in > .reveal { transition-delay: 0ms !important; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: var(--accent-muted); }
.card h3 { font-size: 1.15rem; }
.portal-card { text-align: center; }
.portal-card .btn { margin-top: 12px; }

.tag {
  display: inline-block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em;
  color: var(--accent); border: 1px solid var(--accent-muted); border-radius: 20px; padding: 3px 10px; margin: 6px 0 10px;
}

/* Property photo cards */

.property-card { padding: 0; overflow: hidden; }
.property-photo { aspect-ratio: 4 / 3; overflow: hidden; }
.property-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s var(--ease); }
.property-card:hover .property-photo img { transform: scale(1.05); }
.property-body { padding: 20px 24px; }
.property-body h3 { font-size: 1.15rem; }

/* Gallery */

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.gallery-item {
  border: none; padding: 0; background: none; cursor: zoom-in; border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 4 / 3; position: relative;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s var(--ease); }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.06); }

.lightbox {
  position: fixed; inset: 0; background: rgba(8, 12, 20, 0.92); z-index: 1000;
  display: flex; align-items: center; justify-content: center; padding: 40px;
  opacity: 0; visibility: hidden; transition: opacity 0.25s var(--ease);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-close {
  position: absolute; top: 20px; right: 24px; background: none; border: none; color: #fff;
  font-size: 2rem; line-height: 1; cursor: pointer; padding: 8px;
}

/* Property filter */

.filter-row { display: flex; gap: 10px; justify-content: center; margin-bottom: 28px; flex-wrap: wrap; }
.filter-btn {
  background: transparent; border: 1px solid var(--line); color: var(--text-secondary);
  border-radius: 20px; padding: 8px 18px; font-family: var(--font-body); font-size: 0.9rem; cursor: pointer;
  transition: all 0.2s var(--ease);
}
.filter-btn.active, .filter-btn:hover { border-color: var(--accent); color: var(--text-primary); background: var(--accent-muted); }

/* FAQ accordion */

.faq-group { max-width: 760px; margin: 0 auto 40px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; color: var(--text-primary);
  font-family: var(--font-display); font-size: 1.05rem; padding: 18px 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-q::after { content: "+"; color: var(--accent); font-size: 1.3rem; transition: transform 0.25s var(--ease); flex-shrink: 0; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; color: var(--text-secondary);
  transition: max-height 0.35s var(--ease-soft), padding 0.35s var(--ease-soft);
}
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 18px; }

/* Contact */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-details p { margin: 0 0 10px; }
.contact-details .label { font-weight: 600; color: var(--text-primary); }
form.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form label { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; display: block; color: var(--text-primary); }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: inherit; font-size: 1rem; background: var(--canvas-deep); color: var(--text-primary);
}
.contact-form .form-status { color: var(--accent); font-size: 0.9rem; min-height: 1.2em; }
.map-frame { border: 0; width: 100%; height: 320px; border-radius: var(--radius); filter: grayscale(0.3) invert(0.92) contrast(0.9); }

.notice { background: rgba(200,149,47,0.1); border: 1px solid var(--accent-muted); border-radius: var(--radius); padding: 14px 18px; font-size: 0.9rem; color: var(--text-secondary); }

/* Self-drawing divider */

.draw-line { display: block; width: 100%; height: 2px; margin: 0 auto; }
.draw-line path {
  fill: none; stroke: var(--accent-muted); stroke-width: 2;
  stroke-dasharray: 600; stroke-dashoffset: 600;
  transition: stroke-dashoffset 1.1s var(--ease);
}
.draw-line.drawn path { stroke-dashoffset: 0; }

/* Footer */

.site-footer { background: var(--canvas-deep); padding: 40px 0 24px; font-size: 0.9rem; border-top: 1px solid var(--line); }
.site-footer a { color: var(--text-primary); }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-bottom: 20px; }
.footer-grid h4 { margin: 0 0 10px; font-size: 1rem; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 16px; text-align: center; color: var(--text-secondary); font-size: 0.82rem; max-width: 1140px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* Responsive nav + hero */

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav { display: none; width: 100%; order: 3; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; padding-top: 8px; }
}

@media (max-width: 720px),
  (orientation: portrait) and (max-width: 1024px),
  (orientation: portrait) and (pointer: coarse),
  (orientation: landscape) and (pointer: coarse) and (max-height: 560px),
  (prefers-reduced-motion: reduce) {
  .hero-pin { height: auto; }
  .hero-stage { position: relative; height: auto; min-height: 70vh; }
  .hero-scrub { display: none; }
  .hero-static-copy { display: block !important; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
