/* ============================================================
   GLEN OAKS LUXURY APARTMENTS — Global Stylesheet
   ============================================================
   EASY EDITS:
   • Change brand colors → update the :root variables below
   • Change fonts → swap the @import URL and --font-* vars
   • Change nav/footer content → edit index.html (shared via JS include)
   ============================================================ */

/* Cinzel — self-hosted serif display font for headings */
@font-face { font-family: 'Cinzel'; src: url('fonts/Cinzel-Regular.ttf') format('truetype');   font-weight: 400; font-display: swap; }
@font-face { font-family: 'Cinzel'; src: url('fonts/Cinzel-Medium.ttf') format('truetype');    font-weight: 500; font-display: swap; }
@font-face { font-family: 'Cinzel'; src: url('fonts/Cinzel-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Cinzel'; src: url('fonts/Cinzel-Bold.ttf') format('truetype');      font-weight: 700; font-display: swap; }
@font-face { font-family: 'Cinzel'; src: url('fonts/Cinzel-ExtraBold.ttf') format('truetype');font-weight: 800; font-display: swap; }
@font-face { font-family: 'Cinzel'; src: url('fonts/Cinzel-Black.ttf') format('truetype');     font-weight: 900; font-display: swap; }

/* Inter — body/sans (Helvetica Neue web substitute per brand guide) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* ── Brand Tokens (Glen Oaks Brand Standards Manual v3) ─── */
:root {
  /* Primary palette */
  --color-bg:          #0F0F0F;   /* Executive Black */
  --color-bg-alt:      #141414;
  --color-surface:     #1a1a1a;
  --color-surface-2:   #2E2E2E;   /* Deep Charcoal */
  --color-gold:        #C8A24A;   /* Heritage Gold  */
  --color-gold-light:  #DDB96A;   /* Gold Light     */
  --color-gold-dark:   #9A7830;   /* Gold Dark      */
  --color-white:       #FFFDF7;   /* Warm Ivory     */
  --color-muted:       #D8D0C2;   /* Bright Warm Gray */
  --color-border:      rgba(200,162,74,0.18);
  --color-overlay:     rgba(15,15,15,0.72);

  --font-serif:        'Cinzel', Georgia, serif;
  --font-sans:         'Inter', Helvetica, Arial, sans-serif;

  --radius-sm:         4px;
  --radius-md:         8px;
  --radius-lg:         16px;

  --transition:        0.3s ease;
  --max-width:         1200px;
  --nav-height:        190px;
}

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

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

body {
  background: var(--color-bg);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title { margin-bottom: 1rem; }
.section-sub {
  color: var(--color-muted);
  font-size: 0.95rem;
  max-width: 560px;
}

/* ── Gold Divider ────────────────────────────────────────── */
.gold-line {
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), transparent);
  margin: 1.25rem 0;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-gold {
  background: var(--color-gold);
  color: var(--color-bg);
}
.btn-gold:hover {
  background: var(--color-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.28);
}

.btn-outline {
  background: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
}
.btn-outline:hover {
  background: var(--color-gold);
  color: var(--color-bg);
  transform: translateY(-2px);
}

/* ── Navigation ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  transition: background var(--transition), backdrop-filter var(--transition);
}

.nav.scrolled {
  background: rgba(15,15,15,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--color-white);
}
.nav-logo span { color: var(--color-gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,253,247,0.96);
  transition: color var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: #fffaf0;
}
.nav-links a:hover::after, .nav-links a.active::after {
  transform: scaleX(1);
}
.nav-links .btn { margin-left: 0.5rem; padding: 0.6rem 1.4rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-toggle span { width: 24px; height: 1px; background: var(--color-white); transition: var(--transition); }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 3rem 2rem 1.75rem;
}
.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand .nav-logo { font-size: 1.3rem; margin-bottom: 1rem; }
.footer-brand p { color: rgba(255,253,247,0.92); font-size: 1rem; line-height: 1.7; max-width: 340px; }
.footer h5 {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.2rem;
}
.footer ul li { margin-bottom: 0.6rem; }
.footer ul li a { color: rgba(255,253,247,0.9); font-size: 0.96rem; transition: color var(--transition); }
.footer ul li a:hover { color: var(--color-white); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--color-muted);
}
.social-links { display: flex; gap: 1rem; }
.social-links a {
  width: 34px; height: 34px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-muted);
  font-size: 0.8rem;
  transition: var(--transition);
}
.social-links a:hover { border-color: var(--color-gold); color: var(--color-gold); }

/* ── Page Hero ───────────────────────────────────────────── */
.page-hero {
  height: 40vh;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
  background: var(--color-surface);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-bg) 0%, var(--color-overlay) 60%, transparent 100%);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%; height: 100%;
  filter: brightness(0.4);
}
.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
}
.page-hero-content h1 { margin-top: 0.5rem; }

/* ── Section Wrapper ─────────────────────────────────────── */
.section {
  padding: 6rem 2rem;
}
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.card-body { padding: 1.75rem; }

/* ── Form Inputs ─────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  padding: 0.85rem 1rem;
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-gold);
}
.form-group select option { background: var(--color-surface); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ── Utilities ───────────────────────────────────────────── */
.text-gold { color: var(--color-gold); }
.text-muted { color: var(--color-muted); }
.text-center { text-align: center; }
.text-center .gold-line { margin-left: auto; margin-right: auto; }
.text-center .section-sub { margin: 0 auto; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.gap-1 { gap: 0.5rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }

/* ── Badge ───────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 100px;
  background: rgba(201,168,76,0.15);
  color: var(--color-gold);
  border: 1px solid rgba(201,168,76,0.3);
}
.badge.available { background: rgba(76,201,130,0.12); color: #4cc982; border-color: rgba(76,201,130,0.3); }
.badge.waitlist  { background: rgba(201,130,76,0.12); color: #c9824c; border-color: rgba(201,130,76,0.3); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; flex-direction: column; position: fixed;
    top: var(--nav-height); left: 0; right: 0;
    background: rgba(15,15,15,0.98);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--color-border);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .section { padding: 4rem 1.25rem; }
}
