:root {
  --primary: #064e3b;
  /* Deep Emerald Green */
  --primary-dark: #043927;
  --primary-soft: #0a6e54;
  --accent: #d7b97a;
  /* Polished Gold */
  --accent-soft: rgba(215, 185, 122, 0.2);
  --accent-glow: #e6ca91;
  --bg: #fcfbf7;
  /* Creamy Parchment */
  --surface: #ffffff;
  --surface-alt: #f1f3ef;
  --text: #1a1a1a;
  --muted: #5c6472;
  --border: rgba(6, 78, 59, 0.1);
  --shadow: 0 18px 45px rgba(4, 57, 39, 0.12);
  --radius: 24px;
  --radius-sm: 16px;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(6, 78, 59, 0.05), transparent 40%),
    radial-gradient(circle at bottom left, rgba(215, 185, 122, 0.08), transparent 40%),
    var(--bg);
  line-height: 1.65;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.section-sm {
  padding: 28px 0;
}

.alt-bg {
  background: linear-gradient(180deg, rgba(6, 78, 59, 0.04), rgba(252, 251, 247, 0.72));
}

.narrow {
  max-width: 760px;
}

.page-shell {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(252, 251, 247, 0.84);
  border-bottom: 1px solid rgba(6, 78, 59, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--primary);
}

.brand-mark {
  position: relative;
  width: 100%;
  height: 62px;
  flex: 0 0 auto;
}

.brand-book,
.brand-book::before,
.brand-book::after,
.brand-pen,
.brand-glow {
  position: absolute;
}

.brand-book {
  inset: 10px 8px 10px 8px;
  border: 3px solid var(--primary);
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}

.brand-book::before,
.brand-book::after {
  content: "";
  top: -2px;
  bottom: 8px;
  width: 18px;
  border-top: 3px solid var(--primary);
  border-bottom: 3px solid var(--primary);
}

.brand-book::before {
  left: -3px;
  border-left: 3px solid var(--primary);
  border-radius: 16px 0 14px 14px;
}

.brand-book::after {
  right: -3px;
  border-right: 3px solid var(--primary);
  border-radius: 0 16px 14px 14px;
}

.brand-pen {
  left: 26px;
  top: 10px;
  width: 11px;
  height: 36px;
  background: var(--primary);
  clip-path: polygon(50% 0%, 100% 30%, 80% 100%, 20% 100%, 0% 30%);
  border-radius: 2px 2px 12px 12px;
}

.brand-pen::after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: 6px;
  width: 3px;
  height: 9px;
  background: #fff;
  border-radius: 999px;
}

.brand-glow {
  left: 18px;
  top: 0;
  width: 28px;
  height: 20px;
  background: radial-gradient(circle, rgba(215, 185, 122, 0.95) 0%, rgba(215, 185, 122, 0.2) 70%, transparent 72%);
  clip-path: polygon(50% 0%, 64% 38%, 100% 50%, 64% 62%, 50% 100%, 36% 62%, 0% 50%, 36% 38%);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 0.9;
  font-family: "Playfair Display", serif;
  font-size: 1.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav a {
  color: var(--primary);
  font-weight: 600;
}

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

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  min-width: 280px;
  box-shadow: 0 15px 40px rgba(6, 78, 59, 0.12);
  z-index: 999;
  border-radius: 16px;
  top: 100%;
  left: 0;
  padding: 12px 0;
  border: 1px solid rgba(6, 78, 59, 0.08);
  animation: fadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-content a {
  color: var(--primary);
  padding: 12px 20px;
  text-decoration: none;
  display: block;
  font-size: 0.95rem;
  transition: background 0.2s;
  font-weight: 500;
}

.dropdown-content a:hover {
  background-color: #f7f9fc;
  color: #17345d;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-left: 1rem;
}

.header-contact a {
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-phone {
  color: #111;
}

.header-chat {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background 0.3s;
}

.header-chat:hover {
  background: #eaa83d;
}

.site-nav .btn-primary,
.site-nav .btn-primary:hover,
.site-nav .btn-primary:focus {
  color: #fff;
}

.site-nav .btn-secondary,
.site-nav .btn-secondary:hover,
.site-nav .btn-secondary:focus {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 14px 30px rgba(6, 78, 59, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  box-shadow: 0 18px 34px rgba(6, 78, 59, 0.35);
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--primary) 100%);
}

.btn-secondary {
  border: 1px solid rgba(11, 31, 58, 0.12);
  background: rgba(255, 255, 255, 0.88);
  color: var(--primary);
}

.full-width {
  width: 100%;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  font-family: "Playfair Display", serif;
  color: var(--primary);
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.6rem, 4vw, 5.2rem);
}

