/*
Theme Name: WINGFORGE Kadence Child
Theme URI: https://wingforgerc.com
Description: WINGFORGE brand child theme for Kadence — purple tech direction. Minimal overrides only.
Author: WINGFORGE
Template: kadence
Version: 1.0.2
Text Domain: wingforge-child
*/

/* Brand palette — PURPLE tech direction (see brand/VISUAL-DIRECTION.md)
   --wf-cream  light page background (maps to off-white lilac)
   --wf-green  primary / headings (maps to deep purple)
   --wf-orange accent / CTAs (maps to bright purple)
   These aliases keep the historical structural rules working while the
   actual hues follow the new purple scheme. */
:root{
  --wf-charcoal:#13101d;  /* hero / dark bands */
  --wf-purple-deep:#5b2c90;
  --wf-purple:#7c3aed;     /* buttons / selected */
  --wf-lilac:#f3eefa;
  --wf-cream:#faf9fc;
  --wf-cream-2:#f3eefa;
  --wf-green:#5b2c90;
  --wf-green-2:#6d33ad;
  --wf-orange:#7c3aed;
  --wf-orange-2:#5b2c90;
  --wf-ink:#252330;
  --wf-muted:#6b6877;
  --wf-line:#e6e0f0;
}

body{
  background:var(--wf-cream);
  color:var(--wf-ink);
}

/* Headings adopt deep green */
h1,h2,h3,h4,h5,h6,.entry-title{
  color:var(--wf-green);
}

/* Primary buttons / links accent */
a{color:var(--wf-orange-2);}
.wp-block-button__link,
.button,.btn{
  background:var(--wf-orange);
  border-radius:6px;
}
.wp-block-button.is-style-outline .wp-block-button__link{
  color:var(--wf-green);
  border-color:var(--wf-green);
  background:transparent;
}

/* Brand eyebrow / kicker label */
.wf-eyebrow{
  display:block;
  font-size:12px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--wf-orange-2);
  font-weight:700;
}

