/* ========================================
   OUMA SHARED STYLES
   Reset, tokens, navigation, mobile menu,
   CTA section, footer, and shared responsive
   ======================================== */

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

:root {
  /* Core palette */
  --dark-teal: #0D3A38;
  --teal-green: #23B1A6;
  --light-mint: #C8EAE4;
  --charcoal: #333333;
  --mid-gray: #6C757D;
  --light-gray: #E9ECEF;
  --white: #FFFFFF;

  /* Warm tones */
  --warm-blush: #E8C4B8;
  --warm-sand: #F5EDE8;
  --warm-terracotta: #C4836A;
  --warm-cream: #FBF8F5;
  --soft-sage: #D4E4D9;

  /* Typography */
  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ========================================
   NAVIGATION
   ======================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-bottom-color 0.3s ease;
}

/* Hero wrapper: carries hero gradient, pulls up behind sticky nav */
.hero-wrapper {
  background: linear-gradient(160deg, #F5EDE8 0%, #E8F4F1 40%, #FBF8F5 70%, #EEE6DF 100%);
  margin-top: -72px;
  padding-top: 72px;
}

/* Nav on a hero page: transparent at rest, white on scroll */
.nav--hero {
  background: transparent !important;
  border-bottom-color: transparent !important;
}

.nav--hero:hover {
  background: rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(0,0,0,0.08) !important;
}

.nav--hero.nav--scrolled {
  background: rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(0,0,0,0.08) !important;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-logo-img { height: 36px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin-left: auto;
}

.nav-links li { white-space: nowrap; }

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--teal-green); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.5rem;
  background: var(--dark-teal);
  color: var(--white) !important;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-cta:hover { background: #155755; }

.nav-cta-arrow {
  display: inline-flex;
  transition: transform 0.2s;
}

.nav-cta:hover .nav-cta-arrow {
  transform: translateX(3px);
}

.nav-login {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.5rem;
  background: transparent;
  color: var(--dark-teal) !important;
  border: 1.5px solid var(--dark-teal);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-login:hover {
  background: var(--dark-teal);
  color: var(--white) !important;
}

.nav-ctas {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: 2rem;
  flex-shrink: 0;
}

/* Nav dropdown — styles now in nav.ejs partial */

/* ========================================
   MOBILE HAMBURGER & OVERLAY
   ======================================== */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 200;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark-teal);
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 150;
  flex-direction: column;
  overflow: hidden;
}

.nav-mobile-overlay.active { display: flex; }

@media (min-width: 961px) {
  .nav-mobile-overlay.active { display: none; }
}

.mobile-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--dark-teal);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
  z-index: 1;
}

.nav-mobile-links {
  flex: 1;
  overflow-y: auto;
  padding: 5rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-mobile-overlay a {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--dark-teal);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--light-gray);
  text-decoration: none;
  display: block;
}

.nav-mobile-overlay a:last-child { border-bottom: none; }

.mobile-sub-links {
  display: flex;
  flex-direction: column;
  padding-left: 1rem;
  margin-top: -0.25rem;
  margin-bottom: 0.25rem;
}

.mobile-sub-links a {
  font-size: 1rem !important;
  font-weight: 400 !important;
  color: var(--mid-gray) !important;
  padding: 0.5rem 0 !important;
  border-bottom: none !important;
}

.mobile-sub-links a:hover {
  color: var(--dark-teal) !important;
}

.nav-mobile-overlay .mobile-cta-group {
  display: flex;
  gap: 0.75rem;
  padding: 1.25rem 2rem;
  flex-shrink: 0;
  border-top: 1px solid var(--light-gray);
  background: var(--white);
}

.nav-mobile-overlay .mobile-cta-group a {
  border-bottom: none;
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  flex: 1;
}

.nav-mobile-overlay .mobile-cta-primary {
  background: var(--dark-teal);
  color: var(--white) !important;
}

.nav-mobile-overlay .mobile-cta-secondary {
  background: transparent;
  border: 1.5px solid var(--dark-teal);
  color: var(--dark-teal) !important;
}

/* ========================================
   CTA SECTION — FULL BLEED GRADIENT
   ======================================== */
.cta-section {
  position: relative;
  padding: 10rem 2rem;
  overflow: hidden;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.cta-bg {
  position: absolute;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(200,234,228,0.7) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 20%, rgba(232,196,184,0.6) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(35,177,166,0.25) 0%, transparent 50%),
    radial-gradient(ellipse 90% 70% at 60% 90%, rgba(196,131,106,0.4) 0%, transparent 50%),
    linear-gradient(160deg, #0D3A38 0%, #134847 25%, #1a5c58 45%, #0D3A38 100%);
  will-change: transform;
  transition: transform 0.1s linear;
}

.cta-bg::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200,234,228,0.3) 0%, transparent 70%);
  top: 10%;
  left: -5%;
  animation: ctaFloat1 12s ease-in-out infinite;
}

