/*
Theme Name: HotWater Clean
Description: Clean Hello Elementor child theme providing a licence-free site shell and blog fallback.
Author: SpecAir
Template: hello-elementor
Version: 1.0.1
Text Domain: hotwater-clean
*/

:root {
  --hw-green: #9aeb2e;
  --hw-green-dark: #5bb832;
  --hw-ink: #07100b;
  --hw-paper: #ffffff;
  --hw-muted: #66716a;
}

body {
  margin: 0;
  color: var(--hw-ink);
  background: var(--hw-paper);
}

.hw-site-header {
  position: relative;
  z-index: 100;
  background: #050a07;
  border-bottom: 1px solid rgba(154, 235, 46, 0.28);
}

.hw-header-inner,
.hw-footer-inner,
.hw-content {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hw-header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.hw-brand {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.hw-brand span {
  color: var(--hw-green);
}

.hw-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.hw-nav a {
  color: #fff;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}

.hw-nav a:hover,
.hw-nav a:focus {
  color: var(--hw-green);
}

.hw-nav .hw-call {
  padding: 11px 17px;
  color: var(--hw-ink);
  background: var(--hw-green);
  border-radius: 999px;
}

.hw-content {
  padding: 64px 0 80px;
}

.hw-article {
  max-width: 900px;
  margin: 0 auto;
}

.hw-article h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.hw-article-meta {
  margin-bottom: 28px;
  color: var(--hw-muted);
}

.hw-article-image {
  width: 100%;
  height: auto;
  margin: 0 0 34px;
  border-radius: 18px;
}

.hw-article-body {
  font-size: 18px;
  line-height: 1.72;
}

.hw-article-body h2,
.hw-article-body h3 {
  margin-top: 1.6em;
  line-height: 1.2;
}

.hw-article-body img {
  max-width: 100%;
  height: auto;
}

.hw-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.hw-blog-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #e2efd5;
  border-radius: 16px;
  box-shadow: 0 8px 26px rgba(5, 16, 11, 0.1);
}

.hw-blog-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.hw-blog-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.hw-blog-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.25;
}

.hw-blog-card h3 a {
  color: #000;
  text-decoration: none;
}

.hw-blog-card p {
  margin: 0 0 18px;
  color: #2f3933;
}

.hw-read-more {
  margin-top: auto;
  color: var(--hw-green-dark);
  font-weight: 750;
  text-decoration: none;
}

.hw-blog-pagination {
  margin-top: 34px;
  text-align: center;
}

.hw-blog-pagination ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hw-blog-pagination a,
.hw-blog-pagination .current {
  display: inline-flex;
  min-width: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  color: var(--hw-ink);
  text-decoration: none;
  border-radius: 999px;
}

.hw-blog-pagination .current,
.hw-blog-pagination a:hover {
  background: var(--hw-green);
}

.hotwater-service-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #fff;
  background: linear-gradient(180deg, transparent 15%, rgba(0, 0, 0, 0.82) 100%);
  border-radius: 14px;
}

.hotwater-service-card h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 19px;
}

.hotwater-service-card p {
  margin: 0;
  color: #fff;
  font-size: 15px;
  line-height: 1.45;
}

.hw-site-footer {
  padding: 48px 0 28px;
  color: #dce6df;
  background: #050a07;
}

.hw-footer-main {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-start;
}

.hw-footer-main p {
  max-width: 600px;
  margin: 12px 0 0;
  color: #aab6ae;
}

.hw-footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.hw-footer-links a {
  color: #fff;
  text-decoration: none;
}

.hw-copyright {
  margin-top: 34px;
  padding-top: 22px;
  color: #839087;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

@media (max-width: 860px) {
  .hw-header-inner,
  .hw-footer-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .hw-header-inner {
    padding: 18px 0;
  }

  .hw-nav {
    justify-content: flex-start;
    gap: 15px 20px;
  }

  .hw-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .hw-header-inner,
  .hw-footer-inner,
  .hw-content {
    width: min(100% - 28px, 1180px);
  }

  .hw-nav {
    font-size: 14px;
  }

  .hw-blog-grid {
    grid-template-columns: 1fr;
  }
}