/* Status / concept badges */
.wf-badge{
  display:inline-block;
  padding:3px 10px;
  border-radius:999px;
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-weight:700;
}
.wf-badge-future{background:#f6e7db;color:#9c3d14;border:1px solid var(--wf-orange-2);}
.wf-badge-concept{background:#e7ede9;color:var(--wf-green);border:1px solid var(--wf-green-2);}
.wf-badge-pending{background:#f1ece1;color:#5d5133;border:1px solid #b9a87d;}

/* Product / card framing */
.wf-card{
  background:#fff;
  border:1px solid var(--wf-line);
  border-radius:12px;
  padding:22px;
}

/* Container alignment for brand content */
.entry-content.wf-content{max-width:1180px;}

/* Language switcher (header HTML element / shortcode) */
.wf-lang{display:inline-flex;align-items:center;gap:.5rem;flex-wrap:wrap;}
.wf-lang a,.wf-lang span{font-size:14px;font-weight:600;text-decoration:none;}
.wf-lang a{color:inherit;}
.wf-lang .wf-lang-sep{opacity:.4;font-weight:400;}
.wf-lang .wf-lang-current{color:var(--wf-orange-2);}

/* Keep hero tight */
.wf-hero h1{line-height:1.08;}

/* Mobile: prevent badge/button overflow */
@media(max-width:768px){
  .wf-section .wf-section-inner{padding-top:48px;padding-bottom:48px;}
}

/* ---- Full-width colour sections (native constrained group) ---- */
.wf-band{margin:0;}
.wf-band-green{background:#f3eefa;color:#252330;}
.wf-band-green h1,.wf-band-green h2,.wf-band-green h3,.wf-band-green h4{color:#252330;}
.wf-band-green .wf-eyebrow{color:#5b2c90;}
.wf-band-cream2{background:var(--wf-cream-2);}
/* inner width + centering is handled by the native constrained layout
   (contentSize 1180px); only override vertical padding on small screens. */
@media(max-width:768px){
  .wf-band{padding-top:48px !important;padding-bottom:48px !important;
    padding-left:20px !important;padding-right:20px !important;}
}

/* ---- Hero ---- */
.wf-hero-grid{
  display:grid;grid-template-columns:1.05fr .95fr;gap:48px;align-items:center;
}
.wf-hero-art{
  background:#fff;border:1px solid var(--wf-line);border-radius:16px;padding:18px;
}
.wf-hero-art img{display:block;width:100%;height:auto;border-radius:8px;}
.wf-art-meta{
  display:flex;justify-content:space-between;gap:8px;
  font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--wf-muted);
  font-weight:700;padding:4px 4px 12px;
}
.wf-art-cap{
  font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--wf-muted);
  font-weight:700;padding:12px 4px 2px;text-align:center;
}
@media(max-width:900px){
  .wf-hero-grid{grid-template-columns:1fr;gap:28px;}
}

/* ---- Category strip ----
 * After migration the items are core/paragraph blocks (<p>), not <span>.
 * WP 7.x wraps group children in .wp-block-group__inner-container, so flex
 * is applied to that inner container; flow-layout block margins are reset. */
.wf-strip .wp-block-group__inner-container{
  display:flex !important;flex-direction:row;flex-wrap:wrap;gap:0 !important;
  border-top:1px solid var(--wf-line);border-bottom:1px solid var(--wf-line);
  background:var(--wf-cream-2);
}
.wf-strip .wp-block-group__inner-container > p{
  flex:1 1 25%;min-width:140px;margin:0 !important;text-align:center;
  padding:16px 10px;font-size:12px;letter-spacing:.16em;text-transform:uppercase;
  font-weight:700;color:var(--wf-green);
}
.wf-strip .wp-block-group__inner-container > p + p{border-left:1px solid var(--wf-line);}

/* ---- Application cards with inline SVG ---- */
.wf-app-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:22px;
}
.wf-app{
  display:block;text-decoration:none;background:#fff;border:1px solid var(--wf-line);
  border-radius:12px;padding:22px;transition:border-color .15s ease, transform .15s ease;
}
.wf-app:hover{border-color:var(--wf-orange);transform:translateY(-2px);}
.wf-app .wf-card-idx{display:block;}
.wf-app svg{width:100%;height:90px;margin:6px 0 12px;}
.wf-app svg path,.wf-app svg circle,.wf-app svg g{fill:none;stroke:var(--wf-green);stroke-width:3;stroke-linejoin:round;stroke-linecap:round;}
.wf-app h3{margin:0 0 8px;font-size:20px;color:var(--wf-green);}
.wf-app p{margin:0;color:var(--wf-muted);font-size:14px;}
@media(max-width:820px){.wf-app-grid{grid-template-columns:1fr;}}

/* ---- Support numbered list ---- */
.wf-support-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;}
/* Cards on the green band are white -> force a dark foreground so headings
   and body text never inherit the band's light/white colour (contrast fix). */
.wf-support.wf-card{background:#fff;border-color:rgba(255,255,255,.25);color:var(--wf-ink);}
.wf-support.wf-card h3{color:var(--wf-green);margin:8px 0 8px;font-size:18px;}
.wf-support.wf-card p{color:var(--wf-ink);opacity:.8;margin:0;font-size:14px;}
.wf-support .wf-num{
  display:block;font-size:13px;font-weight:800;color:var(--wf-orange-2);letter-spacing:.1em;
}
@media(max-width:820px){.wf-support-grid{grid-template-columns:1fr;}}

/* ---- Product directory cards ---- */
.wf-dir-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:22px;}
.wf-dir-card{
  display:block;background:#fff;border:1px solid var(--wf-line);border-radius:12px;
  padding:24px;text-decoration:none;
}
.wf-dir-card:hover{border-color:var(--wf-orange);}
.wf-dir-card h3{margin:2px 0 10px;font-size:22px;}
.wf-dir-card p{margin:0 0 8px;font-size:14px;color:var(--wf-muted);}
.wf-dir-card .wf-go{font-size:13px;font-weight:700;color:var(--wf-orange-2);}
@media(max-width:760px){.wf-dir-grid{grid-template-columns:1fr;}}

/* ---- Detail: variants / spec table ---- */
.wf-detail-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:22px;}
@media(max-width:760px){.wf-detail-grid{grid-template-columns:1fr;}}
.wf-spec-table{width:100%;border-collapse:collapse;font-size:14px;background:#fff;border-radius:12px;overflow:hidden;border:1px solid var(--wf-line);}
.wf-spec-table th,.wf-spec-table td{padding:12px 16px;text-align:left;border-bottom:1px solid var(--wf-line);vertical-align:top;}
.wf-spec-table th{width:38%;color:var(--wf-green);font-weight:700;background:var(--wf-cream-2);}
.wf-spec-table tr:last-child th,.wf-spec-table tr:last-child td{border-bottom:none;}

/* Back / text link */
.wf-back{font-weight:700;text-decoration:none;}

/* Heading eyebrow spacing inside band */
.wf-band .wf-eyebrow{margin-bottom:10px;}
.wf-band h2+.wf-sub{margin-top:10px;opacity:.8;}

/* Keep editor previews sane */
.wp-block-group.alignfull{padding-left:0;padding-right:0;}

/* Footer brand block */
.wf-footer-note{font-size:12.5px;color:var(--wf-muted);}

/* ---- Home: hide Kadence page-title hero (body h1 lives in the hero band) ---- */
.home .entry-hero.page-hero-section{display:none;}
.home .content-area{margin-top:0;margin-bottom:0;}
.home .entry-content-wrap{padding:0;}
.home .entry.single-entry{box-shadow:none;}

/* ==================================================================
   PURPLE TECH — product catalogue components (CPT shortcode + single)
   ================================================================== */

/* ---- Buttons: bright purple, darkened slightly for white-text contrast ---- */
.wf-btn{
  display:inline-block;padding:11px 22px;border-radius:8px;font-weight:700;
  text-decoration:none;line-height:1;transition:background .15s ease;
}
.wf-btn-primary{background:#6d28d9;color:#fff;}
.wf-btn-primary:hover{background:#5b21b6;color:#fff;}
.wf-btn-outline{background:transparent;color:var(--wf-purple-deep);
  border:1.5px solid var(--wf-purple-deep);}
.wf-btn-outline:hover{background:var(--wf-lilac);color:var(--wf-purple-deep);}

/* ---- Directory grid (shortcode output) ---- */
.wf-product-grid{
  list-style:none;margin:0;padding:0;
  display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:24px;
}
.wf-product-card{margin:0;}
.wf-card-link{
  display:flex;flex-direction:column;height:100%;text-decoration:none;
  background:#fff;border:1px solid var(--wf-line);border-radius:14px;overflow:hidden;
  transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease;
}
.wf-card-link:hover{border-color:var(--wf-purple);box-shadow:0 10px 30px rgba(91,44,144,.12);
  transform:translateY(-3px);}
.wf-card-img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;background:var(--wf-lilac);}
.wf-card-img-ph{display:flex;align-items:center;justify-content:center;
  color:var(--wf-muted);font-size:13px;padding:20px;text-align:center;}
.wf-card-body{display:flex;flex-direction:column;gap:6px;padding:18px 20px 20px;flex:1;}
.wf-card-title{font-size:18px;font-weight:700;color:var(--wf-ink);}
.wf-card-model{font-size:13.5px;color:var(--wf-muted);}
.wf-product-card .wf-badge{align-self:flex-start;margin-top:auto;}

.wf-dir-empty{background:#fff;border:1px solid var(--wf-line);border-radius:14px;padding:32px;text-align:center;color:var(--wf-muted);}

/* purple-tinted status badges (keep the contrast-safe foregrounds) */
.wf-badge-pending{background:var(--wf-lilac);color:#5b21b6;border:1px solid #cbb6ec;}
.wf-badge-verified{background:#e9f6ee;color:#166534;border:1px solid #a7d7ba;}
.wf-badge-future{background:var(--wf-lilac);color:#5b21b6;border:1px solid #cbb6ec;}
.wf-badge-concept{background:#eee8f7;color:var(--wf-purple-deep);border:1px solid #cbb6ec;}

/* ---- Pagination ---- */
.wf-pagination{margin-top:32px;}
.wf-pagination .page-numbers{
  display:inline-block;min-width:38px;padding:8px 10px;margin:0 3px;text-align:center;
  border:1px solid var(--wf-line);border-radius:8px;text-decoration:none;color:var(--wf-ink);font-weight:600;}
.wf-pagination .page-numbers.current{background:var(--wf-purple);border-color:var(--wf-purple);color:#fff;}

/* ---- Single product ---- */
.wf-single{max-width:1180px;margin:0 auto;padding:40px 24px 64px;}
.wf-single-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:44px;align-items:start;}
.wf-single-img{width:100%;height:auto;border-radius:14px;border:1px solid var(--wf-line);display:block;}
.wf-single-img-ph{aspect-ratio:16/10;display:flex;align-items:center;justify-content:center;
  background:var(--wf-lilac);color:var(--wf-muted);}
.wf-single-gallery{list-style:none;margin:14px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:10px;}
.wf-single-gallery img{width:74px;height:74px;object-fit:cover;border-radius:8px;border:1px solid var(--wf-line);}
.wf-single-title{font-size:34px;line-height:1.15;margin:0 0 16px;color:var(--wf-ink);}
.wf-single-meta{margin:0 0 18px;display:grid;grid-template-columns:auto 1fr;gap:6px 16px;align-items:center;}
.wf-single-meta dt{font-weight:700;color:var(--wf-ink);margin:0;}
.wf-single-meta dd{margin:0;color:var(--wf-ink);}
.wf-single-tags{font-size:14px;color:var(--wf-muted);margin:6px 0;}
.wf-single-tags span{color:var(--wf-ink);font-weight:600;}
.wf-single-tags a{color:var(--wf-purple-deep);text-decoration:none;}
.wf-single-manual{margin-top:18px;}

/* light spec section on the product page */
.wf-single-specs{margin-top:44px;background:var(--wf-cream);border:1px solid var(--wf-line);
  border-radius:14px;padding:28px;}
.wf-single-specs h2{font-size:22px;margin:0 0 18px;color:var(--wf-ink);}
.wf-spec-table-front{width:100%;border-collapse:collapse;font-size:14px;}
.wf-spec-table-front th,.wf-spec-table-front td{padding:11px 14px;text-align:left;
  border-bottom:1px solid var(--wf-line);vertical-align:top;}
.wf-spec-table-front thead th{color:var(--wf-purple-deep);font-size:12px;
  text-transform:uppercase;letter-spacing:.06em;background:var(--wf-lilac);}
.wf-spec-table-front tbody th{width:34%;color:var(--wf-ink);font-weight:600;}
.wf-spec-table-front tr:last-child th,.wf-spec-table-front tr:last-child td{border-bottom:none;}
.wf-single-content{margin-top:36px;}

/* ---- Dark charcoal-purple bands (hero) ---- */
.wf-band-charcoal{
  background:radial-gradient(1200px 400px at 80% -10%,rgba(124,58,237,.28),transparent 60%),
    var(--wf-charcoal);
  color:#ece8f5;
}
.wf-band-charcoal h1,.wf-band-charcoal h2,.wf-band-charcoal h3{color:#fff;}
.wf-band-charcoal .wf-eyebrow{color:#c4a8f5;}
.wf-band-charcoal a{color:#d9c7f7;}

@media(max-width:900px){
  .wf-single-grid{grid-template-columns:1fr;gap:28px;}
  .wf-single-title{font-size:27px;}
}

/* ==================================================================
   HERO SAFETY (R1 visual wrap-up)
   1) no clipping: padding + kill the 54%+46%+gap horizontal overflow
   2) contrast-safe buttons & supporting text on the dark charcoal band
   ================================================================== */

/* Full-width band inner content is centered and always padded. */
.wp-block-group.alignfull.wf-band{box-sizing:border-box;}
.wf-band .wp-block-group__inner-container{box-sizing:border-box;}
.wf-band-charcoal .wp-block-group__inner-container.is-layout-constrained{
  width:100%;max-width:1180px;margin-left:auto;margin-right:auto;
  padding-left:24px;padding-right:24px;
}

/* Hero columns: 54% + 46% + the flex gap overflowed the viewport by a few
   px, pushing the left column off-screen. Cap width and let columns shrink. */
.wf-band-charcoal .wp-block-columns{
  width:100%;max-width:100%;margin-left:0;margin-right:0;
}
.wf-band-charcoal .wp-block-column{min-width:0;box-sizing:border-box;}

/* ---- Contrast-safe buttons on the dark band ---- */
/* Primary (filled): white on bright purple (>=4.5:1). */
.wf-band-charcoal .wp-block-buttons .wp-block-button__link{
  background:#7c3aed;
  color:#ffffff;
  border:1.5px solid transparent;
  text-decoration:none;
}
.wf-band-charcoal .wp-block-buttons .wp-block-button__link:hover,
.wf-band-charcoal .wp-block-buttons .wp-block-button__link:focus-visible,
.wf-band-charcoal .wp-block-buttons .wp-block-button__link:active{
  background:#6d28d9;
  color:#ffffff;
}
/* Secondary (outline): light lilac text/border over charcoal. */
.wf-band-charcoal .wp-block-buttons .is-style-outline .wp-block-button__link{
  background:transparent;
  color:#f1e9ff;
  border-color:#b79cf0;
}
.wf-band-charcoal .wp-block-buttons .is-style-outline .wp-block-button__link:hover,
.wf-band-charcoal .wp-block-buttons .is-style-outline .wp-block-button__link:focus-visible,
.wf-band-charcoal .wp-block-buttons .is-style-outline .wp-block-button__link:active{
  background:rgba(124,58,237,.24);
  color:#ffffff;
  border-color:#d9c7f7;
}
/* Always-visible focus ring on the dark band. */
.wf-band-charcoal .wp-block-button__link:focus-visible{
  outline:2px solid #ffffff;
  outline-offset:2px;
}

/* Supporting/small text must stay >=4.5:1 on charcoal. */
.wf-band-charcoal .wf-footer-note{color:#cfc8e2;}
.wf-band-charcoal .wf-eyebrow{color:#d7c0fa;}

@media(max-width:600px){
  .wf-band-charcoal .wp-block-group__inner-container.is-layout-constrained{
    padding-left:18px;padding-right:18px;
  }
}
