/* ============================================
   CourseraVoyant Inc. — Page-Specific Styles
   ============================================ */

/* ============================================
   HERO SECTIONS
   ============================================ */

/* ---- Home Hero ---- */
.hero-home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-home__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-home__bg svg {
  width: 100%;
  height: 100%;
  opacity: 0.4;
}

.hero-home__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: var(--space-4xl) 0;
}

.hero-home__overline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-2xs) var(--space-md);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--color-gold-light);
  background-color: rgba(197, 165, 114, 0.1);
  border: 1px solid rgba(197, 165, 114, 0.3);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}

.hero-home__overline .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-gold);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-home__title {
  font-size: var(--fs-hero);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  line-height: var(--lh-tight);
  margin-bottom: var(--space-lg);
  letter-spacing: var(--ls-tight);
}

.hero-home__title .highlight {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}

.hero-home__desc {
  font-size: var(--fs-body-lg);
  color: rgba(255, 255, 255, 0.75);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
}

.hero-home__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-home__scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
}

.hero-home__scroll .mouse {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  position: relative;
}

.hero-home__scroll .mouse::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background-color: var(--color-gold);
  border-radius: var(--radius-full);
  animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { opacity: 0; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-height) + var(--space-4xl));
  padding-bottom: var(--space-4xl);
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  overflow: hidden;
  text-align: center;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.3;
}

.page-hero__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}

.page-hero__overline {
  display: inline-block;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
}

.page-hero__title {
  font-size: var(--fs-h1);
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.page-hero__desc {
  font-size: var(--fs-body-lg);
  color: rgba(255, 255, 255, 0.7);
  line-height: var(--lh-relaxed);
  max-width: 620px;
  margin: 0 auto;
}

/* ---- Article Hero ---- */
.article-hero {
  position: relative;
  padding-top: calc(var(--header-height) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
  overflow: hidden;
  text-align: center;
}

.article-hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.article-hero__category {
  display: inline-block;
  padding: var(--space-3xs) var(--space-md);
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--color-navy);
  background-color: var(--color-gold);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
}

.article-hero__title {
  font-size: var(--fs-h1);
  color: var(--color-white);
  margin-bottom: var(--space-md);
  line-height: var(--lh-snug);
}

.article-hero__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  font-size: var(--fs-body-sm);
  color: rgba(255, 255, 255, 0.6);
  flex-wrap: wrap;
}

.article-hero__meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.article-hero__meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-gold-light);
}

/* ============================================
   HOME: COMPANY INTRO
   ============================================ */
.company-intro {
  position: relative;
  overflow: hidden;
}

.company-intro__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.company-intro__text h2 {
  margin-bottom: var(--space-md);
}

.company-intro__text p {
  font-size: var(--fs-body-lg);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-md);
}

.company-intro__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.company-intro__visual {
  position: relative;
  min-height: 480px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl);
  box-shadow: var(--shadow-xl);
}

.company-intro__visual::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(197, 165, 114, 0.15) 0%, transparent 50%);
}

.company-intro__visual-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
}

.company-intro__visual-content svg,
.company-intro__visual-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto var(--space-lg);
  color: var(--color-gold);
}

.company-intro__visual-logo {
  width: 128px;
  height: 128px;
  border: 2px solid rgba(197, 165, 114, 0.3);
  border-radius: 50%;
  padding: var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(197, 165, 114, 0.05);
}

.company-intro__visual-logo img {
  width: 95%;
  height: 95%;
  object-fit: contain;
  object-position: 50% 50%;
}

.company-intro__visual-content h3 {
  color: var(--color-white);
  font-size: var(--fs-h3);
  margin-bottom: var(--space-sm);
}

.company-intro__visual-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-body);
}

/* ============================================
   HOME: WHY CHOOSE US
   ============================================ */
.why-choose {
  background-color: var(--color-bg-light);
  position: relative;
  overflow: hidden;
}

.why-choose__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

/* ============================================
   HOME: SERVICES OVERVIEW
   ============================================ */
.services-overview__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

/* ============================================
   HOME: LATEST INSIGHTS
   ============================================ */
.latest-insights__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

/* ============================================
   HOME: CTA SECTION
   ============================================ */
.cta-section {
  position: relative;
  padding: var(--space-4xl) 0;
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
  overflow: hidden;
  text-align: center;
}

.cta-section__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.1;
}

.cta-section__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}

.cta-section__title {
  font-size: var(--fs-h2);
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.cta-section__desc {
  font-size: var(--fs-body-lg);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-xl);
}

.cta-section__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   ABOUT PAGE
   ============================================ */

/* ---- Mission / Vision ---- */
.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.mission-card,
.vision-card {
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.mission-card {
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
  color: var(--color-white);
}

.vision-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
}

.mission-card__icon,
.vision-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.mission-card__icon {
  background-color: rgba(197, 165, 114, 0.15);
  color: var(--color-gold);
}

