/*
 Theme Name:   Safe4 Australia Child Theme
 Theme URI:    https://safe4-aust.com.au
 Description:  Custom child theme for Safe4 Australia — veterinary-grade disinfectant products. Built on Storefront.
 Author:       Bingo Bango
 Author URI:   https://bingobango.com.au
 Template:     Impreza
 Version:      3.0.0
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  safe4-child
*/

/* ============================================================
   SAFE4 AUSTRALIA — v3 THEME STYLES
   Brand colours: Blue #2E9BD6 / #1A6EA8 | Red #CC2229
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #1A6EA8;
  --primary-dark:  #0D4F7C;
  --primary-light: #2E9BD6;
  --accent:        #CC2229;
  --accent-hover:  #a81920;
  --bg:            #F4F8FC;
  --white:         #ffffff;
  --text:          #1A2535;
  --text-muted:    #5A6A7E;
  --border:        #D8E6F0;
  --shadow-sm:     0 2px 8px rgba(26,110,168,.08);
  --shadow-md:     0 8px 32px rgba(26,110,168,.14);
  --shadow-lg:     0 16px 52px rgba(26,110,168,.20);
  --radius:        12px;
  --radius-sm:     8px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}

/* ── TOP BAR ─────────────────────────────────────────────── */
.top-bar {
  background: var(--primary-dark);
  color: rgba(255,255,255,.82); font-size: 13px; padding: 8px 0;
}
.top-bar .inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: flex; justify-content: flex-end; gap: 28px; align-items: center;
}
.top-bar a {
  color: rgba(255,255,255,.82); text-decoration: none;
  display: flex; align-items: center; gap: 7px;
  transition: color .2s;
}
.top-bar a:hover { color: #fff; }

/* ── HEADER ──────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--primary-light);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(26,110,168,.1);
  transition: box-shadow .3s;
}
.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(26,110,168,.18);
}
.site-header .inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.logo img { height: 44px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  text-decoration: none; color: var(--text-muted);
  font-size: 14px; font-weight: 500;
  padding: 8px 16px; border-radius: 6px;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--primary); background: #EBF4FB; }
.nav .cart-btn {
  background: var(--accent); color: white !important;
  padding: 9px 18px; border-radius: 6px;
  display: flex; align-items: center; gap: 8px;
  margin-left: 8px; font-size: 13px; font-weight: 600;
  transition: background .2s;
}
.nav .cart-btn:hover { background: var(--accent-hover) !important; }
.cart-badge {
  background: white; color: var(--accent);
  border-radius: 50%; width: 18px; height: 18px;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ── MOBILE MENU ─────────────────────────────────────────── */
.hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; flex-direction: column; gap: 5px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-nav {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--white); border-top: 1px solid var(--border);
  box-shadow: var(--shadow-md); z-index: 99;
  padding: 16px 32px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 12px 0;
  color: var(--text); text-decoration: none;
  font-size: 15px; font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--primary); }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  min-height: 600px;
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1629909613654-28e377c37b09?w=1800&h=800&fit=crop&q=80');
  background-size: cover; background-position: center 30%;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(13,79,124,.96) 0%,
    rgba(26,110,168,.90) 50%,
    rgba(46,155,214,.75) 100%);
}
.hero .inner {
  max-width: 1200px; margin: 0 auto; padding: 80px 32px;
  position: relative; z-index: 2; width: 100%;
}
.hero-grid { display: grid; grid-template-columns: 55fr 45fr; gap: 64px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.95); font-size: 11px; font-weight: 600;
  letter-spacing: 1.2px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(30px, 3.6vw, 50px); font-weight: 800; line-height: 1.12;
  color: white; letter-spacing: -.5px; margin-bottom: 20px;
}
.hero h1 em { color: #f77; font-style: normal; }
.hero-sub {
  font-size: 17px; color: rgba(255,255,255,.82);
  line-height: 1.75; margin-bottom: 36px; max-width: 520px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.btn-primary {
  background: var(--accent); color: white;
  padding: 14px 30px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600;
  text-decoration: none; display: inline-flex; align-items: center; gap: 9px;
  transition: transform .2s, box-shadow .2s, background .2s;
  box-shadow: 0 4px 20px rgba(204,34,41,.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(204,34,41,.55); background: var(--accent-hover); }
.btn-ghost {
  background: transparent; color: white;
  padding: 14px 30px; border-radius: var(--radius-sm);
  border: 2px solid rgba(255,255,255,.45);
  font-size: 15px; font-weight: 600;
  text-decoration: none; display: inline-flex; align-items: center; gap: 9px;
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: white; background: rgba(255,255,255,.1); }

.trust-row { display: flex; gap: 10px; flex-wrap: wrap; }
.trust-badge {
  display: flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  padding: 8px 14px; border-radius: 6px;
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,.92);
}

/* Hero right — photo card */
.hero-photo-card {
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
  border: 3px solid rgba(255,255,255,.18);
  position: relative; max-width: 420px; width: 100%;
  margin-left: auto;
}
.hero-photo-card img {
  width: 100%; height: 380px;
  object-fit: cover; display: block;
}
.hero-photo-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(13,79,124,.92) 0%, transparent 100%);
  padding: 28px 24px 24px;
}
.hero-photo-overlay p {
  color: white; font-size: 15px; font-weight: 600; margin-bottom: 8px;
}
.hero-photo-overlay span {
  display: inline-block;
  background: var(--accent); color: white;
  padding: 6px 18px; border-radius: 20px;
  font-size: 14px; font-weight: 700;
}

