/* Shubin's Appliance Service */

:root {
  --blue: #1f4d81;
  --blue-dark: #163a61;
  --red: #ce2029;
  --nav-bg: #e1e1df;
  --text: #454545;
  --muted: #6b6b6b;
  --line: #d8d8d6;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  font-family: "Source Sans Pro", "Open Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: #fff;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: "Montserrat", "Source Sans Pro", Arial, sans-serif;
  color: var(--blue);
  line-height: 1.2;
  margin: 0 0 .6em;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center { text-align: center; }

/* ---------- Header ---------- */

.site-header {
  background: #fff;
  padding: 18px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.site-logo img { width: 300px; max-width: 70vw; }

.badge {
  width: 150px;
  height: 150px;
  flex: 0 0 auto;
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
  padding: 10px;
}

.header-phone {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--text);
  white-space: nowrap;
}

.header-phone a { color: var(--blue); }

/* ---------- Navigation ---------- */

.site-nav {
  background: var(--nav-bg);
  position: relative;
}

.nav-toggle {
  display: none;
  width: 100%;
  background: none;
  border: 0;
  padding: 14px 20px;
  font: 700 16px/1.2 "Montserrat", Arial, sans-serif;
  color: var(--blue);
  text-align: left;
  cursor: pointer;
}

.nav-toggle span { float: right; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.site-nav a {
  display: block;
  padding: 14px 22px;
  color: var(--text);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 15px;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.site-nav a:hover { background: #d2d2d0; text-decoration: none; }

.site-nav a.active {
  background: var(--blue);
  color: #fff;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: url(../img/g5.jpg) center 28% / cover no-repeat #2b2b2b;
  color: #fff;
  text-align: center;
  padding: 110px 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
}

.hero .container { position: relative; z-index: 1; }

.hero h1 {
  color: #fff;
  font-size: 44px;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
  margin-bottom: .4em;
}

.hero p {
  font-size: 22px;
  margin: 0 0 30px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}

.hero p a { color: #fff; text-decoration: underline; }

/* Compact hero for interior pages */

.page-hero {
  padding: 70px 0;
  background-image: url(../img/hero.jpg);
  background-position: center 60%;
}

.page-hero h1 { font-size: 34px; margin: 0; }

/* ---------- Our buttons ---------- */

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: center;
}

.cta-buttons a { line-height: 0; }

.cta-buttons img { height: 50px; width: auto; }

/* ---------- Sections ---------- */

section { padding: 60px 0; }

section.alt { background: #f7f7f7; }

.section-title {
  text-align: center;
  font-size: 30px;
  text-transform: uppercase;
  margin-bottom: 1em;
}

.lead { font-size: 18px; }

.split {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.split > * { flex: 1 1 340px; min-width: 0; }

.split img { border-radius: 4px; display: block; width: 100%; }

/* Call band */

.callout {
  background: var(--blue);
  color: #fff;
  text-align: center;
}

.callout h2 { color: #fff; text-transform: uppercase; font-size: 28px; }

.callout a { color: #fff; }

.callout .hours {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px 60px;
  margin-top: 25px;
}

.callout .hours div { flex: 0 1 300px; }

.callout .hours strong { display: block; font-size: 15px; text-transform: uppercase; letter-spacing: 1px; }

.callout .hours span { font-size: 26px; font-weight: 700; }

/* Feature cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 26px;
  text-align: center;
}

.card h3 { font-size: 18px; text-transform: uppercase; }

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

/* Deal box */

.deal {
  max-width: 620px;
  margin: 0 auto;
  border: 3px dashed var(--red);
  border-radius: 6px;
  padding: 36px 26px;
  text-align: center;
  background: #fff;
}

.deal h3 { color: var(--red); font-size: 26px; text-transform: uppercase; margin-bottom: .2em; }

.deal .amount { font-size: 34px; font-weight: 700; color: var(--blue); font-family: "Montserrat", Arial, sans-serif; }

.deal .phone { font-size: 30px; font-weight: 700; display: block; margin: 14px 0; }

/* City list */

.cities {
  columns: 4 200px;
  column-gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cities li {
  padding: 5px 0 5px 20px;
  position: relative;
  break-inside: avoid;
}

.cities li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

/* Appliance list */

.appliances {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.appliances li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 8px 20px;
  font-size: 16px;
}

/* Brand grid */

.brands {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  align-items: center;
}

.brands div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.brands img { max-height: 100%; max-width: 100%; object-fit: contain; }

/* Quote */

.quote {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-size: 26px;
  font-style: italic;
  color: var(--blue);
  font-family: "Montserrat", Arial, sans-serif;
}

.quote cite { display: block; font-size: 17px; font-style: normal; color: var(--muted); margin-top: 12px; }

/* Contact detail rows */

.contact-rows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  margin-top: 30px;
}

.contact-rows div { text-align: center; }

.contact-rows strong { display: block; text-transform: uppercase; font-size: 14px; letter-spacing: 1px; color: var(--muted); }

.contact-rows a { font-size: 24px; font-weight: 700; }

/* ---------- Footer ---------- */

.site-footer {
  background: #2f2f2f;
  color: #cfcfcf;
  padding: 40px 0;
  font-size: 15px;
  text-align: center;
}

.site-footer a { color: #fff; }

.site-footer ul {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 26px;
}

.site-footer .phones { margin-bottom: 18px; }

.site-footer .legal { color: #9a9a9a; font-size: 13px; max-width: 820px; margin: 0 auto; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .header-inner { justify-content: center; text-align: center; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 19px; }
  .hero { padding: 80px 0; }
  .section-title { font-size: 24px; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }

  .badge { width: 120px; height: 120px; font-size: 16px; }

  .header-phone { font-size: 21px; }

  .nav-toggle { display: block; }

  .site-nav ul {
    display: none;
    flex-direction: column;
    border-top: 1px solid #cfcfcd;
  }

  .site-nav ul.open { display: flex; }

  .site-nav li { border-bottom: 1px solid #cfcfcd; }

  .site-nav a { padding: 13px 20px; }

  .hero { padding: 60px 0; }
  .hero h1 { font-size: 26px; }

  section { padding: 44px 0; }

  .cta-buttons img { height: 46px; }

  .cities { columns: 2 140px; }

  .brands { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .brands div { height: 80px; }

  .callout .hours span { font-size: 22px; }

  .deal .amount { font-size: 26px; }
  .deal .phone { font-size: 25px; }
}

@media (max-width: 420px) {
  .site-logo img { width: 240px; }
  .cta-buttons { flex-direction: column; }
  .cta-buttons img { height: 44px; }
  .appliances li { font-size: 15px; padding: 7px 15px; }
}
