/*
Theme Name: Warranty Hub
Theme URI: https://warrantyhub.example.com
Author: Acquired Financial Services
Author URI: https://acquiredfinance.com.au
Description: Warranty Hub — a B2C warranty resale storefront. Storefront child theme styled to match the Acquired Financial Services brand: deep navy + lime green, Inter typography, rounded cards, animated hero.
Template: storefront
Version: 0.1.0
Text Domain: warranty-hub
*/

/* ===========================================================
   Brand tokens — mirror the Acquired Financial Services system
   =========================================================== */
:root {
  --navy: #1A2138;
  --navy-2: #252E4F;
  --navy-3: #0F1424;
  --green: #8DC63F;
  --green-dk: #74A832;
  --green-dk2: #5C8A28;
  --green-soft: #EEF6E0;
  --ink: #0F1424;
  --body: #374151;
  --muted: #6B7280;
  --line: #E5E7EB;
  --line-2: #EEF1F5;
  --bg: #FFFFFF;
  --bg-alt: #F7F9FB;
  --shadow-sm: 0 1px 2px rgba(15,20,36,.06), 0 1px 3px rgba(15,20,36,.08);
  --shadow:    0 4px 14px rgba(15,20,36,.08), 0 2px 6px rgba(15,20,36,.06);
  --shadow-lg: 0 18px 40px rgba(15,20,36,.14);
  --radius: 14px;
}

/* ===========================================================
   Base typography
   =========================================================== */
