/*
 * footer.css — Custom Footer Styles (Modern v3.0)
 * Dark glassmorphism · consistent palette · refined micro-interactions
 */

/* ── Hide Kadence Default Footer ─────────── */
.site-footer,
.kadence-site-footer,
.footer-area,
.wp-block-kadence-footer,
footer.site-footer {
  display: none !important;
}


/* ════════════════════════════════════════════
   CTA BANNER
════════════════════════════════════════════ */

.footer-cta {
  background: #fff;
  padding: 24px 0;
  position: relative;
  overflow: hidden;
}

/* Dot-grid texture */
.footer-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(13,61,26,.045) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  z-index: 0;
}

/* Gold ambient glow — right side */
.footer-cta::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -60px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201,162,39,.10) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.footer-cta-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* ── Text block ─── */
.footer-cta-text {
  flex: 1;
  max-width: 600px;
  position: relative;
  padding-left: 24px;
}

/* Slim gold left accent bar */
.footer-cta-text::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 0;
  bottom: 2px;
  width: 3px;
  background: linear-gradient(180deg, var(--go) 0%, var(--gli) 50%, transparent 100%);
  border-radius: 2px;
}

.footer-cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--gm);
  margin-bottom: 9px;
}

.footer-cta-eyebrow::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 2px;
  background: var(--go);
  border-radius: 1px;
  flex-shrink: 0;
}

.footer-cta-text h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(15px, 1.7vw, 22px);
  font-weight: 900;
  color: #0a2410;
  margin: 0 0 10px;
  line-height: 1.25;
  letter-spacing: -0.3px;
}

/* Supporting paragraph */
.footer-cta-lead {
  font-size: 13px;
  color: #4a6650;
  line-height: 1.68;
  margin: 0;
  font-weight: 400;
}

/* ── Action block ─── */
.footer-cta-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 22px;
  background: var(--gm);
  color: var(--wh) !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 6px 24px rgba(13,61,26,.28), 4px 4px 0 #0a2410;
  transition: all .25s var(--ez);
  animation: ctaPulse 4s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

/* Shimmer sweep */
.footer-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
  transition: left .5s;
}

.footer-cta-btn:hover::before { left: 100%; }

.footer-cta-btn:hover {
  background: linear-gradient(135deg, var(--go), var(--gli));
  color: var(--gd) !important;
  transform: translate(-2px, -2px);
  box-shadow: 0 10px 32px rgba(201,162,39,.38), 6px 6px 0 rgba(160,124,16,.28);
  animation: none;
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(13,61,26,.28), 4px 4px 0 #0a2410; }
  50%       { box-shadow: 0 10px 32px rgba(13,61,26,.42), 4px 4px 0 #0a2410; }
}

.footer-cta-btn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 #0a2410;
  animation: none;
}

.footer-cta-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  flex-shrink: 0;
  transition: transform .3s var(--ez);
}

.footer-cta-btn:hover svg { transform: translateX(5px); }

/* Star rating note */
.footer-cta-note {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: #555;
  margin: 0;
  white-space: nowrap;
}

.footer-cta-note-stars {
  color: #c9a227;
  font-size: 11px;
  letter-spacing: 1.5px;
  line-height: 1;
}

.footer-cta-note strong {
  color: var(--gd);
  font-weight: 800;
}


/* ════════════════════════════════════════════
   MAIN FOOTER
════════════════════════════════════════════ */

.site-custom-footer {
  background: linear-gradient(160deg, #0a2e14 0%, #051209 100%);
  padding: 64px 0 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.04);
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

/* Dot-grid texture */
.site-custom-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
  z-index: 0;
}

/* Gold ambient glow — top right */
.site-custom-footer::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(201,162,39,.055) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr 1.2fr;
  gap: 56px;
  padding-bottom: 52px;
}


/* ── Column Headings ─────────────────────── */

