/* ============================================================
   PHPSite additions: nicer mobile select, light theme
   Loaded AFTER style.css so it can override.
   ============================================================ */

/* Mobile: leads "select" cell as a clear labelled pill */
@media (max-width: 820px) {
  .leads-table td.check {
    display: flex; align-items: center; gap: 0.6rem; justify-content: flex-start;
    background: rgba(201,168,76,0.06); border: 1px solid var(--border-light);
    border-radius: var(--radius); padding: 0.6rem 0.85rem; margin: 0 0 0.7rem;
  }
  .leads-table td.check::before {
    content: "Select for export / bulk"; order: 2; display: inline;
    color: var(--gold); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600;
  }
  .leads-table td.check input[type="checkbox"] { width: 20px; height: 20px; }
}

/* ============================================================
   LIGHT THEME  (data-theme="light")
   ============================================================ */
:root[data-theme="light"] {
  --dark: #f4f1ea; --dark-2: #faf8f2; --dark-3: #ffffff; --dark-4: #f2eee4;
  --dark-5: #ece7db; --dark-6: #d8d2c4; --mid-grey: #8a8275; --light-grey: #6a6357;
  --white: #1e1a12; --border: rgba(201,168,76,0.5); --border-light: rgba(0,0,0,0.08);
  --shadow: 0 4px 24px rgba(0,0,0,0.08); --shadow-gold: 0 4px 24px rgba(201,168,76,0.25);
}
:root[data-theme="light"] body { background: var(--dark); color: var(--white); }
/* Public: keep hero/ticker/footer/cta as designed (dark, brand) */
:root[data-theme="light"] .site-footer { background: #0d0d0d; }
:root[data-theme="light"] .cta-banner, :root[data-theme="light"] .member-banner { color: #fff; }
/* Flip translucent-white body text to dark for readability on light surfaces */
:root[data-theme="light"] .about-text p, :root[data-theme="light"] .lead-text,
:root[data-theme="light"] .about-card p, :root[data-theme="light"] .values-list li,
:root[data-theme="light"] .division-body p, :root[data-theme="light"] .division-services li,
:root[data-theme="light"] .section-desc, :root[data-theme="light"] .why-card p,
:root[data-theme="light"] .process-step p, :root[data-theme="light"] .testimonial-card > p,
:root[data-theme="light"] .tab-text > p, :root[data-theme="light"] .service-detail-item p,
:root[data-theme="light"] .contact-info-item p, :root[data-theme="light"] .contact-info-item a,
:root[data-theme="light"] .contact-divisions-quick li, :root[data-theme="light"] .page-hero p,
:root[data-theme="light"] .detail-item .v, :root[data-theme="light"] .tl-detail,
:root[data-theme="light"] .kpi-sub, :root[data-theme="light"] .recent-item .meta,
:root[data-theme="light"] .breakdown-top { color: #45403a !important; }
:root[data-theme="light"] .service-detail-item { background: #faf8f2; }
/* Form controls on light */
:root[data-theme="light"] .form-group input, :root[data-theme="light"] .form-group select,
:root[data-theme="light"] .form-group textarea, :root[data-theme="light"] .filter-row input,
:root[data-theme="light"] .ui-select-btn, :root[data-theme="light"] .internal-panel input,
:root[data-theme="light"] .internal-panel select, :root[data-theme="light"] .internal-panel textarea,
:root[data-theme="light"] .admin-toolbar input, :root[data-theme="light"] .admin-toolbar select {
  background: #fff; border-color: rgba(0,0,0,0.15); color: var(--white);
}
/* Table borders on light */
:root[data-theme="light"] .leads-table th, :root[data-theme="light"] .leads-table td,
:root[data-theme="light"] .detail-item, :root[data-theme="light"] .recent-item,
:root[data-theme="light"] .contact-info-item { border-color: rgba(0,0,0,0.08); }
:root[data-theme="light"] .leads-table tr:hover td { background: rgba(201,168,76,0.06); }
:root[data-theme="light"] .ui-select-panel, :root[data-theme="light"] .menu, :root[data-theme="light"] .notif-panel { background: #fff; }
:root[data-theme="light"] .ui-select-opt, :root[data-theme="light"] .menu button { color: var(--white); }
:root[data-theme="light"] .msg-box { background: #f4f1ea; color: #45403a; }

/* ---- Page editor ---- */
.editor-toolbar { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; padding: 0.5rem; background: rgba(0,0,0,0.2); border: 1px solid var(--border-light); border-bottom: none; border-radius: var(--radius) var(--radius) 0 0; }
.editor-toolbar button { min-width: 34px; height: 32px; padding: 0 0.6rem; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 6px; color: rgba(255,255,255,0.85); cursor: pointer; font-size: 0.85rem; font-weight: 700; }
.editor-toolbar button:hover { background: rgba(201,168,76,0.15); color: var(--gold); border-color: var(--border); }
.tb-sep { width: 1px; height: 20px; background: var(--border-light); margin: 0 0.25rem; }
.editor { min-height: 320px; max-height: 60vh; overflow-y: auto; padding: 1.25rem 1.5rem; background: rgba(0,0,0,0.25); border: 1px solid var(--border-light); border-radius: 0 0 var(--radius) var(--radius); color: rgba(255,255,255,0.9); line-height: 1.8; outline: none; }
.editor:focus { border-color: var(--border); }
.editor h2 { font-family: var(--font-body); font-size: 1.3rem; color: var(--gold); margin: 1.5rem 0 0.6rem; }
.editor h2:first-child { margin-top: 0; }
.editor h3 { font-family: var(--font-body); font-size: 1.05rem; margin: 1.1rem 0 0.4rem; }
.editor p { margin-bottom: 0.85rem; }
.editor ul, .editor ol { padding-left: 1.5rem; margin-bottom: 0.85rem; }
.editor a { color: var(--gold); }
:root[data-theme="light"] .editor, :root[data-theme="light"] .editor-toolbar { background: #fff; }
:root[data-theme="light"] .editor { color: #333; }
:root[data-theme="light"] .editor-toolbar button { background: #f2eee4; color: #333; }

/* ============================================================
   2026 REDESIGN — allies focus: hero pills, services, claims,
   membership/ally section, how-it-works
   ============================================================ */

/* Hero feature pills (replaced the placeholder statistics) */
.hero-features { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; justify-content: center; margin-top: 2.25rem; }
.hero-feature { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; color: rgba(255,255,255,0.88); background: rgba(201,168,76,0.08); border: 1px solid var(--border); padding: 0.5rem 1.1rem; border-radius: 100px; }
.hero-feature i { color: var(--gold); }

/* Standalone gold pill (used in section headers) */
.section-header .badge-20 { display: inline-block; background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: #0d0d0d; font-weight: 800; font-size: 0.82rem; padding: 0.32rem 1.05rem; border-radius: 100px; margin-bottom: 1rem; letter-spacing: 0.04em; }

/* ---- Services ---- */
.svc-category { margin-bottom: 3.25rem; }
.svc-category:last-of-type { margin-bottom: 0; }
.svc-category-head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.75rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-light); }
.svc-category-head i { font-size: 1.5rem; color: var(--gold); }
.svc-category-head h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.04em; text-transform: uppercase; }
/* Explicit columns so rows are always even (both groups divide by 3 on desktop) */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.svc-card { display: flex; flex-direction: column; background: var(--dark-2); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 1.85rem; transition: var(--transition); }
.svc-card:hover { border-color: var(--gold); box-shadow: var(--shadow-gold); transform: translateY(-5px); }
.svc-icon { width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: rgba(201,168,76,0.1); color: var(--gold); font-size: 1.35rem; margin-bottom: 1.15rem; transition: var(--transition); }
.svc-card:hover .svc-icon { background: var(--gold); color: #0d0d0d; }
.svc-card h4 { font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; margin-bottom: 0.65rem; }
.svc-card p { color: rgba(255,255,255,0.62); font-size: 0.92rem; line-height: 1.75; margin-bottom: 1.35rem; }
.svc-cta { margin-top: auto; display: inline-flex; align-items: center; gap: 0.5rem; color: var(--gold); font-weight: 600; font-size: 0.9rem; }
.svc-cta i { transition: var(--transition); }
.svc-cta:hover i { transform: translateX(4px); }
.svc-more { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-top: 3rem; padding: 1.85rem 2rem; background: var(--dark-2); border: 1px dashed var(--border); border-radius: var(--radius-lg); }
.svc-more h4 { font-family: var(--font-body); font-weight: 700; font-size: 1.1rem; margin-bottom: 0.35rem; }
.svc-more p { color: rgba(255,255,255,0.62); font-size: 0.92rem; max-width: 620px; }

/* ---- Claims band ---- */
.claims-band { background: linear-gradient(135deg, var(--dark-2), var(--dark-3)); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.claims-inner { display: flex; align-items: center; gap: 2.5rem; }
.claims-icon { flex-shrink: 0; width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; border-radius: 24px; background: rgba(201,168,76,0.1); border: 1px solid var(--border); color: var(--gold); font-size: 3rem; }
.claims-text { max-width: 720px; }
.claims-text .section-title { margin: 0.25rem 0 1rem; }
.claims-text p { color: rgba(255,255,255,0.68); line-height: 1.85; }

/* ---- Membership / Ally section ---- */
.ally-section { background: var(--dark-2); }
.ally-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: stretch; }
.ally-benefits { background: var(--dark-3); border: 1px solid var(--border-light); border-radius: var(--radius-lg); padding: 2.25rem; }
.ally-benefits h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.25rem; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.6rem; }
.benefit-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1.5rem; }
.benefit-list li { display: flex; align-items: flex-start; gap: 0.65rem; color: rgba(255,255,255,0.82); font-size: 0.94rem; line-height: 1.5; }
.benefit-list li i { color: var(--gold); margin-top: 0.2rem; flex-shrink: 0; }
.ally-cta-card { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2.5rem 2rem; border-radius: var(--radius-lg); background: linear-gradient(160deg, rgba(201,168,76,0.16), rgba(201,168,76,0.04)); border: 1px solid var(--gold); }
.ally-free { font-family: var(--font-heading); font-weight: 800; font-size: 2.6rem; color: var(--gold); line-height: 1; margin-bottom: 0.75rem; letter-spacing: 0.02em; }
.ally-cta-card h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.35rem; margin-bottom: 0.75rem; }
.ally-cta-card p { color: rgba(255,255,255,0.72); font-size: 0.94rem; line-height: 1.7; margin-bottom: 1.75rem; max-width: 340px; }
.ally-note { margin-top: 1rem; font-size: 0.8rem; color: var(--light-grey); display: inline-flex; align-items: center; gap: 0.45rem; }
.ally-note i { color: var(--gold); }
.how-it-works { margin-top: 3.5rem; }

/* Light-theme fixes for the new dark-on-dark sections */
:root[data-theme="light"] .svc-card, :root[data-theme="light"] .svc-more,
:root[data-theme="light"] .ally-section, :root[data-theme="light"] .ally-benefits,
:root[data-theme="light"] .claims-band { background: #faf8f2; }
:root[data-theme="light"] .svc-card p, :root[data-theme="light"] .svc-more p,
:root[data-theme="light"] .claims-text p, :root[data-theme="light"] .benefit-list li,
:root[data-theme="light"] .ally-cta-card p, :root[data-theme="light"] .hero-feature { color: #45403a; }
:root[data-theme="light"] .ally-benefits { background: #fff; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .ally-grid { grid-template-columns: 1fr; }
  .claims-inner { flex-direction: column; text-align: center; gap: 1.5rem; }
  .claims-icon { width: 96px; height: 96px; font-size: 2.4rem; }
  .claims-text .hero-buttons { justify-content: center; }
}
@media (max-width: 560px) {
  .benefit-list { grid-template-columns: 1fr; }
  .svc-more { flex-direction: column; align-items: flex-start; text-align: left; }
  .svc-category-head { flex-wrap: wrap; }
}

/* ============================================================
   SPACING FIXES + FULL MOBILE PASS (loads last, wins cascade)
   ============================================================ */

/* Hero: tighten the gap between buttons and the new feature pills */
.hero .hero-buttons { margin-bottom: 0; }
.hero-features { margin-top: 2rem; }
/* Re-used button rows inside content sections shouldn't carry the hero's big gap */
.about-text .hero-buttons, .claims-text .hero-buttons, .member-banner .hero-buttons { margin-bottom: 0; }
/* On desktop, keep in-content button rows aligned with their (left-aligned) text */
.about-text .hero-buttons { justify-content: flex-start; }

/* Buttons: centre the label/icon whenever a button is stretched full width */
.btn { justify-content: center; }

/* Admin changelog / version history */
.changelog { max-width: 860px; }
.cl-item { margin-bottom: 1rem; }
.cl-head { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; }
.cl-head h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; margin: 0; flex: 1; }
.cl-ver { display: inline-block; background: linear-gradient(135deg, var(--gold), var(--gold-light)); color: #0d0d0d; font-weight: 800; font-size: 0.8rem; padding: 0.2rem 0.7rem; border-radius: 100px; letter-spacing: 0.02em; }
.cl-date { color: var(--light-grey); font-size: 0.82rem; white-space: nowrap; }
.cl-notes { margin: 0.9rem 0 0.6rem; padding-left: 1.25rem; }
.cl-notes li { color: rgba(255,255,255,0.78); font-size: 0.92rem; line-height: 1.6; margin-bottom: 0.3rem; }
.cl-by { font-size: 0.78rem; color: var(--light-grey); border-top: 1px solid var(--border-light); padding-top: 0.6rem; margin-top: 0.4rem; }
:root[data-theme="light"] .cl-notes li { color: #45403a; }

/* Scroll-spy: highlight the nav item for the section currently in view */
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-links a.nav-cta.active { color: inherit; }
.nav-links a.nav-cta.active::after { transform: scaleX(0); }

/* Tablet */
@media (max-width: 768px) {
  .hero-title { font-size: clamp(2.2rem, 8.5vw, 3rem); line-height: 1.12; }
  .hero-content { padding: 110px 0 64px; }
  .hero-subtitle { margin-bottom: 2rem; }
  .hero-features { gap: 0.6rem 0.7rem; }
  .hero-feature { font-size: 0.82rem; padding: 0.45rem 0.9rem; }
  .svc-category { margin-bottom: 2.5rem; }
  .svc-category-head { margin-bottom: 1.25rem; }
  .claims-text .section-title, .claims-text { text-align: center; }
  .ally-benefits, .ally-cta-card { padding: 1.75rem 1.5rem; }
  /* In-content button rows go full width and centred so they read cleanly */
  .about-text .hero-buttons { justify-content: center; }
  .about-text .hero-buttons .btn, .claims-text .hero-buttons .btn { flex: 1 1 auto; text-align: center; }
}

/* Phones */
@media (max-width: 900px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .svc-grid { grid-template-columns: 1fr; }
  .section-title { font-size: clamp(1.6rem, 6.5vw, 2rem); }
  .hero-badge { font-size: 0.68rem; letter-spacing: 0.12em; padding: 0.4rem 1rem; }
  .ally-free { font-size: 2.2rem; }
  .how-it-works { margin-top: 2.5rem; }
  /* Stack every button row and make buttons full width for easy tapping */
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-buttons .btn { width: 100%; text-align: center; }
}

/* Small phones */
@media (max-width: 400px) {
  .hero-title { font-size: 1.95rem; }
  .hero-subtitle { font-size: 0.96rem; line-height: 1.7; }
  .svc-card, .ally-benefits, .ally-cta-card { padding: 1.4rem; }
}

/* ============================================================
   PHOTOS, ONE-NETWORK, SHOWCASE, DISCOUNT CALLOUT, SOCIAL
   ============================================================ */

/* Shared image frame */
.network-visual img, .claims-visual img, .showcase-item img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
}

/* ---- One Network band ---- */
.network-band { background: linear-gradient(135deg, var(--dark-2), var(--dark-3)); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.network-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.network-text .section-title { line-height: 1.18; margin: 0.25rem 0 1.25rem; }
.network-text p { color: rgba(255,255,255,0.72); line-height: 1.85; font-size: 1.02rem; }
.network-visual { position: relative; }
.network-visual img { aspect-ratio: 16 / 10; box-shadow: var(--shadow-gold); }

/* ---- Showcase ---- */
.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.showcase-item { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.showcase-item img { aspect-ratio: 4 / 3; transition: transform 0.5s ease; }
.showcase-item:hover img { transform: scale(1.05); }
.showcase-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem 1.25rem 1rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
}

/* ---- Claims band with photo ---- */
.claims-text { flex: 1 1 0; max-width: 620px; }
.claims-visual { flex: 1 1 0; }
.claims-visual img { aspect-ratio: 16 / 11; box-shadow: var(--shadow-gold); }

/* ---- 20% discount callout ---- */
.discount-callout {
  display: flex; align-items: center; gap: 1.25rem;
  background: linear-gradient(135deg, rgba(201,168,76,0.16), rgba(201,168,76,0.05));
  border: 1px solid var(--gold); border-radius: var(--radius-lg);
  padding: 1.35rem 1.75rem; margin: 0 auto 2.5rem; max-width: 960px;
}
.discount-callout i { font-size: 1.8rem; color: var(--gold); flex-shrink: 0; }
.discount-callout p { color: rgba(255,255,255,0.85); font-size: 0.96rem; line-height: 1.65; margin: 0; }
.discount-callout strong { color: var(--white); }

/* ---- Follow us / social ---- */
.follow-section { background: var(--dark-2); }
.social-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.social-chip {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.85rem 1.5rem; border-radius: 100px;
  background: var(--dark-3); border: 1px solid var(--border);
  color: var(--white); font-weight: 600; font-size: 0.95rem; transition: var(--transition);
}
.social-chip i { font-size: 1.3rem; }
.social-chip:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow-gold); color: var(--white); }

/* ---- Brand colours (follow-us chips + footer icons) ---- */
.social-chip i.fa-facebook-f, .footer-social a i.fa-facebook-f { color: #1877F2; }
.social-chip i.fa-youtube,    .footer-social a i.fa-youtube    { color: #FF0000; }
.social-chip i.fa-tiktok,     .footer-social a i.fa-tiktok     { color: #25F4EE; }
.social-chip i.fa-snapchat,   .footer-social a i.fa-snapchat   { color: #FFFC00; }
.social-chip i.fa-x-twitter,  .footer-social a i.fa-x-twitter  { color: #ffffff; }
.social-chip i.fa-instagram,  .footer-social a i.fa-instagram  {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
/* keep brand colours on footer icon hover (don't flip to black) */
.footer-social a:hover { background: rgba(201,168,76,0.18); }
.footer-social a:hover i.fa-x-twitter { color: #fff; }
:root[data-theme="light"] .social-chip i.fa-x-twitter,
:root[data-theme="light"] .footer-social a i.fa-x-twitter { color: #111; }

/* Light theme for the new dark sections */
:root[data-theme="light"] .network-band, :root[data-theme="light"] .follow-section { background: #faf8f2; }
:root[data-theme="light"] .network-text p { color: #45403a; }
:root[data-theme="light"] .social-chip { background: #fff; color: #1e1a12; }
:root[data-theme="light"] .discount-callout p { color: #45403a; }

/* ---- Responsive for photo sections ---- */
@media (max-width: 860px) {
  .network-inner { grid-template-columns: 1fr; gap: 2rem; }
  .network-text { text-align: center; }
  .network-text .hero-buttons { justify-content: center; }
  .network-visual img { aspect-ratio: 16 / 9; }
  .claims-visual { width: 100%; }
}
@media (max-width: 760px) {
  .showcase-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .discount-callout { flex-direction: column; text-align: center; gap: 0.75rem; }
}

/* Mobile button stacking also applies to the in-content rows */
@media (max-width: 560px) {
  .claims-text .hero-buttons, .network-text .hero-buttons, .member-banner .hero-buttons { flex-direction: column; align-items: stretch; }
  .claims-text .hero-buttons .btn, .network-text .hero-buttons .btn, .member-banner .hero-buttons .btn { width: 100%; }
  .social-chip { width: 100%; justify-content: center; }
}
