/*
Theme Name: Filtend Child
Theme URI: https://www.filtend.com
Template: hello-elementor
Author: Filtend
Author URI: https://www.filtend.com
Description: Child theme for Hello Elementor. Built for Filtend - American-made HVAC air filters sold direct to US households.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: filtend-child
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
  /* Fresh, clean green - the "every day is a good day" palette */
  --ft-primary: #1f9d6b;
  --ft-primary-dark: #17805a;
  --ft-primary-soft: #e8f5ef;
  --ft-ink: #14312a;
  --ft-body: #4a5d57;
  --ft-muted: #6b8179;
  --ft-line: #dfeae4;
  --ft-bg: #f5faf7;
  --ft-bg-alt: #ffffff;
  --ft-accent: #f5a623;
  --ft-success: #1f9d6b;
  --ft-radius: 12px;
  --ft-radius-lg: 18px;
  --ft-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --ft-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  --ft-shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.12);
  --ft-header-h: 76px;
  --ft-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   Base
   ========================================================================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--ft-font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ft-body);
  background: var(--ft-bg-alt);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--ft-ink);
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3rem;
}
h2 {
  font-size: 2.25rem;
}
h3 {
  font-size: 1.375rem;
}

p {
  margin: 0 0 16px;
}

a {
  color: var(--ft-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--ft-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.ft-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.ft-container--narrow {
  max-width: 820px;
}

.ft-section {
  padding: 80px 0;
}

.ft-section--tint {
  background: var(--ft-bg);
}

.ft-section--ink {
  background: var(--ft-ink);
  color: #cbd5e1;
}

.ft-section--ink h2,
.ft-section--ink h3 {
  color: #ffffff;
}

.ft-center {
  text-align: center;
}

.ft-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ft-primary);
  margin-bottom: 12px;
}

.ft-lead {
  font-size: 1.125rem;
  color: var(--ft-body);
}

.ft-stack-sm > * + * {
  margin-top: 8px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.ft-btn,
.ft-btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--ft-radius);
  font-weight: 600;
  font-size: 1rem;
  font-family: var(--ft-font);
  line-height: 1.2;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
}

.ft-btn--primary {
  background: var(--ft-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.28);
}

.ft-btn--primary:hover {
  background: var(--ft-primary-dark);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.32);
}

.ft-btn--ghost {
  background: transparent;
  color: var(--ft-ink);
  border-color: var(--ft-line);
}

.ft-btn--ghost:hover {
  border-color: var(--ft-ink);
  color: var(--ft-ink);
}

.ft-btn--lg {
  padding: 16px 34px;
  font-size: 1.0625rem;
}

.ft-btn--block {
  width: 100%;
}

/* ==========================================================================
   Announcement bar
   ========================================================================== */
.ft-announce {
  background: var(--ft-ink);
  color: #e2e8f0;
  font-size: 0.875rem;
  padding: 9px 0;
  text-align: center;
}

.ft-announce strong {
  color: #ffffff;
  font-weight: 600;
}

/* ==========================================================================
   Header
   ========================================================================== */
.ft-header {
  background: #ffffff;
  border-bottom: 1px solid var(--ft-line);
  position: sticky;
  top: 0;
  z-index: 999;
}

.ft-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--ft-header-h);
}

.ft-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ft-ink);
  flex-shrink: 0;
}

.ft-logo span {
  color: var(--ft-primary);
}

.ft-nav {
  margin-left: auto;
}

.ft-nav ul {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ft-nav a {
  color: var(--ft-ink);
  font-weight: 500;
  font-size: 0.9375rem;
}

.ft-nav a:hover {
  color: var(--ft-primary);
}

.ft-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.ft-header__cta {
  padding: 11px 20px;
  font-size: 0.9375rem;
}

.ft-flag {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ft-muted);
  white-space: nowrap;
}

.ft-cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ft-ink);
  font-weight: 600;
}

/* ==========================================================================
   Size finder - the primary conversion entry point
   ========================================================================== */
.ft-sizefinder {
  background: #ffffff;
  border: 1px solid var(--ft-line);
  border-radius: var(--ft-radius-lg);
  padding: 18px;
  box-shadow: var(--ft-shadow);
}

.ft-sizefinder__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ft-ink);
  margin-bottom: 10px;
  display: block;
}

.ft-sizefinder__row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}

.ft-sizefinder__field {
  flex: 1 1 110px;
  min-width: 0;
  position: relative;
}

.ft-sizefinder__field input {
  width: 100%;
  height: 52px;
  padding: 0 12px;
  border: 1px solid var(--ft-line);
  border-radius: var(--ft-radius);
  font-size: 1rem;
  font-family: var(--ft-font);
  color: var(--ft-ink);
  background: #ffffff;
}

