/*
Theme Name: Water Filter To Go Aqua
Theme URI: https://waterfiltertogo.com
Description: Fresh clean aqua-minimal theme for Water Filter To Go. Teal accent, Mulish typography, centered hero with wave motif, soft rounded cards, abundant white space. No framework, no bloat — fast, SEO-first, conversion-focused.
Author: Water Filter To Go
Version: 2.0
Tested up to: 7.0
Requires PHP: 8.0
License: GNU GPLv2 or later
Text Domain: wftg
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --teal:       #0ca678;
  --teal-dk:    #099268;
  --teal-lt:    #e6f7f2;
  --teal-mid:   #c3ece2;
  --ink:        #1a2530;
  --ink-soft:   #3d5166;
  --muted:      #6b7c8e;
  --line:       #dde6ec;
  --bg:         #ffffff;
  --surface:    #f5faf8;
  --surface2:   #eef6f2;
  --good:       #2f9e44;
  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --shadow-sm:  0 2px 8px rgba(12,166,120,.10);
  --shadow-md:  0 6px 24px rgba(12,166,120,.13);
  --max-prose:  780px;
  --max-wide:   1120px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Mulish', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Mulish', system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.22;
  color: var(--ink);
  margin: 0 0 .45em;
}
h1 { font-size: 2.3rem; letter-spacing: -.02em; }
h2 { font-size: 1.6rem; letter-spacing: -.01em; }
h3 { font-size: 1.22rem; }
p, ul, ol { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.4em; }
li { margin: .3em 0; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.wrap {
  max-width: var(--max-prose);
  margin: 0 auto;
  padding: 0 22px;
}
.wrap--wide {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 22px;
}

/* ============================================================
   SITE HEADER — centered stacked (brand top, nav below)
   ============================================================ */
.site-header {
  background: #fff;
  border-bottom: 2px solid var(--teal-mid);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 12px rgba(12,166,120,.08);
}
.hd {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 14px 22px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.brand {
  font-family: 'Mulish', sans-serif;
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.02em;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 7px;
}
.brand-drop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--teal);
  border-radius: 50%;
  flex-shrink: 0;
}
.brand-drop svg { display: block; }
.brand-text em {
  font-style: normal;
  color: var(--teal);
}
.nav { width: 100%; }
.nav .menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav .menu li { list-style: none; margin: 0; }
.nav .menu a {
  display: inline-block;
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 6px 13px;
  border-radius: 999px;
  transition: background .14s, color .14s;
  white-space: nowrap;
  text-decoration: none;
}
.nav .menu a:hover,
.nav .menu .current-menu-item > a,
.nav .menu .current-cat > a,
.nav .menu .current-post-parent > a,
.nav .menu .current-menu-parent > a {
  color: var(--teal);
  background: var(--teal-lt);
  text-decoration: none;
}

/* ============================================================
   HERO — centered, wave SVG at bottom, clean aqua-wash gradient
   ============================================================ */
