/*
Husqvarna Water — Global Design System
--------------------------------------
Aligns husqvarna-water.com with the husqvarna.com/us family language.
Loaded from the Flatsome child theme (flatsome-kid) after flatsome-main.

Sections:
  1. Variables
  2. Base & Typography
  3. Buttons & Links
  4. Cards
  5. Forms
  6. Header & Navigation
  7. Hero & Section utilities
  8. WooCommerce
  9. Utilities
 10. Animations & Motion
--------------------------------------
Page templates must use the approved spacing scale on [section]:
  padding="120px" padding__md="80px" padding__sm="60px"
and reserve full-width sections for heroes and brand statements.
*/

/* 1. Variables ------------------------------------------------------ */
:root {
  /* Brand color */
  --hw-blue: #273a60;          /* Husqvarna blue — CTAs + priority bands only */
  --hw-blue-dark: #1c2b49;     /* hover state */
  --hw-charcoal: #3d3d3c;      /* default text */
  --hw-ink: #1e1e1d;           /* near-black */
  --hw-orange: #f25420;        /* accent — sale/alerts only, use sparingly */
  --hw-gray-050: #f7f7f7;      /* alt surface */
  --hw-gray-100: #f4f4f3;      /* light neutral surface */
  --hw-gray-200: #e6e6e6;      /* borders, dividers */
  --hw-gray-500: #686867;      /* muted text */
  --hw-white: #ffffff;

  /* Type */
  --hw-font: "husqvarna", Arial, sans-serif;
  --hw-h1: clamp(36px, 2.3vw + 26px, 54px);
  --hw-h2: clamp(29px, 1.4vw + 22px, 40px);
  --hw-h3: clamp(22px, 0.6vw + 19px, 27px);
  --hw-h4: clamp(19px, 0.25vw + 18px, 21px);
  --hw-lead: clamp(18px, 0.4vw + 16px, 21px);
  --hw-body: 17px;
  --hw-small: 15px;

  /* Shape & elevation */
  --hw-radius: 16px;
  --hw-radius-lg: 24px;
  --hw-shadow-1: 0 2px 10px rgba(30, 30, 29, 0.07);
  --hw-shadow-2: 3px 3px 0 rgba(30, 30, 29, 0.14);
}

  /* Layout */
  --hw-maxw: 1400px;
  --hw-gutter: clamp(20px, 4vw, 48px);
}

/* 2. Base & Typography ---------------------------------------------- */
body {
  font-family: var(--hw-font);
  font-size: var(--hw-body);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.2px;
  color: var(--hw-charcoal);
}

h1, h2, h3, h4, h5, h6,
.heading-font {
  font-family: var(--hw-font);
  color: var(--hw-charcoal);
  font-weight: 700;
}

h1 { font-size: var(--hw-h1); line-height: 1.08; letter-spacing: -0.5px; margin-bottom: 0.45em; }
h2 { font-size: var(--hw-h2); line-height: 1.15; letter-spacing: -0.3px; margin-bottom: 0.5em; }
h3 { font-size: var(--hw-h3); line-height: 1.25; margin-bottom: 0.5em; }
h4 { font-size: var(--hw-h4); line-height: 1.35; margin-bottom: 0.5em; }
h5 { font-size: var(--hw-small); line-height: 1.4; letter-spacing: 0.04em; }

/* Eyebrow/kicker: always a bare <h6> */
h6 {
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hw-blue);
  margin-bottom: 0.9em;
}

.dark h1, .dark h2, .dark h3, .dark h4, .dark h5,
.dark .heading-font { color: var(--hw-white); }
.dark h6 { color: rgba(255, 255, 255, 0.72); }
.dark { color: rgba(255, 255, 255, 0.92); }

/* Banner text sits on imagery: default to white unless the box opts out */
.banner .text-box h1, .banner .text-box h2, .banner .text-box h3,
.banner .text-box h4, .banner .text-box h5, .banner .text-box p {
  color: var(--hw-white);
}
.banner .text-box h6 { color: rgba(255, 255, 255, 0.78); }
.banner .text-box.text-dark h1, .banner .text-box.text-dark h2, .banner .text-box.text-dark h3,
.banner .text-box.text-dark h4, .banner .text-box.text-dark p { color: var(--hw-charcoal); }

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

.hw-lead { font-size: var(--hw-lead); line-height: 1.55; font-weight: 400; }
.hw-muted { color: var(--hw-gray-500); }

/* Tidy list rhythm inside content */
.entry-content ul:not([class]), .col ul:not([class]) {
  margin-bottom: 1.2em;
}
.entry-content ul:not([class]) li, .col ul:not([class]) li {
  margin-bottom: 0.35em;
}