.ft-sizefinder__field input:focus {
  outline: none;
  border-color: var(--ft-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.14);
}

.ft-sizefinder__unit {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--ft-muted);
  pointer-events: none;
}

.ft-sizefinder__sep {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  color: var(--ft-muted);
  font-weight: 300;
}

.ft-sizefinder .ft-btn {
  height: 52px;
  white-space: nowrap;
}

.ft-sizefinder__hint {
  font-size: 0.8125rem;
  color: var(--ft-muted);
  margin-top: 10px;
}

.ft-sizefinder__error {
  color: #dc2626;
  font-size: 0.8125rem;
  margin-top: 8px;
  display: none;
}

.ft-sizefinder__error.is-active {
  display: block;
}

/* Variant used on the homepage hero (lighter background) */
.ft-sizefinder--hero {
  box-shadow: var(--ft-shadow-lg);
}

/* ==========================================================================
   Trust strip
   ========================================================================== */
.ft-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ft-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ft-ink);
}

.ft-trust svg {
  flex-shrink: 0;
  color: var(--ft-primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.ft-footer {
  background: var(--ft-ink);
  color: #94a3b8;
  padding: 64px 0 24px;
}

.ft-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
}

.ft-footer h4 {
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.ft-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ft-footer li {
  margin-bottom: 10px;
}

.ft-footer a {
  color: #94a3b8;
  font-size: 0.9375rem;
}

.ft-footer a:hover {
  color: #ffffff;
}

.ft-footer__logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.ft-footer__logo span {
  color: var(--ft-primary);
}

.ft-footer__bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.875rem;
}

.ft-social {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.ft-social svg {
  color: #94a3b8;
}

.ft-social a:hover svg {
  color: #ffffff;
}

/* ==========================================================================
   Dual-mode finder (HVAC by size | Purifier by model)
   ========================================================================== */
.ft-sizefinder__tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.ft-sizefinder__tab {
  padding: 8px 18px;
  border-radius: 99px;
  border: 1px solid var(--ft-line);
  background: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--ft-font);
  color: var(--ft-body);
  cursor: pointer;
  transition: all 0.16s ease;
}

.ft-sizefinder__tab:hover {
  border-color: var(--ft-primary);
  color: var(--ft-primary);
}

.ft-sizefinder__tab.is-active {
  background: var(--ft-primary);
  color: #ffffff;
  border-color: var(--ft-primary);
}

.ft-sizefinder__panel {
  display: none;
}

.ft-sizefinder__panel.is-active {
  display: block;
}

.ft-sizefinder__field select {
  width: 100%;
  height: 52px;
  padding: 0 12px;
  border: 1px solid var(--ft-line);
  border-radius: var(--ft-radius);
  font-size: 0.9375rem;
  font-family: var(--ft-font);
  color: var(--ft-ink);
  background: #ffffff;
  appearance: none;
}

.ft-sizefinder__field select:focus {
  outline: none;
  border-color: var(--ft-primary);
  box-shadow: 0 0 0 3px rgba(31, 157, 107, 0.14);
}

/* ==========================================================================
   Trust system - the five reassurance blocks
   ========================================================================== */
.ft-trustbar {
  background: var(--ft-primary-soft);
  border-bottom: 1px solid var(--ft-line);
}

.ft-trustbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: center;
  align-items: center;
  padding: 11px 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ft-ink);
  text-align: center;
}

