/*
Theme Name: Quattrone & Associates
Theme URI: https://qainc.net
Author: Quattrone & Associates, Inc.
Author URI: https://qainc.net
Description: Custom classic WordPress theme for Quattrone & Associates, Inc. — civil and land development engineering for Southwest Florida.
Version: 2.0.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: quattrone
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
*/

:root {
  --yellow: #A68A56;
  --yellow-dark: #8C7345;
  --yellow-glow: rgba(166, 138, 86, 0.35);
  --dark: #002147;
  --dark-2: #00152E;
  --text: #2B3138;
  --muted: #6B7480;
  --line: #E6E9ED;
  --bg-soft: #F5F6F8;
  --head: 'Merriweather', serif;
  --body: 'Inter', sans-serif;
  --header-h: 84px;
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  font-family: var(--body);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  background: #fff;
  opacity: 0;
  transition: opacity 0.45s ease;
}

body.loaded {
  opacity: 1;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--head);
  text-transform: uppercase;
  color: var(--dark);
  line-height: 1.15;
}

h1 {
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: 0.01em;
}

h2 {
  font-weight: 800;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}

h3 {
  font-weight: 700;
  font-size: 1.12rem;
}

.eyebrow {
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--yellow-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 3px;
  background: var(--yellow);
}

.section {
  padding: 90px 0;
}

.section.soft {
  background: var(--bg-soft);
  background-image: linear-gradient(
    135deg,
    rgba(166, 138, 86, 0.03) 0%,
    transparent 50%,
    rgba(0, 33, 71, 0.02) 100%
  );
}

.section-head {
  max-width: 640px;
  margin-bottom: 50px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head.center .eyebrow {
  justify-content: center;
}

.section-head p {
  color: var(--muted);
  margin-top: 0.9rem;
}

.btn {
  display: inline-block;
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 17px 36px;
  transition:
    background 0.22s var(--transition-smooth),
    color 0.22s,
    border-color 0.22s,
    transform 0.22s var(--transition-smooth),
    box-shadow 0.22s var(--transition-smooth);
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

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

.btn-yellow:hover {
  background: var(--yellow-dark);
  box-shadow: 0 8px 24px var(--yellow-glow);
}

.btn-dark {
  background: var(--dark);
  color: #fff;
}

.btn-dark:hover {
  background: var(--yellow);
  color: var(--dark);
  box-shadow: 0 8px 24px var(--yellow-glow);
}

.btn-outline {
  border-color: #fff;
  color: #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--dark);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}


/* ============ TOP BAR + HEADER ============ */

.topbar {
  background: var(--dark);
  color: #B8BFC8;
  font-size: 0.82rem;
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 9px;
  padding-bottom: 9px;
}

.topbar a {
  text-decoration: none;
}

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

.topbar .left span + span {
  margin-left: 1.6rem;
}

.topbar b {
  color: var(--yellow);
  font-weight: 600;
}

header.main {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 14px rgba(20, 25, 32, 0.06);
  transition:
    height 0.35s var(--transition-smooth),
    box-shadow 0.35s var(--transition-smooth),
    backdrop-filter 0.35s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

header.main.scrolled {
  box-shadow: 0 4px 24px rgba(20, 25, 32, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.92);
}

header.main .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: var(--header-h);
  transition: height 0.35s var(--transition-smooth);
}

header.main.scrolled .wrap {
  height: 64px;
}

header.main .logo img {
  transition: max-height 0.35s var(--transition-smooth);
}

header.main.scrolled .logo img {
  max-height: 44px !important;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-mark {
  width: 44px;
  height: 44px;
  background: var(--yellow);
  display: grid;
  place-items: center;
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--dark);
  clip-path: polygon(0 0, 100% 0, 100% 78%, 78% 100%, 0 100%);
}

.logo-text {
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.22rem;
  text-transform: uppercase;
  color: var(--dark);
  line-height: 1.05;
}

.logo-text small {
  display: block;
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: var(--muted);
}

nav.primary {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav.primary a {
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dark);
  padding: 6px 0;
  border-bottom: 3px solid transparent;
  transition:
    color 0.2s var(--transition-smooth),
    border-color 0.2s var(--transition-smooth);
}

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

nav.primary a.active {
  border-color: var(--yellow);
}

.nav-btn {
  background: var(--yellow);
  padding: 13px 24px !important;
  border-bottom: none !important;
  transition:
    background 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}

.nav-btn:hover {
  background: var(--yellow-dark);
  color: var(--dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--yellow-glow);
}


/* Hamburger toggle with animated X */

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  width: 42px;
  height: 42px;
  position: relative;

  /* IMPORTANT: keep hamburger above overlay */
  z-index: 110;
  pointer-events: auto;
  touch-action: manipulation;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--dark);
  position: absolute;
  left: 8px;
  pointer-events: none;
  transition:
    transform 0.3s var(--transition-smooth),
    opacity 0.2s,
    top 0.3s var(--transition-smooth);
}

.menu-toggle span:nth-child(1) {
  top: 10px;
}

.menu-toggle span:nth-child(2) {
  top: 19px;
}

.menu-toggle span:nth-child(3) {
  top: 28px;
}

.menu-toggle.active span:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}


