/*
Theme Name: Sky City Two
Theme URI: https://skycityroofing.com
Author: Sky City Roofing
Description: Custom theme for Sky City Roofing — trusted roofing contractors in Winnipeg. Navy/red design with Bebas Neue + Barlow.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: skycitytwo
*/

/* ---------------------------------------------------------------------------
   Design tokens
--------------------------------------------------------------------------- */
:root {
  --navy: #0d1b2a;
  --ink: #1b263b;
  --bone: #e0e1dd;
  --steel: #778da9;
  --red: #e22726;
  --font-display: "Bebas Neue", sans-serif;
  --font-body: "Barlow", sans-serif;
  --radius: 0.625rem;
  --header-bg: #0B1F33;
  --header-text: #E0E1DD;
  --header-link: #E0E1DD;
  --header-link-hover: #e22726;
  --header-cta-bg: #e22726;
  --header-cta-text: #FFFFFF;
}

/* ---------------------------------------------------------------------------
   Reset & base
--------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bone);
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.wp-element-caption,
figcaption {
  font-size: 0.9rem;
  margin: 0;
  color: var(--bone);
}

.container {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.01em;
}

/* Buttons */
/* Buttons */
.btn {
  display: inline-flex;
}

.btn .wp-element-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-red .wp-element-button {
  background: var(--red);
  color: var(--bone);
  box-shadow: inset 0 0 0 1px var(--red);
}

.btn-red .wp-element-button:hover {
  background: #c42120;
  color: var(--bone);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.btn-outline .wp-element-button {
  background: transparent;
  color: var(--bone);
  box-shadow: inset 0 0 0 1px rgba(224, 225, 221, 0.3);
}

.btn-outline .wp-element-button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--bone);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.btn-navy .wp-element-button {
  background: var(--navy);
  color: var(--bone);
  box-shadow: inset 0 0 0 1px var(--navy);
}

.btn-navy .wp-element-button:hover {
  background: var(--ink);
  color: var(--bone);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* Inline SVG icons */
.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-lg {
  width: 1.5rem;
  height: 1.5rem;
}


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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  color: var(--header-text);
  box-shadow: inset 0 -1px 0 rgba(8, 9, 16, 0.614);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1.5rem;
}

/* ---------------------------------------------------------------------------
   Logo
--------------------------------------------------------------------------- */

.site-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.site-logo img {
  display: block;
  width: auto;
  height: 52px;
  max-width: 190px;
  object-fit: contain;
}

.site-logo__text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.875rem;
  letter-spacing: 0.05em;
  line-height: 1;
}

.site-logo__text .brand-a {
  color: var(--header-text);
}

.site-logo__text .brand-b {
  color: var(--header-cta-bg);
}

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

.site-navigation {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--header-link);
}

.main-nav li {
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: block;
  color: var(--header-link);
  text-decoration: none;
  transition: color 160ms ease;
}

.main-nav a:hover,
.main-nav .current-menu-item>a,
.main-nav .current-menu-ancestor>a {
  color: var(--header-link-hover);
}

/* ---------------------------------------------------------------------------
   Phone CTA
--------------------------------------------------------------------------- */

.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-shrink: 0;
  border-radius: 9999px;
  background: var(--header-cta-bg);
  color: var(--header-cta-text);
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--header-cta-bg);
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.header-phone:hover {
  background: var(--header-cta-bg);
  color: var(--header-cta-text);
  transform: translateY(-1px);
}

/* ---------------------------------------------------------------------------
   Mobile menu button
--------------------------------------------------------------------------- */

.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--header-text);
  transition:
    transform 160ms ease,
    opacity 160ms ease;
}

.mobile-menu-toggle:hover {
  background: rgba(224, 225, 221, 0.08);
}

/* ---------------------------------------------------------------------------
   Mobile
--------------------------------------------------------------------------- */

@media (max-width: 1023px) {

  .container {
    padding-inline: 1rem;
  }

  .site-header__inner {
    position: relative;
    min-height: 72px;
  }


  .site-logo img {
    height: 46px;
    max-width: 175px;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .site-navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--header-bg);
    color: var(--header-text);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  }

  .site-navigation.is-open {
    display: flex;
  }

  .main-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav li {
    border-bottom: 1px solid rgba(1, 14, 38, 0.1);
  }

  .main-nav a {
    padding: 0.875rem 0;
  }

  .header-phone {
    width: 100%;
  }

  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ---------------------------------------------------------------------------
   Desktop