.wftg-hero {
  position: relative;
  background: linear-gradient(160deg, var(--surface) 0%, var(--teal-lt) 55%, #d3f0e7 100%);
  text-align: center;
  padding: 68px 22px 96px;
  overflow: hidden;
}
.wftg-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}
.wftg-hero__eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--teal);
  background: rgba(12,166,120,.12);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 18px;
}
.wftg-hero__title {
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--ink);
  margin: 0 0 .45em;
  line-height: 1.15;
}
.wftg-hero__sub {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.wftg-hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.wftg-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--teal-dk);
  background: #fff;
  border: 1.5px solid var(--teal-mid);
  border-radius: 999px;
  padding: 6px 14px;
  box-shadow: var(--shadow-sm);
}
.wftg-hero__badge svg { flex-shrink: 0; }
/* SVG wave sits at the bottom of the hero */
.wftg-hero__wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
}
.wftg-hero__wave svg {
  display: block;
  width: 100%;
  height: 48px;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.site-main { padding: 44px 0 56px; }

/* ============================================================
   CARDS GRID — soft rounded, image-top, gentle shadow
   ============================================================ */
.wftg-grid-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
}
.wftg-grid-head h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
  color: var(--ink);
}
.wftg-grid-head a {
  font-size: .86rem;
  font-weight: 700;
  color: var(--teal);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  margin: 0 0 28px;
}
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid var(--line);
  box-shadow: 0 2px 10px rgba(12,166,120,.06);
  transition: box-shadow .2s, transform .15s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card a {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card a:hover { text-decoration: none; }
.card .thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--teal-lt) 0%, var(--teal-mid) 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.card .thumb span {
  font-weight: 800;
  font-size: .9rem;
  color: var(--teal-dk);
  text-align: center;
  padding: 8px;
  line-height: 1.3;
}
.card .thumb.has-img span { display: none; }
/* Subtle aqua tint on thumb hover */
.card:hover .thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(12,166,120,.06);
}
.card .body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card .cat {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--teal);
  margin-bottom: 6px;
}
.card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--ink);
  line-height: 1.3;
}
.card .ex {
  font-size: .875rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination-wrap { margin: 32px 0 8px; }
.pagination-wrap .nav-links { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pagination-wrap .page-numbers {
  display: inline-block;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 700;
  color: var(--teal);
  border: 1.5px solid var(--teal-mid);
  background: #fff;
  transition: background .14s, color .14s;
}
.pagination-wrap .page-numbers.current,
.pagination-wrap .page-numbers:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

/* ============================================================
   ARCHIVE / SEARCH HEADING
   ============================================================ */
.archive-title {
  font-size: 1.8rem;
  font-weight: 900;
  margin: 0 0 6px;
  letter-spacing: -.02em;
}
.archive-desc {
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 28px;
}

/* ============================================================
   SINGLE ARTICLE
   ============================================================ */
.breadcrumb {
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 0 4px;
  align-items: center;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--teal); text-decoration: none; }
.breadcrumb .sep { opacity: .5; }

.post-header { margin-bottom: 28px; }
.post-title {
  font-size: 2.15rem;
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1.18;
  margin: 0 0 12px;
}
.meta-line {
  font-size: .82rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}
.meta-line .meta-dot {
  width: 4px;
  height: 4px;
  background: var(--teal-mid);
  border-radius: 50%;
  display: inline-block;
}

/* Featured image on single */
.post-feat-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 0 0 28px;
}
.post-feat-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   ENTRY CONTENT (.entry)
   ============================================================ */
.entry { max-width: var(--max-prose); }
.entry h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  margin: 2em 0 .6em;
  padding-bottom: .3em;
  border-bottom: 2px solid var(--teal-mid);
  letter-spacing: -.01em;
}
.entry h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink);
  margin: 1.6em 0 .4em;
}
.entry p { margin: 0 0 1.1em; }
.entry a { color: var(--teal); font-weight: 600; }
.entry a:hover { color: var(--teal-dk); text-decoration: underline; }
/* Custom bullet list — aqua diamond markers */
.entry ul {
  list-style: none;
  padding-left: 1.5em;
}
.entry ul > li {
  position: relative;
  padding-left: .1em;
  margin: .45em 0;
}
.entry ul > li::before {
  content: '';
  position: absolute;
  left: -1.15em;
  top: .62em;
  width: .48em;
  height: .48em;
  background: var(--teal);
  border-radius: 2px;
  transform: rotate(45deg);
  opacity: .85;
}
.entry ol { padding-left: 1.4em; }
.entry ol > li { margin: .45em 0; }
.entry ol > li::marker { color: var(--teal); font-weight: 800; }
.entry blockquote {
  border-left: 4px solid var(--teal);
  margin: 1.6em 0;
  padding: 14px 20px;
  background: var(--teal-lt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--ink-soft);
}

/* ============================================================
   AFFILIATE DISCLOSURE (.cmpc-disc)
   ============================================================ */
.cmpc-disc {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--surface2);
  border: 1.5px solid var(--teal-mid);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  margin: 0 0 24px;
  font-size: .81rem;
  color: var(--muted);
  line-height: 1.55;
}
.cmpc-disc::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230ca678'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20A10 10 0 0 0 12 2zm1 14h-2v-5h2v5zm0-7h-2V7h2v2z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ============================================================
   CTA AMAZON BUTTON (.cta-amz)
   ============================================================ */
