/* =====================
   RESET & BASE
   ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #1B2A4A;
  --navy-light: #243660;
  --gold:   #C9A84C;
  --gold-light: #dfc078;
  --cream:  #F5F2EB;
  --white:  #FFFFFF;
  --gray:   #6B7280;
  --gray-light: #F9F8F6;
  --text:   #1a1a1a;

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

  --radius: 8px;
  --shadow: 0 4px 24px rgba(27,42,74,0.10);
  --shadow-lg: 0 8px 40px rgba(27,42,74,0.16);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =====================
   TYPOGRAPHY
   ===================== */
.section-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-label.gold { color: var(--gold); }
.section-label.dark { color: var(--navy); }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-title.light { color: var(--white); }
.section-title.dark  { color: var(--navy); }

.section-intro {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 640px;
  margin-bottom: 3rem;
  line-height: 1.7;
}
.section-intro.light { color: rgba(255,255,255,0.75); }
.section-intro.dark  { color: var(--navy-light); }

/* =====================
   LAYOUT
   ===================== */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}
.section-light { background: var(--gray-light); }
.section-dark  { background: var(--navy); }
.section-gold  { background: var(--gold); }

.text-center { text-align: center; }
.text-center .section-intro { margin-left: auto; margin-right: auto; }

/* =====================
   BUTTONS
   ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  position: relative;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* .coming-soon-badge — CC-35: removed; apps are live */

/* ── CC-35: Official App Store / Google Play badge pair ── */
.app-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
}

.app-badge {
  display: inline-block;
  line-height: 0;
  transition: transform 0.15s ease;
}

.app-badge:hover {
  transform: translateY(-2px);
}

.app-badge img {
  display: block;
  height: 60px;
  width: auto;
}

@media (max-width: 480px) {
  .app-badge img { height: 50px; }
}

/* =====================
   NAV
   ===================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(27,42,74,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201,168,76,0.2);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo img {
  height: 52px;
  width: 52px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }

/* CC-25: Active route highlight */
.nav-links a.active {
  color: var(--gold);
  position: relative;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}

/* CC-25: Mobile-only "Get the App" item — hidden on desktop */
.nav-mobile-cta-item { display: none; }

.nav-cta { margin-left: 1.5rem; padding: 0.6rem 1.2rem; font-size: 0.85rem; }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: auto;
}

/* =====================
   HERO
   ===================== */
