/* =========================================================
   PIXEL THRIVE DIGITAL — Shared Stylesheet v2
   Brand Colours: Electric Blue #2196C4 · Vibrant Green #6DC135
   Charcoal #3D3D3D · White #FFFFFF
   ========================================================= */

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

:root {
  /* ── BRAND PALETTE ── */
  --blue:        #2196C4;
  --blue-dark:   #1677A0;
  --blue-light:  #E8F5FB;
  --blue-mid:    #BAE0F0;
  --green:       #6DC135;
  --green-dark:  #52A022;
  --green-light: #EEF8E5;
  --charcoal:    #3D3D3D;
  --charcoal-2:  #2A2A2A;
  --charcoal-3:  #1A1A1A;
  --white:       #FFFFFF;
  --off-white:   #F8FAFB;
  --light-grey:  #F0F4F6;
  --mid-grey:    #7A8A95;
  --border:      rgba(33,150,196,0.15);
  --border-dark: rgba(255,255,255,0.1);

  /* ── TYPOGRAPHY ── */
  --ff-head:  'Poppins', 'DM Sans', sans-serif;
  --ff-body:  'DM Sans', 'Inter', sans-serif;

  /* ── LAYOUT ── */
  --nav-h: 72px;
  --radius: 4px;

  /* ── SHADOWS ── */
  --shadow-sm:  0 2px 12px rgba(33,150,196,0.08);
  --shadow-md:  0 8px 32px rgba(33,150,196,0.12);
  --shadow-lg:  0 20px 60px rgba(33,150,196,0.15);
}

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--ff-head);
  font-weight: 600;
  line-height: 1.15;
}

p { line-height: 1.78; }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ══════════════════════════════════════════
   NAVIGATION — Fixed, consistent across all pages
   ══════════════════════════════════════════ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(33,150,196,0.06);
  transition: height 0.3s, box-shadow 0.3s;
}

.site-nav.scrolled {
  height: 62px;
  box-shadow: 0 4px 24px rgba(33,150,196,0.12);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo img {
  height: 44px;
  width: auto;
  display: block;
  transition: height 0.3s;
}

.site-nav.scrolled .nav-logo img { height: 38px; }

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-text .line1 {
  font-family: var(--ff-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-logo-text .line1 .blue  { color: var(--blue); }
.nav-logo-text .line1 .green { color: var(--green); }

.nav-logo-text .line2 {
  font-family: var(--ff-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--charcoal);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0.85rem; right: 0.85rem;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-links a:hover { color: var(--blue); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--blue); font-weight: 600; }
.nav-links a.active::after { transform: scaleX(1); }

/* Nav CTA button */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  padding: 0.6rem 1.35rem;
  border-radius: 50px;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(33,150,196,0.3);
  flex-shrink: 0;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(33,150,196,0.4);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  border-radius: var(--radius);
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 2rem 1.75rem;
  z-index: 999;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 8px 24px rgba(33,150,196,0.1);
}

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

.mobile-nav a {
  display: block;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--charcoal);
  transition: color 0.2s;
}

.mobile-nav a:hover, .mobile-nav a.active { color: var(--blue); }

.mobile-nav .cta-mobile {
  margin-top: 1.25rem;
  border: none;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: var(--white);
  padding: 0.85rem 1.25rem;
  text-align: center;
  border-radius: 50px;
  font-weight: 600;
}

/* =========================================================
   POST CARD STYLES (CLEANED & FIXED)
   ========================================================= */
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-mid);
}

/* Base Image Container */
.post-img {
  background: linear-gradient(145deg, var(--charcoal-2), #0d1f2d);
  display: block; /* Changed from flex to prevent flexbox rendering bugs */
  position: relative;
  overflow: hidden;
  height: 200px;
}

/* Default Image Styling for Regular Post Cards */
.post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: relative;
  z-index: 1;
}

/* Decorative Background Orb */
.post-img::before {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33,150,196,.2) 0%, transparent 70%);
  top: -40px;
  right: -40px;
  z-index: 0;
}

/* --- FEATURED CARD SPECIFIC OVERRIDES --- */
.post-card.featured .post-img {
  height: auto; /* REMOVED fixed 280px height to prevent vertical clipping */
  aspect-ratio: 16 / 9; /* Scales height fluidly with container width */
  background: #f4f8f6; 
}

.post-card.featured .post-img img {
  width: 100%;
  height: 100%;
  object-fit: contain; 
  padding: 0.75rem; 
}
/* ══════════════════════════════════════════
   PAGE HERO — inner pages
   ══════════════════════════════════════════ */
.page-hero {
  padding-top: calc(var(--nav-h) + 3.5rem);
  padding-bottom: 4rem;
  padding-left: 3.5rem;
  padding-right: 3.5rem;
  background: linear-gradient(135deg, var(--charcoal-3) 0%, var(--charcoal-2) 60%, #1a2a35 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

/* Decorative gradient orbs */
.page-hero::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33,150,196,0.18) 0%, transparent 70%);
  top: -150px; right: -80px;
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109,193,53,0.12) 0%, transparent 70%);
  bottom: -80px; left: 8%;
  pointer-events: none;
}

