/*
Theme Name: William HVAC
Theme URI: https://example.com/
Author: Custom
Description: A custom responsive WordPress theme for William Heating and Air Conditioning.
Version: 1.2.0
Text Domain: william-hvac
*/
:root {
  --navy: #0a2b55;
  --navy_dark: #061d3b;
  --blue: #0b73c9;
  --sky: #eaf6ff;
  --orange: #f05a1a;
  --orange_dark: #c9400a;
  --cream: #fffaf4;
  --white: #ffffff;
  --ink: #172033;
  --muted: #5c6678;
  --line: #dbe5ef;
  --shadow: 0 18px 50px rgba(6, 29, 59, 0.12);
  --radius: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Manrope", Arial, sans-serif;
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.skip_link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--white);
  background: var(--navy_dark);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip_link:focus {
  transform: translateY(0);
}

.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;
}

.site_header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(10, 43, 85, 0.1);
  backdrop-filter: blur(12px);
}

.header_inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  width: 245px;
  flex: 0 0 auto;
}

.site_navigation {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.site_navigation a {
  position: relative;
  color: var(--navy_dark);
  font-weight: 800;
}

.site_navigation a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 3px;
  content: "";
  background: var(--orange);
  border-radius: 4px;
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.site_navigation a:hover::after,
.site_navigation a:focus-visible::after,
.site_navigation a.active::after {
  transform: scaleX(1);
}

.menu_button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 9px;
  background: transparent;
  border: 0;
  border-radius: 8px;
}

.menu_button span:not(.sr_only) {
  display: block;
  height: 3px;
  margin: 5px 0;
  background: var(--navy_dark);
  border-radius: 3px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button_primary {
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 10px 24px rgba(240, 90, 26, 0.26);
}

.button_primary:hover,
.button_primary:focus-visible {
  background: var(--orange_dark);
}

.button_secondary {
  color: var(--navy);
  background: var(--white);
  border-color: var(--navy);
}

.button_secondary:hover,
.button_secondary:focus-visible {
  color: var(--white);
  background: var(--navy);
}

.button_light {
  color: var(--navy);
  background: var(--white);
}

.header_call {
  white-space: nowrap;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 16%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 22%),
    linear-gradient(115deg, #eef8ff 0%, #d9efff 56%, #f8fbfd 100%);
}

.hero_grid {
  position: relative;
  min-height: 610px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 52px;
  padding-top: 70px;
  padding-bottom: 85px;
}

.hero_content {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange_dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--navy_dark);
  line-height: 1.1;
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-family: "Oswald", Arial, sans-serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.hero_copy {
  max-width: 650px;
  margin: 0 0 30px;
  color: #33405a;
  font-size: 1.12rem;
}

.hero_actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero_points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 0;
  margin: 30px 0 0;
  list-style: none;
  color: var(--navy);
  font-weight: 800;
}

.hero_points li::before {
  margin-right: 8px;
  color: var(--orange);
  content: "✓";
}

.hero_visual {
  position: relative;
  align-self: stretch;
  min-height: 440px;
}

.sun_glow {
  position: absolute;
  top: 5%;
  right: 5%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255, 182, 77, 0.85) 0%, rgba(255, 182, 77, 0.12) 55%, transparent 72%);
  border-radius: 50%;
}

.city {
  position: absolute;
  right: 0;
  bottom: 32px;
  left: 2%;
  height: 190px;
  opacity: 0.32;
}