.hero {
  min-height: 100vh;
  background: var(--navy);
  background-image:
    radial-gradient(ellipse at 60% 50%, rgba(201,168,76,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 80%, rgba(201,168,76,0.05) 0%, transparent 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
}

.hero-inner {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hero-logo {
  width: 240px;
  height: 240px;
  object-fit: contain;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

.hero-disclaimer {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.5rem;
}

/* =====================
   SERVICES
   ===================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid rgba(27,42,74,0.08);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.65;
}

/* =====================
   WHY OTIS EDGE
   ===================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.pillar {
  border-top: 2px solid rgba(201,168,76,0.4);
  padding-top: 1.5rem;
}

.pillar-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.75rem;
  opacity: 0.7;
}

.pillar h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.pillar p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
}

/* =====================
   ANALYSTS
   ===================== */
.analysts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.analyst-card {
  background: var(--white);
  border: 1px solid rgba(27,42,74,0.08);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.analyst-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.analyst-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.analyst-avatar span {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}

.analyst-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.analyst-role {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.analyst-bio,
.analyst-bio p {
  font-size: 0.9rem;
  color: var(--gray);
  font-style: italic;
  line-height: 1.6;
}
.analyst-bio p { margin-bottom: 0.3rem; }

/* =====================
   MEDIA
   ===================== */
.media-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.media-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.media-thumb {
  aspect-ratio: 16/9;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  overflow: hidden;
}
.media-thumb:hover { background: rgba(255,255,255,0.1); }

/* When real media is present, let the content define the height */
.media-thumb--filled {
  aspect-ratio: unset;
  display: block;
  background: #000;
  border: none;
}

.play-icon {
  font-size: 2.5rem;
  color: rgba(201,168,76,0.5);
}

.media-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  font-style: italic;
}
.media-comments,
.media-comments p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
}
.media-comments p { margin-bottom: 0.4rem; }
.media-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

/* iframes (YouTube) have no intrinsic height — enforce 16:9 */
iframe.media-video {
  aspect-ratio: 16/9;
}

/* =====================
   TESTIMONIALS
   ===================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid rgba(27,42,74,0.08);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
}
.testimonial-card.placeholder { opacity: 0.5; }

.quote-mark {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.testimonial-card p,
.testimonial-body p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 0.6rem;
}
.testimonial-body { margin-bottom: 1rem; }

.testimonial-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

/* =====================
   CONTACT
   ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
  text-align: center;
}

.contact-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.contact-item h4 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-item a,
.contact-item p {
  font-size: 1rem;
  color: var(--navy);
}
.contact-item a:hover { color: var(--gold); }

/* CC-42: Social item — icon row in the homepage Contact section */
.contact-social {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.15rem;
}
.contact-item .contact-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(27,42,74,0.2);
  color: var(--navy);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.contact-item .contact-social-link:hover {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

/* =====================
   RESPONSIBILITY FOOTER
   ===================== */
.responsibility-footer {
  background: #111b2e;          /* slightly darker than --navy for contrast */
  border-top: 3px solid var(--gold);
  padding: 2rem 0 1.5rem;
  text-align: center;
}

/* 21+ / helpline line — prominent, above the fold on mobile */
.rf-age-gate {
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  margin: 0 auto 0.75rem;
  line-height: 1.5;
}
.rf-age-gate strong {
  color: var(--gold);
  font-size: 1.15rem;
}
.rf-age-gate a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rf-age-gate a:hover { opacity: 0.8; }

.rf-disclaimer {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  max-width: 680px;
  margin: 0 auto 1.25rem;
}

/* CC-40: footer social icon row */
.rf-social {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin: 0 auto 1.25rem;
}
.rf-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.4);
  color: rgba(201,168,76,0.6);
  transition: color 0.2s, border-color 0.2s;
}
.rf-social-link:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.rf-legal-links {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  line-height: 2;
  margin-bottom: 1rem;
}
.rf-legal-links a {
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.rf-legal-links a:hover { color: var(--gold); }

.rf-copyright {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  margin: 0;
}

/* =====================
   BLOG
   ===================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.blog-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: background 0.2s;
}
.blog-card:hover { background: rgba(255,255,255,0.08); }
.blog-date {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
}
.blog-card h3 { font-family: var(--font-serif); font-size: 1.2rem; color: var(--white); }
.blog-card p  { font-size: 0.92rem; color: rgba(255,255,255,0.6); line-height: 1.65; flex: 1; }

/* Excerpt: render HTML content clipped to ~3 lines with a fade */
.blog-excerpt {
  position: relative;
  max-height: 4.95em; /* 3 lines at line-height 1.65 */
  overflow: hidden;
  flex: 1;
}
.blog-excerpt::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2em;
  background: linear-gradient(transparent, var(--navy));
  pointer-events: none;
}
.blog-excerpt p,
.blog-excerpt li   { font-size: 0.92rem; color: rgba(255,255,255,0.6); line-height: 1.65; margin-bottom: 0.35em; }
.blog-excerpt strong { color: rgba(255,255,255,0.88); }
.blog-excerpt em     { font-style: italic; }
.blog-excerpt ul, .blog-excerpt ol { padding-left: 1.2em; margin-bottom: 0.35em; }

.blog-read-more { font-size: 0.85rem; font-weight: 600; color: var(--gold); margin-top: 0.5rem; transition: opacity 0.2s; }
.blog-read-more:hover { opacity: 0.75; }
.placeholder-text { color: var(--gray); font-style: italic; font-size: 0.95rem; }
.placeholder-text.light { color: rgba(255,255,255,0.4); }

/* =====================
   RESPONSIVE
   ===================== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .nav-hamburger { display: block; }

  /* CC-25: Show mobile-only CTA item when dropdown is open */
  .nav-links .nav-mobile-cta-item { display: block; }
  .nav-links .nav-mobile-cta-link {
    color: var(--gold) !important;
    font-weight: 600;
  }

  /* Open state — dropdown below the nav bar */
  .nav-links.nav-open {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 72px;   /* nav bar height */
    left: 0;
    right: 0;
    background: rgba(27,42,74,0.98);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(201,168,76,0.25);
    padding: 0.5rem 0 1rem;
    z-index: 99;
  }

  .nav-links.nav-open li a {
    display: block;
    padding: 0.85rem 2rem;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  .nav-hamburger.nav-open { color: var(--gold); }

  .hero { padding-top: 6rem; }
  .section { padding: 4rem 0; }

}

/* ── CC-18: Shared breadcrumb navigation strip ── */
.bc-nav {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}
.bc-nav a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.15s;
}
.bc-nav a:hover { color: var(--gold); }
.bc-nav .bc-sep {
  margin: 0 0.4em;
  opacity: 0.4;
}
/* Light-background variant */
.bc-nav.bc-light {
  color: rgba(27,42,74,0.45);
}
.bc-nav.bc-light a { color: rgba(27,42,74,0.6); }
.bc-nav.bc-light a:hover { color: var(--navy); }

/* =====================
   PRINT (CC-34)
   ===================== */
@media print {
  .nav, .nav-bar, nav, header.site-header,
  .nav-hamburger, .nav-links, .nav-cta    { display: none !important; }
  #smart-app-banner, .smart-app-banner    { display: none !important; }
  .app-badges, .hero-cta-group,
  [data-store], .get-the-app-cta         { display: none !important; }
  .footer-cta, .footer-app-btns          { display: none !important; }
  .rf-social                             { display: none !important; }
  .footer-bottom p { font-size: 9pt; color: #555; }
  .responsibility-footer {
    border-top: 1px solid #999;
    margin-top: 1.5em;
    padding-top: 0.5em;
    font-size: 9pt;
  }
  .responsibility-footer .legal-links a { color: #333; text-decoration: none; }
  body { background: white !important; color: black !important; font-size: 11pt; line-height: 1.4; }
  h1 { font-size: 20pt; page-break-after: avoid; }
  h2 { font-size: 14pt; page-break-after: avoid; margin-top: 1.2em; }
  h3 { font-size: 12pt; page-break-after: avoid; }
  p, blockquote, li { orphans: 3; widows: 3; }
  blockquote { page-break-inside: avoid; }
  a { color: black; text-decoration: underline; }
  a[href]::after           { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  a[href^="#"]::after,
  a[href^="mailto:"]::after,
  a[href^="tel:"]::after   { content: ""; }
  .effective-date {
    font-style: italic; color: #555;
    margin-bottom: 1em; border-bottom: 1px solid #ccc; padding-bottom: 0.5em;
  }
  @page { margin: 0.75in; }
}