/* 4. Cards ----------------------------------------------------------- */
/* Apply class="hw-card" on a [col] — the inner becomes a lifted card */
.hw-card > .col-inner {
  background: var(--hw-white);
  border-radius: var(--hw-radius);
  box-shadow: var(--hw-shadow-1);
  padding: 32px 28px;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hw-card > .col-inner:hover {
  transform: translateY(-4px);
  box-shadow: var(--hw-shadow-2);
}

/* Media cards: rounded imagery + gentle zoom (Flatsome boxes/banners) */
.hw-media-card .banner, .hw-media-card .box-image, .hw-media-card img {
  border-radius: var(--hw-radius);
}
.box-image img { transition: transform 0.5s ease; }
.has-hover:hover .box-image img { transform: scale(1.04); }

/* 5. Forms ------------------------------------------------------------ */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"],
input[type="password"], input[type="search"], input[type="number"], select, textarea {
  font-family: var(--hw-font);
  font-size: 16px;
  color: var(--hw-charcoal);
  border: 1px solid #cfcfce;
  border-radius: 10px;
  padding: 0.7em 0.9em;
  height: auto;
  min-height: 48px;
  box-shadow: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
textarea { min-height: 120px; }
input:focus, select:focus, textarea:focus {
  border-color: var(--hw-blue);
  box-shadow: 0 0 0 3px rgba(39, 58, 96, 0.15);
}
label { font-weight: 700; font-size: 14px; letter-spacing: 0.02em; }

/* 6. Header & Navigation ---------------------------------------------- */
.header-top { background-color: var(--hw-blue) !important; }
.header-top a, .header-top .html { color: rgba(255, 255, 255, 0.9); font-size: 13px; }
.header-top a:hover { color: var(--hw-white); }

.header-main { transition: box-shadow 0.25s ease, background-color 0.25s ease; }
.header-wrapper.stuck { box-shadow: 0 2px 18px rgba(30, 30, 29, 0.12); }

.nav > li > a {
  font-family: var(--hw-font);
  font-weight: 700;
  letter-spacing: 0.2px;
}
.nav > li > a:hover, .nav > li.current-menu-item > a { color: var(--hw-blue); }

/* Mobile nav: large touch targets */
.mobile-sidebar .nav > li > a { padding-top: 14px; padding-bottom: 14px; font-size: 17px; }

/* 7. Hero & Section utilities ----------------------------------------- */
/* Left gradient scrim for hero legibility — add class="hw-grad" to the hero */
.hw-grad .section-bg-overlay,
.hw-grad .banner-bg .overlay,
.hw-grad .overlay {
  background: linear-gradient(90deg, rgba(20, 25, 38, 0.72) 0%, rgba(20, 25, 38, 0.48) 40%, rgba(20, 25, 38, 0.10) 75%, rgba(20, 25, 38, 0) 100%) !important;
}
/* Bottom scrim variant for stacked/mobile heroes */
.hw-grad-bottom .section-bg-overlay,
.hw-grad-bottom .overlay {
  background: linear-gradient(0deg, rgba(20, 25, 38, 0.78) 0%, rgba(20, 25, 38, 0.35) 45%, rgba(20, 25, 38, 0.05) 80%) !important;
}

/*
 * Mobile hero placement.
 * Flatsome's position_y anchors a banner layer's BOTTOM edge, so tall hero copy
 * on a phone pushes the top of the box negative and slides the headline under
 * the transparent header. Anchor design-system heroes from the bottom instead,
 * which is stable regardless of how long the headline runs.
 */
@media (max-width: 849px) {
  .hw-grad .text-box,
  .hw-grad-bottom .text-box {
    top: auto !important;
    bottom: 7% !important;
    transform: none !important;
  }
}

/* Blue brand band — pair with dark="true" in the shortcode */
.hw-band { background-color: var(--hw-blue); }

/* Soft surface band */
.hw-surface { background-color: var(--hw-gray-100); }

/* Consistent rounded media */
.hw-rounded, .hw-rounded img, .hw-rounded .banner, .hw-rounded .bg { border-radius: var(--hw-radius); }
.hw-rounded-lg, .hw-rounded-lg img, .hw-rounded-lg .banner, .hw-rounded-lg .bg { border-radius: var(--hw-radius-lg); }

/* Stat number treatment */
.hw-stat h2, .hw-stat .stat-value {
  font-size: clamp(40px, 3.4vw + 22px, 68px);
  line-height: 1;
  letter-spacing: -1px;
  margin-bottom: 0.15em;
}
.hw-stat p { font-size: var(--hw-small); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; }

/* 8. WooCommerce ------------------------------------------------------- */
.product-small.col .col-inner {
  background: var(--hw-white);
  border-radius: var(--hw-radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-small.col .col-inner:hover {
  transform: translateY(-4px);
  box-shadow: var(--hw-shadow-2);
}
.product-small .box-text { padding: 14px 16px 18px; }
.product-small .product-title { font-size: 16px; line-height: 1.35; }
.price { font-family: var(--hw-font); font-weight: 700; color: var(--hw-ink); }
.badge-inner {
  background-color: var(--hw-orange);
  color: var(--hw-white);
  border-radius: 8px;
  font-weight: 700;
}
.woocommerce-breadcrumb { font-size: 13px; letter-spacing: 0.04em; }

/* 9. Utilities ---------------------------------------------------------- */
.hw-divider {
  height: 4px; width: 64px;
  background: var(--hw-blue);
  border-radius: 2px;
  margin: 0 0 28px;
}
.text-center .hw-divider, .hw-divider--center { margin-left: auto; margin-right: auto; }
.dark .hw-divider { background: var(--hw-white); }

.hw-checklist li {
  list-style: none;
  margin: 0 0 10px;
  padding-left: 34px;
  position: relative;
}
.hw-checklist { margin-left: 0; }
.hw-checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background-color: var(--hw-blue);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10" fill="white" stroke="none" opacity=".15"/><path d="M7 12.5l3.2 3.2L17 9"/></svg>') center / contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10" fill="white" stroke="none" opacity=".15"/><path d="M7 12.5l3.2 3.2L17 9"/></svg>') center / contain no-repeat;
}
.dark .hw-checklist li::before { background-color: var(--hw-white); }

/* 10. Animations & Motion ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .button:hover, .hw-card > .col-inner:hover, .product-small.col .col-inner:hover { transform: none; }
}
