/*
Theme Name: Kestrel Roofing
Theme URI: http://remonromany.com/
Author: Remon Romany
Description: Sheffield roof-repairs landing page. Page content is edited in the WordPress block editor. The mobile Call now bar is the kestrel-call-bar plugin.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: kestrel-roofing
*/

:root {
  --navy: #182956;
  --orange: #f68202;
  --ink: #212529;
  --muted: #5c6570;
  --paper: #f4f6f8;
  --line: #e3e7ee;
  --white: #fff;
  --max: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--navy);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--orange);
  color: var(--navy);
  padding: 8px 12px;
  z-index: 100001;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  background: var(--navy);
  color: var(--white);
  border-bottom: 4px solid var(--orange);
}

.header-inner,
.footer-inner,
.band-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
}

.brand {
  color: var(--white);
  text-decoration: none;
}

.brand-name {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-tag {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.85;
}

.header-phone {
  display: grid;
  justify-items: end;
  color: var(--orange);
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.header-phone-label {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-phone:hover,
.header-phone:focus {
  color: var(--white);
}

body {
  overflow-x: hidden;
}

.entry-content {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  padding: 36px 0 8px;
}

.hero h1,
.wp-block-heading {
  margin: 0;
  color: var(--navy);
  line-height: 1.15;
}

.hero h1 {
  font-size: clamp(36px, 4.6vw, 58px);
  max-width: 11em;
}

.lede {
  max-width: 38rem;
  margin: 16px 0 0;
  font-size: 19px;
  color: var(--muted);
}

.wp-block-buttons {
  margin-top: 22px;
}

.wp-block-button__link {
  display: inline-block;
  background: var(--orange);
  color: var(--navy);
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  border-radius: 4px;
  padding: 14px 22px;
  min-height: 48px;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus {
  background: #ffb24d;
  color: var(--navy);
}

.hero-note {
  margin: 12px 0 0;
  color: var(--muted);
}

.hero-note a {
  font-weight: 700;
}

.trust > .wp-block-group__inner-container,
.trust {
  display: grid;
  gap: 12px;
}

.trust {
  padding: 28px 0 8px;
}

.trust-item {
  margin: 0;
  padding: 16px 16px 14px;
  border-top: 4px solid var(--orange);
  background: var(--paper);
  font-weight: 800;
  font-size: 18px;
  color: var(--navy);
}

.services-band {
  background: var(--paper);
  margin-top: 36px;
  padding: 36px 0;
}

.services-band .services {
  padding-top: 0;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.services h2,
.quote h2 {
  font-size: clamp(28px, 4vw, 36px);
}

.service-grid {
  display: block;
  margin-top: 18px;
}

.service-grid > .wp-block-group__inner-container,
.service-grid:not(:has(.wp-block-group__inner-container)) {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.service-grid > *,
.trust > *,
.footer-inner > *,
.band-inner > *,
.header-inner > * {
  min-width: 0;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 16px 16px 14px;
}

.service-card h3 {
  font-size: 18px;
}

.service-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.call-band {
  background: var(--navy);
  color: var(--white);
}

.band-inner,
.band-inner > .wp-block-group__inner-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
}

.call-band p {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.call-band a {
  color: var(--orange);
  font-weight: 800;
  font-size: 22px;
  text-decoration: none;
  white-space: nowrap;
}

.quote {
  padding: 40px 0 56px;
}

.quote-card {
  margin: 18px auto 0;
  max-width: 640px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 6px solid var(--navy);
  padding: 20px;
}

.quote-form {
  display: grid;
  gap: 14px;
}

.quote-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: var(--navy);
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  border: 1px solid #c5cad3;
  border-radius: 4px;
  padding: 12px;
  min-height: 48px;
  background: var(--white);
}

.quote-form textarea {
  min-height: 96px;
  resize: vertical;
}

.quote-form button {
  justify-self: start;
  font: inherit;
  font-weight: 800;
  color: var(--navy);
  background: var(--orange);
  border: 0;
  border-radius: 4px;
  min-height: 48px;
  padding: 12px 22px;
  cursor: pointer;
}

.quote-form button:hover,
.quote-form button:focus {
  background: #ffb24d;
}

.form-note,
.form-success {
  margin: 0 0 8px;
}

.form-success {
  background: #e8f6e8;
  border: 1px solid #b7dfb7;
  padding: 12px;
  color: #145214;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.site-footer {
  background: var(--navy);
  color: var(--white);
  padding: 22px 0 28px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.site-footer p {
  margin: 0;
  overflow-wrap: break-word;
}

.site-footer a {
  color: var(--orange);
  font-weight: 800;
  text-decoration: none;
}

.services-band,
.call-band,
.quote {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.services-band .services,
.quote > .wp-block-group__inner-container {
  width: min(1120px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 720px) {
  .service-grid > .wp-block-group__inner-container,
  .service-grid:not(:has(.wp-block-group__inner-container)) {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .entry-content {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    column-gap: 40px;
    align-items: center;
    padding-top: 12px;
  }

  .entry-content > .hero,
  .entry-content > .trust {
    width: auto;
    margin: 0;
  }

  .entry-content > .services-band,
  .entry-content > .call-band,
  .entry-content > .quote {
    grid-column: 1 / -1;
  }

  .hero {
    padding: 48px 0 20px;
  }

  .trust {
    padding: 48px 0 20px;
  }
}

@media (max-width: 700px) {
  .header-inner,
  .footer-inner,
  .band-inner,
  .band-inner > .wp-block-group__inner-container {
    display: grid;
    grid-template-columns: 1fr;
  }

  .header-phone,
  .call-band a {
    font-size: 26px;
  }

  .header-phone {
    justify-items: start;
  }

  .hero h1 {
    max-width: none;
  }
}
