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

:root {
  /* Theme: Blush & Navy (Light mandatory) */
  --bg: #fff5f5; /* Soft blush pink */
  --text: #1a1a2e; /* Navy blue text */
  --text-muted: #4a5568;
  --accent: #1e3a8a; /* Navy blue accent */
  --accent-light: #312e81;
  --blush: #fce4ec;
  --white: #ffffff;

  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Figtree', sans-serif;

  /* Radius & Shadows */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-glass: 0 8px 32px 0 rgba(30, 58, 138, 0.15);
  --shadow-glow: 0 10px 30px -10px rgba(30, 58, 138, 0.4); /* Gradient glow effect */

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(30, 58, 138, 0.1);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 15px; /* High density: compact text */
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  object-fit: cover;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* === STRUCTURAL BASELINES === */
.container {
  max-width: 1200px; /* Exact spec requirement */
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* Tight-then-expand spacing strategy */
section {
  padding: 60px 0; /* Starting moderate */
  position: relative;
}

.section-end {
  padding: 110px 0; /* Gradually increasing spacing toward bottom */
}

/* Navigation: Split Header */
.top-bar {
  background: var(--accent);
  color: var(--white);
  padding: 8px 0;
  font-size: 13px;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-header {
  position: absolute;
  top: 40px; /* Below top bar */
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background 0.3s ease, padding 0.3s ease;
  padding: 20px 0;
}

.main-header.scrolled {
  position: fixed;
  top: 0;
  background: var(--white);
  box-shadow: var(--shadow-glass);
  padding: 15px 0;
}

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  color: var(--text);
  position: relative;
}

.nav-links a.active {
  color: var(--accent);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* Page Layout Scheme: Full-Screen Hero Slider */
.hero-slider {
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  background-attachment: fixed; /* Minimal parallax */
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

/* Diagonal split hero */
.slide-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  width: 100%;
}

.slide-image {
  height: 100%;
  width: 100%;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 80% 100%, 0% 100%);
}

.slide-text-side {
  background: var(--blush);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10%;
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}

.slide h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 20px;
}

/* Slider Controls */
.slider-arrows {
  position: absolute;
  bottom: 40px;
  right: 50px;
  display: flex;
  gap: 20px;
  z-index: 10;
}

.slider-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--accent);
}

.slider-arrow:hover {
  background: var(--accent);
  color: var(--white);
}

.slider-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(30, 58, 138, 0.3);
  cursor: pointer;
}

.dot.active {
  background: var(--accent);
}

/* Layout Archetype: Timeline / Vertical Story */
.timeline-section {
  padding: 80px 0;
}

.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--accent);
  transform: translateX(-50%);
}

.timeline-item {
  margin-bottom: 60px;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  position: relative;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
}

.timeline-content {
  width: 45%;
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glass);
  position: relative;
}

.timeline-dot {
  position: absolute;
  top: 20px;
  left: 50%;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border: 4px solid var(--blush);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

/* Section Dividers */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.divider-line {
  flex-grow: 1;
  border-top: 2px dashed var(--accent);
  opacity: 0.3;
}

.divider-icon {
  margin: 0 20px;
  color: var(--accent);
  font-size: 24px;
}

/* Grid Layouts: High Density */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Cards */
.card {
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

/* CTA / Button Style: Underline CTA */
.cta-link {
  font-weight: 700;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  display: inline-block;
  cursor: pointer;
}

.cta-link:hover {
  color: var(--accent-light);
  text-decoration-color: var(--blush);
}

.btn-glow {
  position: relative;
  box-shadow: var(--shadow-glow);
}

/* Interactive Element: Tab-Based Showcase */
.tab-container {
  margin-top: 40px;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 10px 30px;
  border: none;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: var(--shadow-glass);
  transition: all 0.3s ease;
}

.tab-btn.active {
  background: var(--accent);
  color: var(--white);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.5s ease;
}

.tab-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Comparison Section */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-glass);
}

.comparison-table th, .comparison-table td {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid var(--glass-border);
}

.comparison-table th {
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-heading);
}

.comparison-table td:first-child {
  text-align: left;
  font-weight: 600;
}

.check-icon { color: #10b981; font-size: 20px; }
.cross-icon { color: #ef4444; font-size: 20px; }

/* Testimonials: Minimal text-only stacked */
.testimonial-stack {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-item {
  padding: 30px 0;
  border-bottom: 1px solid var(--accent);
}

.testimonial-item:last-child {
  border-bottom: none;
}

.testimonial-text {
  font-style: italic;
  font-size: 18px;
  margin-bottom: 15px;
}

.testimonial-author {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
}

/* Newsletter Section */
.newsletter-section {
  background: var(--blush);
  text-align: center;
}

.newsletter-form {
  max-width: 500px;
  margin: 30px auto 0;
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  flex-grow: 1;
  padding: 15px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  outline: none;
}

/* Footer: Logo Watermark Style */
footer {
  position: relative;
  padding: 80px 0 40px;
  background: var(--white);
  overflow: hidden;
}

.footer-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20vw;
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--accent);
  opacity: 0.05;
  white-space: nowrap;
  pointer-events: none;
}

.footer-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand h2 {
  color: var(--accent);
  margin-bottom: 15px;
}

.footer-links h3 {
  font-size: 16px;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

/* Inner Page Enrichment: Mid-page CTA */
.inner-cta-banner {
  background: var(--accent);
  color: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  margin: 40px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.inner-cta-banner h2 { color: var(--white); margin: 0; }
.inner-cta-banner .cta-link { color: var(--white); }

/* Breadcrumbs */
.breadcrumbs {
  padding: 100px 0 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.breadcrumbs a:hover { color: var(--accent); }

/* Mobile Adaptivity */
@media (max-width: 768px) {
  body, html { overflow-x: hidden; width: 100%; max-width: 100vw; }

  .container { padding: 0 16px; }

  section { padding: 50px 0; }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    background: var(--white);
    flex-direction: column;
    padding: 80px 40px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-toggle { display: block; }

  .slide-content-wrapper { grid-template-columns: 1fr; }
  .slide-image { display: none; }
  .slide-text-side { clip-path: none; padding: 20px; height: 100%; text-align: center; }

  .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .timeline-container::before { left: 20px; }
  .timeline-dot { left: 20px; }
  .timeline-item { justify-content: flex-start; padding-left: 50px; }
  .timeline-content { width: 100%; }

  .tab-panel.active { grid-template-columns: 1fr; }

  .footer-content { grid-template-columns: 1fr; }

  .inner-cta-banner { flex-direction: column; text-align: center; gap: 20px; }

  .newsletter-form { flex-direction: column; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Section Varieties */
.bg-blush { background-color: var(--blush); }
.bg-white { background-color: var(--white); }

/* Full-width media + compact text overlay */
.media-overlay-section {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.section-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.overlay-panel {
  max-width: 600px;
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
}