/* ── SECTION COMMON ──────────────────────────────────────── */
.section-tag {
  display: inline-block;
  background: #EBF4FB; color: var(--primary);
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; padding: 5px 14px; border-radius: 20px;
  margin-bottom: 14px;
}
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-size: clamp(22px, 2.8vw, 34px); font-weight: 700;
  color: var(--text); line-height: 1.25; margin-bottom: 14px;
}
.section-header h2 span { color: var(--accent); }
.section-header p { color: var(--text-muted); font-size: 16px; max-width: 540px; margin: 0 auto; }

/* ── FEATURES ────────────────────────────────────────────── */
.features { padding: 80px 32px; background: white; }
.features .inner { max-width: 1200px; margin: 0 auto; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px 28px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.feature-icon {
  width: 56px; height: 56px; background: #EBF4FB; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 18px;
}
.feature-card h3 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* ── PRODUCTS ────────────────────────────────────────────── */
.products-section { padding: 80px 32px; background: var(--bg); }
.products-section .inner { max-width: 1200px; margin: 0 auto; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 40px; }
.product-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-img {
  height: 195px; overflow: hidden; position: relative;
}
.product-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.product-card:hover .product-img img { transform: scale(1.06); }
.product-img-overlay {
  position: absolute; inset: 0;
  background: rgba(26,110,168,.88); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; letter-spacing: .5px;
  opacity: 0; transition: opacity .25s;
}
.product-card:hover .product-img-overlay { opacity: 1; }
.product-body { padding: 20px; }
.product-body h3 { font-size: 14px; font-weight: 600; margin-bottom: 3px; color: var(--text); }
.product-body .sku { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.product-price { font-size: 20px; font-weight: 700; color: var(--accent); margin-bottom: 14px; }
.btn-product {
  display: block; width: 100%; text-align: center;
  background: var(--primary); color: white;
  padding: 10px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; text-decoration: none;
  transition: background .2s;
}
.btn-product:hover { background: var(--accent); }
.view-all { text-align: center; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--primary); color: var(--primary);
  padding: 12px 30px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; text-decoration: none;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--primary); color: white; }