/* Mobile nav overlay */

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 33, 71, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;

  /* IMPORTANT: invisible overlay cannot intercept clicks */
  pointer-events: none;

  transition: opacity 0.3s var(--transition-smooth);
}

.nav-overlay.visible {
  opacity: 1;

  /* Overlay becomes clickable only while menu is open */
  pointer-events: auto;
}


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

.hero {
  position: relative;
  color: #fff;
  background-size: cover;
  background-position: center;
  min-height: 640px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(18, 22, 28, 0.88) 25%,
    rgba(18, 22, 28, 0.45) 70%,
    rgba(18, 22, 28, 0.25)
  );
}

.hero .wrap {
  position: relative;
  padding-top: 70px;
  padding-bottom: 70px;
}

.hero h1 {
  color: #fff;
  max-width: 24ch;
}

.hero h1 span {
  color: var(--yellow);
}

.hero p {
  max-width: 44rem;
  margin-top: 1.4rem;
  color: #D8DDE3;
  font-size: 1.08rem;
}

.hero .eyebrow {
  color: var(--yellow);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.4rem;
}

.banner {
  position: relative;
  color: #fff;
  background-size: cover;
  background-position: center;
  padding: 110px 0 90px;
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(18, 22, 28, 0.9) 30%,
    rgba(18, 22, 28, 0.55)
  );
}

.banner .wrap {
  position: relative;
}

.banner h1 {
  color: #fff;
}

.banner .crumbs {
  margin-top: 1rem;
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #AEB6C0;
}

.banner .crumbs a {
  color: var(--yellow);
  text-decoration: none;
}

.banner .crumbs a:hover {
  text-decoration: underline;
}


/* ============ CARDS / GRIDS ============ */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.svc-card {
  background: #fff;
  border: 1px solid var(--line);
  transition:
    box-shadow 0.3s var(--transition-smooth),
    transform 0.3s var(--transition-smooth),
    border-color 0.3s;
  display: flex;
  flex-direction: column;
}

.svc-card:hover {
  box-shadow: 0 18px 40px rgba(20, 25, 32, 0.12);
  transform: translateY(-6px);
  border-color: var(--yellow);
}

.svc-card .pic {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.svc-card .pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--transition-smooth);
}

.svc-card:hover .pic img {
  transform: scale(1.06);
}

.svc-card .body {
  padding: 26px 26px 30px;
  border-top: 4px solid var(--yellow);
  flex: 1;
}

.svc-card h3 {
  margin-bottom: 0.6rem;
}

.svc-card p {
  color: var(--muted);
  font-size: 0.94rem;
}

.svc-card .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1rem;
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark);
  text-decoration: none;
  transition:
    color 0.2s,
    gap 0.2s;
}

.svc-card .more:hover {
  color: var(--yellow-dark);
  gap: 10px;
}

.proj-card {
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  aspect-ratio: 4 / 3;
}

.proj-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.proj-card:hover img {
  transform: scale(1.06);
}

.proj-card .overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 70px 24px 22px;
  background: linear-gradient(
    to top,
    rgba(16, 20, 26, 0.92),
    transparent
  );
  color: #fff;
}

.proj-card .cat {
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--yellow);
}

.proj-card h3 {
  color: #fff;
  margin-top: 4px;
}

.proj-card .loc {
  font-size: 0.85rem;
  color: #C2C9D2;
}


/* Stats */

.stats {
  background: var(--dark);
  color: #fff;
  padding: 70px 0;
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 20% 50%,
      rgba(166, 138, 86, 0.08) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 80% 50%,
      rgba(166, 138, 86, 0.06) 0%,
      transparent 50%
    );
}

.stats .wrap {
  position: relative;
}

.stats .grid-4 {
  gap: 40px;
}

.stat {
  border-left: 3px solid var(--yellow);
  padding-left: 22px;
}