.footer-col h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 22px;
  padding-bottom: 14px;
  position: relative;
  letter-spacing: 0;
  line-height: 1.3;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--go), var(--gli));
  border-radius: 2px;
}


/* ── Col 1: Introduction ─────────────────── */

.footer-intro p {
  font-size: 13.5px;
  color: rgba(255,255,255,.60);
  line-height: 1.88;
  margin: 0 0 16px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo a {
  text-decoration: none;
  display: inline-block;
  transition: opacity .25s var(--ez);
}

.footer-logo a:hover { opacity: 0.8; }

.footer-logo-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--wh);
  font-family: 'Cinzel', 'Playfair Display', serif;
  letter-spacing: 1px;
}


/* ── Col 1: Social icons ─────────────────── */

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.footer-social-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  transition: background .2s, border-color .2s, transform .18s;
  flex-shrink: 0;
}
.footer-social-btn:hover {
  background: #c9a227;
  border-color: #c9a227;
  transform: translateY(-2px);
}
.footer-social-btn svg {
  width: 16px;
  height: 16px;
  fill: rgba(255,255,255,.80);
  transition: fill .2s;
}
.footer-social-btn:hover svg { fill: #0d3d1a; }

/* ── Col 2: Links ────────────────────────── */

.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}

.footer-links-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-grid ul li {
  margin-bottom: 11px;
}

.footer-links-grid ul li a {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,.60);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color .22s var(--ez), padding-left .22s var(--ez);
  line-height: 1.4;
}

/* Gold dot bullet */
.footer-links-grid ul li a::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--go);
  flex-shrink: 0;
  transition: transform .22s var(--ez), background .22s var(--ez);
}

.footer-links-grid ul li a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-links-grid ul li a:hover::before {
  transform: scale(1.5);
  background: var(--gli);
}


/* ── Col 3: Contact ──────────────────────── */

.footer-contact-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  padding: 14px 16px;
  border-radius: 12px;
  transition: background .25s var(--ez), border-color .25s var(--ez), transform .25s var(--ez);
}

.contact-item:hover {
  background: rgba(255,255,255,.056);
  border-color: rgba(201,162,39,.22);
  transform: translateX(3px);
}

.contact-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(201,162,39,.10);
  border: 1px solid rgba(201,162,39,.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .25s var(--ez), border-color .25s var(--ez);
}

.contact-item:hover .contact-icon {
  background: rgba(201,162,39,.20);
  border-color: rgba(201,162,39,.40);
}

.contact-icon svg {
  width: 16px;
  height: 16px;
  fill: var(--go);
}

.contact-info strong {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255,255,255,.42);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
}

.contact-info a,
.contact-info span {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,.80);
  text-decoration: none;
  transition: color .22s var(--ez);
  line-height: 1.65;
}

.contact-info a:hover { color: var(--gli); }


/* ════════════════════════════════════════════
   TRUST BADGES ROW
════════════════════════════════════════════ */

.footer-badges {
  border-top: 1px solid rgba(255,255,255,.055);
  padding: 28px 0;
  position: relative;
  z-index: 1;
}

.footer-badges-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.badges-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.badge-item {
  background: #fff;
  border: 1px solid rgba(0,0,0,.09);
  border-radius: 12px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 66px;
  flex-shrink: 0;
  transition: border-color .25s var(--ez), transform .25s var(--ez), box-shadow .25s var(--ez);
  cursor: pointer;
}

.badge-item:hover {
  border-color: rgba(201,162,39,.40);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}

.badge-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.3;
}

.badge-stars {
  color: #f9c74f;
  font-size: 11px;
  letter-spacing: 2px;
  margin-top: 3px;
}

/* Trustpilot */
.badge-tp-label {
  font-size: 10px;
  font-weight: 600;
  color: #888;
  letter-spacing: 0.5px;
}

