/* =========================================================
   BARRIER KINGS
   Main Stylesheet

   Colour scheme
     Brand yellow    #fed00c   (from Primary-Inverse.svg)
     Brand ink       #29212d   (from tick-black.svg)
     Dedication      #1e2430
     How it works    #322a3c
     Location        #c8d7d4
   Type
     Headings        Black Han Sans
     Body            Roboto
   ========================================================= */

/* =========================================================
   RESET
   ========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Roboto, Arial, Helvetica, sans-serif;
  font-weight: 400;

  color: var(--text);
  background: var(--white);

  line-height: 1.6;

  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

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

/* =========================================================
   TOKENS
   ========================================================= */

:root {
  --yellow: #fed00c;
  --yellow-dark: #ecc000;

  --ink: #29212d;
  --navy: #1e2430;
  --plum: #322a3c;
  --sage: #c8d7d4;

  --text: #55505c;
  --text-light: rgba(255, 255, 255, 0.78);
  --ghost: #514a60;

  --border: #e4e4e8;
  --white: #ffffff;

  --content: 1180px;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Black Han Sans", Impact, sans-serif;
  font-weight: 400;

  color: var(--ink);

  text-transform: none;
  line-height: 1.14;
}

h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.5rem);
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.75rem);
}

h3 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}

h4 {
  font-size: 1.15rem;
}

/* =========================================================
   LAYOUT HELPERS
   ========================================================= */

.innercontent {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 25px;
}