.stat .num {
  font-family: var(--head);
  font-weight: 800;
  font-size: 2.8rem;
  line-height: 1;
  background: linear-gradient(
    135deg,
    var(--yellow),
    #C9A84C,
    var(--yellow-dark)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat .lbl {
  margin-top: 8px;
  font-size: 0.88rem;
  color: #AEB6C0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--head);
  font-weight: 600;
}


/* Split Feature */

.feature-pic {
  position: relative;
}

.feature-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 380px;
}

.feature-pic::after {
  content: "";
  position: absolute;
  left: -14px;
  top: -14px;
  width: 120px;
  height: 120px;
  background: var(--yellow);
  z-index: -1;
}

.checks {
  list-style: none;
  margin-top: 1.4rem;
}

.checks li {
  padding-left: 34px;
  position: relative;
  margin-bottom: 0.7rem;
  color: var(--text);
  font-weight: 600;
}

.checks li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  background: var(--yellow);
  color: var(--dark);
  font-weight: 800;
  font-size: 0.8rem;
  display: grid;
  place-items: center;
}


/* CTA Band */

.cta-band {
  background: var(--yellow);
  padding: 60px 0;
}

.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: var(--dark);
  max-width: 22ch;
}

.cta-band p {
  color: #5d4d00;
  margin-top: 6px;
}


/* Blog Cards */

.post-card {
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.3s var(--transition-smooth),
    transform 0.3s var(--transition-smooth),
    border-color 0.3s;
}

.post-card:hover {
  box-shadow: 0 18px 40px rgba(20, 25, 32, 0.12);
  transform: translateY(-6px);
  border-color: var(--yellow);
}

.post-card .pic {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.post-card .pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--transition-smooth);
}

.post-card:hover .pic img {
  transform: scale(1.05);
}

.post-card .body {
  padding: 24px 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-meta {
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.post-meta b {
  color: var(--yellow-dark);
}

.post-card h3 {
  font-size: 1.05rem;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.4;
}

.post-card h3 a {
  text-decoration: none;
  transition: color 0.2s;
}

.post-card h3 a:hover {
  color: var(--yellow-dark);
}

.post-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 10px;
}

.post-card .more {
  margin-top: auto;
  padding-top: 18px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark);
  text-decoration: none;
  transition:
    color 0.2s,
    gap 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post-card .more:hover {
  color: var(--yellow-dark);
  gap: 10px;
}


/* Team */

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

.team-card img {
  width: 65%;
  margin: 20px auto 10px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
}

.team-card .body {
  padding: 22px 18px 26px;
  border-top: 4px solid var(--yellow);
}

.team-card h3 {
  font-size: 1rem;
}

.team-card .role {
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--head);
  font-weight: 600;
  margin-top: 4px;
}


/* Testimonial */

.quote-band {
  background-size: cover;
  background-position: center;
  position: relative;
  color: #fff;
  padding: 100px 0;
}

.quote-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 22, 28, 0.86);
}

.quote-band .wrap {
  position: relative;
  max-width: 860px;
  text-align: center;
}

.quote-band .mark {
  font-family: var(--head);
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--yellow);
  line-height: 0.5;
  display: block;
  margin-bottom: 1.6rem;
}

.quote-band blockquote {
  font-size: 1.35rem;
  line-height: 1.6;
  font-weight: 300;
}

.quote-band .who {
  margin-top: 1.6rem;
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
}


/* Process Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  counter-reset: step;
}

.step {
  background: #fff;
  border: 1px solid var(--line);
  padding: 30px 26px 32px;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--head);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--yellow);
  display: block;
  margin-bottom: 12px;
  line-height: 1;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--muted);
  font-size: 0.9rem;
}


/* Agencies Table */

.agency-list {
  border-top: 3px solid var(--dark);
}

.agency-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}

.agency-row .name {
  font-weight: 600;
}

.agency-row .scope {
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow-dark);
  white-space: nowrap;
}


/* Careers */

.job-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  padding: 26px 30px;
  transition: box-shadow 0.2s;
  flex-wrap: wrap;
}

.job-row + .job-row {
  margin-top: 16px;
}

.job-row:hover {
  box-shadow: 0 14px 34px rgba(20, 25, 32, 0.1);
}

.job-row h3 {
  font-size: 1.05rem;
}

.job-row .meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

.job-row .meta b {
  color: var(--yellow-dark);
  font-family: var(--head);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.benefit {
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px 26px;
}

.benefit .ico {
  width: 46px;
  height: 46px;
  background: var(--yellow);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 78% 100%, 0 100%);
}

