/* ANC Plumbing - flat structure */

:root {
  --navy: #122432;
  --navy-dark: #12212f;
  --yellow: #f3cc0c;
  --yellow-light: #f8ca23;
  --text: #717273;
  --nav-bg: #343434;
  --white: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text);
  background-color: #ecebe7;
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.45) 0 2px, transparent 2px 9px);
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Rokkitt", Georgia, "Times New Roman", serif;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.25;
}

p {
  margin: 0;
}

.page {
  width: 960px;
  max-width: 96%;
  margin: 0 auto;
  background: var(--white);
  box-shadow: 0 0 30px rgba(18, 36, 50, 0.14);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 30px 0;
}

.brand img {
  display: block;
  width: 380px;
  max-width: 100%;
}

.header-contact {
  text-align: right;
  flex-shrink: 0;
}

.contact-label {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  margin-bottom: 2px;
  font-family: "Rokkitt", Georgia, serif;
  font-size: 18px;
  line-height: 24px;
  color: var(--text);
}

.contact-label .call-us {
  width: 20px;
  height: 20px;
  padding-bottom: 2px;
}

.contact-details {
  font-family: "Rokkitt", Georgia, serif;
  font-size: 20px;
  line-height: 1.4;
  white-space: nowrap;
}

.contact-details a {
  color: var(--navy);
}

.contact-details .divider {
  margin: 0 6px;
  color: #c5c5c5;
}

.main-nav {
  display: flex;
  align-items: stretch;
  min-height: 54px;
  margin-top: 24px;
  background: var(--nav-bg) url("menubg.png") repeat-x;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav li a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 20px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 15px;
  color: #bbbbbb;
}

.main-nav li a:hover {
  color: var(--white);
}

.main-nav li a.active {
  color: var(--white);
  box-shadow: inset 0 -3px 0 var(--yellow);
}

.hero {
  padding: 26px 30px 0;
}

.hero-image {
  position: relative;
  overflow: hidden;
  background: var(--navy-dark);
}

.hero-image > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-caption {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 350px;
  max-width: calc(100% - 40px);
  padding: 18px 22px 20px;
  color: #fafafa;
  background: rgba(18, 33, 47, 0.86);
  border-top: 3px solid var(--yellow);
}

.hero-caption h1 {
  margin-bottom: 8px;
  font-size: 25px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
}

.hero-caption p {
  font-size: 13px;
  line-height: 1.65;
  color: #dbe4ea;
}

.intro {
  padding: 38px 42px 42px;
  text-align: center;
  border-bottom: 1px solid #f5d432;
}

.intro h2 {
  max-width: 820px;
  margin: 0 auto;
  font-size: 32px;
  line-height: 1.35;
  color: var(--navy);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  padding: 50px 30px 56px;
  text-align: center;
}

.feature {
  max-width: 280px;
  margin: 0 auto;
}

.circle {
  display: grid;
  place-items: center;
  width: 152px;
  height: 152px;
  margin: 0 auto 22px;
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(18, 36, 50, 0.12);
}

.circle img {
  display: block;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--white);
  object-fit: cover;
}

.feature h3 {
  margin-bottom: 9px;
  font-size: 26px;
  color: #040404;
}

.feature p {
  font-size: 14px;
  line-height: 1.7;
}

.contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 36px 42px;
  background: var(--navy-dark);
  border-top: 4px solid var(--yellow);
}

.contact-strip h2 {
  margin-bottom: 4px;
  font-size: 30px;
  color: var(--white);
}

.contact-strip p {
  font-size: 13.5px;
  color: #a9b8c4;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

.btn {
  display: inline-block;
  padding: 13px 22px;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: 3px;
}

.btn-solid {
  color: var(--navy);
  background: var(--yellow);
}

.btn-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.site-footer {
  background: var(--navy-dark);
  color: #688094;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 56px;
  width: 960px;
  max-width: 96%;
  margin: 0 auto;
  padding: 42px 0 34px;
}

.site-footer h3 {
  margin-bottom: 14px;
  font-size: 26px;
  color: var(--white);
}

.footer-about p {
  font-size: 13.5px;
  line-height: 1.75;
  color: #8fa3b3;
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list li {
  margin-bottom: 9px;
  font-size: 13px;
  color: #8fa3b3;
}

.footer-list li span {
  display: inline-block;
  min-width: 62px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--yellow);
}

.footer-list a {
  color: #d3e0e9;
}

.footer-bottom {
  background: #000000;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  width: 960px;
  max-width: 96%;
  margin: 0 auto;
  padding: 16px 0;
  font-size: 13px;
  font-weight: 700;
  color: #888888;
}

@media (max-width: 900px) {
  .site-header {
    padding: 24px 22px 0;
  }
  .brand img {
    width: 330px;
  }
  .contact-details {
    font-size: 18px;
  }
  .main-nav li a {
    padding: 0 15px;
    font-size: 14px;
  }
  .hero {
    padding: 22px 22px 0;
  }
  .intro {
    padding: 32px 28px 36px;
  }
  .intro h2 {
    font-size: 28px;
  }
  .features {
    gap: 24px;
    padding: 42px 22px 48px;
  }
  .circle {
    width: 136px;
    height: 136px;
  }
  .circle img {
    width: 126px;
    height: 126px;
  }
  .feature h3 {
    font-size: 23px;
  }
  .contact-strip {
    padding: 30px 28px;
  }
  .footer-inner {
    padding: 36px 28px 28px;
    gap: 40px;
  }
  .footer-bottom-inner {
    padding: 16px 28px;
  }
}

@media (max-width: 720px) {
  .site-header {
    display: block;
    padding: 22px 20px 0;
  }
  .brand img {
    width: 300px;
  }
  .header-contact {
    margin-top: 16px;
    text-align: left;
  }
  .contact-label {
    justify-content: flex-start;
  }
  .contact-details {
    font-size: 17px;
    white-space: normal;
  }
  .main-nav {
    min-height: 48px;
    margin-top: 18px;
    overflow-x: auto;
  }
  .main-nav ul {
    flex-wrap: nowrap;
  }
  .main-nav li a {
    height: 48px;
    padding: 0 16px;
    font-size: 13px;
    white-space: nowrap;
  }
  .hero {
    padding: 16px 16px 0;
  }
  .hero-image > img {
    aspect-ratio: 16 / 10;
  }
  .hero-caption {
    position: static;
    width: 100%;
    max-width: none;
    padding: 16px 18px 18px;
  }
  .hero-caption h1 {
    font-size: 21px;
  }
  .intro {
    padding: 28px 20px 32px;
  }
  .intro h2 {
    font-size: 23px;
  }
  .features {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 36px 20px 42px;
  }
  .feature {
    max-width: 340px;
  }
  .contact-strip {
    display: block;
    padding: 28px 22px 32px;
  }
  .contact-actions {
    margin-top: 20px;
  }
  .btn {
    flex: 1 1 auto;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 32px 22px 26px;
  }
  .footer-bottom-inner {
    display: block;
    padding: 15px 22px;
    line-height: 1.8;
  }
}

@media (max-width: 380px) {
  .brand img {
    width: 250px;
  }
  .contact-details {
    font-size: 15.5px;
  }
}
