/*
Theme Name: Water Analysis CT
Theme URI: https://example.com/
Author: AMBA Media
Description: Clean responsive WordPress theme for water testing sites with a 150-200px black menu header, full-width 450px water banner, large readable content, and three-column black footer.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: water-analysis-ct
*/

:root {
  --wa-black: #050505;
  --wa-blue: #006fd6;
  --wa-deep-blue: #0057b8;
  --wa-white: #ffffff;
  --wa-light: #f6f9ff;
  --wa-text: #111111;
  --wa-max-width: 1180px;
  --wa-side-pad: 40px;
}

* { box-sizing: border-box; }

html { font-size: 19px; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--wa-text);
  background: var(--wa-white);
  line-height: 1.65;
}

a { color: var(--wa-deep-blue); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

.site-header {
  background: var(--wa-black);
  color: var(--wa-white);
  min-height: 170px;
  display: flex;
  align-items: center;
}

.header-inner {
  width: min(var(--wa-max-width), calc(100% - var(--wa-side-pad) * 2));
  margin: 0 auto;
  padding: 26px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-branding,
.site-title {
  display: none;
}

.primary-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px 42px;
  flex-wrap: wrap;
}

.primary-navigation a {
  color: var(--wa-blue);
  font-weight: 900;
  font-size: 1.12rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.primary-navigation a:hover,
.primary-navigation a:focus {
  color: var(--wa-white);
  text-decoration: none;
}

.hero-banner {
  height: 450px;
  width: 100%;
  background-image: linear-gradient(rgba(0,0,0,.02), rgba(0,0,0,.22)), url('assets/images/water-banner.png');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  border-radius: 0;
}

.hero-content {
  width: min(var(--wa-max-width), calc(100% - var(--wa-side-pad) * 2));
  height: 100%;
  margin: 0 auto;
  position: relative;
}


.hero-title {
  position: absolute;
  left: 0;
  top: 42px;
  right: 0;
  color: var(--wa-white);
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-shadow: 0 3px 12px rgba(0,0,0,.45);
  white-space: nowrap;
}

.hero-phone {
  position: absolute;
  right: 0;
  bottom: 34px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  background: rgba(0, 48, 120, .62);
  color: var(--wa-white);
  border: 3px solid rgba(255,255,255,.94);
  padding: 22px 34px 42px;
  border-radius: 0;
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .02em;
  box-shadow: 0 12px 34px rgba(0,0,0,.35);
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.hero-phone::before {
  content: "\260E";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border: 3px solid rgba(255,255,255,.94);
  border-radius: 50%;
  font-size: 2.5rem;
  line-height: 1;
}

.hero-phone::after {
  content: "Schedule your Water Test and Pest Inspection today!";
  display: block;
  position: absolute;
  right: 30px;
  bottom: 12px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.hero-phone:hover,
.hero-phone:focus {
  color: var(--wa-white);
  background: rgba(0, 88, 190, .76);
  text-decoration: none;
}

.site-main {
  width: min(var(--wa-max-width), calc(100% - var(--wa-side-pad) * 2));
  margin: 0 auto;
  padding: 56px 0;
}

article,
.entry-content,
.entry-content > * {
  max-width: 100%;
}

.entry-header,
.page-header { margin-bottom: 22px; }

.entry-title,
.page-title,
h1, h2, h3, h4, h5, h6 {
  color: var(--wa-black);
  font-weight: 900;
  line-height: 1.2;
}

.entry-title,
.page-title,
h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.45rem); }
h3 { font-size: clamp(1.45rem, 2.3vw, 1.9rem); }

.entry-content {
  font-size: 1.18rem;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  margin-bottom: 1.15rem;
}

.entry-content hr {
  border: 0;
  border-top: 2px solid #d8d8d8;
  margin: 36px 0;
}

.entry-content img {
  max-width: 100%;
  height: auto;
}

.button,
.wp-block-button__link {
  background: var(--wa-deep-blue);
  color: var(--wa-white);
  padding: 14px 26px;
  border-radius: 0;
  font-weight: 900;
  display: inline-block;
  text-transform: uppercase;
}

.button:hover,
.wp-block-button__link:hover {
  background: var(--wa-black);
  color: var(--wa-white);
  text-decoration: none;
}

.site-footer {
  background: var(--wa-black);
  color: var(--wa-white);
  margin-top: 40px;
}

.footer-widgets {
  width: min(var(--wa-max-width), calc(100% - var(--wa-side-pad) * 2));
  margin: 0 auto;
  padding: 48px 0 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}

.footer-widget h2,
.footer-widget h3,
.footer-widget .widget-title {
  color: var(--wa-blue);
  font-size: 1.35rem;
  margin-top: 0;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.footer-widget p,
.footer-widget li { color: var(--wa-white); }
.footer-widget a { color: var(--wa-white); }
.footer-widget a:hover,
.footer-widget a:focus { color: var(--wa-blue); }
.footer-widget ul { margin: 0; padding-left: 20px; }

.site-info {
  text-align: center;
  color: var(--wa-blue);
  padding: 22px 20px 30px;
  border-top: 1px solid rgba(255,255,255,.16);
  font-size: 1rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  :root { --wa-side-pad: 28px; }
  .site-header { min-height: 150px; }
  .header-inner { padding: 24px 0; }
  .primary-navigation ul { gap: 10px 24px; }
  .hero-banner { height: 360px; }
  .hero-title { top: 36px; font-size: clamp(1.8rem, 5vw, 3.1rem); white-space: normal; }
  .hero-phone {
    font-size: clamp(1.8rem, 6vw, 3rem);
    padding: 16px 24px 30px;
  }
  .hero-phone::before { width: 56px; height: 56px; font-size: 2rem; }
  .footer-widgets { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 560px) {
  :root { --wa-side-pad: 18px; }
  html { font-size: 16px; }
  .primary-navigation ul { justify-content: center; gap: 8px 16px; }
  .primary-navigation a { font-size: .9rem; }
  .hero-banner { height: 300px; }
  .hero-title { top: 26px; font-size: clamp(1.55rem, 8vw, 2.35rem); white-space: normal; }
  .hero-phone {
    right: 0;
    left: 0;
    bottom: 18px;
    justify-content: center;
    gap: 12px;
    padding: 14px 16px 30px;
    font-size: clamp(1.65rem, 8vw, 2.3rem);
  }
  .hero-phone::before { width: 44px; height: 44px; font-size: 1.5rem; }
  .hero-phone::after { right: 16px; left: 16px; text-align: center; bottom: 7px; font-size: .95rem; }
  .site-main { padding: 38px 0; }
}



/* Force post/page title links to black */
.entry-title a,
.entry-title a:visited,
.page-title a,
.page-title a:visited {
    color: #050505 !important;
    text-decoration: none;
}

.entry-title a:hover,
.page-title a:hover {
    color: #050505 !important;
    text-decoration: underline;
}


/* Mobile hamburger menu */
.menu-toggle{
  display:none;
  background:none;
  border:0;
  color: var(--wa-blue);
  font-size: 2rem;
  font-weight:900;
  cursor:pointer;
}

@media (max-width:768px){
  .site-header{min-height:120px;}
  .header-inner{flex-direction:column;}
  .menu-toggle{display:block;margin:0 auto;}
  .primary-navigation ul{display:none; width:100%; text-align:center;}
  .primary-navigation.toggled ul{
    display:flex;
    flex-direction:column;
    gap:16px;
    margin-top:15px;
  }
}