h2 {
  font-size: clamp(2rem, 3vw, 3.4rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0;
  color: var(--muted);
}

.hero-grid,
.about-grid,
.contact-grid,
.split-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  align-items: center;
}

.hero-copy p,
.page-hero p,
.section-heading p {
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.hero-metrics div {
  min-width: 150px;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.6);
}

.hero-metrics strong {
  display: block;
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 0.2rem;
}

.hero-visual {
  position: relative;
}

.hero-card,
.hero-side-card,
.info-card,
.stat-card,
.testimonial-slider,
.book-card,
.cta-banner,
.service-row,
.timeline-card,
.mission-card,
.team-card,
.contact-panel,
.contact-form {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.hero-book-stack {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border-radius: 32px;
}

.hero-book-stack img {
  height: 520px;
  object-fit: cover;
}

.floating-panel {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
}

.floating-panel strong {
  color: var(--primary);
}

.panel-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero-side-card {
  position: absolute;
  right: -12px;
  bottom: -32px;
  max-width: 290px;
  padding: 1.4rem;
  border-radius: 24px;
}

.hero-side-card .eyebrow {
  margin-bottom: 0.6rem;
}

.hero-side-card p {
  color: var(--primary);
}

.logo-strip {
  border: none;
  background: var(--primary);
}

.platform-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.platform-card {
  background: var(--accent);
  color: var(--primary);
  padding: 3rem 1.5rem;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.platform-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  background: #fff;
}

.platform-card i {
  font-size: 3rem;
  color: var(--primary);
}

.platform-card span {
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 992px) {
  .platform-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .platform-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 3rem;
}

.card-grid,
.portfolio-grid,
.timeline-grid,
.team-grid,
.mission-grid {
  display: grid;
  gap: 1.5rem;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.portfolio-grid,
.team-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline-grid,
.mission-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
  position: relative;
  padding: 3rem 2.2rem;
  border-radius: 32px;
  background: #ffffff;
  border: 1px solid rgba(6, 78, 59, 0.05);
  box-shadow: 0 10px 30px rgba(6, 78, 59, 0.04);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.info-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.info-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(6, 78, 59, 0.1);
  border-color: rgba(6, 78, 59, 0.12);
}

.info-card:hover::before {
  opacity: 1;
}

.info-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: rgba(6, 78, 59, 0.04);
  color: var(--primary);
  border-radius: 18px;
  font-size: 1.6rem;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.info-card:hover i {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1) rotate(-5deg);
}