/* ── WHY SAFE4 ───────────────────────────────────────────── */
.why-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white; padding: 80px 32px;
}
.why-section .inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
}
.why-img-wrap {
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  border: 3px solid rgba(255,255,255,.12);
  position: relative; height: 380px;
}
.why-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.why-img-badge {
  position: absolute; bottom: 20px; left: 20px;
  background: var(--accent); color: white;
  padding: 10px 18px; border-radius: 8px;
  font-size: 13px; font-weight: 700; line-height: 1.3;
}
.why-section .section-tag { background: rgba(255,255,255,.15); color: rgba(255,255,255,.9); }
.why-section h2 { font-size: clamp(22px,2.8vw,34px); font-weight: 700; margin-bottom: 18px; line-height: 1.2; }
.why-section > .inner > div > p { color: rgba(255,255,255,.78); font-size: 16px; line-height: 1.75; margin-bottom: 36px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat-item {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 22px 18px;
}
.stat-number { font-size: 30px; font-weight: 800; color: #f77; line-height: 1; margin-bottom: 5px; }
.stat-label { font-size: 12px; color: rgba(255,255,255,.65); font-weight: 500; line-height: 1.4; }

/* ── BLOG ────────────────────────────────────────────────── */
.blog-section { padding: 80px 32px; background: white; }
.blog-section .inner { max-width: 1200px; margin: 0 auto; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-img {
  height: 200px; position: relative; overflow: hidden;
}
.blog-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.blog-card:hover .blog-img img { transform: scale(1.05); }
.blog-cat {
  position: absolute; top: 14px; left: 14px;
  background: var(--accent); color: white;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  padding: 4px 10px; border-radius: 4px; z-index: 2;
}
.blog-body { padding: 22px; }
.blog-date { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.blog-body h3 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 10px; line-height: 1.4; }
.blog-body p { font-size: 13px; color: var(--text-muted); line-height: 1.65; margin-bottom: 16px; }
.read-more {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--primary); font-size: 13px; font-weight: 600;
  text-decoration: none; transition: gap .2s, color .2s;
}
.read-more:hover { gap: 9px; color: var(--accent); }

/* ── PRE-FOOTER CTA ──────────────────────────────────────── */
.prefooter-cta {
  background: #EBF4FB;
  border-top: 4px solid var(--accent);
  padding: 56px 32px;
}
.prefooter-cta .inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  flex-wrap: wrap;
}
.prefooter-cta h2 { font-size: 26px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.prefooter-cta p { color: var(--text-muted); font-size: 15px; }
.prefooter-cta .btn-primary { white-space: nowrap; flex-shrink: 0; }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,.7); padding: 64px 32px 24px; }
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 1.6fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 28px;
}
.footer-logo { margin-bottom: 16px; }
.footer-logo img { height: 34px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
.footer-brand p { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.1); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7); font-size: 13px; font-weight: 700;
  text-decoration: none; transition: background .2s, color .2s;
}
.social-link:hover { background: var(--accent); color: white; }
.footer-col h4 {
  color: white; font-size: 13px; font-weight: 600;
  margin-bottom: 18px; text-transform: uppercase; letter-spacing: .8px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,.6); font-size: 14px; text-decoration: none; transition: color .2s; }
.footer-col ul li a:hover { color: var(--primary-light); }
.contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 14px; }
.contact-item a { color: rgba(255,255,255,.6); text-decoration: none; transition: color .2s; }
.contact-item a:hover { color: var(--primary-light); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: rgba(255,255,255,.35);
  flex-wrap: wrap; gap: 8px;
}

/* ── WooCommerce Product Card Overrides ──────────────────── */
.woocommerce ul.products li.product {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  padding: 0; margin: 0;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
}
.woocommerce ul.products li.product a img {
  margin: 0; height: 195px; object-fit: cover;
}
.woocommerce ul.products li.product .price {
  font-size: 20px; font-weight: 700; color: var(--accent);
}
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
  display: block; width: 100%; text-align: center;
  background: var(--primary); color: white;
  padding: 10px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600;
  transition: background .2s;
}
.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover {
  background: var(--accent);
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo-card { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .why-section .inner { grid-template-columns: 1fr; }
  .why-img-wrap { height: 260px; }
  .blog-grid { grid-template-columns: 1fr; }
  .prefooter-cta .inner { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .nav a:not(.cart-btn) { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
}