.city span {
  position: absolute;
  bottom: 0;
  width: 48px;
  background: linear-gradient(#8cb9d7, #4b7da5);
  border-radius: 6px 6px 0 0;
}

.city span:nth-child(1) { left: 2%; height: 42%; }
.city span:nth-child(2) { left: 17%; height: 68%; }
.city span:nth-child(3) { left: 31%; height: 100%; width: 58px; }
.city span:nth-child(4) { left: 48%; height: 58%; }
.city span:nth-child(5) { left: 64%; height: 78%; width: 64px; }
.city span:nth-child(6) { left: 83%; height: 45%; }

.hvac_unit {
  position: absolute;
  right: 4%;
  bottom: 6px;
  width: min(430px, 86%);
  filter: drop-shadow(0 28px 24px rgba(6, 29, 59, 0.28));
}

.unit_top {
  height: 64px;
  background: linear-gradient(#cfd8df, #9daab4);
  border: 10px solid #7e8b95;
  border-bottom: 0;
  border-radius: 28px 28px 5px 5px;
  transform: perspective(500px) rotateX(36deg);
  transform-origin: bottom;
}

.unit_face {
  position: relative;
  height: 330px;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.38) 0 4px, rgba(52,62,70,0.55) 4px 10px),
    linear-gradient(#7d8992, #3f4b54);
  border: 13px solid #aeb9c1;
  border-top-width: 8px;
  border-radius: 6px 6px 18px 18px;
}

.fan {
  position: absolute;
  inset: 38px 42px 66px;
  border: 14px solid rgba(12, 25, 36, 0.68);
  border-radius: 50%;
  box-shadow: inset 0 0 0 7px rgba(255,255,255,0.25);
}

.fan span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42%;
  height: 15%;
  background: #26343e;
  border-radius: 100% 20% 100% 20%;
  transform-origin: 0 50%;
}

.fan span:nth-child(1) { transform: rotate(0deg); }
.fan span:nth-child(2) { transform: rotate(90deg); }
.fan span:nth-child(3) { transform: rotate(180deg); }
.fan span:nth-child(4) { transform: rotate(270deg); }

.unit_badge {
  position: absolute;
  right: 26px;
  bottom: 20px;
  left: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px;
  color: var(--navy_dark);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  letter-spacing: 0.1em;
}

.unit_badge img {
  width: 34px;
}

.trust_bar {
  color: var(--white);
  background: var(--navy_dark);
}

