/* ============================================================
   OUR INFINITE COMPANY — BASE STYLESHEET
   ourinfinitecompany.com
   All pages pull from this file.
   ============================================================ */

/* --- DESIGN TOKENS --- */
:root {
  --navy:       #0F1B3C;
  --navy-deep:  #080F22;
  --purple:     #6B21A8;
  --purple-mid: #7C3AED;
  --gold:       #D4AF37;
  --gold-light: #F0D060;
  --white:      #FFFFFF;
  --off-white:  #F4F6FB;
  --silver:     #E8EDF5;
  --muted:      #8A94A8;
  --body-text:  #1C2340;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --max-w: 1200px;
  --section-pad: 100px 24px;
  --section-pad-sm: 64px 24px;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-pill: 999px;

  --shadow-card: 0 4px 32px rgba(15,27,60,0.10);
  --shadow-gold: 0 0 32px rgba(212,175,55,0.18);

  --transition: 0.28s cubic-bezier(0.4,0,0.2,1);
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--body-text);
  background: var(--white);
  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 SCALE --- */
.t-display {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.t-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
}
.t-h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 600;
  line-height: 1.3;
}
.t-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.75;
  color: var(--muted);
}
.t-body { font-size: 1rem; line-height: 1.75; }
.t-small { font-size: 0.875rem; line-height: 1.6; }
.t-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* --- LAYOUT --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: var(--section-pad); }
.section--sm { padding: var(--section-pad-sm); }
.section--dark { background: var(--navy-deep); color: var(--white); }
.section--navy { background: var(--navy); color: var(--white); }
.section--light { background: var(--off-white); }
.section--purple { background: var(--purple); color: var(--white); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* --- GOLD ACCENT LINE --- */
.accent-line {
  width: 56px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 24px;
}
.accent-line--center { margin-left: auto; margin-right: auto; }

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--gold {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}
.btn--gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}
.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn--outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.btn--outline-gold {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn--outline-gold:hover {
  background: var(--gold);
  color: var(--navy-deep);
}
.btn--navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn--navy:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
}

/* --- NAVIGATION --- */
#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), box-shadow var(--transition);
}
#site-nav.scrolled {
  background: var(--navy-deep);
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
}
#site-nav:not(.scrolled) { background: transparent; }

.nav-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.85;
  transition: opacity var(--transition), color var(--transition);
}
.nav-links a:hover { opacity: 1; color: var(--gold); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 4px; }
.nav-dropdown > a::after {
  content: '';
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--transition);
}
.nav-dropdown:hover > a::after { transform: rotate(-135deg) translateY(-2px); }
.dropdown-menu-nav {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--navy-deep);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 8px 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  transform: translateX(-50%) translateY(-4px);
}
.nav-dropdown:hover .dropdown-menu-nav {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu-nav a {
  display: block;
  padding: 10px 20px;
  font-size: 0.875rem;
  white-space: nowrap;
}
.dropdown-menu-nav a:hover { background: rgba(255,255,255,0.06); }

.nav-cta { margin-left: 16px; }

/* Mobile nav */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
#mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy-deep);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
#mobile-nav.open { display: flex; }
#mobile-nav a {
  color: var(--white);
  font-size: 1.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  opacity: 0.85;
}
#mobile-nav a:hover { opacity: 1; color: var(--gold); }
.mobile-close {
  position: absolute;
  top: 24px; right: 32px;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
}

/* --- CARDS --- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(15,27,60,0.14);
}
.card--dark {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--white);
}
.card--dark:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(212,175,55,0.3);
}

/* Card icon */
.card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(212,175,55,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: var(--gold);
}

/* --- SECTION HEADERS (centered) --- */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}
.section-header .t-label { margin-bottom: 12px; }
.section-header .t-h2 { margin-bottom: 16px; }

/* --- DIVIDER --- */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,0.3), transparent);
  margin: 0;
}

/* --- FOOTER --- */
#site-footer {
  background: var(--navy-deep);
  color: var(--white);
  padding: 64px 24px 32px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand img { height: 40px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.875rem; color: var(--muted); line-height: 1.7; max-width: 260px; }
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--white); }
.footer-social { display: flex; gap: 16px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition);
}
.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212,175,55,0.08);
}
.footer-disclaimer {
  max-width: var(--max-w);
  margin: 24px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.7;
}

/* --- AGENT PAGE SPECIFIC --- */
.agent-hero {
  background: var(--navy);
  padding: 160px 24px 80px;
  text-align: center;
  color: var(--white);
}
.agent-avatar {
  width: 140px; height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--gold);
  margin: 0 auto 24px;
  display: block;
}
.agent-contact-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-card);
  max-width: 480px;
  margin: 0 auto;
}
.agent-contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--silver);
  font-size: 0.95rem;
}
.agent-contact-item:last-child { border-bottom: none; }
.agent-contact-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(107,33,168,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--purple);
  flex-shrink: 0;
  font-size: 0.9rem;
}

/* --- UTILITIES --- */
.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--muted); }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }

/* --- SCROLL REVEAL SETUP (JS-driven) --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --section-pad: 64px 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  #site-nav { padding: 0 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section-header { margin-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
