/*
Theme Name: WeClinic Health
Theme URI: https://weclinic.us
Author: IM Sites
Description: Tema oficial WeClinic Health — Collaborative Pediatric Therapy in Sunrise, Florida.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: weclinic
*/

/* ============================================
   WeClinic Health — Custom Theme
   Brand: #0D1B2A (navy) · #4FA3D1 (blue) · #F4F8FB (light bg)
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; color: #1B263B; line-height: 1.6; background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
em { font-style: normal; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== BUTTONS ===== */
.btn-primary {
  background: #4FA3D1; color: #fff;
  padding: .75rem 1.75rem; border-radius: 8px;
  font-weight: 600; font-size: .95rem;
  transition: background .2s, transform .15s;
  display: inline-flex; align-items: center; gap: .4rem;
}
.btn-primary:hover { background: #74C0E3; transform: translateY(-1px); }

.btn-outline {
  border: 2px solid #4FA3D1; color: #4FA3D1;
  padding: .7rem 1.75rem; border-radius: 8px;
  font-weight: 600; font-size: .95rem;
  transition: all .2s; display: inline-block;
}
.btn-outline:hover { background: #4FA3D1; color: #fff; }

.btn-ghost {
  color: rgba(255,255,255,.9); font-weight: 500; font-size: 1rem;
  display: inline-flex; align-items: center; gap: .4rem;
  transition: color .2s; padding: 0;
}
.btn-ghost:hover { color: #fff; }

.btn-schedule {
  background: #4FA3D1; color: #fff;
  padding: .5rem 1.5rem; border-radius: 9999px;
  font-weight: 500; font-size: .875rem;
  transition: background .2s; white-space: nowrap;
  min-height: 44px; display: inline-flex; align-items: center;
}
.btn-schedule:hover { background: #74C0E3; }

.btn-not-sure {
  background: #4FA3D1; color: #fff;
  height: 48px; padding: 0 40px; border-radius: 9999px;
  font-weight: 600; font-size: 1rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .2s, transform .15s;
}
.btn-not-sure:hover { background: #74C0E3; transform: translateY(-1px); }
.btn-not-sure svg { width: 16px !important; height: 16px !important; }

.btn-cta-dark {
  background: #0D1B2A; color: #fff;
  height: 56px; padding: 0 48px; border-radius: 9999px;
  font-weight: 600; font-size: 1.125rem;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
  transition: background .2s, transform .15s;
}
.btn-cta-dark:hover { background: #1B263B; transform: translateY(-1px); }

/* ===== HEADER ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #0D1B2A;
}
.header-inner {
  display: flex; align-items: center; height: 76px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 40px; width: auto; }

.nav { display: flex; align-items: center; gap: 2rem; flex: 1; justify-content: center; }
.nav a { color: rgba(255,255,255,.8); font-size: .875rem; font-weight: 500; transition: color .2s; white-space: nowrap; }
.nav a:hover { color: #fff; }
.nav .nav-phone, .nav .nav-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 1rem; }

.header-phone {
  display: flex; align-items: center; gap: .5rem;
  color: #fff; font-size: .875rem; font-weight: 500;
  transition: color .2s; white-space: nowrap;
}
.header-phone:hover { color: rgba(255,255,255,.8); }
.header-phone svg { width: 20px !important; height: 20px !important; flex-shrink: 0; }

.hamburger { display: none; background: none; border: none; cursor: pointer; color: rgba(255,255,255,.8); padding: .25rem; }

/* ===== HERO ===== */
.hero { background: #0D1B2A; padding: 160px 0; display: flex; align-items: center; min-height: 100vh; position: relative; }

.hero-pattern {
  position: absolute; inset: 0; opacity: .05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C%2Fg%3E%3C%2Fsvg%3E");
}

.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; position: relative; }

.hero-text h1 {
  font-size: 72px; font-weight: 700; color: #fff;
  line-height: 1; letter-spacing: normal; margin-bottom: 2rem;
}
.hero-sub { color: rgba(255,255,255,.9); font-size: 1.25rem; line-height: 1.625; max-width: 672px; margin-bottom: 2.5rem; }
.hero-sub em { font-style: italic; }
.hero-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }

/* Hero specific button overrides */
.hero .btn-primary {
  padding: 24px 32px; font-size: 1rem; font-weight: 600;
  border-radius: 9999px; height: 48px; gap: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,.3);
}
.hero .btn-primary svg { width: 16px !important; height: 16px !important; }

.hero-visual { position: relative; }
.hero-img-wrap {
  position: relative; border-radius: 24px; overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
}
.hero-img-wrap img { width: 100%; border-radius: 0; box-shadow: none; object-fit: cover; display: block; }
.hero-img-gradient {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,27,42,.4), transparent);
  pointer-events: none;
}

/* ===== SECTION HELPERS ===== */
.section-tag {
  display: inline-block;
  background: #EBF5FB; color: #4FA3D1;
  padding: .28rem .9rem; border-radius: 20px;
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em; margin-bottom: 1rem;
}
.section-header-center { text-align: center; margin-bottom: 4rem; }
.section-header-center h2 { font-size: 48px; font-weight: 700; color: #0D1B2A; margin-bottom: 1.5rem; line-height: 1; }
.section-sub { color: #5A6A75; font-size: 1.125rem; max-width: 672px; margin: 0 auto; line-height: 1.75; }

/* ===== SPLIT SECTIONS ===== */
.section-white { background: #fff; padding: 128px 0; }

.split-section {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}

.split-img img {
  width: 100%; border-radius: 24px;
  box-shadow: rgba(0,0,0,.1) 0px 20px 25px -5px, rgba(0,0,0,.1) 0px 8px 10px -6px;
}
.split-text h2 {
  font-size: 60px; font-weight: 700; color: #0D1B2A;
  line-height: 1; margin-bottom: 1.5rem;
}
.split-text p { color: rgb(26,26,26); font-size: 1.125rem; line-height: 1.625; }
.split-highlight { color: #1B263B !important; font-size: 1.25rem !important; font-weight: 500 !important; }
.text-dark { color: #0D1B2A; }

/* ===== SERVICES ===== */
.section-light { background: #F4F8FB; padding: 128px 0; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 3rem; }
.service-card {
  background: #fff; border-radius: 16px; padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.07); transition: box-shadow .25s, transform .2s;
}
.service-card:hover { box-shadow: 0 8px 25px rgba(13,27,42,.1); transform: translateY(-3px); }
.svc-icon {
  display: inline-flex; padding: 16px; border-radius: 12px;
  background: rgba(116,192,227,.1); color: #4FA3D1;
  margin-bottom: 1.25rem;
}
.svc-icon svg { width: 28px !important; height: 28px !important; }
.service-card h3 { font-size: 1.25rem; font-weight: 600; color: rgb(26,26,26); margin-bottom: .75rem; }
.service-card p { font-size: 1rem; color: #5A6A75; line-height: 1.65; }

.btn-explore {
  background: #4FA3D1; color: #fff;
  height: 48px; padding: 0 32px; border-radius: 9999px;
  font-weight: 600; font-size: 1rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  transition: background .2s, transform .15s;
}
.btn-explore:hover { background: #74C0E3; transform: translateY(-1px); }

/* ===== WHAT MAKES WECLINIC DIFFERENT ===== */
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4rem; margin-bottom: 4rem;
}
.why-card { text-align: center; }
.why-icon {
  display: inline-flex; padding: 20px; border-radius: 16px;
  background: rgba(79,163,209,.1); color: #4FA3D1;
  margin-bottom: 1.5rem;
}
.why-icon svg { width: 40px; height: 40px; }
.why-card h3 { font-size: 1.25rem; font-weight: 700; color: #0D1B2A; margin-bottom: .6rem; }
.why-card p { font-size: 1.125rem; color: #5A6A75; line-height: 1.65; }
.why-photo img {
  width: 100%; border-radius: 16px; object-fit: cover;
  height: 384px;
}
.why-photo { max-width: 896px; margin: 0 auto; }

/* ===== NOT SURE SECTION ===== */
.not-sure-section {
  background: #1B263B; padding: 128px 0;
  position: relative; overflow: hidden; text-align: center;
}
.not-sure-bg {
  position: absolute; inset: 0; opacity: .05; pointer-events: none;
}
.not-sure-bg img { width: 100%; height: 100%; object-fit: cover; }
.not-sure-content { position: relative; z-index: 10; }
.not-sure-container { max-width: 896px; margin: 0 auto; padding: 0 1.5rem; }
.not-sure-section h2 {
  font-size: 48px; font-weight: 700; color: #fff;
  line-height: 1; margin-bottom: 1.25rem;
}
.not-sure-section p {
  font-size: 1.25rem; color: rgba(255,255,255,.9);
  max-width: 672px; margin: 0 auto 2.5rem; line-height: 1.625;
}

/* ===== TESTIMONIALS ===== */
.testimonials-light { background: #fff; padding: 128px 0; }

.tcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.tcard {
  background: #F4F8FB; border-radius: 16px; padding: 2rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.05); transition: box-shadow .25s, transform .2s;
}
.tcard:hover { box-shadow: 0 8px 25px rgba(13,27,42,.08); transform: translateY(-2px); }
.tcard-quote-icon { width: 40px !important; height: 40px !important; color: #74C0E3; margin-bottom: 1.25rem; display: block; }
.tcard-text { color: rgb(26,26,26); font-size: 1.125rem; line-height: 1.625; margin-bottom: 1.5rem; }
.tcard-author { display: flex; align-items: center; gap: .8rem; }
.tcard-author strong { display: block; color: #0D1B2A; font-size: 1rem; font-weight: 600; }
.tcard-author span { color: #5A6A75; font-size: .875rem; }
.testimonials-light .section-header-center h2 { margin-bottom: 0; }

/* ===== CTA ===== */
.cta-section { background: #74C0E3; padding: 128px 0; }
.cta-inner { text-align: center; }
.cta-section h2 { font-size: 60px; font-weight: 700; color: #0D1B2A; margin-bottom: 2.5rem; line-height: 1; }

/* ===== FOOTER ===== */
.footer { background: #0D1B2A; padding: 0 0 80px; }
.footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 3rem;
  padding: 80px 0 3rem;
}
.footer-logo { height: 40px; width: auto; }
.footer-brand p { color: rgba(255,255,255,.7); font-size: .875rem; line-height: 1.625; margin-top: 1.2rem; }
.footer-col { display: flex; flex-direction: column; gap: .55rem; }
.footer-col h5 { color: #74C0E3; font-size: .875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.7px; margin-bottom: .5rem; }
.footer-col a { color: rgba(255,255,255,.7); font-size: .875rem; transition: color .2s; }
.footer-col a:hover { color: #4FA3D1; }
.footer-tagline { color: rgba(255,255,255,.7); font-size: .875rem; margin-top: .4rem; margin-bottom: .6rem; }

.footer-contact-bar {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  padding: 3rem 0 0; margin-bottom: 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 1.5rem;
}
.footer-contact-item {
  display: flex; align-items: flex-start; gap: .75rem;
  color: rgba(255,255,255,.5); font-size: .825rem;
}
.footer-contact-item svg { color: #4FA3D1; margin-top: 2px; flex-shrink: 0; }
.footer-contact-item strong { display: block; color: #fff; font-size: 1rem; font-weight: 500; margin-bottom: .15rem; }
.footer-contact-item span, .footer-contact-item a { display: block; color: rgba(255,255,255,.7); font-size: .875rem; transition: color .2s; }
.footer-contact-item a:hover { color: #4FA3D1; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 2rem; color: rgba(255,255,255,.6); font-size: .875rem;
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: rgba(255,255,255,.6); transition: color .2s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,.55); }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(37,211,102,.4), 0 4px 8px rgba(0,0,0,.15);
  transition: transform .2s, box-shadow .2s;
  animation: wa-pulse 2.4s ease-out infinite;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 12px 28px rgba(37,211,102,.5); }
@keyframes wa-pulse {
  0% { box-shadow: 0 8px 20px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 8px 20px rgba(37,211,102,.4), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 8px 20px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .tcards { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .why-grid { gap: 2rem; }

  /* Header */
  .nav { display: none; }
  .hamburger { display: flex; margin-left: auto; }
  .header-actions { display: none; }
  .nav.open {
    display: flex; flex-direction: column;
    position: fixed; top: 76px; left: 0; right: 0; bottom: 0;
    background: #0D1B2A; padding: 2rem 1.5rem; gap: 1.25rem; z-index: 99; overflow-y: auto;
    align-items: center; justify-content: flex-start;
  }
  .nav.open a { font-size: 1.25rem; color: #fff; font-weight: 500; padding: .5rem 0; }
  .nav.open .nav-phone {
    display: inline-flex; align-items: center; gap: .4rem;
    color: rgba(255,255,255,.75) !important; font-size: .95rem !important;
  }
  .nav.open .nav-cta {
    display: inline-flex; align-items: center; justify-content: center;
    margin-top: 1.5rem;
    background: #4FA3D1; color: #fff !important;
    padding: .9rem 2rem; border-radius: 9999px;
    font-size: 1rem !important; font-weight: 600;
    min-width: 240px; text-align: center;
  }

  /* Hero single column */
  .hero { padding: 0; min-height: 100svh; }
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; padding: 8rem 1.5rem 5rem; }
  .hero-visual { display: none; }
  .hero-text h1 { font-size: 3rem; }
  .hero-sub { font-size: 1rem; }
}

@media (max-width: 768px) {
  /* Compact header */
  .header-inner { height: 60px; }
  .logo img { height: 28px; }
  .nav.open { top: 60px; padding-top: 2.5rem; }

  /* Section spacing */
  .section-white, .section-light, .testimonials-light, .not-sure-section, .cta-section { padding: 72px 0; }
  .section-header-center { margin-bottom: 2.5rem; }
  .section-sub { font-size: 1rem; padding: 0 .5rem; }

  .split-section { grid-template-columns: 1fr; gap: 2.5rem; }
  .split-text h2 { font-size: 2.2rem; }
  .split-text p, .split-highlight { font-size: 1rem !important; }

  /* Not sure section — more visible background */
  .not-sure-bg { opacity: .18; }
  .not-sure-content::before {
    content: ""; position: absolute; inset: -80px 0;
    background: linear-gradient(180deg, rgba(27,38,59,.85), rgba(27,38,59,.7));
    z-index: -1;
  }
  .not-sure-section p { font-size: 1rem; margin-bottom: 2rem; }

  /* CTA — white button for contrast */
  .cta-section { padding: 80px 0; }
  .btn-cta-dark { background: #fff; color: #0D1B2A; height: 52px; padding: 0 36px; font-size: 1rem; }
  .btn-cta-dark:hover { background: #F4F8FB; color: #0D1B2A; }

  .services-grid { grid-template-columns: 1fr; }
  .tcards { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 2rem; }

  .section-header-center h2 { font-size: 2rem; }
  .not-sure-section h2 { font-size: 2rem; }
  .cta-section h2 { font-size: 2.2rem; }

  .footer { padding: 0 0 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; padding: 56px 0 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact-bar { grid-template-columns: 1fr; gap: 1.25rem; padding-top: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; padding-top: 1.5rem; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: .75rem; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; gap: .75rem; }
  .btn-primary { width: 100%; justify-content: center; }
}

/* ===== Blog archive & single — v2 (WeClinic palette) ===== */

/* Hero */
.blog-archive, .blog-single { background:#fff; }
.blog-hero {
  background: #0D1B2A;
  background-image: linear-gradient(135deg, #0D1B2A 0%, #1B263B 100%);
  padding: 180px 0 80px;
  color:#fff;
  position: relative;
  overflow: hidden;
  text-align:center;
}
.blog-hero::before {
  content: "";
  position:absolute; inset:0;
  background: radial-gradient(ellipse at top, rgba(79,163,209,.18), transparent 60%);
  pointer-events:none;
}
.blog-hero .container { position:relative; z-index:1; }
.blog-hero .blog-eyebrow {
  display:inline-block;
  background: rgba(79,163,209,.18); color:#74C0E3;
  padding: 6px 14px; border-radius: 999px;
  font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px;
  margin-bottom: 18px;
}
.blog-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  font-weight: 700; color:#fff;
  margin: 0 0 16px; line-height: 1.05;
}
.blog-hero-sub {
  color: rgba(255,255,255,.82);
  max-width: 720px; margin: 0 auto;
  font-size: 1.125rem; line-height: 1.65;
}

/* List section */
.blog-list-section { padding: 88px 0 96px; background:#F4F8FB; }
.blog-grid {
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}

/* Card */
.blog-card {
  background:#fff;
  border-radius: 18px;
  overflow:hidden;
  display:flex; flex-direction:column;
  box-shadow: 0 4px 18px rgba(13,27,42,.06);
  transition: transform .25s ease, box-shadow .25s ease;
  border: 1px solid rgba(79,163,209,.08);
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(13,27,42,.14);
}
.blog-card-img {
  display:block;
  aspect-ratio: 16/10;
  overflow:hidden;
  background:#EBF5FB;
  position: relative;
}
.blog-card-img img {
  width:100%; height:100%; object-fit:cover; display:block;
  transition: transform .5s ease;
}
.blog-card:hover .blog-card-img img { transform: scale(1.05); }

.blog-card-body { padding: 26px 26px 28px; display:flex; flex-direction:column; gap: 12px; flex: 1; }
.blog-card-meta {
  display:flex; align-items:center; gap: 12px;
  font-size: .85rem; color:#5A6A75;
}
.blog-card-cat {
  background:#EBF5FB; color:#4FA3D1;
  padding: 4px 12px; border-radius: 999px;
  font-weight: 600; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .6px;
}
.blog-card-meta time::before { content: "·"; margin-right: 8px; color:#B5C2CC; }
.blog-card-title { margin: 4px 0 6px; font-size: 1.22rem; line-height: 1.35; font-weight: 700; }
.blog-card-title a { color:#0D1B2A; transition: color .2s; }
.blog-card-title a:hover { color:#4FA3D1; }
.blog-card-excerpt {
  color:#5A6A75; font-size: .98rem; line-height: 1.6;
  margin: 0 0 8px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-link {
  color:#4FA3D1; font-weight:600; text-decoration:none;
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap .2s ease;
}
.blog-card-link:hover { gap: 10px; color:#74C0E3; }

/* Pagination */
.blog-pagination { margin-top: 64px; display:flex; justify-content:center; }
.blog-pagination .nav-links { display:flex; gap: 8px; flex-wrap:wrap; }
.blog-pagination .page-numbers {
  display:inline-flex; align-items:center; justify-content:center;
  min-width: 42px; height: 42px; padding: 0 14px;
  border-radius: 10px;
  background:#fff; border:1px solid #DBE6EE;
  color:#1B263B; text-decoration:none;
  font-weight:500; font-size:.95rem;
  transition: all .2s;
}
.blog-pagination .page-numbers:hover { border-color:#4FA3D1; color:#4FA3D1; }
.blog-pagination .page-numbers.current {
  background:#4FA3D1; color:#fff; border-color:#4FA3D1;
}

/* Single post */
.post-hero {
  background: #0D1B2A;
  background-image: linear-gradient(135deg, #0D1B2A 0%, #1B263B 100%);
  padding: 160px 0 56px;
  color:#fff;
  position: relative; overflow:hidden;
}
.post-hero::before {
  content: ""; position:absolute; inset:0;
  background: radial-gradient(ellipse at top right, rgba(79,163,209,.20), transparent 60%);
  pointer-events:none;
}
.post-hero .container { position:relative; z-index:1; max-width: 860px; }
.post-meta-top {
  display:flex; align-items:center; gap: 12px;
  font-size:.85rem; color: rgba(255,255,255,.7);
  margin-bottom: 18px; flex-wrap:wrap;
}
.post-cat {
  background: rgba(79,163,209,.22); color:#74C0E3;
  padding: 4px 12px; border-radius: 999px;
  font-weight:600; font-size:.72rem;
  text-transform:uppercase; letter-spacing:.6px;
  text-decoration:none;
}
.post-cat:hover { background: rgba(79,163,209,.35); }
.post-date::before { content: "·"; margin-right: 8px; color: rgba(255,255,255,.4); }
.post-title {
  font-size: clamp(1.9rem, 3.8vw, 2.85rem);
  color:#fff; margin: 0 0 16px;
  line-height: 1.18; font-weight: 700;
}
.post-excerpt {
  font-size: 1.15rem; color: rgba(255,255,255,.82);
  line-height: 1.55; margin: 0; max-width: 760px;
}

.post-featured { padding: 0; background:#F4F8FB; }
.post-featured .container { max-width: 1100px; transform: translateY(-48px); margin-bottom: -48px; padding-bottom: 0; }
.post-featured img {
  width:100%; max-height: 520px; object-fit:cover;
  border-radius: 20px;
  display:block;
  box-shadow: 0 20px 50px rgba(13,27,42,.22);
}

.post-body {
  max-width: 760px; padding: 64px 24px 56px;
  font-size: 1.07rem; line-height: 1.78; color:#1B263B;
}
.post-body h2 {
  color:#0D1B2A; font-size: 1.6rem; font-weight: 700;
  margin: 44px 0 14px; line-height: 1.3;
}
.post-body h2:first-child { margin-top: 0; }
.post-body p { margin: 0 0 18px; }
.post-body ul, .post-body ol { padding-left: 22px; margin: 0 0 22px; }
.post-body ul li, .post-body ol li { margin-bottom: 10px; }
.post-body a { color:#4FA3D1; font-weight: 500; }
.post-body a:hover { color:#74C0E3; text-decoration: underline; }
.post-body strong { color:#0D1B2A; }

/* Post navigation */
.post-nav {
  display:flex; justify-content:space-between; gap: 20px;
  padding: 24px 24px 64px;
  max-width: 760px;
  border-top: 1px solid #E2EBF1;
  margin-top: 24px;
  padding-top: 32px;
}
.post-nav > div { flex: 1; }
.post-nav > div:last-child { text-align: right; }
.post-nav a {
  color:#4FA3D1; text-decoration:none; font-weight:600;
  font-size: .95rem; display:inline-block;
  transition: color .2s;
}
.post-nav a:hover { color:#74C0E3; }

/* CTA strip reused */
.blog-archive .cta-strip, .blog-single .cta-strip { background:#0D1B2A; padding: 72px 0; text-align:center; }
.blog-archive .cta-strip h2, .blog-single .cta-strip h2 {
  color:#fff; font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 24px; font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
  .blog-hero { padding: 140px 0 60px; }
  .post-hero { padding: 130px 0 48px; }
  .blog-list-section { padding: 56px 0 64px; }
  .blog-grid { grid-template-columns: 1fr; gap: 24px; }
  .post-featured .container { transform: translateY(-32px); margin-bottom: -32px; }
  .post-body { padding: 40px 20px 40px; font-size: 1.02rem; }
  .post-nav { flex-direction:column; padding: 24px 20px 48px; }
  .post-nav > div:last-child { text-align: left; }
}

@media (max-width: 1200px) { .blog-grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 900px)  { .blog-grid { grid-template-columns: repeat(2, 1fr) !important; } }

/* ============================================================
   WEC LEAD FORM + MODAL (added 2026-06-08)
   Palette: navy #0D1B2A · blue #4FA3D1 · light-blue #74C0E3
            bg #F4F8FB · text #1B263B · light-border #DBE6EE
   ============================================================ */

/* ----- Honeypot ----- */
.wec-hp { display: none; }

/* ----- Form layout ----- */
.wec-form {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.wec-form-row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 540px) {
  .wec-form-row--2 { grid-template-columns: 1fr; }
}

.wec-form-group {
  display: flex;
  flex-direction: column;
  gap: .375rem;
}

.wec-form-group label {
  font-size: .875rem;
  font-weight: 600;
  color: #0D1B2A;
}

.wec-form-group label span.wec-optional {
  font-weight: 400;
  color: #5A6A75;
  font-size: .8rem;
}

.wec-form-group label span[aria-hidden] {
  color: #E05353;
  margin-left: 2px;
}

.wec-form-group input,
.wec-form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid #C8D9E6;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  color: #1B263B;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.wec-form-group input::placeholder,
.wec-form-group textarea::placeholder {
  color: #9BADB9;
}

.wec-form-group input:focus,
.wec-form-group textarea:focus {
  border-color: #4FA3D1;
  box-shadow: 0 0 0 3px rgba(79,163,209,.18);
}

.wec-form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Feedback */
.wec-form-feedback {
  font-size: .9rem;
  min-height: 1.2em;
}
.wec-form-feedback--error {
  color: #C0392B;
  background: rgba(192,57,43,.07);
  border: 1px solid rgba(192,57,43,.2);
  border-radius: 8px;
  padding: .6rem .9rem;
}

/* Submit button — reuse btn-cta-dark, minor tweaks */
.wec-form button[type="submit"] {
  align-self: center;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

/* Override cta-section to allow form content */
.cta-section .cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

/* ----- Modal ----- */
.wec-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.wec-modal[hidden] {
  display: none;
}

.wec-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13,27,42,.65);
  opacity: 0;
  transition: opacity .26s ease;
}

.wec-modal--visible .wec-modal-backdrop {
  opacity: 1;
}

.wec-modal-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem 2rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(13,27,42,.22);
  transform: scale(.92);
  opacity: 0;
  transition: transform .26s cubic-bezier(.34,1.36,.64,1), opacity .22s ease;
}

.wec-modal--visible .wec-modal-card {
  transform: scale(1);
  opacity: 1;
}

.wec-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.125rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #5A6A75;
  cursor: pointer;
  line-height: 1;
  padding: .25rem;
  transition: color .15s;
}
.wec-modal-close:hover { color: #0D1B2A; }

.wec-modal-icon {
  margin: 0 auto 1.25rem;
  width: 64px;
  height: 64px;
}

.wec-modal-icon svg {
  width: 64px;
  height: 64px;
}

.wec-modal-card h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0D1B2A;
  margin: 0 0 .75rem;
}

.wec-modal-card p {
  color: #4A5568;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1.75rem;
}

.wec-modal-btn-close {
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  min-width: 120px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .wec-modal-card { padding: 2rem 1.25rem 1.5rem; }
  .cta-section h2 { font-size: 2rem !important; }
}
