/* ============================================================
   HOLLYWOOD HOUSE — Project marketing page
   Built on Stonehill Developments design system
   ============================================================ */

/* ── Local Fonts ────────────────────────────────────────── */
@font-face { font-family: 'Roboto'; src: url('fonts/Roboto-Light.ttf');     font-weight: 300; font-style: normal; }
@font-face { font-family: 'Roboto'; src: url('fonts/Roboto-Regular.ttf');   font-weight: 400; font-style: normal; }
@font-face { font-family: 'Roboto'; src: url('fonts/Roboto-Italic.ttf');    font-weight: 400; font-style: italic; }
@font-face { font-family: 'Roboto'; src: url('fonts/Roboto-Medium.ttf');    font-weight: 500; font-style: normal; }
@font-face { font-family: 'Roboto'; src: url('fonts/Roboto-SemiBold.ttf');  font-weight: 600; font-style: normal; }
@font-face { font-family: 'Roboto'; src: url('fonts/Roboto-Bold.ttf');      font-weight: 700; font-style: normal; }
@font-face { font-family: 'Roboto Condensed'; src: url('fonts/Roboto_Condensed-Bold.ttf');       font-weight: 700; font-style: normal; }
@font-face { font-family: 'Roboto Condensed'; src: url('fonts/Roboto_Condensed-ExtraBold.ttf');  font-weight: 800; font-style: normal; }

/* ── Tokens (overridable via Tweaks) ─────────────────────
   Palette:
     #ede8dc  cream      → chalk background
     #4a3f35  dark brown → ink / dark sections
     #6d715f  sage       → accent option
     #d9cbb2  sand       → accent-bg
     #a35d45  terracotta → primary accent
   ──────────────────────────────────────────────────────── */
