/* Aparna Hillpark Silver Oaks — Design Tokens & Base Styles */

:root {
  /* Color */
  --bg-primary: #0d0d0d;
  --bg-surface: #111118;
  --bg-card: #16161f;
  --bg-deep: #0f0f1e;
  --bg-input: #1e1e28;
  --bg-footer: #080810;

  --gold: #c9a84c;
  --gold-light: #e8d5a3;
  --gold-glow: rgba(201, 168, 76, 0.12);
  --gold-faint: rgba(201, 168, 76, 0.06);
  --divider: rgba(201, 168, 76, 0.2);
  --divider-soft: rgba(201, 168, 76, 0.1);

  --warm-white: #f5f0e8;
  --muted: #9a9080;
  --muted-deep: #6a6258;

  --red-soft: #c47b6c;
  --green-soft: #7ba88c;
  --blue-soft: #7b95c4;

  /* Type */
  --font-display: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --font-label: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --nav-h: 72px;
  --section-pad: 120px;
  --max-w: 1280px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: var(--bg-primary);
  color: var(--warm-white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(201, 168, 76, 0.3); color: var(--warm-white); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0a0f; }
::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.4); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; padding: 0; }
input, textarea, select { font-family: inherit; }

/* Grain texture */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 0.9 0 0 0 0 0.7 0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Typography */
.label {
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
}

.display {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.serif { font-family: var(--font-display); }
.mono-tracked { font-family: var(--font-label); letter-spacing: 0.2em; text-transform: uppercase; }

.gold-rule {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 24px auto;
  border: none;
}

/* Section header */
.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-header .eyebrow {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
}

.section-header .title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 56px;
  color: var(--warm-white);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all 200ms ease;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 0;
}

.btn--gold {
  background: var(--gold);
  color: #0d0d0d;
}

.btn--gold:hover {
  background: var(--gold-light);
  box-shadow: 0 0 40px var(--gold-glow);
}

.btn--outline {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold);
}

.btn--outline:hover {
  background: rgba(201,168,76,0.08);
}

.btn--tiny {
  padding: 8px 16px;
  font-size: 10px;
  letter-spacing: 0.18em;
}

/* Layout */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
}

.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 800px; height: 200px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, var(--gold-faint), transparent 70%);
  pointer-events: none;
  opacity: 0.6;
}

.divider-rule {
  height: 1px;
  background: var(--divider-soft);
  border: none;
  margin: 0;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(13,13,13,0.85);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--divider-soft);
  display: flex;
  align-items: center;
}

.nav__inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.nav__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.nav__brand-top {
  font-family: var(--font-label);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--warm-white);
  text-transform: uppercase;
}

.nav__brand-bottom {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 auto;
}

.nav__link {
  font-family: var(--font-label);
  font-size: 10.5px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 0;
  position: relative;
  transition: color 200ms;
  cursor: pointer;
}

.nav__link:hover { color: var(--warm-white); }
.nav__link.active { color: var(--gold); }
.nav__link.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--gold);
}

.nav__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Email Address */
.email-address {
  color: var(--gold);
  font-weight: 500;
}

/* Monogram */
.monogram {
  width: 44px; height: 44px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.02em;
  flex-shrink: 0;
  background: rgba(201,168,76,0.04);
}

.monogram--lg { width: 60px; height: 60px; font-size: 14px; }
.monogram--xl { width: 88px; height: 88px; font-size: 22px; }

.diamond {
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  vertical-align: middle;
  margin: 0 4px;
}

/* Cards */
.card {
  background: var(--bg-card);
  padding: 32px;
  transition: all 250ms ease;
  position: relative;
}

.card--bordered-l {
  border-left: 3px solid var(--gold);
}

.card--bordered-l:hover {
  transform: translateY(-4px);
  border-left-color: var(--gold-light);
  box-shadow: 0 0 60px var(--gold-glow);
}

/* Form fields */
.field {
  display: block;
  margin-bottom: 24px;
}

.field__label {
  display: block;
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.field__input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--divider);
  color: var(--warm-white);
  padding: 14px 16px;
  font-size: 15px;
  font-family: var(--font-body);
  outline: none;
  transition: all 180ms;
  border-radius: 0;
}

.field__input::placeholder { color: var(--muted-deep); }

.field__input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201,168,76,0.15);
}

/* Footer */
footer {
  background: var(--bg-footer);
  padding-top: 80px;
  padding-bottom: 40px;
  position: relative;
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* Responsive Utility Grids */
.grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}
.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Responsive Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Mobile Hamburger Button */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--gold);
  transition: all 0.3s ease;
}

.nav__hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav__hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Drawer Overlay */
.nav__mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(13, 13, 13, 0.98);
  backdrop-filter: blur(20px);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 80px 40px 40px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-bottom: 1px solid var(--divider-soft);
}

.nav__mobile-drawer.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav__mobile-drawer .nav__link {
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--muted);
}

.nav__mobile-drawer .nav__link.active {
  color: var(--gold);
}

.nav__mobile-drawer .nav__sep {
  color: var(--divider);
  font-size: 10px;
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .nav__inner { position: relative; flex-wrap: nowrap; gap: 0; justify-content: center; align-items: center; padding: 0 20px; }
  .nav__brand { position: absolute; left: 50%; transform: translateX(-50%); }
  .nav__links { display: none; }
  .nav__right { display: none !important; }
  .nav__hamburger { display: flex; flex-shrink: 0; margin-left: auto; }

  /* Transparent nav on mobile — becomes solid after scrolling */
  .nav {
    background: transparent;
    backdrop-filter: none;
    border-bottom-color: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
  }
  .nav--scrolled {
    background: rgba(13,13,13,0.92);
    backdrop-filter: blur(20px) saturate(140%);
    border-bottom-color: var(--divider-soft);
  }
  .section-header .title { font-size: 32px; }
  
  /* Collapse grids to single column */
  .grid-2col, .grid-3col {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Admin Responsive Fixes */
  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px !important;
  }

  .admin-nav {
    flex-wrap: wrap;
    gap: 12px 20px !important;
    margin-bottom: 32px !important;
  }

  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .search-box {
    flex-direction: column;
    gap: 12px !important;
  }

  .search-box input {
    max-width: 100% !important;
  }

  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