.benefit h3 {
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.benefit p {
  color: var(--muted);
  font-size: 0.9rem;
}


/* Contact */

.info-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 30px 28px;
  border-top: 4px solid var(--yellow);
}

.info-card h3 {
  margin-bottom: 8px;
}

.info-card p,
.info-card a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.info-card a:hover {
  color: var(--yellow-dark);
}

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  padding: 40px;
}

.f-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.f-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.f-field.full {
  grid-column: 1 / -1;
}

.f-field label {
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark);
}

.f-field input,
.f-field textarea,
.f-field select {
  font-family: var(--body);
  font-size: 0.95rem;
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 13px 14px;
  width: 100%;
}

.f-field textarea {
  min-height: 140px;
  resize: vertical;
}

.map-band {
  background: var(--dark);
  color: #fff;
  padding: 0;
}

.map-flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 360px;
}

.map-pic {
  background-size: cover;
  background-position: center;
  min-height: 300px;
}

.map-copy {
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.map-copy h2 {
  color: #fff;
}

.map-copy p {
  color: #AEB6C0;
  margin-top: 12px;
}


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

footer.main {
  background: var(--dark);
  color: #9AA3AE;
  font-size: 0.92rem;
}

footer.main .cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 50px;
  padding: 70px 0 50px;
}

footer.main h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}

footer.main ul {
  list-style: none;
}

footer.main li {
  margin-bottom: 10px;
}

footer.main a {
  text-decoration: none;
}

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

.f-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.f-brand .logo-text {
  color: #fff;
}

.f-brand .logo-text small {
  color: #717B87;
}

.f-base {
  border-top: 1px solid #2E3540;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
}


/* Reveal */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.6s var(--transition-smooth),
    transform 0.6s var(--transition-smooth);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}


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

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 90;
  width: 48px;
  height: 48px;
  background: var(--dark);
  color: #fff;
  border: 2px solid var(--yellow);
  border-radius: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 78% 100%, 0 100%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition:
    opacity 0.35s var(--transition-smooth),
    transform 0.35s var(--transition-smooth),
    visibility 0.35s,
    background 0.2s;
  box-shadow: 0 4px 20px rgba(0, 33, 71, 0.25);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  background: var(--yellow);
  color: var(--dark);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}


/* ============ FOOTER SOCIAL ICONS ============ */

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #3A4450;
  color: #9AA3AE;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 78% 100%, 0 100%);
}

.social-links a:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--dark);
}

.social-links a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}


/* ============ RESPONSIVE ============ */

@media (max-width: 1000px) {

  .grid-3,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .map-flex {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: none;
  }
}


@media (max-width: 760px) {

  .section {
    padding: 60px 0;
  }

  .grid-3,
  .grid-4,
  .steps,
  .f-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 540px;
  }

  /*
   * MOBILE NAVIGATION
   * Menu sits above overlay.
   */
  nav.primary {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;

    z-index: 100;

    background: #fff;

    flex-direction: column;
    align-items: flex-start;

    padding: 18px 24px 26px;
    gap: 1.1rem;

    border-bottom: 1px solid var(--line);

    box-shadow: 0 16px 30px rgba(20, 25, 32, 0.12);

    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
      transform 0.3s var(--transition-smooth),
      opacity 0.25s var(--transition-smooth),
      visibility 0.25s;
  }

  nav.primary.open {
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-overlay {
    display: block;
  }

  .menu-toggle {
    display: block;

    /*
     * Above both navigation and overlay.
     */
    z-index: 110;
    pointer-events: auto;
  }

  header.main.scrolled + .nav-overlay + nav.primary,
  header.main.scrolled nav.primary {
    top: 64px;
  }

  footer.main .cols {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .map-copy {
    padding: 40px 24px;
  }

  .contact-form {
    padding: 26px 20px;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}


.f-brand img {
  filter: invert(1) grayscale(1) brightness(2);
  mix-blend-mode: screen;
}


/* WordPress-specific */

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 6px;
}

.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin: 0 auto;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.screen-reader-text:focus {
  background: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

.sticky .post-card {
  border-left: 4px solid var(--yellow);
}

.gallery-caption {
  display: block;
}

.bypostauthor {
  border-left: 3px solid var(--yellow);
  padding-left: 12px;
}

.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 40px 0;
}

.pagination a,
.pagination span {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--line);
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  color: var(--dark);
}

.pagination .current {
  background: var(--dark);
  color: #fff;
}

.pagination a:hover {
  background: var(--yellow);
  color: var(--dark);
  border-color: var(--yellow);
}