--------------------------------------------------------------------------- */

@media (min-width: 1024px) {

  .site-navigation {
    display: flex;
  }
}

/* ---------------------------------------------------------------------------
   Hero
--------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  /* background: var(--navy); */
  /* color: var(--bone); */
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  /* background: linear-gradient(to bottom, rgba(27, 38, 59, 0.4), var(--navy), var(--navy)); */
  background: linear-gradient(to bottom, rgba(27, 38, 59, 0.1), #0d1b2a38, #0d1b2a);
  pointer-events: none;
}

.hero .container {
  position: relative;
  padding-block: 5rem;
}

.hero-columns {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero .container {
    padding-block: 4rem;
  }

  .hero-columns {
    grid-template-columns: 7fr 5fr;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  gap: 0.5rem;
  border-radius: 9999px;
  background: rgba(224, 225, 221, 0.05);
  box-shadow: inset 0 0 0 1px rgba(224, 225, 221, 0.1);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--bone);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 6.5rem);
  line-height: 0.86;
  letter-spacing: -0.01em;
}

.hero p.lead {
  margin-top: 1.5rem;
  max-width: 90ch;
  font-size: 1.125rem;
}

.hero-ctas {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-photo {
  position: relative;
}

.hero-photo-frame {
  border-radius: 1rem;
  background: rgba(119, 141, 169, 0.15);
  padding: 0.25rem;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(224, 225, 221, 0.15);
}

.hero-photo-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0.75rem;
}

.hero-stat {
  position: absolute;
  bottom: -1.25rem;
  left: -1.25rem;
  border-radius: 0.75rem;
  background: var(--navy);
  box-shadow: inset 0 0 0 1px rgba(224, 225, 221, 0.15);
  padding: 1rem 1.25rem;
  margin: 0;
}

.hero-stat .num {
  font-family: var(--font-display);
  font-size: 1.875rem;
  line-height: 1;
  /* color: var(--bone); */
}

.hero-stat .lbl {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  /* color: var(--steel); */
}

/* ---------------------------------------------------------------------------
   Emergency strip
--------------------------------------------------------------------------- */
.emergency {
  color: inherit;
}

.emergency .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 3rem;
}

@media (max-width: 767px) {
  .emergency .container {
    flex-direction: column;
    align-items: flex-start;
  }
}

.emergency-text {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
}

.emergency-text figure {
  flex: 0 0 auto;
  margin: 0;
}

.emergency-text figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.emergency-text h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.emergency-text p {
  margin: 0;
  max-width: 60ch;
  font-size: 0.95rem;
}

.emergency .emergency-mobile {
  display: none;
}

@media (max-width: 767px) {
  .emergency-text {
    align-items: flex-start;
    gap: 1rem;
  }

  .emergency-text figure img {
    width: 60px;
    height: 60px;
  }

  .emergency-text h2 {
    font-size: 1.75rem;
  }

  .emergency .emergency-desktop {
    display: none;
  }

  .emergency .emergency-mobile {
    display: inline-block;
  }
}

/* ---------------------------------------------------------------------------
   Services
--------------------------------------------------------------------------- */

.services {
  padding-block: 5rem;
}

.services-head {
  max-width: 44ch;
  margin-bottom: 2.5rem;
}

.services-head h2 {
  font-family: var(--font-display);
  font-size: 3.75rem;
  line-height: 1;
}

.services-head p {
  margin-top: 1rem;
}