.textcenter {
  text-align: center;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  display: inline-block;

  font-family: "Black Han Sans", Impact, sans-serif;
  font-size: 1.05rem;
  line-height: 1.3;

  padding: 13px 26px;

  border: 0;
  border-radius: 5px;

  cursor: pointer;

  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

.btn-sm {
  font-size: 0.7rem;
  letter-spacing: 0.03em;

  padding: 9px 14px;
}

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

.btn-yellow:hover {
  background: var(--ink);
  color: var(--yellow);
}

/* =========================================================
   HEADER
   ========================================================= */

.page-header {
  position: sticky;
  top: 0;
  z-index: 100;

  background: var(--plum);
}

.header-inner {
  max-width: var(--content);
  min-height: 66px;

  margin: 0 auto;
  padding: 10px 25px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;
}

.logo img {
  width: 175px;
}

.header-right {
  display: flex;
  align-items: center;

  gap: 20px;
}

.header-phone {
  font-family: "Black Han Sans", Impact, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.03em;

  color: var(--white);
}

.header-phone:hover {
  color: var(--yellow);
}

/* Mobile opener */

.menu-opener {
  display: none;

  width: 40px;
  height: 40px;

  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 5px;

  background: transparent;
  border: 0;

  cursor: pointer;
}

.menu-opener span {
  display: block;

  width: 24px;
  height: 2px;

  background: var(--white);
}

.mobile-nav {
  display: none;

  background: var(--plum);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav a {
  display: block;

  padding: 14px 25px;

  font-family: "Black Han Sans", Impact, sans-serif;
  font-size: 0.85rem;

  color: var(--white);

  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-nav a:hover {
  color: var(--yellow);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;

  min-height: 620px;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  /* Shows through if neither the video nor its poster loads */
  background-color: var(--ink);
}

/* Video (or its poster frame) fills the hero */

.hero-media {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;

  background: rgba(20, 14, 10, 0.55);
}

.hero-inner {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 900px;

  padding: 90px 25px;

  text-align: center;
  color: var(--white);
}

.hero h1 {
  color: var(--white);
  line-height: 1.06;
}

.hero-subtitle {
  max-width: 640px;
  margin: 18px auto 0;

  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--white);
}

/* Three tick features */

.hero-ticks {
  display: flex;
  flex-wrap: wrap;

  align-items: center;
  justify-content: center;

  gap: 12px 34px;

  margin: 26px 0 32px;
}

.hero-ticks li {
  display: flex;
  align-items: center;

  gap: 9px;

  font-size: 0.95rem;
  color: var(--white);
}

.hero-ticks li::before {
  content: "";

  width: 17px;
  height: 17px;

  flex: 0 0 17px;

  /* White check on the dark hero; the services list uses the dark version */
  background-image: url("images/tick-inverse.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* =========================================================
   HIGHEST INDUSTRY ACCREDITATION
   ========================================================= */

.accreditation {
  padding: 55px 0 60px;

  background: var(--yellow);
}

.accreditation h2 {
  margin-bottom: 40px;
}

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

  gap: 30px;
}

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

.accreditation-item img {
  width: 52px;

  margin: 0 auto 16px;
}

.accreditation-item h4 {
  color: var(--ink);
}

/* =========================================================
   SERVICES
   ========================================================= */

.services {
  position: relative;

  padding: 80px 0;

  background: var(--white);

  overflow: hidden;
}

/* The photo carries its own left fade to white */

.services-image {
  position: absolute;
  top: 0;
  right: 0;

  width: 58%;
  height: 100%;

  object-fit: cover;
  object-position: center right;
}

.services .innercontent {
  position: relative;
  z-index: 2;
}

.services-content {
  width: 48%;
}

.services-content h2 {
  margin-bottom: 26px;
}

.pest-icons {
  display: flex;

  gap: 10px;

  margin-bottom: 22px;
}

.pest-icons img {
  width: 58px;
}

.services-content p {
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.services-lists {
  display: grid;
  grid-template-columns: repeat(2, 1fr);

  gap: 0 20px;
}

/* Tick list */

.listtick li {
  position: relative;

  padding-left: 30px;
  margin-bottom: 14px;

  font-size: 1rem;
  color: var(--ink);
}

.listtick li::before {
  content: "";

  position: absolute;
  left: 0;
  top: 50%;

  width: 17px;
  height: 17px;

  transform: translateY(-50%);

  background-image: url("images/tick-black.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* =========================================================
   PROFESSIONAL DEDICATION
   ========================================================= */

.dedication {
  padding: 70px 0;

  background: var(--navy);
}

.dedication-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;

  align-items: center;

  gap: 50px;
}

.dedication-content h2 {
  margin-bottom: 22px;
  color: var(--white);
}

.dedication-content p {
  font-size: 0.95rem;
  color: var(--text-light);
}

.dedication-image img {
  max-width: 330px;
  margin: 0 auto;
}

/* =========================================================
   HOW IT WORKS
   ========================================================= */

.how-it-works {
  padding: 70px 0 80px;

  background: var(--plum);
}

.how-it-works h2 {
  margin-bottom: 45px;
  color: var(--white);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);

  gap: 10px 50px;

  margin-bottom: 45px;
}

.process-item {
  display: flex;
  align-items: flex-start;

  gap: 20px;
}

/* Oversized ghost numerals */

.process-number {
  flex: 0 0 auto;

  font-family: "Black Han Sans", Impact, sans-serif;
  font-size: clamp(3.5rem, 6vw, 5.5rem);

  line-height: 0.9;
  color: var(--ghost);
}

.process-text h4 {
  margin-bottom: 8px;

  font-size: 1.2rem;
  color: var(--white);
}

.process-text p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Stagger the 2nd and 4th cards */

@media only screen and (min-width: 769px) {
  .process-item:nth-child(2),
  .process-item:nth-child(4) {
    margin-top: 55px;
  }
}

/* =========================================================
   CUSTOMER SERVICE
   ========================================================= */

.customer-service {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.customer-panel {
  min-height: 420px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 55px 25px;

  background: var(--yellow);
}

.customer-panel-inner {
  max-width: 460px;
}

.customer-panel h2 {
  margin-bottom: 18px;
}

.stars {
  margin-bottom: 18px;

  font-size: 1.9rem;
  letter-spacing: 0.08em;

  color: var(--ink);
}

.customer-panel p {
  font-size: 0.9rem;
  color: var(--ink);
}

.customer-image {
  min-height: 420px;

  background-image: url("images/customer-meetup.jpg");
  background-size: cover;
  background-position: center top;
}

/* =========================================================
   LOCATION
   ========================================================= */

.location {
  position: relative;

  min-height: 470px;

  display: flex;
  align-items: center;

  padding: 60px 0;

  background: var(--sage);

  overflow: hidden;
}

.location-map {
  position: absolute;
  top: 0;
  left: 0;

  height: 100%;
  width: auto;
  max-width: 46%;

  object-fit: cover;
  object-position: left center;
}

.location-inner {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 560px;

  margin-left: auto;
  margin-right: auto;

  padding: 0 25px;
}

.location p {
  margin: 16px 0 24px;
  font-size: 0.95rem;
}

.location-buttons {
  display: flex;
  flex-wrap: wrap;

  align-items: center;
  justify-content: center;

  gap: 12px;
}

/* =========================================================
   GET A FREE QUOTE
   ========================================================= */

.quote {
  padding: 75px 0;

  background: var(--white);
}

.quote-intro {
  max-width: 720px;
  margin: 0 auto 40px;
}

.quote-intro h2 {
  margin-bottom: 14px;
}

.quote-intro p {
  font-size: 0.95rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);

  gap: 20px 30px;
}

.gfield {
  border: 0;
}

.gfield > label,
.gfield legend {
  display: block;

  margin-bottom: 7px;

  font-size: 0.85rem;
  font-weight: 700;

  color: var(--ink);
}

.required {
  margin-left: 4px;
  color: #b00020;
}

.gfield input[type="text"],
.gfield input[type="email"],
.gfield input[type="tel"],
.gfield textarea {
  width: 100%;

  font-size: 1rem;
  padding: 12px 14px;

  border: 1px solid var(--border);
  border-radius: 4px;

  background: var(--white);
  color: var(--ink);

  outline: none;
}

.gfield textarea {
  min-height: 150px;
  resize: vertical;
}

.gfield input:focus,
.gfield textarea:focus {
  border-color: var(--yellow);
}

.gfield-checkbox li {
  display: flex;
  align-items: center;

  gap: 10px;

  margin-bottom: 9px;
}

.gfield-checkbox input {
  width: 17px;
  height: 17px;

  accent-color: var(--yellow);
}

.gfield-checkbox label {
  font-size: 0.9rem;
}

.form-footer {
  margin-top: 30px;
  text-align: center;
}

/* =========================================================
   CONTACT
   ========================================================= */

.contact {
  padding: 20px 0 40px;

  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;

  align-items: center;

  gap: 30px;
}

.contact-content h2 {
  margin-bottom: 24px;
}

.contact-phone {
  display: inline-flex;
  align-items: center;

  gap: 12px;

  font-family: "Black Han Sans", Impact, sans-serif;
  font-size: 1rem;

  color: var(--ink);
}

.contact-phone:hover {
  color: var(--yellow-dark);
}

.contact-phone-icon {
  width: 34px;
  height: 34px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 34px;

  background: var(--ink);
  color: var(--yellow);

  border-radius: 50%;
}

/* =========================================================
   FOOTER
   ========================================================= */

.page-footer {
  padding: 40px 0 55px;

  background: var(--white);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 30px;
}

.footer-column h4 {
  margin-bottom: 12px;
}

.footer-column a {
  display: block;

  font-size: 0.85rem;
  line-height: 2;
}

.footer-column a:hover {
  color: var(--yellow-dark);
}

/* =========================================================
   BACK TO TOP
   ========================================================= */

#back-to-top {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 110;

  transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl;

  padding: 14px 6px;

  font-family: "Black Han Sans", Impact, sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.1em;

  color: var(--ink);

  opacity: 0;
  pointer-events: none;

  transition: opacity 0.25s ease;
}

#back-to-top.is-visible {
  opacity: 0.75;
  pointer-events: auto;
}

/* =========================================================
   TABLET
   ========================================================= */

@media only screen and (max-width: 1024px) {
  .services-image {
    width: 50%;
    opacity: 0.5;
  }

  .services-content {
    width: 62%;
  }

  .location-map {
    max-width: 38%;
    opacity: 0.6;
  }
}

@media only screen and (max-width: 768px) {
  /* Header */

  .header-right {
    display: none;
  }

  .menu-opener {
    display: flex;
  }

  .logo img {
    width: 150px;
  }

  /* Hero */

  .hero {
    min-height: 540px;
  }

  /* Accreditation */

  .accreditation-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 34px 20px;
  }

  /* Services — drop the bleed image, stack the content */

  /* Technician photo is decorative — drop it rather than stack it */

  .services-image {
    display: none;
  }

  .services-content {
    width: 100%;
  }

  /* Dedication */

  .dedication-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  /* Process */

  .process-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  /* Customer service */

  .customer-service {
    grid-template-columns: 1fr;
  }

  /* Location */

  /* Map is decorative — drop it rather than stack it */

  .location-map {
    display: none;
  }

  .location {
    min-height: 0;
    padding: 55px 0;
  }

  .location-inner {
    max-width: 100%;
    margin: 0 auto;
  }

  /* Contact */

  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Back to top */

  #back-to-top {
    display: none;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media only screen and (max-width: 480px) {
  .accreditation,
  .quote,
  .page-footer {
    padding-left: 0;
    padding-right: 0;
  }

  /* Services */

  .services-lists {
    grid-template-columns: 1fr;
  }

  .pest-icons img {
    width: 48px;
  }

  /* Hero */

  .hero-inner {
    padding: 70px 25px;
  }

  .hero-ticks {
    flex-direction: column;
    align-items: flex-start;

    gap: 10px;

    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Process */

  .process-number {
    font-size: 3rem;
  }

  /* Form */

  .form-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */

  .footer-grid {
    grid-template-columns: 1fr;
  }

  /* Buttons */

  .btn {
    font-size: 0.95rem;
  }
}

/* =========================================================
   INTERIOR PAGES — BANNER
   ========================================================= */

.page-banner {
  padding: 70px 0 62px;

  background: var(--ink);

  text-align: center;
}

.page-banner h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
}

.page-banner p {
  margin-top: 14px;

  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

/* =========================================================
   INTERIOR PAGES — LEGAL CONTENT
   ========================================================= */

.legal {
  padding: 70px 0 80px;

  background: var(--white);
}

.legal-content {
  max-width: 820px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-bottom: 18px;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.legal-content h3 {
  margin: 40px 0 12px;
  font-size: 1.3rem;
}

.legal-content p {
  margin-bottom: 18px;

  font-size: 1rem;
  color: var(--text);
}

.legal-content ul {
  margin: 0 0 20px;
}

.legal-content li {
  position: relative;

  padding-left: 22px;
  margin-bottom: 11px;

  font-size: 1rem;
  color: var(--text);
}

.legal-content li::before {
  content: "";

  position: absolute;
  left: 0;
  top: 0.62em;

  width: 7px;
  height: 7px;

  background: var(--yellow);
  border-radius: 50%;
}

.legal-content a {
  color: var(--ink);
  font-weight: 500;

  border-bottom: 2px solid var(--yellow);
}

.legal-content a:hover {
  background: var(--yellow);
}

/* Effective / last-updated stamp */

.legal-updated {
  display: inline-block;

  margin-bottom: 34px;
  padding: 7px 14px;

  font-size: 0.8rem;
  font-weight: 500;

  color: var(--ink);
  background: #f4f4f6;

  border-left: 3px solid var(--yellow);
}

/* Advisory callout */

.legal-note {
  margin: 36px 0 0;
  padding: 20px 22px;

  font-size: 0.9rem;

  background: #f7f7f9;
  border-left: 3px solid var(--yellow);
}

.legal-note strong {
  color: var(--ink);
}

@media only screen and (max-width: 768px) {
  .page-banner {
    padding: 52px 0 46px;
  }

  .legal {
    padding: 50px 0 60px;
  }

  .legal-content h3 {
    margin-top: 32px;
    font-size: 1.15rem;
  }
}

/* =========================================================
   THANK YOU PAGE
   ========================================================= */

.thankyou-banner {
  padding: 80px 0 74px;
}

.thankyou-tick {
  width: 62px;
  height: 62px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0 auto 26px;

  background: rgba(254, 208, 12, 0.12);
  border: 2px solid var(--yellow);
  border-radius: 50%;
}

.thankyou-tick img {
  width: 28px;
}

.thankyou-banner p {
  max-width: 620px;
  margin: 16px auto 0;

  font-size: 1rem;
  color: rgba(255, 255, 255, 0.78);
}

/* Three-up variant of the process grid — no stagger */

.process-grid-three {
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 36px;
}

.process-grid-three .process-item {
  display: block;
  text-align: center;
}

.process-grid-three .process-number {
  display: block;
  margin-bottom: 6px;

  font-size: 4rem;
  line-height: 1;
}

@media only screen and (min-width: 769px) {
  .process-grid-three .process-item:nth-child(2),
  .process-grid-three .process-item:nth-child(4) {
    margin-top: 0;
  }
}

/* Buttons sitting together on a dark section */

.thankyou-actions {
  display: flex;
  flex-wrap: wrap;

  align-items: center;
  justify-content: center;

  gap: 14px;
}

.btn-outline {
  background: transparent;
  color: var(--white);

  border: 2px solid rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--ink);

  border-color: var(--white);
}

@media only screen and (max-width: 768px) {
  .thankyou-banner {
    padding: 56px 0 52px;
  }

  .process-grid-three {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .process-grid-three .process-number {
    font-size: 3rem;
  }
}

/* Visually hidden — for the form honeypot and screen-reader-only labels */

.visually-hidden {
  position: absolute !important;

  width: 1px;
  height: 1px;

  margin: -1px;
  padding: 0;

  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;

  border: 0;
}