.info-card h3 {
  font-size: 1.45rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.info-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

.feature-list {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--muted);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.split-panels {
  display: grid;
  gap: 1rem;
}

.stat-card,
.timeline-card,
.mission-card,
.team-card,
.contact-panel,
.contact-form {
  padding: 2.5rem;
  border-radius: 32px;
  background: #ffffff;
  border: 1px solid rgba(6, 78, 59, 0.05);
  box-shadow: 0 10px 30px rgba(6, 78, 59, 0.04);
}

.stat-card span,
.timeline-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--primary);
  font-weight: 800;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card-v2 {
  background: #fff;
  padding: 3rem 2.5rem;
  border-radius: 24px;
  border: 1px solid rgba(6, 78, 59, 0.05);
  box-shadow: 0 10px 40px rgba(6, 78, 59, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.testimonial-card-v2:hover {
  transform: translateY(-8px);
}

.testimonial-card-v2 .stars {
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  display: flex;
  gap: 4px;
}

.testimonial-card-v2 p {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 2rem;
  position: relative;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: auto;
}

.testimonial-author img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.testimonial-author strong {
  display: block;
  font-size: 1.1rem;
  color: var(--primary);
}

.testimonial-author span {
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 992px) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

.book-card,
.team-card {
  overflow: hidden;
  border-radius: 28px;
}

.book-card img,
.team-card img {
  height: 300px;
  object-fit: cover;
}

.book-card h3,
.team-card h3 {
  display: block;
  font-size: 1.25rem;
  color: var(--primary);
  margin: 0 0 0.5rem;
}

.book-card-content {
  padding: 1.5rem;
}

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 4rem 5rem;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: 0 20px 40px rgba(4, 57, 39, 0.15);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-banner::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
  transform: translate(25%, -25%);
  pointer-events: none;
}

.cta-banner>div {
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.cta-banner h2 {
  color: #fff;
  font-size: 2.6rem;
  line-height: 1.25;
  margin-top: 0.8rem;
}

.cta-banner p {
  color: #fff;
}

.cta-banner .eyebrow {
  color: #eab04a;
  /* Accent gold */
  opacity: 1;
  font-size: 0.9rem;
  letter-spacing: 2px;
  font-weight: 700;
}

.cta-banner .btn {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  background: #ffffff;
  color: #0b1f3a !important;
  font-size: 1.05rem;
  padding: 0 2.5rem;
  min-height: 60px;
  border-radius: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.cta-banner .btn:hover {
  background: #f4f6fb;
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.site-footer {
  padding: 30px 0 50px;
  background: var(--primary);
  color: rgba(255, 255, 255, 0.8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
}

.site-footer .brand,
.site-footer h3 {
  color: #fff;
}

.footer-brand {
  margin-bottom: 1rem;
}

.site-footer h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.site-footer a,
.site-footer span,
.site-footer p {
  display: block;
  margin-bottom: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.page-hero {
  padding: 120px 0 80px;
  background: radial-gradient(circle at top right, rgba(6, 78, 59, 0.06), transparent 45%);
  position: relative;
}

.page-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-glow), transparent);
  opacity: 0.3;
}

.service-stack {
  display: grid;
  gap: 1.25rem;
}

.service-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.6rem 1.8rem;
  border-radius: 26px;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 22px;
  background: rgba(215, 185, 122, 0.12);
}

.about-visual img {
  min-height: 420px;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.contact-panel {
  background:
    linear-gradient(140deg, rgba(4, 57, 39, 0.96), rgba(6, 78, 59, 0.92)),
    var(--primary);
  color: rgba(255, 255, 255, 0.9);
}

.contact-panel h2,
.contact-panel p,
.contact-panel a,
.contact-panel span {
  color: inherit;
}

.contact-points {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.contact-points a,
.contact-points span {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 0.55rem;
}

.form-row label {
  color: var(--primary);
  font-weight: 700;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(11, 31, 58, 0.14);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: rgba(23, 52, 93, 0.45);
  box-shadow: 0 0 0 4px rgba(23, 52, 93, 0.08);
}

.contact-hero,
.page-hero .narrow {
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-grid,
  .about-grid,
  .contact-grid,
  .split-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid,
  .team-grid,
  .timeline-grid,
  .mission-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-side-card {
    position: relative;
    right: auto;
    bottom: auto;
    max-width: none;
    margin-top: 1rem;
  }
}

@media (max-width: 820px) {
  .section {
    padding: 74px 0;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-cta {
    width: 100%;
  }

  .services-grid,
  .portfolio-grid,
  .team-grid,
  .timeline-grid,
  .mission-grid {
    grid-template-columns: 1fr;
  }

  .service-row,
  .cta-banner {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-banner {
    padding: 2rem;
  }

  .brand-text {
    font-size: 1.25rem;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 1.2rem), var(--container));
  }

  .hero-book-stack,
  .hero-book-stack img {
    min-height: 360px;
    height: 360px;
  }

  .hero-metrics {
    flex-direction: column;
  }

  .testimonial-slider,
  .info-card,
  .stat-card,
  .timeline-card,
  .mission-card,
  .team-card,
  .contact-panel,
  .contact-form {
    padding: 1.35rem;
  }
}

/* Custom Additions */
/* Custom Additions - Emerald Upgrade */
.mega-hero {
  background: 
    linear-gradient(135deg, rgba(4, 57, 39, 0.95) 0%, rgba(6, 78, 59, 0.85) 100%),
    url('../images/hero-magical.png') center/cover no-repeat;
  padding: 120px 0 200px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.mega-hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 120px;
  background: #fff;
  clip-path: ellipse(80% 100% at 50% 100%);
  z-index: 1;
}

.mega-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: fadeUp 1s ease-out;
  position: relative;
  z-index: 2;
}

.mega-hero-copy h1 {
  color: #fff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.mega-hero-copy p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 1.15rem !important;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-navy {
  background: var(--accent);
  color: var(--primary-dark) !important;
  border: none;
  font-weight: 700 !important;
}

.btn-navy:hover {
  background: var(--accent-glow);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(215, 185, 122, 0.4);
}

.btn-blue {
  background: rgba(255, 255, 255, 0.15);
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-blue:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  display: flex;
}

.hero-form-box {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
  margin-top: 1rem;
  z-index: 2;
}

.sale-badge {
  position: absolute;
  top: -30px;
  right: -20px;
  width: 90px;
  height: 90px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  border: 2px solid #fff;
  z-index: 10;
  transform: rotate(12deg);
}

.form-header h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.navy-banner {
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.input-group {
  position: relative;
}

.input-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-soft);
  font-size: 1.1rem;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 18px 15px 18px 50px;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  background: #f8f9fa;
  font-size: 0.95rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.3s;
}

.input-group textarea {
  resize: vertical;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: var(--accent);
  background: #fff;
}

.text-center {
  text-align: center;
  align-items: center;
}

/* Genres Grid */
.genres-section {
  padding: 80px 0;
}

.genres-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.genre-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.5rem;
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 15px rgba(8, 27, 51, 0.03);
  font-weight: 600;
  color: var(--primary);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.genre-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(8, 27, 51, 0.08);
  border-color: rgba(11, 31, 58, 0.2);
}

.genre-item i {
  font-size: 1.6rem;
  color: #111;
}

@media (max-width: 1100px) {
  .banner-form-wrapper {
    flex-direction: column;
    text-align: center;
    padding: 2.5rem 2rem;
  }

  .banner-form-text h2 {
    margin-bottom: 1rem;
  }

  .banner-form {
    width: 100%;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .genres-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .banner-form {
    flex-direction: column;
  }

  .banner-form input,
  .banner-form button {
    width: 100%;
  }

  .genres-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .genres-grid {
    grid-template-columns: 1fr;
  }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

@media (max-width: 820px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* Midnight Fusion Upgrade - Section Utilities */
.text-primary { color: var(--primary) !important; font-weight: inherit; }
.text-accent { color: var(--accent) !important; font-weight: inherit; }

/* Stats Strip */
.stats-strip {
  background: #fff;
  padding: 2rem 0 4rem;
  position: relative;
  z-index: 2;
}

.stats-flex {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 3rem;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-item {
  flex: 1;
  min-width: 200px;
}

.stat-item strong {
  display: block;
  font-size: 2.5rem;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-item span {
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 2px;
}

/* Narrative Section */
.narrative-section {
  padding: 120px 0;
  overflow: hidden;
}

.narrative-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

.narrative-section h2 {
  font-size: 3.5rem;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.narrative-section p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 2rem;
}

.narrative-actions {
  display: flex;
  gap: 1.5rem;
}

.btn-blue-outline {
  background: transparent;
  color: var(--primary) !important;
  border: 1px solid var(--primary);
}

.btn-blue-outline:hover {
  background: var(--primary);
  color: #fff !important;
}

.narrative-visual {
  position: relative;
}

.visual-wrap {
  background: var(--primary);
  border-radius: 40px;
  padding: 20px;
  transform: rotate(-2deg);
  box-shadow: 0 40px 80px rgba(6, 78, 59, 0.2);
}

.visual-wrap img {
  width: 100%;
  border-radius: 30px;
  display: block;
  filter: saturate(0.8) contrast(1.1);
}

.quote-floating {
  position: absolute;
  bottom: -30px;
  left: -40px;
  background: var(--accent);
  color: var(--primary);
  padding: 30px 40px;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.15);
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  transform: rotate(3deg);
  font-weight: 700;
  line-height: 1.3;
}

/* Reasons Section Grid */
.reasons-section .section-heading h2 {
  color: #fff !important;
}

/* FAQ Accordion */
.faq-section {
  background: #fff;
  padding: 100px 0;
}

.faq-section details {
  padding: 2rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-section details[open] {
  background: var(--bg-alt);
  border-radius: 16px;
  border-bottom-color: transparent;
}

.faq-section summary {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-section summary i {
  color: var(--accent);
  transition: transform 0.3s ease;
}

.faq-section details[open] summary i {
  transform: rotate(45deg);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .narrative-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
    text-align: center;
  }
  
  .narrative-actions {
    justify-content: center;
  }
  
  .visual-wrap {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .quote-floating {
    position: relative;
    left: 0;
    transform: rotate(0) translateY(-20px);
    width: 90%;
    margin: 0 auto;
    bottom: 0;
  }
}

@media (max-width: 1024px) {
  /* 1) Global Publishing Footprint - ensure fit */
  .platform-list {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important;
    gap: 0.75rem;
  }
  .platform-card {
    padding: 1.5rem 0.75rem !important;
    gap: 1rem !important;
  }
  .platform-card i {
    font-size: 2rem !important;
  }
  
  .logo-strip h2 {
    font-size: 1.8rem !important;
  }
}

@media (max-width: 500px) {
  .platform-list {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .narrative-section h2 {
    font-size: 2rem;
  }
  
  .stat-item strong {
    font-size: 1.8rem;
  }

  /* 1) Show just logo of publishers */
  .platform-card span {
    display: none;
  }

  /* 2) Why Choose Us - 2 per row */
  .reasons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }
  .reasons-grid .reveal {
     background: rgba(255,255,255,0.05); 
     padding: 1.25rem 0.75rem !important;
     border-radius: 20px;
     border: 1px solid rgba(255,255,255,0.1);
     transition: transform 0.3s ease;
  }
  .reasons-grid i {
    color: var(--accent);
    font-size: 1.5rem !important;
    margin-bottom: 0.75rem !important;
    display: block;
  }
  .reasons-grid h3 {
    color: #fff !important;
    margin-bottom: 0.5rem !important;
    font-size: 1rem !important;
  }

  /* 3) Genre - 2 per row */
  .genres-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }
  .genre-item {
    padding: 1rem !important;
    flex-direction: column;
    text-align: center;
    gap: 0.5rem !important;
  }
  .genre-item i {
    font-size: 1.2rem !important;
  }
  .genre-item span {
    font-size: 0.8rem !important;
  }

  /* Font Size Reductions per User Checklist */
  .logo-strip h2 { font-size: 1.6rem !important; } /* 3 */
  #services h2 { font-size: 1.6rem !important; } /* 4 */
  .reasons-section h2 { font-size: 1.6rem !important; } /* 5 */
  .testimonials-section h2 { font-size: 1.6rem !important; } /* 6 */
  .faq-section h2 { font-size: 1.6rem !important; } /* 7 */
  .cta-ribbon h2 { font-size: 1.5rem !important; } /* 8 */
  .cta-banner h2 { font-size: 1.5rem !important; } /* 9 */
}

/* Base styles for reasons-grid (desktop) */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.reasons-grid .reveal {
  background: rgba(255,255,255,0.05);
  padding: 3rem 2.2rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.3s ease;
}

.reasons-grid .reveal:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.08);
  border-color: var(--accent);
}

.reasons-grid i {
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  display: block;
}

.reasons-grid h3 {
  color: #fff;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.reasons-grid p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .reasons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* --- Global Popup Styles --- */
.popup-wrapper {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-wrapper.is-active {
  opacity: 1;
  visibility: visible;
}

.popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 57, 39, 0.45);
  backdrop-filter: blur(8px);
}

.popup-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 500px;
  background: #ffffff;
  padding: 3.5rem 2.5rem;
  border-radius: 8px;
  border-top: 6px solid #064e3b;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.popup-wrapper.is-active .popup-content {
  transform: translateY(0) scale(1);
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 18px;
  font-size: 2.5rem;
  line-height: 1;
  color: #888;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.popup-close:hover {
  color: #333;
}

.popup-header {
  text-align: center;
  margin-bottom: 2rem;
}

.popup-header h3 {
  font-size: 1.75rem;
  line-height: 1.25;
}

.popup-header p {
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.popup-input-group {
  position: relative;
  margin-bottom: 1.2rem;
}

.popup-input-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #064e3b;
  font-size: 1rem;
}

.popup-input-group input,
.popup-input-group textarea {
  width: 100%;
  padding: 14px 15px 14px 45px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  font-size: 0.95rem;
}

.popup-input-group input:focus,
.popup-input-group textarea:focus {
  border-color: #064e3b;
  box-shadow: 0 0 0 3px rgba(6, 78, 59, 0.1);
}

.popup-input-group textarea {
  display: block;
}

@media (max-width: 480px) {
  .popup-content {
    padding: 2.5rem 1.5rem;
  }
}