.services-grid {
  display: grid;
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 1023px) {
  .services {
    padding-inline: 1rem;
    padding-block: 1rem;
  }
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {

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

.service-card {
  height: 100%;
  margin: 0;
  box-sizing: border-box;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.service-card[role="link"],
.service-card:has(a) {
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-0.25rem);
}

.service-card .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-card .icon-wrap,
.service-row-meta .icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: color-mix(in srgb,
      var(--wp--preset--color--roof-red) 15%,
      transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb,
      var(--wp--preset--color--roof-red) 30%,
      transparent);
}

.service-card .icon-wrap figure,
.service-row-meta .icon-wrap figure {
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card .icon-wrap img,
.service-row-meta .icon-wrap img {
  display: block;
  width: 2rem;
  height: 2rem;
  max-width: 2rem;
  max-height: 2rem;
  object-fit: contain;
}

.service-card .num {
  font-family: var(--font-display);
  font-size: 2.25rem;
}

.service-card h3 {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.875rem;
  line-height: 1;
}

.service-card p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.service-card .more {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: gap 0.2s ease;
}

.service-card .more:hover {
  gap: 0.625rem;
}

.brochure-card {
  display: flex;
  position: relative;
  justify-content: center;
}

.brochure-button {
  display: flex;
  justify-content: center;
  position: absolute;
  top: -30px;
}

.brochure-card .brochure-image {
  display: flex;
  justify-content: center;
}

/* ---------------------------------------------------------------------------
   About
--------------------------------------------------------------------------- */
.about {
  padding-block: 5rem;
}

.about .container {
  display: grid;
  gap: 1rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .about .container {
    grid-template-columns: 3fr 7fr;
  }
}

.about h2 {
  font-family: var(--font-display);
  font-size: 3.75rem;
  line-height: 1;
}

.about .body p {
  margin-bottom: 1rem;
}

/* ---------------------------------------------------------------------------
   Certifications
--------------------------------------------------------------------------- */
.certs {
  padding-block: 4rem;
}

.certs .container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .certs .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.certs h2 {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  max-width: 30ch;
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .certs-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cert-card {
  border-radius: 0.75rem;
  margin: 0;
  box-shadow: inset 0 0 0 1px rgba(224, 225, 221, 0.1);
  padding: 1rem 1.25rem;
  width: 100%;
}

.cert-card .icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-bottom: 0.5rem;
}

.cert-card .name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
}

/* ---------------------------------------------------------------------------
   Contact
--------------------------------------------------------------------------- */
.contact {
  background: var(--bone);
  padding-block: 2rem;
}

.contact .container {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .contact .container {
    grid-template-columns: 1fr 1fr;
  }
}

.contact h2 {
  font-family: var(--font-display);
  font-size: clamp(3.75rem, 7vw, 4.5rem);
  line-height: 1;
  color: var(--navy);
}

.contact .lead {
  margin-top: 1.25rem;
  /* max-width: 44ch; */
  font-size: 1.125rem;
  color: rgba(13, 27, 42, 0.7);
}

.contact .hours {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: rgba(13, 27, 42, 0.7);
}

.contact .hours .icon {
  color: var(--red);
  width: 1rem;
  height: 1rem;
}

.contact-card {
  border-radius: 1rem;
  background: var(--navy);
  padding: 1.5rem;
  box-shadow: inset 0 0 0 1px rgba(224, 225, 221, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card .btn {
  justify-content: space-between;
  width: 100%;
}

.contact-card .note {
  font-size: 0.875rem;
  color: rgba(224, 225, 221, 0.55);
}

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

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding-block: 4rem 2rem;
  font-size: 0.875rem;
}

.site-footer a {
  color: var(--footer-link);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--footer-link-hover);
}

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

.site-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid color-mix(in srgb,
      var(--footer-border) 15%,
      transparent);
}

/* ---------------------------------------------------------------------------
   Brand
--------------------------------------------------------------------------- */

.site-footer__brand {
  max-width: 380px;
}

.site-footer__logo {
  display: inline-flex;
  margin-bottom: 1.25rem;
}

.site-footer__logo img {
  display: block;
  width: auto;
  height: 64px;
  max-width: 220px;
  object-fit: contain;
}

.site-footer__description {
  max-width: 360px;
  margin: 0;
  line-height: 1.7;
}

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

.site-footer__column {
  align-self: start;
}