:root {
  --color-ink:       #2A231D;
  --color-stone-900: #2F2722;
  --color-stone-800: #3A3128;
  --color-stone-700: #4A3F35;
  --color-stone-600: #6A5C4E;
  --color-stone-500: #877867;
  --color-stone-400: #A39684;
  --color-stone-300: #BCB09C;
  --color-stone-200: #CFC3AE;
  --color-stone-100: #E0D6C2;
  --color-stone-50:  #E7DECD;
  --color-chalk:     #EDE8DC;
  --color-white:     #FFFFFF;

  /* Sand surface (secondary background option) */
  --color-sand:      #D9CBB2;

  /* Sage — secondary accent / supporting color */
  --color-sage:      #6D715F;
  --color-sage-dark: #4F5346;

  --accent:       #A35D45;   /* Terracotta — default */
  --accent-light: #C4836A;
  --accent-dark:  #7A4131;
  --accent-bg:    #F0E2DC;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--color-chalk);
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--color-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button { cursor: pointer; font-family: inherit; }
img { display: block; max-width: 100%; }
input, textarea, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* ── Type helpers ───────────────────────────────────────── */
.eyebrow {
  font-family: 'Roboto', sans-serif;
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow-rule { display: inline-block; width: 32px; height: 1px; background: var(--accent); vertical-align: middle; margin-right: 14px; }

.display {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--color-ink);
}

/* ── Layout primitives ──────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 40px; }

/* ── Placeholder image styles ───────────────────────────── */
.ph {
  position: relative;
  background: linear-gradient(135deg, #4A3F35 0%, #2A231D 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.ph::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 32px 32px;
}
.ph-label {
  position: relative; z-index: 1;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  font-style: normal; font-weight: 400;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.18);
}
.ph-light {
  background: linear-gradient(135deg, var(--color-stone-100) 0%, var(--color-sand) 100%);
}
.ph-light::before {
  background-image:
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.ph-light .ph-label {
  color: rgba(14,14,12,0.42);
  border-color: rgba(14,14,12,0.18);
  background: rgba(255,255,255,0.4);
}

/* ── Section rhythm ─────────────────────────────────────── */
section { position: relative; }
.section { padding: 120px 0; }
.section-sm { padding: 80px 0; }
.section-dark { background: var(--color-stone-700); color: var(--color-white); }
.section-sand { background: var(--color-sand); }
.section-chalk { background: var(--color-chalk); }
.section-white { background: var(--color-white); }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 1px;
  transition: all 200ms ease-out;
  white-space: nowrap;
}
.btn-primary { background: var(--color-ink); color: #fff; border-color: var(--color-ink); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--color-ink); border-color: var(--color-ink); }
.btn-outline:hover { background: var(--color-ink); color: #fff; }
.btn-light { background: #fff; color: var(--color-ink); border-color: #fff; }
.btn-light:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ghost-light {
  background: transparent; color: #fff; border-color: rgba(255,255,255,0.45);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.08); border-color: #fff; }

.btn-arrow { transition: transform 200ms; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ── Form fields ────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.field-label {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-stone-600);
}
.field-input {
  font-size: 15px; color: var(--color-ink);
  background: #fff; border: 1px solid var(--color-stone-200);
  border-radius: 1px; padding: 14px 16px;
  outline: none; width: 100%;
  transition: border-color 200ms;
}
.field-input:focus { border-color: var(--color-ink); }
.field-input::placeholder { color: var(--color-stone-300); }

/* ── FAQ accordion ──────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--color-stone-100);
  padding: 0;
}
.faq-q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  background: none; border: none; padding: 28px 0; text-align: left;
  font-family: 'Roboto', sans-serif;
  font-size: 19px; font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--color-ink);
}
.faq-icon {
  flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--color-stone-200);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--color-stone-600);
  transition: transform 220ms ease-out, border-color 220ms, color 220ms;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  border-color: var(--accent);
  color: var(--accent);
}
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 320ms ease-out, padding 320ms ease-out;
  font-size: 15px; line-height: 1.75; color: var(--color-stone-600);
  max-width: 720px;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding: 0 0 32px;
}

/* ── Floor plan switcher ────────────────────────────────── */
.plan-tabs {
  display: flex;
  border-bottom: 1px solid var(--color-stone-100);
  flex-wrap: wrap;
}
.plan-tab {
  background: none; border: none;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-stone-400);
  padding: 18px 28px 18px 0;
  margin-right: 32px;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  transition: color 200ms;
}
.plan-tab:hover { color: var(--color-stone-700); }
.plan-tab.active {
  color: var(--color-ink);
  border-bottom-color: var(--color-ink);
}

/* ── Lightbox ───────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(14,14,12,0.92);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 80px 40px;
  animation: fadein 200ms ease-out;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.lightbox-content {
  width: 100%; max-width: 1200px; height: 100%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.lightbox-img {
  width: 100%; height: 100%;
}
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; line-height: 1;
  transition: background 200ms;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,0.18); }
.lightbox-close { top: -64px; right: 0; }
.lightbox-nav-prev { left: -64px; top: 50%; transform: translateY(-50%); }
.lightbox-nav-next { right: -64px; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
  position: absolute; bottom: -48px; left: 0;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ── Animations ─────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 800ms ease-out, transform 800ms ease-out;
}
.reveal.in {
  opacity: 1; transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ── Sticky bottom bar ──────────────────────────────────── */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--color-ink); color: #fff;
  padding: 16px 40px;
  z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  transform: translateY(100%);
  transition: transform 320ms ease-out;
  border-top: 1px solid var(--accent-dark);
}
.sticky-bar.visible { transform: translateY(0); }
.sticky-bar-left { display: flex; align-items: center; gap: 20px; min-width: 0; }
.sticky-bar-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
.sticky-bar-text {
  font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sticky-bar-text strong { font-weight: 600; }
.sticky-bar-meta {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 880px) {
  .section { padding: 72px 0; }
  .container, .container-narrow { padding: 0 24px; }
  .sticky-bar { padding: 14px 20px; }
  .sticky-bar-meta { display: none; }
}