.trust_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust_grid > div {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 12px;
  padding: 22px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.trust_grid > div:last-child {
  border-right: 0;
}

.trust_grid span {
  grid-row: 1 / 3;
  color: var(--orange);
  font-size: 1.75rem;
}

.trust_grid strong {
  font-size: 0.9rem;
}

.trust_grid small {
  color: #bdd1e8;
}

.section {
  padding: 100px 0;
}

.section_heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.section_heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section_heading p:last-child {
  color: var(--muted);
}

.services {
  background: var(--white);
}

.service_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service_card {
  min-height: 325px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(6, 29, 59, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service_card:hover {
  border-color: #b7d6ef;
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.service_icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  font-size: 1.9rem;
  font-weight: 800;
  border-radius: 50%;
}

.service_icon.cooling {
  color: var(--blue);
  background: #e9f6ff;
}

.service_icon.heating {
  color: var(--orange);
  background: #fff1e9;
}

.service_icon.install {
  color: var(--navy);
  background: #eaf1f8;
}

.service_card p {
  margin-top: 0;
  color: var(--muted);
}

.service_card a {
  margin-top: auto;
  color: var(--blue);
  font-weight: 800;
}

.about {
  overflow: hidden;
  background: linear-gradient(115deg, #edf7ff, #ffffff 72%);
}

.about_grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 76px;
}

.about_visual {
  position: relative;
  min-height: 430px;
  padding: 48px 30px 30px;
  background:
    radial-gradient(circle at 78% 20%, rgba(240,90,26,0.15), transparent 30%),
    linear-gradient(145deg, #cfeeff, #f7fbff);
  border-radius: 28px;
}

.van {
  position: absolute;
  right: 8%;
  bottom: 58px;
  left: 8%;
}

.van_roof {
  width: 68%;
  height: 34px;
  margin-left: 8%;
  background: #f4f6f7;
  border: 5px solid #b9c4cb;
  border-bottom: 0;
  border-radius: 24px 10px 0 0;
}

.van_body {
  position: relative;
  height: 220px;
  background: linear-gradient(#ffffff, #e5eaed);
  border: 6px solid #b9c4cb;
  border-radius: 28px 20px 16px 16px;
  box-shadow: 0 24px 30px rgba(6, 29, 59, 0.18);
}

.van_body > img {
  position: absolute;
  top: 54px;
  left: 34px;
  width: 52%;
}

.van_window {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 23%;
  height: 78px;
  background: linear-gradient(135deg, #89bbd9, #355d78);
  border-radius: 10px;
}

.van_wheel {
  position: absolute;
  bottom: -30px;
  width: 76px;
  height: 76px;
  background: #1d2630;
  border: 12px solid #53616b;
  border-radius: 50%;
  box-shadow: inset 0 0 0 8px #b8c3c9;
}

.wheel_one { left: 68px; }
.wheel_two { right: 62px; }

.about_badge {
  position: absolute;
  right: 20px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  color: var(--white);
  background: var(--navy);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.about_badge strong {
  color: #ffb36c;
  font-size: 1.45rem;
}

.about_content p {
  color: var(--muted);
}

.check_list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0;
  list-style: none;
  font-weight: 700;
}

.check_list li::before {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  margin-right: 10px;
  color: var(--white);
  content: "✓";
  background: var(--orange);
  border-radius: 50%;
}

.text_link {
  color: var(--blue);
  font-weight: 800;
}

.reviews {
  background: var(--cream);
}

.review_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review_card {
  padding: 30px;
  background: var(--white);
  border: 1px solid #f0ded1;
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(83, 47, 22, 0.06);
}

.stars {
  margin-bottom: 18px;
  color: var(--orange);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}

.review_card p {
  color: var(--muted);
}

.review_links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.cta_strip {
  padding: 48px 0;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(6,29,59,0.96), rgba(10,43,85,0.94)),
    radial-gradient(circle at 20% 50%, #134e80, transparent 36%);
}

.cta_inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta_inner h2 {
  margin-bottom: 0;
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.cta_actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact {
  background: var(--white);
}

.contact_grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
}

.contact_content > p:not(.eyebrow) {
  color: var(--muted);
}

.contact_details {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.contact_details > a,
.contact_details > div {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: start;
  gap: 14px;
}

.contact_details > a > span,
.contact_details > div > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--orange);
  background: #fff1e9;
  border-radius: 12px;
  font-size: 1.25rem;
}

.contact_details small {
  display: block;
  color: var(--muted);
}

.contact_details strong {
  color: var(--navy_dark);
}

.contact_form {
  padding: 34px;
  background: #f7fbff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.form_row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact_form label {
  display: block;
  margin-bottom: 18px;
  color: var(--navy_dark);
  font-weight: 800;
}

.contact_form input,
.contact_form select,
.contact_form textarea {
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #b9cad9;
  border-radius: 9px;
  outline: 0;
}

.contact_form input:focus,
.contact_form select:focus,
.contact_form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(11, 115, 201, 0.12);
}

.contact_form textarea {
  resize: vertical;
}

.form_note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.site_footer {
  color: #d9e6f3;
  background: var(--navy_dark);
}

.footer_grid {
  display: grid;
  grid-template-columns: 1.35fr 0.7fr 0.7fr 1fr;
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 54px;
}

.footer_brand img {
  width: 255px;
  margin-bottom: 20px;
}

.site_footer h3 {
  color: var(--white);
  font-size: 1rem;
}

.site_footer a {
  display: block;
  margin: 9px 0;
}

.site_footer a:hover,
.site_footer a:focus-visible {
  color: #ffb36c;
}

.footer_phone {
  color: #ffb36c;
  font-size: 1.18rem;
  font-weight: 800;
}

.footer_bottom {
  padding: 18px 0;
  color: #aec1d4;
  background: #03152b;
  text-align: center;
  font-size: 0.9rem;
}

@media (max-width: 1050px) {
  .header_call {
    display: none;
  }

  .brand {
    width: 220px;
  }

  .hero_grid {
    min-height: 570px;
    grid-template-columns: 1fr 0.85fr;
  }

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

  .trust_grid > div:nth-child(2) {
    border-right: 0;
  }

  .trust_grid > div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }
}

@media (max-width: 860px) {
  .header_inner {
    min-height: 76px;
  }

  .brand {
    width: 205px;
  }

  .menu_button {
    display: block;
    margin-left: auto;
  }

  .site_navigation {
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 16px 20px 24px;
    margin: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px rgba(6, 29, 59, 0.12);
  }

  .site_navigation.open {
    display: grid;
  }

  .site_navigation a {
    padding: 13px 6px;
  }

  .site_navigation a::after {
    bottom: 5px;
    transform-origin: left;
  }

  .hero_grid {
    grid-template-columns: 1fr;
    padding-top: 60px;
    padding-bottom: 40px;
  }

  .hero_visual {
    min-height: 400px;
  }

  .hvac_unit {
    right: 10%;
    width: min(430px, 78%);
  }

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

  .about_grid,
  .contact_grid {
    grid-template-columns: 1fr;
  }

  .about_grid {
    gap: 48px;
  }

  .contact_grid {
    gap: 42px;
  }

  .cta_inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .section {
    padding: 74px 0;
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 4.2rem);
  }

  h2 {
    font-size: 2rem;
  }

  .hero_grid {
    gap: 18px;
  }

  .hero_actions,
  .hero_actions .button,
  .cta_actions,
  .cta_actions .button {
    width: 100%;
  }

  .hero_points {
    display: grid;
  }

  .hero_visual {
    min-height: 330px;
  }

  .hvac_unit {
    right: 2%;
    width: 96%;
  }

  .unit_face {
    height: 255px;
  }

  .trust_grid,
  .service_grid,
  .review_grid,
  .footer_grid {
    grid-template-columns: 1fr;
  }

  .trust_grid > div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .trust_grid > div:last-child {
    border-bottom: 0;
  }

  .service_card {
    min-height: 0;
  }

  .about_visual {
    min-height: 340px;
  }

  .van_body {
    height: 170px;
  }

  .van_body > img {
    top: 44px;
    left: 20px;
    width: 56%;
  }

  .van_window {
    width: 25%;
    height: 60px;
  }

  .van_wheel {
    width: 60px;
    height: 60px;
    bottom: -24px;
  }

  .wheel_one { left: 38px; }
  .wheel_two { right: 34px; }

  .review_links {
    align-items: stretch;
    flex-direction: column;
  }

  .form_row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact_form {
    padding: 24px 18px;
  }

  .footer_grid {
    gap: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* WordPress and WPForms integration */
.custom-logo-link {
  display: block;
}

.custom-logo {
  width: 100%;
  height: auto;
}

.primary_menu {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary_menu a {
  position: relative;
  color: var(--navy_dark);
  font-weight: 800;
}

.wpforms_shell .wpforms-container {
  margin: 0;
}

.wpforms_shell .wpforms-field {
  padding: 0 0 18px !important;
}

.wpforms_shell .wpforms-field-label {
  color: var(--navy_dark) !important;
  font-weight: 800 !important;
}

.wpforms_shell input,
.wpforms_shell select,
.wpforms_shell textarea {
  width: 100% !important;
  max-width: none !important;
  padding: 13px 14px !important;
  color: var(--ink) !important;
  background: var(--white) !important;
  border: 1px solid #b9cad9 !important;
  border-radius: 9px !important;
}

.wpforms_shell input:focus,
.wpforms_shell select:focus,
.wpforms_shell textarea:focus {
  border-color: var(--blue) !important;
  box-shadow: 0 0 0 4px rgba(11, 115, 201, 0.12) !important;
}

.wpforms_shell button[type="submit"],
.wpforms_shell .wpforms-submit {
  min-height: 52px !important;
  padding: 13px 22px !important;
  color: var(--white) !important;
  background: var(--orange) !important;
  border: 2px solid transparent !important;
  border-radius: 10px !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 24px rgba(240, 90, 26, 0.26) !important;
}

.wpforms_shell button[type="submit"]:hover,
.wpforms_shell .wpforms-submit:hover {
  background: var(--orange_dark) !important;
}

.form_setup_notice {
  padding: 24px;
  background: #fff8e8;
  border: 1px solid #f0c46f;
  border-radius: 12px;
}

.form_setup_notice code {
  padding: 3px 6px;
  background: var(--white);
  border-radius: 4px;
}

@media (max-width: 860px) {
  .primary_menu {
    display: grid;
    gap: 0;
  }
}