.cta-bg::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,196,184,0.25) 0%, transparent 70%);
  bottom: 5%;
  right: -5%;
  animation: ctaFloat2 10s ease-in-out infinite;
}

@keyframes ctaFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.1); }
}

@keyframes ctaFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 20px) scale(1.05); }
}

.cta-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 32px;
  padding: 4rem 4.5rem;
}

.cta-section h2 {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.cta-section p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.btn-cta-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.25rem;
  background: var(--white);
  color: var(--dark-teal);
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-cta-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.btn-cta-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.25rem;
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-cta-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-2px);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  padding: 4rem 0 2rem;
  background: var(--dark-teal);
  color: var(--white);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo-img { height: 32px; width: auto; }

.footer-brand-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  margin-top: 1rem;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.75rem; }

.footer-col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
  text-decoration: none;
}

.footer-bottom a:hover { color: var(--white); }

/* ========================================
   SHARED RESPONSIVE — NAV, CTA, FOOTER
   ======================================== */
@media (max-width: 1100px) {
  .nav-links { gap: 1.25rem; }
  .nav-links a { font-size: 0.8rem; }
  .nav-cta { padding: 0.5rem 1.15rem; font-size: 0.8rem; }
  .nav-login { padding: 0.5rem 1.15rem; font-size: 0.8rem; }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-ctas { display: none; }
  .nav-hamburger { display: block; margin-left: auto; }

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

  .cta-section { padding: 6rem 1.5rem; min-height: 50vh; }
  .cta-section h2 { font-size: 2.5rem; }
  .cta-content { padding: 3rem 2.5rem; }
  .cta-buttons { flex-direction: column; gap: 0.75rem; }
}

@media (max-width: 480px) {
  .cta-section h2 { font-size: 2rem; line-height: 1.1; }
  .cta-content { padding: 2.5rem 1.75rem; border-radius: 24px; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ========================================
   TESTIMONIAL CARDS — SHARED
   Stacked card design for partner quotes.
   Use .testi as standalone section or
   .testi-inline inside another section.
   ======================================== */
.testi {
  padding: 5rem 0;
  background: var(--warm-cream);
}

.testi-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.testi-header {
  margin-bottom: 2.5rem;
}

.testi-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--warm-terracotta);
  margin-bottom: 0.5rem;
}

.testi-heading {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--dark-teal);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Grid: 2-col for multiple cards, or single centered */
.testi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.testi-grid--single {
  grid-template-columns: 1fr;
}

/* Individual card */
.testi-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.25rem 2.5rem 2rem;
  border: 1px solid rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.testi-card:hover {
  box-shadow: 0 8px 30px rgba(13,58,56,0.06);
  transform: translateY(-2px);
}

/* Accent — top edge */
.testi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--teal-green);
  border-radius: 20px 20px 0 0;
}

.testi-quote-mark {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--teal-green);
  opacity: 0.2;
  margin-bottom: 0.25rem;
  user-select: none;
}

.testi-quote {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.75rem;
}

.testi-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--light-mint), var(--light-gray), transparent);
  margin-bottom: 1.5rem;
}

.testi-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testi-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--light-mint) 0%, var(--soft-sage) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark-teal);
  flex-shrink: 0;
}

.testi-info {
  flex: 1;
  min-width: 0;
}

.testi-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark-teal);
  line-height: 1.3;
}

.testi-role {
  font-size: 0.72rem;
  color: var(--mid-gray);
  line-height: 1.4;
  margin-top: 0.1rem;
}

.testi-logo {
  height: 44px;
  width: auto;
  opacity: 0.7;
  flex-shrink: 0;
  margin-left: auto;
  object-fit: contain;
  max-width: 130px;
}

/* Inline variant: sits inside another section (no section padding/bg) */
.testi-inline {
  margin-top: 2.5rem;
}

.testi-inline .testi-card {
  max-width: none;
}

/* Responsive */
@media (max-width: 960px) {
  .testi-grid {
    grid-template-columns: 1fr;
  }

  .testi-heading { font-size: 1.65rem; }
}

@media (max-width: 600px) {
  .testi { padding: 3.5rem 0; }
  .testi-heading { font-size: 1.45rem; }

  .testi-card {
    padding: 1.75rem 1.5rem 1.5rem;
  }

  .testi-quote { font-size: 0.84rem; }

  .testi-footer { flex-wrap: wrap; }
  .testi-logo { margin-left: 0; margin-top: 0.5rem; flex-basis: 100%; }
}