.badge-tp-brand {
  color: #00b67a;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

/* Google */
.badge-google-brand {
  color: #4285f4;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.badge-google-sub {
  font-size: 10px;
  color: #888;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 1px;
}

/* Facebook */
.badge-fb-brand {
  color: #1877f2;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.badge-fb-sub {
  font-size: 10px;
  color: #888;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 1px;
}

/* Teacher */
.badge-teacher-icon {
  font-size: 22px;
  margin-bottom: 2px;
}

.badge-teacher-title {
  font-size: 10px;
  color: #333;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-teacher-sub {
  font-size: 10px;
  color: #777;
  font-weight: 500;
}

/* TrustedSite */
.badge-trust-check {
  color: var(--gm);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.badge-trust-brand {
  font-size: 11px;
  color: #222;
  letter-spacing: -0.2px;
  margin-top: 2px;
  font-weight: 800;
}

.badge-trust-sub {
  font-size: 9px;
  color: #888;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 1px;
  font-weight: 600;
}


/* ════════════════════════════════════════════
   FOOTER BOTTOM BAR
════════════════════════════════════════════ */

.footer-bottom {
  background: #f0ffe8;
  position: relative;
  z-index: 1;
}

.footer-bottom-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 13px;
  color: #3a5a3a;
  font-weight: 500;
  letter-spacing: 0.2px;
  margin: 0;
}

.footer-copy a {
  color: var(--gd);
  text-decoration: none;
  font-weight: 700;
  transition: color .22s var(--ez);
}

.footer-copy a:hover { color: var(--gm); }

.footer-credit {
  font-size: 12px;
  color: #6a8a6a;
  font-weight: 500;
  letter-spacing: 0.2px;
  margin: 0;
}

.footer-credit strong {
  color: #3a5a3a;
  font-weight: 700;
}


/* ════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
  }
  .footer-col:last-child { grid-column: 1 / -1; }
  .footer-contact-items {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }
  .contact-item {
    flex: 1;
    min-width: 240px;
  }
}

@media (max-width: 900px) {
  .footer-cta-inner   { gap: 36px; }
  .footer-cta-text    { max-width: 100%; }
}

@media (max-width: 768px) {
  .footer-cta              { padding: 28px 0; }
  .footer-cta-inner        { flex-direction: column; gap: 20px; }
  .footer-cta-text         { padding-left: 16px; }
  .footer-cta-text::before { display: none; }
  .footer-cta-eyebrow      { font-size: 9.5px; letter-spacing: 1.8px; margin-bottom: 7px; }
  .footer-cta-text h2      { font-size: 16px; margin-bottom: 10px; }
  .footer-cta-lead         { font-size: 13px; line-height: 1.65; }
  .footer-cta-action       { width: 100%; align-items: flex-start; gap: 10px; }
  .footer-cta-btn          { padding: 11px 22px; font-size: 12px; }
  .footer-cta-note         { font-size: 11.5px; white-space: normal; }
  .footer-grid             { grid-template-columns: 1fr; gap: 36px; }
  .footer-col:last-child   { grid-column: auto; }
  .footer-contact-items    { flex-direction: column; }
  .contact-item            { min-width: unset; }
  .badges-grid             { gap: 10px; }
  .badge-item              { min-width: 130px; padding: 10px 16px; height: 62px; }
}

@media (max-width: 560px) {
  .site-custom-footer  { padding: 44px 0 0; }
  .footer-inner,
  .footer-badges-inner,
  .footer-bottom-inner,
  .footer-cta-inner    { padding: 0 16px; }
  .footer-cta-text     { padding-left: 12px; }
  .footer-links-grid   { grid-template-columns: 1fr; gap: 12px; }
  .footer-links-grid ul li { margin-bottom: 10px; }
  .footer-bottom-inner { padding: 16px; flex-direction: column; text-align: center; gap: 8px; }
  .badges-grid         { gap: 8px; }
  .badge-item          { min-width: calc(50% - 4px); flex: 1; padding: 10px 12px; height: 58px; }
}