body,
button,
input,
select,
textarea {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body { background: var(--bg); font-size: 16px; }
a { color: var(--green-dk); text-decoration: none; }
a:hover { color: var(--green-dk2); }
h1, h2, h3, h4, h5, h6 {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.018em;
  margin: 0 0 .55em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -.028em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -.01em; }

/* ===========================================================
   Storefront header overrides
   =========================================================== */
.site-header {
  background: rgba(255,255,255,.92) !important;
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(10px);
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 14px 0;
}
.site-branding { margin-bottom: 0; }
.site-branding .site-title a { color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
.main-navigation ul li a {
  color: var(--ink) !important;
  font-weight: 600;
  font-size: .98rem;
  padding: 10px 14px;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a { color: var(--green-dk) !important; }

/* tel pill in header */
.wh-tel-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; color: var(--navy); font-size: 1rem;
  padding: 8px 14px; border-radius: 999px;
  background: var(--green-soft); transition: background .15s;
  white-space: nowrap;
}
.wh-tel-pill:hover { background: #E2EFCB; color: var(--navy); }
.wh-tel-pill svg { width: 18px; height: 18px; fill: var(--green-dk2); }

/* ===========================================================
   Buttons — Storefront's .button & WooCommerce .button
   =========================================================== */
.button,
button,
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-page button.button.alt {
  display: inline-flex;
  align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px !important;
  font-weight: 700 !important;
  font-size: 1rem;
  line-height: 1;
  border: 0;
  background: var(--green) !important;
  color: #0E1A04 !important;
  box-shadow: 0 8px 20px rgba(141,198,63,.36);
  transition: transform .12s ease, box-shadow .15s ease, background .15s;
  text-decoration: none;
  white-space: nowrap;
}
.button:hover,
button:hover,
input[type="submit"]:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce #respond input#submit:hover {
  background: var(--green-dk) !important;
  color: #0E1A04 !important;
  box-shadow: 0 10px 24px rgba(141,198,63,.45);
}
.button.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background: var(--navy) !important;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(15,20,36,.2);
}
.button.alt:hover,
.woocommerce a.button.alt:hover { background: var(--navy-2) !important; color: #fff !important; }

/* ===========================================================
   Hero — animated mesh, mirrors AF
   =========================================================== */
.wh-hero {
  position: relative;
  background: radial-gradient(ellipse at top, #1A2138 0%, #0F1424 60%, #07091a 100%);
  color: #E5EAF5;
  padding: 90px 0 70px;
  overflow: hidden;
  text-align: center;
}
.wh-hero::before,
.wh-hero::after,
.wh-hero-blob {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(90px); pointer-events: none; will-change: transform;
}
.wh-hero::before {
  width: 580px; height: 580px;
  background: linear-gradient(135deg,#8DC63F,#5C8A28);
  top: -180px; right: -180px; opacity: .32;
  animation: whBlobA 22s ease-in-out infinite;
}
.wh-hero::after {
  width: 480px; height: 480px;
  background: linear-gradient(135deg,#74A832,#3E5F1B);
  bottom: -160px; left: -160px; opacity: .28;
  animation: whBlobB 26s ease-in-out infinite;
}
.wh-hero .wh-hero-blob {
  width: 380px; height: 380px;
  background: linear-gradient(135deg,#3D4A82,#1A2138);
  top: 40%; left: 50%; opacity: .45;
  animation: whBlobC 30s ease-in-out infinite;
}
@keyframes whBlobA { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(80px,60px) scale(1.18)} }
@keyframes whBlobB { 0%,100%{transform:translate(0,0) scale(1)} 50%{transform:translate(-70px,-50px) scale(1.12)} }
@keyframes whBlobC { 0%,100%{transform:translate(-50%,-50%) scale(1)} 50%{transform:translate(-30%,-40%) scale(1.18)} }
@media (prefers-reduced-motion: reduce) {
  .wh-hero::before, .wh-hero::after, .wh-hero-blob { animation: none; }
}
.wh-hero-inner {
  position: relative; z-index: 2;
  max-width: 880px; margin: 0 auto; padding: 0 22px;
}
.wh-hero h1 { color: #fff; margin-bottom: .35em; }
.wh-hero h1 .hl {
  color: var(--green);
  background: linear-gradient(180deg, transparent 60%, rgba(141,198,63,.18) 60%);
  padding: 0 .12em;
}
.wh-hero-sub {
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 500; color: #E5EAF5;
  max-width: 780px; margin: 0 auto 34px;
  line-height: 1.45; letter-spacing: -.005em;
}
.wh-hero-sub strong { color: #fff; font-weight: 700; }
.wh-hero-cta-row {
  display: flex; gap: 14px; flex-wrap: wrap;
  justify-content: center; margin-bottom: 30px;
}
.wh-hero-stats {
  display: flex; gap: 36px; flex-wrap: wrap;
  justify-content: center; color: #D9E0EE;
  font-size: .95rem; font-weight: 500;
}
.wh-hero-stat { display: flex; align-items: center; gap: 8px; }
.wh-hero-stat svg { width: 18px; height: 18px; fill: var(--green); flex: none; }
.wh-hero-stat strong { color: #fff; font-weight: 700; }

/* Pill on hero */
.wh-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(141,198,63,.16);
  color: var(--green);
  border: 1px solid rgba(141,198,63,.4);
  padding: 6px 14px; border-radius: 999px;
  font-size: .82rem; font-weight: 700;
  margin-bottom: 22px;
  letter-spacing: .02em;
}
.wh-pill--light {
  background: var(--green-soft);
  color: var(--green-dk2);
  border-color: rgba(141,198,63,.3);
}

/* ===========================================================
   Sections, layout
   =========================================================== */
.wh-section { padding: 80px 0; }
.wh-section--alt { background: var(--bg-alt); }
.wh-section--navy { background: var(--navy-3); color: #E2E6F1; }
.wh-section--navy h2, .wh-section--navy h3 { color: #fff; }
.wh-wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.wh-center { text-align: center; }
.wh-eyebrow {
  display: inline-block;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-dk); font-weight: 700;
  margin-bottom: .8em;
}
.wh-lead {
  font-size: 1.12rem; color: var(--muted);
  max-width: 680px; margin: 0 auto 2em;
}

/* ===========================================================
   Product / warranty plan cards
   =========================================================== */
.wh-plans {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin-top: 38px;
}
.wh-plan-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: all .15s; text-align: left;
  display: flex; flex-direction: column;
}
.wh-plan-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.wh-plan-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; background: var(--green-soft);
  border-radius: 14px; margin-bottom: 18px;
}
.wh-plan-icon svg { width: 26px; height: 26px; fill: var(--green-dk2); }
.wh-plan-card h3 { margin-bottom: .5em; color: var(--ink); }
.wh-plan-card p { font-size: .95rem; color: var(--muted); margin: 0 0 1em; }
.wh-plan-meta {
  margin-top: auto; padding-top: 16px;
  border-top: 1px solid var(--line-2);
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: .9rem;
}
.wh-plan-meta .price { color: var(--ink); font-weight: 800; font-size: 1.15rem; }
.wh-plan-meta .term { color: var(--muted); }

@media (max-width: 900px) {
  .wh-plans { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .wh-plans { grid-template-columns: 1fr; }
  .wh-section { padding: 56px 0; }
}

/* ===========================================================
   Process / steps
   =========================================================== */
.wh-steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; margin-top: 56px;
}
.wh-step {
  text-align: center; padding: 38px 20px 26px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  position: relative; transition: transform .15s, box-shadow .15s;
}
.wh-step:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.wh-step-num {
  position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  width: 44px; height: 44px; background: var(--green); color: #0E1A04;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.15rem;
  border: 4px solid #fff; box-shadow: var(--shadow-sm);
}
.wh-step h3 { font-size: 1.1rem; margin: 8px 0 .4em; }
.wh-step p { font-size: .95rem; color: var(--muted); margin: 0; }
@media (max-width: 900px) {
  .wh-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .wh-steps { grid-template-columns: 1fr; }
}

/* ===========================================================
   Why-choose-us / benefit cards
   =========================================================== */
.wh-benefits {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin-top: 38px;
}
.wh-benefit {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px;
}
.wh-benefit .wh-plan-icon { background: var(--green-soft); }
@media (max-width: 800px) {
  .wh-benefits { grid-template-columns: 1fr; }
}

/* ===========================================================
   Testimonials
   =========================================================== */
.wh-tm {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  margin-top: 38px;
}
.wh-tm-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.wh-tm-stars { color: var(--green); margin-bottom: 10px; letter-spacing: .08em; }
.wh-tm-quote { color: var(--body); font-size: .98rem; margin: 0 0 18px; }
.wh-tm-who { font-weight: 700; color: var(--ink); font-size: .92rem; }
.wh-tm-who small { color: var(--muted); font-weight: 500; display: block; }
@media (max-width: 900px) { .wh-tm { grid-template-columns: 1fr; } }

/* ===========================================================
   WooCommerce product overrides
   =========================================================== */
.woocommerce ul.products li.product {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: all .15s;
}
.woocommerce ul.products li.product:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.woocommerce ul.products li.product .price {
  color: var(--ink);
  font-weight: 800;
}
.woocommerce ul.products li.product .price ins { background: transparent; }
.woocommerce span.onsale {
  background: var(--green);
  color: #0E1A04;
  border-radius: 999px;
  font-weight: 700;
  min-height: auto;
  padding: 6px 14px;
  line-height: 1;
}
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top-color: var(--green) !important;
  border-radius: 12px;
  background: var(--bg-alt);
}
.woocommerce-message::before,
.woocommerce-info::before { color: var(--green-dk2) !important; }

.woocommerce-tabs ul.tabs li.active a { color: var(--green-dk2); }

/* Single product layout polish */
.woocommerce div.product .product_title {
  color: var(--ink); font-weight: 800; letter-spacing: -.018em;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--ink); font-weight: 800;
}

/* Cart & checkout buttons stay green */
.woocommerce-cart table.cart td.actions .button,
.woocommerce-cart table.cart td.actions input,
.woocommerce-cart-form__contents .button {
  background: var(--navy) !important; color: #fff !important;
}

/* ===========================================================
   Footer
   =========================================================== */
.site-footer {
  background: var(--navy-3) !important;
  color: #B5BCCB !important;
  border-top: 0;
  padding: 60px 0 30px;
}
.site-footer a { color: #E2E6F1; }
.site-footer a:hover { color: var(--green); }
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4 { color: #fff; }
.site-info { color: #7B8398; font-size: .85rem; }

/* ===========================================================
   Utility
   =========================================================== */
.wh-mt-0 { margin-top: 0 !important; }
.wh-mt-2 { margin-top: 16px; }
.wh-mt-4 { margin-top: 32px; }
.wh-mb-0 { margin-bottom: 0 !important; }
