/* =====================
   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 {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.25);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}
.coming-soon-badge.dark {
  background: rgba(27,42,74,0.15);
  color: var(--navy);
}

.store-icon { font-size: 1rem; }

/* =====================
   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); }

.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;
}

/* =====================
   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;
}

.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); }

/* =====================
   FOOTER
   ===================== */
.footer {
  background: var(--navy);
  padding: 3rem 0 1.5rem;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 1.5rem;
}

.footer-logo {
  height: 72px;
  width: 72px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer-legal-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-legal-links a:hover { color: var(--gold); }

.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.65;
  max-width: 800px;
  margin-bottom: 1.5rem;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
}

/* =====================
   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; }

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

  .footer-top {
    flex-direction: column;
    gap: 1.5rem;
  }
}