.vision-card__icon {
  background: linear-gradient(135deg, rgba(197, 165, 114, 0.12), rgba(197, 165, 114, 0.04));
  color: var(--color-gold);
}

.mission-card__icon svg,
.vision-card__icon svg {
  width: 32px;
  height: 32px;
}

.mission-card h3 { color: var(--color-white); }
.vision-card h3 { color: var(--color-navy); }

.mission-card p { color: rgba(255, 255, 255, 0.8); }
.vision-card p { color: var(--color-text-secondary); }

/* ---- Core Values ---- */
.core-values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

/* ---- Global Reach ---- */
.global-reach {
  background-color: var(--color-navy);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.global-reach__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.global-reach__map {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.global-reach__map svg {
  width: 100%;
  max-width: 480px;
  height: auto;
}

.global-reach__locations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.global-reach__location {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(197, 165, 114, 0.2);
  border-radius: var(--radius-md);
}

.global-reach__location svg {
  width: 20px;
  height: 20px;
  color: var(--color-gold);
  flex-shrink: 0;
}

.global-reach__location-name {
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  color: var(--color-white);
}

/* ---- Leadership Team ---- */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

/* ============================================
   SERVICES PAGE
   ============================================ */

/* ---- Service Detail Block ---- */
.service-detail {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-xl);
  padding: var(--space-2xl) 0;
  border-bottom: 1px solid var(--color-border);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail__number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: var(--fw-bold);
  color: var(--color-gold);
  line-height: 1;
  opacity: 0.5;
}

.service-detail__content h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-sm);
}

.service-detail__content p {
  font-size: var(--fs-body);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-md);
}

.service-detail__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-detail__features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  font-size: var(--fs-body-sm);
  color: var(--color-text-primary);
}

.service-detail__features li svg {
  width: 18px;
  height: 18px;
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---- Service Process ---- */
.service-process {
  background-color: var(--color-bg-light);
}

/* ============================================
   INSIGHTS PAGE
   ============================================ */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

/* ---- Article Detail ---- */
.article-content {
  padding: var(--space-3xl) 0;
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
}

.article-body p {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-relaxed);
  color: var(--color-text-primary);
  margin-bottom: var(--space-lg);
}

.article-body h2 {
  font-size: var(--fs-h3);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.article-body h3 {
  font-size: var(--fs-h4);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.article-body ul,
.article-body ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}

.article-body li {
  margin-bottom: var(--space-xs);
  line-height: var(--lh-relaxed);
  font-size: var(--fs-body-lg);
}

.article-body blockquote {
  margin: var(--space-2xl) 0;
  padding: var(--space-xl) var(--space-2xl);
  border-left: 4px solid var(--color-gold);
  background-color: var(--color-bg-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-style: italic;
  color: var(--color-navy);
}

.article-footer {
  max-width: 760px;
  margin: var(--space-2xl) auto 0;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* ---- Related Articles ---- */
.related-articles {
  background-color: var(--color-bg-light);
}

.related-articles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact-form-wrap {
  background-color: var(--color-white);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.contact-form-wrap h3 {
  margin-bottom: var(--space-md);
}

.contact-aside__block {
  margin-bottom: var(--space-xl);
}

.contact-aside__block:last-child {
  margin-bottom: 0;
}

.contact-aside__title {
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
}

/* ---- Business Hours ---- */
.business-hours {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.business-hours__row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--fs-body-sm);
  border-bottom: 1px solid var(--color-border);
}

.business-hours__row:last-child {
  border-bottom: none;
}

.business-hours__row--closed {
  color: var(--color-text-muted);
}

.business-hours__day {
  font-weight: var(--fw-medium);
  color: var(--color-navy);
}

.business-hours__time {
  color: var(--color-text-secondary);
}

/* ---- Map Placeholder ---- */
.contact-map {
  width: 100%;
  height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid var(--color-border);
}

.contact-map svg {
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.contact-map__pin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -100%);
  z-index: 2;
}

.contact-map__pin svg {
  width: 48px;
  height: 48px;
  opacity: 1;
  filter: drop-shadow(0 4px 12px rgba(197, 165, 114, 0.5));
}

/* ============================================
   404 PAGE
   ============================================ */
.error-404 {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
  text-align: center;
  padding: var(--space-4xl) var(--container-padding);
  padding-top: calc(var(--header-height) + var(--space-4xl));
}

.error-404__content {
  max-width: 560px;
  position: relative;
  z-index: 2;
}

.error-404__code {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 15vw, 10rem);
  font-weight: var(--fw-bold);
  line-height: 1;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-md);
}

.error-404__title {
  font-size: var(--fs-h2);
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.error-404__desc {
  font-size: var(--fs-body-lg);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-2xl);
  line-height: var(--lh-relaxed);
}

.error-404__actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.error-404__deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.05;
  pointer-events: none;
}
