/* Bambü — The Passage | Main Stylesheet */
/* ============================================ */

/* ——— CSS RESET ——— */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Text links: no underline by default, underline only on hover/focus */
a:not(.btn):not(.navbar__logo):not(.footer__logo):not(.card) {
  text-decoration: none;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
}

a:not(.btn):not(.navbar__logo):not(.footer__logo):not(.card):hover {
  color: var(--color-accent);
  text-decoration: underline;
}

a:not(.btn):not(.navbar__logo):not(.footer__logo):not(.card):focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  text-decoration: underline;
}

/* Social icons: no underline, focus ring only */
.footer__social a {
  text-decoration: none;
}

/* Buttons, cards, and icon links get focus ring for keyboard users */
a.btn:focus-visible,
a.card:focus-visible,
button.btn:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

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

/* ——— CSS CUSTOM PROPERTIES ——— */
:root {
  --color-primary:       #0f1f18;
  --color-primary-light: #1a3328;
  --color-accent:        #C9A84C;
  --color-accent-glow:   rgba(201, 168, 76, 0.4);
  --color-cream:         #1a1f1c;
  --color-sand:          #242a26;
  --color-dark:          #0a0e0c;
  --color-text:          #e8e6e3;
  --color-text-light:    #F5EFE0;
  --color-muted:         #8a938d;
}

/* ——— TYPOGRAPHY ——— */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(3rem, 8vw, 7rem);
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h3 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

p {
  max-width: 65ch;
}

.label {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  text-transform: uppercase;
}

/* ——— BUTTONS ——— */
.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-dark);
  border-color: var(--color-accent);
}

.btn--primary:hover {
  background-color: #d4b85a;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--color-accent-glow);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn--ghost:hover {
  background-color: rgba(201, 168, 76, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--color-accent-glow);
}

.btn--full {
  width: 100%;
  text-align: center;
}

/* ——— SECTION DIVIDER ——— */
.section-divider {
  border: none;
  border-top: 1px solid rgba(201, 168, 76, 0.3);
  margin: 4rem auto;
  width: 60%;
  opacity: 0.8;
}

/* ——— PHOTO BLOCKS ——— */
.photo-block {
  background: var(--color-dark);
  min-height: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.photo-block img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s ease-out;
}

.photo-block:hover img {
  transform: scale(1.08);
}

.photo-block--tall {
  min-height: 500px;
}

.photo-block--hero {
  min-height: 100vh;
}

.photo-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 12, 0.3) 0%, rgba(10, 14, 12, 0.85) 100%);
  pointer-events: none;
  z-index: 1;
}

.photo-block--hero::before {
  background: linear-gradient(180deg, rgba(10, 14, 12, 0.2) 0%, rgba(10, 14, 12, 0.9) 100%);
}

.photo-block > .hero-content,
.photo-block > *:not(img) {
  position: relative;
  z-index: 2;
}

.photo-block > img {
  z-index: 0;
}

.grain-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.06;
  pointer-events: none;
  z-index: 2;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='1'/></svg>");
}

/* ——— HERO CONTENT ——— */
.hero-content {
  text-align: center;
  padding: 2rem;
  max-width: 800px;
}

.hero-content .label {
  display: block;
  margin-bottom: 1rem;
}

.hero-content h1 {
  color: var(--color-text-light);
  margin-bottom: 1rem;
  line-height: 1.05;
}

.hero-content .hero-subhead {
  color: rgba(245, 239, 224, 0.9);
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 2rem;
  max-width: 55ch;
  margin-left: auto;
  margin-right: auto;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.scroll-arrow {
  color: var(--color-text-light);
  opacity: 0.8;
  animation: bounce 2s infinite;
}

.scroll-arrow svg {
  width: 28px;
  height: 28px;
  display: block;
  margin: 0 auto;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(10px); }
  60% { transform: translateY(5px); }
}

/* ——— HERO FADE-IN ——— */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-label { animation: fadeUp 0.6s ease 0.1s both; }
.hero-heading { animation: fadeUp 0.6s ease 0.3s both; }
.hero-subhead { animation: fadeUp 0.6s ease 0.5s both; }
.hero-buttons { animation: fadeUp 0.6s ease 0.7s both; }
.scroll-arrow { animation: fadeUp 0.6s ease 0.9s both; }

/* ——— REVEAL ANIMATIONS ——— */
.reveal-hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-hidden.reveal {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes line-expand {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ——— CONTAINER ——— */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ——— NAVBAR ——— */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: transparent;
  transition: background 0.3s ease, padding 0.3s ease;
}

.navbar--scrolled {
  background: rgba(10, 14, 12, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(201, 168, 76, 0.08);
}

.navbar__logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--color-text-light);
  flex-shrink: 0;
}

.navbar__links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.navbar__links a {
  color: var(--color-text-light);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
  opacity: 0.9;
  transition: color 0.25s ease, opacity 0.25s ease, text-decoration 0.2s ease;
}

.navbar__links a:not(.btn) {
  padding: 0.5rem 0;
  border-radius: 0;
  position: relative;
}

.navbar__links a:not(.btn):hover,
.navbar__links a:not(.btn):focus-visible {
  color: var(--color-accent);
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.navbar__links a:not(.btn):focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}