.site-footer__heading {
  margin: 0 0 1rem;
  color: var(--footer-heading);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.site-footer__heading--hours {
  margin-top: 2rem;
}

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

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav li {
  margin: 0;
  padding: 0;
}

.footer-nav a {
  display: inline-block;
  transition: color 160ms ease;
}

/* ---------------------------------------------------------------------------
   Working hours
--------------------------------------------------------------------------- */

.site-footer__hours {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer__hours p {
  margin: 0;
  line-height: 1.5;
}

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

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1.5rem;
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__legal {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.site-footer__legal a {
  transition: color 160ms ease;
}

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

@media (max-width: 767px) {

  .site-footer {
    padding-block: 3rem 1.5rem;
    padding-inline: 1rem;
  }

  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .site-footer__brand {
    max-width: none;
  }

  .site-footer__description {
    max-width: 500px;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .site-footer__legal {
    flex-wrap: wrap;
  }
}

/* ---------------------------------------------------------------------------
   Inner pages
--------------------------------------------------------------------------- */

.portfolio-page .page-hero[style]::before {
  background: rgba(13, 27, 42, 0.58);
}

.page-hero {
  background-color: var(--navy);
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 300px;
}

.page-hero[style] {
  position: relative;
  isolation: isolate;
}

.page-hero[style]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* background: rgba(13, 27, 42, 0.58); */
  background: linear-gradient(to bottom, rgba(27, 38, 59, 0.1), rgba(13, 27, 42, 0.40), #0d1b2a);
}

.page-hero .container {
  padding-block: 4.5rem 3.5rem;
  padding-inline: 1rem;
  grid-template-columns: 1fr;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.9;
  color: var(--hero-title);
  max-width: 20ch;
}

.page-hero .lead {
  margin-top: 1.25rem;
  max-width: 60ch;
  font-size: 1.225rem;
  font-weight: 600;
  color: var(--hero-excerpt);
}

.page-body {
  background: var(--bone);
}

.prose .s-18 {
  font-size: 18px !important;
}

@media (max-width: 767px) {
  .prose .s-18 {
    font-size: 16px !important;
  }

  .page-hero {
    min-height: auto;
  }

}

/* Services detail rows */
.service-rows {
  display: grid;
  gap: 1.25rem;
}

.service-row {
  display: grid;
  gap: 1.5rem;
  border-radius: 0.75rem;
  background: var(--navy);
  color: var(--bone);
  padding: 2rem;
}

@media (min-width: 768px) {
  .service-row {
    grid-template-columns: auto 1fr;
    align-items: start;
  }
}

.service-row-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.service-row-head .icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: rgba(226, 39, 38, 0.15);
  color: var(--red);
  box-shadow: inset 0 0 0 1px rgba(226, 39, 38, 0.3);
}

.service-row-head .num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: rgba(119, 141, 169, 0.5);
  margin: 0;
}

.service-row-body h2 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  line-height: 1;
}

.service-row-body p {
  margin-top: 0.5rem;
  color: rgba(224, 225, 221, 0.7);
}

.check-list {
  list-style: none;
  margin-top: 1.25rem;
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .check-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: rgba(224, 225, 221, 0.85);
}

.check-list .icon {
  color: var(--red);
  width: 1.1rem;
  height: 1.1rem;
}

/* Certifications detail */
.cert-detail-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .cert-detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.cert-detail {
  border-radius: 0.75rem;
  background: var(--navy);
  color: var(--bone);
  padding: 1.75rem;
  box-shadow: inset 0 0 0 1px rgba(224, 225, 221, 0.08);
}

.cert-detail .icon {
  color: var(--red);
}

.cert-detail h2 {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}

.cert-detail .sub {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--steel);
}

.cert-detail p {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: rgba(224, 225, 221, 0.7);
}

/* Careers: open positions */
.job-list {
  display: grid;
  gap: 0.875rem;
  max-width: 64rem;
}

.job-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  border-radius: 0.75rem;
  background: var(--navy);
  color: var(--bone);
  padding: 1.5rem;
  box-shadow: inset 0 0 0 1px rgba(224, 225, 221, 0.08);
}

@media (min-width: 768px) {
  .job-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.job-item h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: 0.02em;
}

.job-item .job-type {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--steel);
}

.job-item p {
  margin-top: 0.5rem;
  color: rgba(224, 225, 221, 0.7);
  max-width: 60ch;
}

.job-item .btn {
  flex-shrink: 0;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  gap: 1.25rem;
}

.portfolio-grid li {
  display: flex;
}

@media (min-width: 640px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.portfolio-card {
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--navy);
  color: var(--bone);
  box-shadow: inset 0 0 0 1px rgba(224, 225, 221, 0.08);
}