.ft-trustbar__item {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ft-trustbar svg {
  color: var(--ft-primary);
  flex-shrink: 0;
}

.ft-guarantee {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.ft-guarantee__item {
  padding: 24px 18px;
  background: #ffffff;
  border: 1px solid var(--ft-line);
  border-radius: var(--ft-radius);
  text-align: center;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ft-guarantee__item:hover {
  box-shadow: var(--ft-shadow);
  transform: translateY(-2px);
}

.ft-guarantee__ico {
  width: 44px;
  height: 44px;
  border-radius: 99px;
  background: var(--ft-primary-soft);
  color: var(--ft-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.ft-guarantee__t {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ft-ink);
  margin-bottom: 4px;
}

.ft-guarantee__d {
  font-size: 0.8125rem;
  color: var(--ft-muted);
  line-height: 1.5;
}

/* ==========================================================================
   Subscribe and save
   ========================================================================== */
.ft-sub {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.ft-sub__card {
  padding: 28px 22px;
  background: #ffffff;
  border: 1px solid var(--ft-line);
  border-radius: var(--ft-radius-lg);
  text-align: center;
  position: relative;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ft-sub__card:hover {
  box-shadow: var(--ft-shadow);
  transform: translateY(-2px);
}

.ft-sub__card--best {
  border-color: var(--ft-primary);
  box-shadow: 0 0 0 1px var(--ft-primary);
}

.ft-sub__tag {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ft-primary);
  color: #ffffff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 99px;
  white-space: nowrap;
}

.ft-sub__n {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--ft-ink);
  letter-spacing: -0.02em;
}

.ft-sub__d {
  font-size: 0.875rem;
  color: var(--ft-muted);
  margin-bottom: 14px;
}

.ft-sub__save {
  display: inline-block;
  background: var(--ft-primary-soft);
  color: var(--ft-primary);
  font-weight: 700;
  font-size: 0.8125rem;
  padding: 5px 14px;
  border-radius: 99px;
}

/* ==========================================================================
   Utility
   ========================================================================== */
.ft-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Size grid (rendered by the HTML widget inside Elementor templates)
   ========================================================================== */
.ft-sizes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.ft-size {
  display: block;
  padding: 16px 14px;
  border: 1px solid var(--ft-line);
  border-radius: var(--ft-radius);
  text-align: center;
  background: #ffffff;
  font-weight: 600;
  color: var(--ft-ink);
  font-size: 0.9375rem;
  transition: all 0.16s ease;
}

.ft-size:hover {
  border-color: var(--ft-primary);
  color: var(--ft-primary);
  background: var(--ft-primary-soft);
  transform: translateY(-1px);
}

/* ==========================================================================
   CSS-drawn product visual (placeholder until real photography is ready)
   ========================================================================== */
.ft-filtershot {
  background: #ffffff;
  border: 1px solid var(--ft-line);
  border-radius: var(--ft-radius-lg);
  padding: 28px;
  box-shadow: var(--ft-shadow-lg);
}

.ft-pleats {
  height: 260px;
  border: 8px solid #cbd5e1;
  border-radius: 4px;
  background: repeating-linear-gradient(
    90deg,
    #f8fafc 0 6px,
    #e2e8f0 6px 12px
  );
  box-shadow: inset 0 0 30px rgba(15, 23, 42, 0.08);
}

.ft-shot-cap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  font-size: 0.875rem;
  color: var(--ft-muted);
  font-weight: 500;
}

.ft-shot-tag {
  background: var(--ft-primary-soft);
  color: var(--ft-primary);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
}

/* Lay the trust badges out horizontally */
.ft-trust-row ul.elementor-icon-list-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
}

.ft-trust-row .elementor-icon-list-item {
  margin: 0 !important;
}

/* ==========================================================================
   WooCommerce overrides
   ========================================================================== */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--ft-primary);
  color: #ffffff;
  border-radius: var(--ft-radius);
  font-weight: 600;
  padding: 13px 24px;
  border: 0;
  transition: background 0.18s ease;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  background: var(--ft-primary-dark);
  color: #ffffff;
}

.woocommerce .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--ft-ink);
  font-weight: 700;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--ft-ink);
  font-weight: 600;
  font-size: 1.0625rem;
}

.woocommerce div.product form.cart .variations td.label {
  color: var(--ft-ink);
  font-weight: 600;
}

.woocommerce div.product form.cart table.variations select {
  border-color: var(--ft-line);
  border-radius: var(--ft-radius);
  padding: 9px 12px;
}

.woocommerce .quantity .qty {
  border-color: var(--ft-line);
  border-radius: var(--ft-radius);
  padding: 8px;
}

.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
  border-top-color: var(--ft-primary);
}

.woocommerce-info::before,
.woocommerce-message::before {
  color: var(--ft-primary);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  h1 {
    font-size: 2.125rem;
  }
  h2 {
    font-size: 1.75rem;
  }

  .ft-section {
    padding: 56px 0;
  }

  .ft-sizes {
    grid-template-columns: repeat(2, 1fr);
  }

  .ft-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 720px) {
  .ft-header__inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 0;
  }

  .ft-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .ft-nav ul {
    gap: 16px;
    flex-wrap: wrap;
  }

  .ft-header__actions {
    margin-left: auto;
  }

  .ft-sizefinder__sep {
    display: none;
  }

  .ft-sizefinder__field {
    flex: 1 1 30%;
  }

  .ft-sizefinder .ft-btn {
    width: 100%;
  }

  .ft-sizes {
    grid-template-columns: 1fr;
  }

  .ft-pleats {
    height: 180px;
  }

  .ft-footer__grid {
    grid-template-columns: 1fr;
  }
}