.navbar__links a.active {
  color: var(--color-accent);
  opacity: 1;
}

.navbar__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-text-light);
  flex-shrink: 0;
}

.navbar__hamburger svg {
  width: 24px;
  height: 24px;
}

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

/* ——— CARDS ——— */
.card {
  background: var(--color-sand);
  padding: 2rem;
  border-radius: 8px;
  border-left: 4px solid var(--color-accent);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(201, 168, 76, 0.2);
  border-left-color: var(--color-accent);
}

.card--dark {
  background: rgba(15, 31, 24, 0.6);
  color: var(--color-text-light);
  border-left-color: var(--color-accent);
}

.pillar-icon {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
  margin-bottom: 1rem;
  opacity: 0.95;
}

.card-img .photo-block::before {
  background: linear-gradient(180deg, transparent 0%, rgba(10, 14, 12, 0.6) 100%);
}

/* ——— STATS SECTION ——— */
.stats-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  padding: 4rem 1.5rem;
  background: var(--color-primary);
}

.stat-block {
  text-align: center;
  max-width: 200px;
  padding: 2rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 168, 76, 0.2);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.stat-block:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 76, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.stat-block .stat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--color-accent);
  opacity: 0.95;
}

.stat-block .stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-accent);
  display: block;
  margin-bottom: 0.5rem;
}

.stat-block .stat-label {
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--color-text-light);
}

.stat-block .stat-desc {
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* ——— APPLY BANNER ——— */
.apply-banner {
  background: var(--color-primary);
  color: var(--color-text-light);
  text-align: center;
  padding: 4rem 1.5rem;
}

.apply-banner h2 {
  margin-bottom: 1.5rem;
  color: var(--color-text-light);
}

/* ——— PRICING TABLE ——— */
.table-scroll {
  overflow-x: auto;
  margin: 2rem 0;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-dark);
}

.pricing-table th,
.pricing-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.pricing-table th {
  background: var(--color-primary);
  color: var(--color-accent);
  font-weight: 700;
}

.pricing-table td {
  color: var(--color-text-light);
}

.pricing-table tbody tr:nth-child(even) {
  background: rgba(27, 58, 45, 0.3);
}

/* ——— FAQ ——— */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  transition: background 0.2s ease;
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 0;
  text-align: left;
  background: none;
  border: none;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item--open .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 0 1.25rem 0;
  color: var(--color-muted);
  line-height: 1.7;
}

/* ——— TIMELINE ——— */
.timeline {
  max-width: 600px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0;
  border-left: 2px solid var(--color-accent);
  margin-left: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 1.5rem;
  width: 12px;
  height: 12px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 16px var(--color-accent-glow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover::before {
  transform: scale(1.2);
  box-shadow: 0 0 24px var(--color-accent-glow);
}

.timeline-time {
  font-weight: 700;
  color: var(--color-accent);
  min-width: 70px;
}

.timeline-desc {
  color: var(--color-text);
}

/* ——— FORM ——— */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  border: 2px solid var(--color-sand);
  border-radius: 6px;
  background: var(--color-sand);
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.faq-question:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-error {
  display: block;
  color: #c0392b;
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.form-success {
  background: var(--color-primary);
  color: var(--color-text-light);
  padding: 2rem;
  border-radius: 2px;
  text-align: center;
}

/* ——— FOOTER ——— */
.footer {
  background: var(--color-dark);
  color: var(--color-text-light);
  padding: 4rem 1.5rem 2rem;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer__logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 1.5rem;
  display: block;
  margin-bottom: 1.5rem;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer__nav a {
  text-decoration: none;
}

.footer__nav a:hover,
.footer__nav a:focus-visible {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.footer__location,
.footer__email {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 0.5rem;
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.footer__social a {
  color: var(--color-text-light);
  transition: color 0.2s ease;
}

.footer__social a:hover {
  color: var(--color-accent);
}

.footer__social svg {
  width: 24px;
  height: 24px;
}

.footer__copy {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 2rem;
}

.footer__credit {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-top: 0.75rem;
  opacity: 0.85;
}

.footer__credit a:hover,
.footer__credit a:focus-visible {
  color: var(--color-accent);
}

/* ——— UTILITY ——— */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-2 { margin-top: 2rem; }

/* ——— MOBILE ——— */
@media (max-width: 900px) {
  .navbar__hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 102;
    position: relative;
  }

  .navbar__links {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: min(280px, 85vw);
    height: 100vh;
    height: 100dvh;
    background: var(--color-dark);
    flex-direction: column;
    justify-content: flex-start;
    padding: 5rem 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: none;
    z-index: 101;
  }

  .navbar__links--open {
    transform: translateX(0);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
  }

  .navbar__links li {
    width: 100%;
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  }

  .navbar__links a {
    display: block;
    padding: 1rem 0;
    font-size: 1.05rem;
  }

  .stats-section {
    flex-direction: column;
    align-items: center;
  }

  .btn-group {
    flex-direction: column;
  }

  .btn-group .btn {
    width: 100%;
  }

  .pricing-table {
    font-size: 0.9rem;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 0.75rem;
  }

  .grid-2,
  .grid-3,
  .grid-2x2 {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .navbar__links {
    width: min(260px, 80vw);
    padding: 5rem 1.25rem 2rem;
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