.breadcrumb {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.breadcrumb a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover { color: var(--green); }
.breadcrumb span { color: var(--green); }

.page-hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.page-hero-eyebrow::before {
  content: '';
  display: block;
  width: 2rem;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: 2px;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.08;
  max-width: 20ch;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.page-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  max-width: 55ch;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════
   MARQUEE TICKER
   ══════════════════════════════════════════ */
.marquee-wrap {
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue-dark) 50%, var(--charcoal-2) 100%);
  overflow: hidden;
  padding: 0.7rem 0;
}

.marquee-track {
  display: flex;
  animation: marquee 35s linear infinite;
  white-space: nowrap;
}

.marquee-track span {
  display: inline-block;
  padding: 0 1.8rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

.marquee-track span::after {
  content: '◆';
  margin-left: 1.8rem;
  color: var(--green);
  opacity: 0.7;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════
   SECTION LAYOUT HELPERS
   ══════════════════════════════════════════ */
.section     { padding: 5.5rem 3.5rem; }
.section-sm  { padding: 3.5rem 3.5rem; }
.section-dark  { background: var(--charcoal-3); }
.section-dark2 { background: var(--charcoal-2); }
.section-light { background: var(--light-grey); }
.section-blue-light { background: var(--blue-light); }

/* Section label / eyebrow */
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
}

.section-label::before {
  content: '';
  display: block;
  width: 1.8rem;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: 2px;
}

.section-dark .section-label,
.section-dark2 .section-label { color: var(--green); }

/* Section title */
.section-title {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 1.25rem;
  color: var(--charcoal);
}

.section-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-dark .section-title,
.section-dark2 .section-title { color: var(--white); }

/* Section body copy */
.section-body {
  font-size: 1rem;
  color: var(--mid-grey);
  max-width: 58ch;
  line-height: 1.82;
}

.section-dark .section-body,
.section-dark2 .section-body { color: rgba(255,255,255,0.5); }

/* ══════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 50px;
  padding: 0.8rem 1.8rem;
  transition: all 0.22s;
  cursor: pointer;
  border: 2px solid transparent;
  font-family: var(--ff-body);
  white-space: nowrap;
}

.btn svg { width: 15px; height: 15px; flex-shrink: 0; }

/* Primary — blue gradient */
.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(33,150,196,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(33,150,196,0.4);
}

/* Secondary — green gradient */
.btn-green {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(109,193,53,0.3);
}
.btn-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(109,193,53,0.4);
}

/* Outline blue */
.btn-outline {
  background: transparent;
  border-color: var(--blue);
  color: var(--blue);
}
.btn-outline:hover { background: var(--blue); color: var(--white); }

/* Outline white (on dark bg) */
.btn-outline-white {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

/* Ghost link */
.btn-ghost {
  background: transparent;
  border: none;
  color: var(--blue);
  padding-left: 0;
  padding-right: 0;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

/* ══════════════════════════════════════════
   GRADIENT ACCENT UTILITIES
   ══════════════════════════════════════════ */
.gradient-text {
  background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: 2px;
}

.dot-blue {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}
.dot-green {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════ */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-mid);
}

/* ══════════════════════════════════════════
   CHIP / BADGE
   ══════════════════════════════════════════ */
.chip {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
}

.chip-blue  { background: var(--blue-light); color: var(--blue); }
.chip-green { background: var(--green-light); color: var(--green-dark); }
.chip-dark  { background: var(--charcoal); color: var(--white); }

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
footer {
  background: var(--charcoal-3);
  color: rgba(255,255,255,0.45);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
  text-decoration: none;
}

.footer-logo-wrap img {
  height: 40px;
  width: auto;
   /* Keep logo visible on dark background */
  /*filter: brightness(0) invert(1);
  opacity: 0.85;*/
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.footer-brand-text .line1 {
  font-family: var(--ff-head);
  font-size: 1rem;
  font-weight: 700;
}
.footer-brand-text .line1 .blue  { color: var(--blue); }
.footer-brand-text .line1 .green { color: var(--green); }
.footer-brand-text .line2 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.footer-tagline {
  font-size: 0.85rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.38);
  max-width: 28ch;
}

.footer-col h4 {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.25rem;
  font-family: var(--ff-body);
  font-weight: 600;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }

.footer-col ul a {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.38);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* Accent bar at top of footer */
.footer-accent {
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 3.5rem;
  font-size: 0.76rem;
}

/* ══════════════════════════════════════════
   FADE-UP ANIMATION
   ══════════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .site-nav { padding: 0 2rem; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 0.4rem 0.6rem; font-size: 0.78rem; }
}

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .section, .section-sm { padding: 4rem 2rem; }
  .page-hero { padding: calc(var(--nav-h) + 2.5rem) 2rem 3rem; }
  .footer-main { grid-template-columns: 1fr 1fr; padding: 3rem 2rem; }
  .footer-bottom { padding: 1.25rem 2rem; }
}

@media (max-width: 640px) {
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.6rem; text-align: center; }
}