.portfolio-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.portfolio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-body {
  padding: 1.5rem;
}

.portfolio-body .wp-block-post-excerpt__more-text a {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bone);
  background-color: var(--steel);
  padding: 5px 15px;
  border-radius: 6px;
}

.portfolio-body h2 {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: 0.02em;
}

.portfolio-body p {
  margin-top: 0.625rem;
  font-size: 0.9375rem;
  color: rgba(224, 225, 221, 0.7);
}

/* Contact form */
.contact-form {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.375rem;
  max-width: 34rem;
}

.contact-form label {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(13, 27, 42, 0.65);
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 1rem;
  color: var(--navy);
  background: #fff;
  border: 1px solid rgba(187, 189, 192, 0.15);
  padding: 0.75rem 1rem;
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(226, 39, 38, 0.15);
}

.contact-form button {
  margin-top: 1.25rem;
  justify-self: start;
  border: 0;
  cursor: pointer;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-notice {
  margin-top: 1rem;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
}

.form-notice.ok {
  background: rgba(13, 27, 42, 0.06);
  color: var(--navy);
  box-shadow: inset 0 0 0 1px rgba(13, 27, 42, 0.12);
}

.form-notice.error {
  background: rgba(226, 39, 38, 0.1);
  color: #a51b1a;
  box-shadow: inset 0 0 0 1px rgba(226, 39, 38, 0.3);
}

.hours-line {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: rgba(224, 225, 221, 0.75);
}

.hours-line .icon {
  color: var(--red);
  width: 1rem;
  height: 1rem;
}

/* .help-cta {
  background: var(--bone);
  padding-block: 5rem;
  color: var(--navy);
}
.help-cta-header {
  max-width: 65ch;
  margin-bottom: 3rem;
}
.help-cta-header h2 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 4rem);
  line-height: 1;
  margin-block: 0.5rem 1rem;
}
.help-cta-header .lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(13, 27, 42, 0.8);
}
.help-cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .help-cta-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.help-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 2.25rem 2rem;
  box-shadow: 0 4px 20px rgba(13, 27, 42, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.help-card.card-phone {
  background: var(--navy);
  color: var(--bone);
}
.help-card-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.help-card.card-phone .phone-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: #ffffff;
  text-decoration: none;
  line-height: 1;
  margin-bottom: 0.75rem;
}
.help-card .hours {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--steel);
  margin-bottom: 1.5rem;
}
 */
.wp-block-button a {
  line-height: 1;
}

.editor-styles-wrapper {}

/* Careers Modal */
.careers-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(0, 0, 0, 0.75);
  box-sizing: border-box;

  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0s linear 0.25s;
}

.careers-modal[hidden] {
  display: none;
}

.careers-modal.is-open {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.25s ease,
    visibility 0s linear 0s;
}

.careers-modal-content {
  position: relative;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 10px;
  background: #fff;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.careers-modal.is-open .careers-modal-content {
  opacity: 1;
  transform: translateY(0) scale(1);
}

body.careers-modal-open {
  overflow: hidden;
}

.careers-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1;
}

.careers-modal .forminator-g-recaptcha {
  margin: 20px 0;
  display: block;
  clear: both;
}

.careers-modal .forminator-g-recaptcha iframe {
  max-width: 100%;
}

/* Portfolio navigation */
.portfolio-navigation {
  background: var(--navy);
  padding-block: 2rem;
}

.portfolio-navigation .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.portfolio-navigation a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--bone);
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.portfolio-navigation-prev a,
.portfolio-navigation-next a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  background: var(--red);
  color: var(--bone);
  border-radius: 8px;
}

.portfolio-navigation-prev a:hover,
.portfolio-navigation-next a:hover {
  background: #c42120;
  color: var(--bone);
}

.portfolio-navigation-all a {
  color: var(--red);
}

.portfolio-navigation-all a:hover {
  color: var(--bone);
}

@media (max-width: 767px) {
  .portfolio-navigation .container {
    flex-direction: column;
  }

  .portfolio-navigation-prev,
  .portfolio-navigation-all,
  .portfolio-navigation-next {
    width: 100%;
    text-align: center;
  }

  .portfolio-navigation-prev a,
  .portfolio-navigation-next a {
    justify-content: center;
    width: 100%;
  }
}