.cta-amz {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: #fff !important;
  font-family: 'Mulish', sans-serif;
  font-weight: 800;
  font-size: .97rem;
  text-decoration: none !important;
  padding: 13px 26px;
  border-radius: 999px;
  margin: 10px 0 18px;
  box-shadow: 0 4px 16px rgba(12,166,120,.30);
  transition: background .15s, box-shadow .15s, transform .1s;
  letter-spacing: .01em;
}
.cta-amz::after {
  content: '→';
  font-weight: 900;
  opacity: .85;
  font-size: 1.05em;
}
.cta-amz:hover {
  background: var(--teal-dk);
  box-shadow: 0 6px 22px rgba(12,166,120,.38);
  transform: translateY(-1px);
  text-decoration: none !important;
  color: #fff !important;
}
.cta-amz span {
  font-weight: 500;
  opacity: .8;
  font-size: .82em;
}

/* ============================================================
   TABLE WRAP (.wftg-tablewrap)
   ============================================================ */
.wftg-tablewrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.6em 0;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--teal-mid);
  box-shadow: 0 2px 8px rgba(12,166,120,.07);
}
.wftg-tablewrap::-webkit-scrollbar { height: 6px; }
.wftg-tablewrap::-webkit-scrollbar-track { background: var(--surface); }
.wftg-tablewrap::-webkit-scrollbar-thumb { background: var(--teal-mid); border-radius: 6px; }
.entry table {
  border-collapse: collapse;
  width: 100%;
  min-width: 540px;
  font-size: .92rem;
  margin: 0;
}
.entry th,
.entry td {
  border: 1px solid var(--teal-mid);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
.entry th {
  background: var(--teal-lt);
  font-weight: 800;
  color: var(--teal-dk);
  white-space: nowrap;
  font-size: .87rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.entry tbody tr:nth-child(even) td { background: var(--surface); }
.entry tbody tr:hover td { background: var(--teal-lt); }

/* ============================================================
   RELATED POSTS
   ============================================================ */
.related-section {
  border-top: 2px solid var(--teal-mid);
  margin-top: 48px;
  padding-top: 32px;
}
.related-section h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 20px;
  border: none;
  padding: 0;
}

/* ============================================================
   PAGE TEMPLATE
   ============================================================ */
.page-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--teal-mid);
}
.page-title {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -.02em;
  margin: 0;
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.6);
  margin-top: 60px;
}
.footer-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 40px 22px 32px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.footer-brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.01em;
}
.footer-brand-name em {
  font-style: normal;
  color: var(--teal);
}
.footer-drop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--teal);
  border-radius: 50%;
  flex-shrink: 0;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.foot-links a {
  font-size: .84rem;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: color .14s;
}
.foot-links a:hover { color: var(--teal); text-decoration: none; }
.footer-legal {
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  line-height: 1.65;
}
.footer-legal a { color: rgba(255,255,255,.55); }
.footer-legal a:hover { color: var(--teal); text-decoration: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
  body { font-size: 16px; line-height: 1.66; }
  .wrap, .wrap--wide { padding: 0 16px; }
  h1, .post-title { font-size: 1.65rem; }
  h2 { font-size: 1.3rem; }
  .wftg-hero { padding: 44px 16px 72px; }
  .wftg-hero__title { font-size: 1.8rem; }
  .wftg-hero__sub { font-size: 1rem; }
  .grid { gap: 16px; }
  .card .body { padding: 14px 16px 16px; }
  .post-title { font-size: 1.6rem; }
  .hd { padding: 12px 16px 8px; }
  .nav { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
    margin: 0 -16px; padding: 2px 16px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav .menu { flex-wrap: nowrap; width: max-content; gap: 2px 3px; }
  .cta-amz { display: flex; justify-content: center; width: 100%; text-align: center; padding: 13px 20px; }
  .footer-inner { padding: 32px 16px 24px; }
  .foot-links { justify-content: center; }
  .footer-brand { justify-content: center; }
  .footer-legal { text-align: center; }
  .entry th, .entry td { padding: 9px 10px; }
}
