/* =============================================================
   GLOBAL LAYOUT FIXES — nav, footer, typography, visibility
   ============================================================= */

/* ── NAVBAR: wider layout, bigger readability ──── */
.navbar {
  width: 92% !important;
  max-width: 1400px !important;
  gap: 28px !important;
  padding: 10px 36px !important;
  height: auto !important;
}
.navbar-links,
.nav-links {
  gap: 14px !important;
}
.navbar-links a,
.nav-links a {
  font-size: 1rem !important;
  letter-spacing: 0.06em !important;
  padding: 10px 14px !important;
  text-transform: uppercase;
}
.navbar-logo img { height: 40px !important; }
.lang-switcher { gap: 6px !important; }
.lang-btn { font-size: 0.82rem !important; padding: 5px 8px !important; }
.lang-divider { font-size: 0.82rem !important; color: #ccc; }
.btn-primary,
.btn-nav-cta {
  font-size: 0.9rem !important;
  padding: 11px 22px !important;
}
.hamburger { display: none; }
@media (max-width: 900px) {
  .navbar-links, .nav-links { display: none !important; }
  .lang-switcher { display: none !important; }
  .navbar { width: calc(100% - 32px) !important; padding: 10px 16px !important; }
  .hamburger { display: flex !important; margin-left: auto; }
}

/* ── NAVBAR LOGO (new static embed) ──────────────────────── */
.navbar-logo { display:flex; align-items:center; text-decoration:none; flex-shrink:0; }
.navbar-right { display:flex; align-items:center; gap:10px; flex-shrink:0; }

/* Fix close button in nav overlay */
.nav-overlay-close {
  position:absolute; top:20px; right:20px;
  background:none; border:none; color:rgba(255,255,255,0.6);
  font-size:1.4rem; cursor:pointer; line-height:1;
}

/* ── FOOTER — full styling (was completely missing) ────────── */
.footer {
  background: #0f0d09;
  color: rgba(255,255,255,0.75);
  padding: 72px 0 0;
  position: relative;
  z-index: 10;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 0;
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-logo {
  height: 34px; width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  margin: 0;
}
.footer-socials { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.social-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.social-icon:hover { background: #c9960a; color: #0f0d09; }

.footer-col { display: flex; flex-direction: column; gap: 0; }
.footer-col-title {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin: 0 0 16px;
  font-weight: 600;
}
.footer-links {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.4;
}
.footer-links a:hover { color: #c9960a; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.06em;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 8px;
}
.footer-bottom-right {
  color: rgba(255,255,255,0.2);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

/* ── TYPOGRAPHY: Rein in oversized display text ──────────── */
.cta-big-text {
  font-size: clamp(3.5rem, 9vw, 7rem) !important;
  line-height: 1.0 !important;
}
.section-headline {
  font-size: clamp(2rem, 5vw, 3.8rem) !important;
  line-height: 1.1 !important;
}
.slide-headline {
  font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
  line-height: 1.0 !important;
}
.split-headline {
  font-size: clamp(2.4rem, 6vw, 4.5rem) !important;
  line-height: 1.05 !important;
}

/* Better paragraph line heights */
.section-sub, .slide-sub, p {
  line-height: 1.7 !important;
}

/* ── GSAP FALLBACK: elements invisible if GSAP doesn't fire ─ */
/* Remove initial invisible state so content always shows */
[data-gsap],
.gsap-reveal,
.gsap-reveal-up,
.gsap-reveal-left,
.gsap-reveal-right,
.gsap-scale,
.gsap-fade {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

/* ── FIX: Remove excessive blank gaps / padding ──────────── */
.cta-full-section {
  padding: 80px 0 !important;
  min-height: auto !important;
}
.roi-section {
  padding: 80px 0 !important;
}
.video-section {
  padding: 60px 0 80px !important;
}

/* ── FONT COLOURS on sections that need it ───────────────── */
/* Ensure dark-bg section text is white/readable */
.cta-full-section,
.cta-full-section * {
  color-scheme: dark;
}
.cta-full-section .section-sub,
.cta-full-section p {
  color: rgba(255,255,255,0.65) !important;
}
.cta-full-section .cta-big-text {
  color: #fff !important;
}

/* Ensure grey sections have dark readable text */
.grey-section h2,
.grey-section h3,
.grey-section p,
.warranty-section h2,
.warranty-section p,
.stats-section h2 {
  color: var(--charcoal, #1a1a0f) !important;
}

/* Eyebrow text readability */
.section-eyebrow {
  color: #c9960a !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.22em !important;
  margin-bottom: 14px !important;
  display: block !important;
}

/* ── RESPONSIVE FOOTER ───────────────────────────────────── */
@media (max-width:1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 36px; }
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; row-gap: 28px; }
  .footer { padding: 48px 0 0; }
}

/* ── LANG SWITCHER ───────────────────────────────────────── */
.lang-switcher { display: flex; align-items: center; gap: 4px; }
.lang-btn {
  background: none; border: none; cursor: pointer;
  font-size: 0.68rem; letter-spacing: 0.1em;
  color: rgba(60,50,30,0.5); padding: 3px 5px; border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
.lang-btn.active { color: #c9960a; font-weight: 700; }
.lang-btn:hover { color: #1a1a0f; }

/* ── SUCCESS STORIES SECTION ─────────────────────────── */
.success-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.success-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.05);
}
.success-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.13);
}
.success-card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  flex-shrink: 0;
}
.success-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(201,150,10,0.92);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}
.success-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.success-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9960a;
}
.success-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a0f;
  margin: 0;
  line-height: 1.35;
}
.success-quote {
  font-size: 0.84rem;
  color: #555;
  line-height: 1.65;
  margin: 0;
  font-style: italic;
}
.success-author {
  font-size: 0.78rem;
  color: #888;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px solid #f0f0f0;
}
.success-author strong { color: #333; }

/* ── FIELD EXPERTS SECTION ───────────────────────────── */
.experts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.expert-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 28px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s;
}
.expert-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.14);
}
.expert-portrait {
  height: 260px;
  background-size: cover;
  background-position: center top;
  position: relative;
}
.expert-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
}
.expert-info {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.expert-country {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
}
.expert-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1a1a0f;
  margin: 0;
}
.expert-title {
  font-size: 0.78rem;
  color: #c9960a;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.expert-bio {
  font-size: 0.84rem;
  color: #555;
  line-height: 1.6;
  margin: 4px 0 0;
}
.expert-detector {
  font-size: 0.78rem;
  color: #888;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
  margin-top: 4px;
}
.expert-uses {
  font-weight: 700;
  color: #1a1a0f;
  letter-spacing: 0.08em;
  margin-right: 4px;
}

/* ── RESPONSIVE: Success + Experts ──────────────────── */
@media (max-width: 1100px) {
  .success-grid { grid-template-columns: repeat(2, 1fr); }
  .experts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .success-grid { grid-template-columns: 1fr; }
  .experts-grid { grid-template-columns: 1fr; }
}
