﻿/* ═══════════════════════════════════════════════════════════════
   TWIN RIVER DEVELOPMENT - components.css
   Nav, footer, buttons, cards - shared across all pages
   ═══════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--blue);
  color: #FFFFFF;
}
.btn-primary:hover { background: var(--blue-dark); }

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 0.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--gray); background: var(--off-white); }

.btn-white {
  background: #FFFFFF;
  color: var(--blue);
  font-weight: 600;
}
.btn-white:hover { background: #F0F4FF; }

.btn-ghost-white {
  background: transparent;
  color: #FFFFFF;
  border: 0.5px solid rgba(255,255,255,0.45);
}
.btn-ghost-white:hover { background: rgba(255,255,255,0.1); }

/* ══════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 12, 20, 0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-10);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 55px;
  width: auto;
  display: block;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color var(--transition), font-weight var(--transition);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width var(--transition);
  border-radius: 1px;
}
.nav-links a:hover {
  color: var(--text-primary);
  font-weight: 600;
}
.nav-links a:hover::after {
  width: 100%;
}
.nav-links a.active {
  color: var(--blue);
  font-weight: 600;
}
.nav-links a.active::after {
  width: 100%;
}

/* Nav CTA */
.nav-cta {
  flex-shrink: 0;
}

/* Hamburger - mobile only */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav dropdown */
.nav-mobile {
  display: none;
  background: var(--white);
  border-top: 0.5px solid var(--border);
  padding: var(--sp-6) var(--sp-10);
}
.nav-mobile.open { display: block; }
.nav-mobile ul { display: flex; flex-direction: column; gap: var(--sp-5); }
.nav-mobile a {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-secondary);
  display: block;
  padding: var(--sp-2) 0;
  border-bottom: 0.5px solid var(--border-light);
  transition: color var(--transition);
}
.nav-mobile a:hover { color: var(--blue); }
.nav-mobile .btn { margin-top: var(--sp-4); width: 100%; text-align: center; }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
.site-footer {
  background: var(--navy-deep);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--sp-16) var(--sp-10) var(--sp-12);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-16);
}

/* Footer logo */
.footer-logo {
  display: block;
  margin-bottom: var(--sp-4);
}
.footer-logo-img {
  height: 40px;
  width: auto;
  display: block;
  filter: none !important;
  mix-blend-mode: normal !important;
  forced-color-adjust: none !important;
  color-adjust: exact !important;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.35);
  line-height: 1.65;
  max-width: 220px;
  margin-top: var(--sp-4);
}

/* Footer nav */
.footer-nav {
  display: contents;
}
.footer-col h5 {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: var(--sp-4);
}
.footer-col ul { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-col li a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-col li a:hover { color: #FFFFFF; }

/* Footer bottom bar */
.footer-bottom {
  border-top: 0.5px solid rgba(255,255,255,0.07);
  padding: var(--sp-5) var(--sp-10);
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.28);
}
.footer-bottom-links { display: flex; gap: var(--sp-5); }
.footer-bottom-links a {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.28);
  transition: color var(--transition);
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.6); }

.btn-white:hover { background: rgba(255,255,255,0.9); }
.btn-ghost:hover { background: rgba(255,255,255,0.06); }
.btn-ghost-white:hover { background: rgba(255,255,255,0.12); }

@media (max-width: 1200px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  #nav-hamburger,
  .nav-hamburger {
    display: flex !important;
    width: 40px;
    height: 40px;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    background-image:
      linear-gradient(#E8EDF8, #E8EDF8),
      linear-gradient(#E8EDF8, #E8EDF8),
      linear-gradient(#E8EDF8, #E8EDF8);
    background-position: center calc(50% - 7px), center, center calc(50% + 7px);
    background-repeat: no-repeat;
    background-size: 22px 2px;
  }

  .nav-hamburger span {
    display: none;
  }

  .nav-hamburger.open {
    background-image: none;
  }

  .nav-hamburger.open::before,
  .nav-hamburger.open::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: #E8EDF8;
  }

  .nav-hamburger.open::before { transform: rotate(45deg); }
  .nav-hamburger.open::after { transform: rotate(-45deg); }

  .footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--sp-10);
    padding: var(--sp-12) var(--sp-6) var(--sp-10);
  }

  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--sp-3); text-align: center; }
  .nav-inner { gap: var(--sp-3); padding: 0 var(--sp-5); position: relative; }
  .nav-hamburger { position: fixed; right: var(--sp-5); top: 16px; z-index: 200; }
  .nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-mobile { padding: var(--sp-6) var(--sp-5); }
}


/* ── FAQ ─────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}
.faq-item:hover { border-color: var(--blue); }
.faq-item[open] { border-color: var(--blue); }

.faq-item summary {
  cursor: pointer;
  padding: var(--sp-4) var(--sp-5);
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: var(--sp-10);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: var(--sp-5);
  top: 50%;
  transform: translateY(-50%);
  font-weight: 400;
  font-size: 20px;
  color: var(--text-muted);
}
.faq-item[open] summary::after { content: "\2212"; }

.faq-item p {
  padding: 0 var(--sp-5) var(--sp-4);
  color: var(--text-muted);
  line-height: 1.7;
}
