/* ============================================
   BALBOA ASSET MANAGEMENT — GLOBAL STYLES
   Aesthetic: Refined editorial, warm earth tones
   ============================================ */

/* — CSS Variables — */
:root {
  --ink: #1a1a1a;
  --cream: #f5f0e8;
  --warm: #e8dfd2;
  --accent: #8b4513;
  --accent-light: #c4956a;
  --deep: #2c1810;
  --muted: #6b5e53;
  --highlight: #d4a574;
  --white: #ffffff;
  --border: rgba(139,69,19,0.1);
  --border-light: rgba(139,69,19,0.06);
  --shadow: rgba(44,24,16,0.08);
  --nav-height: 80px;
  --section-gap: 6rem;
  --max-width: 1100px;
  --text-width: 780px;
}

/* — Reset — */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.75;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* — Typography — */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  color: var(--deep);
  line-height: 1.25;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.75rem; }
h2 em, h1 em { font-style: italic; color: var(--accent); }
p { margin-bottom: 1.25rem; font-size: 1.05rem; color: #3a3028; }
a { color: var(--accent); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--deep); }

.eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: block;
}
.lead {
  font-size: 1.2rem;
  color: var(--muted);
  line-height: 1.9;
}

/* — Layout — */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.container--narrow { max-width: var(--text-width); margin: 0 auto; padding: 0 2rem; }
.section { padding: var(--section-gap) 0; }

/* — Navigation — */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.4s, box-shadow 0.4s;
}
.nav--scrolled {
  background: rgba(44,24,16,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
  backdrop-filter: blur(10px);
}
.nav--light { background: transparent; }
.nav--dark { background: var(--deep); }
.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
}
.nav__logo img {
  height: 60px;
  width: auto;
  display: block;
}
.nav__links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  align-items: center;
}
.nav__links a {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.7);
  font-weight: 500;
  transition: color 0.3s;
  text-decoration: none;
}
.nav__links a:hover,
.nav__links a.active { color: var(--cream); }

/* Mobile menu */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* — Hero Sections — */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(var(--nav-height) + 3rem) 2rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero--home {
  background: linear-gradient(175deg, var(--deep) 0%, #3d2b1f 40%, #5a3d2b 70%, var(--accent) 100%);
}
.hero--short {
  min-height: 50vh;
  background: var(--deep);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
.hero h1 { color: var(--cream); margin-bottom: 1.5rem; }
.hero h1 em { color: var(--accent-light); }
.hero p { color: rgba(245,240,232,0.75); font-size: 1.15rem; max-width: 600px; margin: 0 auto; }
.hero .eyebrow { color: var(--accent-light); }

/* — Buttons — */
.btn {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 14px 32px;
  border: 1px solid;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}
.btn--primary {
  background: var(--accent);
  color: var(--cream);
  border-color: var(--accent);
}
.btn--primary:hover { background: var(--deep); border-color: var(--deep); color: var(--cream); }
.btn--outline {
  background: transparent;
  color: var(--cream);
  border-color: rgba(245,240,232,0.3);
}
.btn--outline:hover { border-color: var(--cream); color: var(--cream); }
.btn--dark {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn--dark:hover { background: var(--accent); color: var(--cream); }
.btn-group { display: flex; gap: 1rem; margin-top: 2rem; justify-content: center; flex-wrap: wrap; }

/* — Cards — */
.card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow);
}
.card__number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: rgba(139,69,19,0.1);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 1rem;
}
.card p { font-size: 0.95rem; color: var(--muted); margin-bottom: 0; }

/* — Grid Layouts — */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* — Image Placeholders — */
.img-placeholder {
  background: linear-gradient(135deg, #d4c5b3 0%, #b8a690 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}
.img-placeholder::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(107,94,83,0.3);
  pointer-events: none;
}
.img-placeholder--hero {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.3;
}
.img-placeholder--section {
  width: 100%;
  aspect-ratio: 3/2;
  margin: 2rem 0;
}
.img-placeholder--portrait {
  width: 100%;
  aspect-ratio: 3/4;
}
.img-placeholder--wide {
  width: 100%;
  aspect-ratio: 16/9;
}
.img-placeholder img,
.section-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* — Full-width Band — */
.band {
  background: var(--deep);
  padding: 5rem 2rem;
}
.band h2 { color: var(--cream); }
.band p { color: rgba(245,240,232,0.75); }
.band .eyebrow { color: var(--accent-light); }

/* — Divider — */
.divider {
  width: 60px;
  height: 1px;
  background: var(--accent-light);
  margin: 4rem auto;
}

/* — Pull Quote — */
.pullquote {
  text-align: center;
  padding: 3rem 2rem;
  max-width: var(--text-width);
  margin: 0 auto;
}
.pullquote blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-style: italic;
  color: var(--deep);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.pullquote cite {
  font-family: 'DM Sans', sans-serif;
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* — Two Column Text+Image — */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }

/* — Footer — */
.footer {
  background: var(--deep);
  color: rgba(245,240,232,0.6);
  padding: 4rem 2rem 2rem;
}
.footer__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-light);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.footer p { color: rgba(245,240,232,0.5); font-size: 0.9rem; margin-bottom: 0.5rem; }
.footer a { color: rgba(245,240,232,0.5); font-size: 0.9rem; transition: color 0.3s; }
.footer a:hover { color: var(--cream); }
.footer__links { list-style: none; }
.footer__links li { margin-bottom: 0.5rem; }
.footer__bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(245,240,232,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: rgba(245,240,232,0.3);
}
.footer__social { display: flex; gap: 1.25rem; }
.footer__social a { font-size: 0.78rem; }

/* — Fade In Animation — */
.fade-in {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* — Password Gate (for Cultural Corridor page) — */
.gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--deep);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.gate.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.gate__inner { text-align: center; max-width: 420px; padding: 2rem; }
.gate__inner h1 {
  font-family: 'Playfair Display', serif;
  color: var(--cream);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}
.gate__inner p {
  color: var(--accent-light);
  font-size: 0.88rem;
  margin-bottom: 2rem;
  letter-spacing: 0.03em;
}
.gate__inner input {
  width: 100%;
  padding: 14px 20px;
  border: 1px solid rgba(196,149,106,0.3);
  background: rgba(255,255,255,0.05);
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  text-align: center;
  letter-spacing: 0.15em;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.3s;
}
.gate__inner input::placeholder { color: rgba(196,149,106,0.4); }
.gate__inner input:focus { border-color: var(--accent-light); }
.gate__error {
  color: #c0392b;
  font-size: 0.85rem;
  margin-top: 0.75rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.gate__error.visible { opacity: 1; }

/* — Contact Form — */
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { min-height: 120px; resize: vertical; }

/* — Responsive — */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split--reverse { direction: ltr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --section-gap: 4rem; --nav-height: 64px; }
  .nav__links { 
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--deep);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }
  .nav__links.open { display: flex; }
  .nav__toggle { display: block; }
  .hero { padding-top: calc(var(--nav-height) + 2rem); }
  .nav__logo img { height: 46px; }
  .hero h1 { font-size: clamp(2rem, 7vw, 3rem); }
  .container, .container--narrow { padding: 0 1.25rem; }
  .footer__bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
}
