/* H2O Pure Zone — WordPress Pages Theme Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@600;700;800&display=swap');

:root {
  --primary: #00AEEF;
  --primary-dark: #0098d4;
  --secondary: #0B5ED7;
  --accent: #00D084;
  --dark: #0F172A;
  --dark-800: #1e293b;
  --dark-700: #334155;
  --muted: #64748b;
  --light: #F8FAFC;
  --border: #e2e8f0;
  --white: #ffffff;
  --font-base: 'Inter', sans-serif;
  --font-heading: 'Poppins', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-base);
  color: var(--dark);
  background: var(--light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── NAVBAR ─────────────────────────────────────────── */
.h2o-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.h2o-navbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
}

.h2o-navbar__brand svg { width: 32px; height: 32px; }

.h2o-navbar__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.h2o-navbar__nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark-700);
  transition: color 0.2s;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.h2o-navbar__nav a:hover,
.h2o-navbar__nav a.current {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.h2o-navbar__cta {
  background: var(--primary);
  color: var(--white) !important;
  border: none !important;
  padding: 10px 20px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.h2o-navbar__cta:hover { background: var(--primary-dark) !important; }

.h2o-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.h2o-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s;
}

.h2o-mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  gap: 1rem;
}

.h2o-mobile-menu.open { display: flex; }
.h2o-mobile-menu a { font-size: 1rem; font-weight: 500; color: var(--dark-700); padding: 8px 0; border-bottom: 1px solid var(--border); }
.h2o-mobile-menu a:last-child { border-bottom: none; }

@media (max-width: 768px) {
  .h2o-navbar__nav { display: none; }
  .h2o-hamburger { display: flex; }
}

/* ─── PAGE HERO ──────────────────────────────────────── */
.h2o-page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-800) 50%, #0c3566 100%);
  color: var(--white);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.h2o-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(0,174,239,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(0,208,132,0.10) 0%, transparent 60%);
}

.h2o-page-hero__content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }

.h2o-page-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,174,239,0.15);
  border: 1px solid rgba(0,174,239,0.3);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.h2o-page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.h2o-page-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 580px;
  margin: 0 auto;
}

/* ─── MAIN CONTAINER ─────────────────────────────────── */
.h2o-main { max-width: 1200px; margin: 0 auto; padding: 4rem 2rem; }
.h2o-main--wide { max-width: 1400px; }

/* ─── SECTION HEADER ─────────────────────────────────── */
.h2o-section-header { text-align: center; margin-bottom: 3rem; }

.h2o-section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.h2o-section-header p { color: var(--muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* ─── CARDS ──────────────────────────────────────────── */
.h2o-grid { display: grid; gap: 1.5rem; }
.h2o-grid--2 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.h2o-grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.h2o-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.h2o-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,174,239,0.12);
  border-color: rgba(0,174,239,0.3);
}

.h2o-card__icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(0,174,239,0.12), rgba(11,94,215,0.12));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.h2o-card__icon svg { width: 28px; height: 28px; color: var(--primary); stroke: var(--primary); }

.h2o-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.6rem;
}

.h2o-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

/* ─── BLOG LISTING ───────────────────────────────────── */
.h2o-posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem; }

.h2o-post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.h2o-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.h2o-post-card__thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.h2o-post-card__thumb-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 3rem;
}

.h2o-post-card__body { padding: 1.5rem; }

.h2o-post-card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.h2o-post-card__cat {
  background: rgba(0,174,239,0.1);
  color: var(--primary);
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.h2o-post-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.h2o-post-card h3 a:hover { color: var(--primary); }

.h2o-post-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1rem; }

.h2o-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: gap 0.2s;
}

.h2o-read-more:hover { gap: 10px; }

/* ─── SINGLE POST ────────────────────────────────────── */
.h2o-single-post { max-width: 780px; margin: 0 auto; padding: 3rem 2rem; }

.h2o-single-post__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--muted);
  flex-wrap: wrap;
}

.h2o-single-post__meta span { display: flex; align-items: center; gap: 4px; }

.h2o-single-post__feat-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 2rem;
}

.h2o-single-post__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.h2o-content { font-size: 1.05rem; line-height: 1.8; color: var(--dark-800); }
.h2o-content h1, .h2o-content h2, .h2o-content h3, .h2o-content h4 { font-family: var(--font-heading); color: var(--dark); margin: 1.5em 0 0.5em; line-height: 1.3; }
.h2o-content h2 { font-size: 1.6rem; }
.h2o-content h3 { font-size: 1.3rem; }
.h2o-content p { margin-bottom: 1.2em; }
.h2o-content ul, .h2o-content ol { margin: 1em 0 1em 1.5em; }
.h2o-content li { margin-bottom: 0.4em; }
.h2o-content a { color: var(--primary); text-decoration: underline; }
.h2o-content blockquote { border-left: 4px solid var(--primary); padding: 1rem 1.5rem; background: rgba(0,174,239,0.06); border-radius: 0 8px 8px 0; margin: 1.5em 0; color: var(--dark-700); font-style: italic; }
.h2o-content img { border-radius: 12px; margin: 1.5em 0; }
.h2o-content pre, .h2o-content code { background: var(--dark); color: #e2e8f0; border-radius: 8px; padding: 1em; overflow-x: auto; font-size: 0.9em; }

/* ─── BREADCRUMB ─────────────────────────────────────── */
.h2o-breadcrumb { padding: 0.75rem 2rem; background: var(--white); border-bottom: 1px solid var(--border); font-size: 0.85rem; color: var(--muted); }
.h2o-breadcrumb a { color: var(--primary); }
.h2o-breadcrumb span { margin: 0 0.4rem; }

/* ─── PAGINATION ─────────────────────────────────────── */
.h2o-pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 3rem; }
.h2o-pagination a, .h2o-pagination span { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; border: 1px solid var(--border); color: var(--dark-700); transition: all 0.2s; }
.h2o-pagination a:hover, .h2o-pagination .current { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ─── CTA BANNER ─────────────────────────────────────── */
.h2o-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  text-align: center;
  padding: 4rem 2rem;
  margin: 4rem 0 0;
}

.h2o-cta h2 { font-family: var(--font-heading); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 0.75rem; }
.h2o-cta p { font-size: 1.05rem; opacity: 0.9; margin-bottom: 2rem; }
.h2o-cta__buttons { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ─── BUTTONS ────────────────────────────────────────── */
.h2o-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  text-decoration: none;
}

.h2o-btn--primary { background: var(--primary); color: var(--white); }
.h2o-btn--primary:hover { background: var(--primary-dark); color: var(--white); }
.h2o-btn--white { background: var(--white); color: var(--primary); }
.h2o-btn--white:hover { background: var(--light); }
.h2o-btn--outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.h2o-btn--outline-white:hover { background: rgba(255,255,255,0.1); }
.h2o-btn--green { background: var(--accent); color: var(--white); }
.h2o-btn--green:hover { background: #00b872; }

/* ─── FOOTER ─────────────────────────────────────────── */
.h2o-footer { background: var(--dark); color: rgba(255,255,255,0.8); }

.h2o-footer__top { max-width: 1200px; margin: 0 auto; padding: 4rem 2rem 3rem; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }

.h2o-footer__brand { font-family: var(--font-heading); }
.h2o-footer__brand-name { font-size: 1.3rem; font-weight: 700; color: var(--white); display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.h2o-footer__tagline { font-size: 0.9rem; line-height: 1.6; opacity: 0.75; margin-bottom: 1.5rem; }
.h2o-footer__contact-item { display: flex; align-items: center; gap: 8px; margin-bottom: 0.5rem; font-size: 0.9rem; }
.h2o-footer__contact-item a { color: var(--primary); }
.h2o-footer__contact-item a:hover { text-decoration: underline; }

.h2o-footer__heading { font-family: var(--font-heading); font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--white); margin-bottom: 1.25rem; }

.h2o-footer__links li { margin-bottom: 0.6rem; }
.h2o-footer__links a { font-size: 0.9rem; opacity: 0.75; transition: opacity 0.2s, color 0.2s; }
.h2o-footer__links a:hover { opacity: 1; color: var(--primary); }

.h2o-footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 1.5rem 2rem; display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; font-size: 0.85rem; opacity: 0.6; }

@media (max-width: 900px) { .h2o-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .h2o-footer__top { grid-template-columns: 1fr; gap: 2rem; } .h2o-footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; } }

/* ─── WHATSAPP FLOAT ─────────────────────────────────── */
.h2o-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.h2o-whatsapp:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(37,211,102,0.5);
}

.h2o-whatsapp svg { width: 30px; height: 30px; fill: white; }

/* ─── PAGE EDITABLE CONTENT ──────────────────────────── */
.h2o-page-content { max-width: 900px; margin: 0 auto; padding: 3rem 2rem; }
.h2o-page-content .wp-block-image img { border-radius: 12px; }
.h2o-page-content .wp-block-table td, .h2o-page-content .wp-block-table th { padding: 0.75rem 1rem; border: 1px solid var(--border); }
.h2o-page-content .wp-block-table thead { background: var(--primary); color: var(--white); }

/* ─── NO POSTS ───────────────────────────────────────── */
.h2o-no-posts { text-align: center; padding: 5rem 2rem; color: var(--muted); }
.h2o-no-posts h3 { font-size: 1.4rem; margin-bottom: 0.5rem; color: var(--dark); }

/* ─── UTILS ──────────────────────────────────────────── */
.text-primary { color: var(--primary); }
.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
