/*
Theme Name: Hydrosphere Africa
Theme URI: https://hydrosphereafrica.com/
Author: Hydrosphere Africa
Description: A responsive, editable WordPress theme for Hydrosphere Africa's integrated water infrastructure services.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: hydrosphere-africa
*/

:root {
  --ha-navy: #073653;
  --ha-navy-deep: #041f31;
  --ha-navy-soft: #0d4d70;
  --ha-aqua: #04c5d7;
  --ha-sky: #45a9cf;
  --ha-mist: #eaf8fb;
  --ha-mist-2: #f4fafb;
  --ha-ink: #132c3a;
  --ha-muted: #607583;
  --ha-line: #d9e8ed;
  --ha-white: #ffffff;
  --ha-green: #4f9b68;
  --ha-shadow: 0 24px 70px rgba(5, 43, 66, 0.12);
  --ha-radius: 26px;
  --ha-radius-sm: 16px;
  --ha-container: 1180px;
  --ha-font: "Aptos", "Segoe UI", Arial, sans-serif;
  --ha-display: "Aptos Display", "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
}

body {
  margin: 0;
  color: var(--ha-ink);
  background: var(--ha-white);
  font-family: var(--ha-font);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: var(--ha-navy-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: var(--ha-aqua);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  color: var(--ha-navy);
  font-family: var(--ha-display);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(3.1rem, 7vw, 6.4rem);
}

h2 {
  font-size: clamp(2.25rem, 4.8vw, 4.5rem);
}

h3 {
  font-size: clamp(1.35rem, 2.25vw, 2rem);
}

p {
  margin-top: 0;
}

.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 100000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  clip: auto;
  color: var(--ha-white);
  background: var(--ha-navy);
  border-radius: 8px;
}

.ha-container,
.wp-block-group.alignwide,
.wp-block-columns.alignwide {
  width: min(calc(100% - 40px), var(--ha-container));
  margin-right: auto;
  margin-left: auto;
}

.alignwide {
  width: min(calc(100% - 40px), var(--ha-container));
  max-width: var(--ha-container);
  margin-right: auto;
  margin-left: auto;
}

.alignfull {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

.site-topbar {
  position: relative;
  z-index: 30;
  color: rgba(255, 255, 255, 0.82);
  background: var(--ha-navy-deep);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  gap: 24px;
}

.site-topbar p {
  margin: 0;
}

.site-topbar__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-topbar a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  z-index: 25;
  top: 0;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(11, 71, 101, 0.08);
  backdrop-filter: blur(18px);
}

.admin-bar .site-header {
  top: 32px;
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 84px;
  gap: 28px;
}

.site-branding {
  display: inline-flex;
  align-items: center;
  min-width: 220px;
}

.site-branding a {
  display: inline-flex;
  align-items: center;
}

.custom-logo,
.site-branding__fallback {
  width: auto;
  max-width: 245px;
  max-height: 54px;
}

.primary-navigation {
  justify-self: end;
}

.primary-navigation .menu {
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  gap: 4px;
  list-style: none;
}

.primary-navigation a {
  display: block;
  padding: 11px 12px;
  color: var(--ha-ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  transition: color 180ms ease, background 180ms ease;
}

.primary-navigation a:hover,
.primary-navigation a:focus,
.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a {
  color: var(--ha-navy);
  background: var(--ha-mist);
}

.header-cta,
.ha-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  color: var(--ha-white) !important;
  background: linear-gradient(135deg, var(--ha-aqua), #1398bd);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(4, 197, 215, 0.22);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.header-cta:hover,
.header-cta:focus,
.ha-button:hover,
.ha-button:focus,
.wp-block-button__link:hover,
.wp-block-button__link:focus {
  color: var(--ha-white) !important;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(4, 197, 215, 0.3);
}

.wp-block-button.is-style-outline .wp-block-button__link,
.ha-button--outline {
  color: var(--ha-navy) !important;
  background: transparent;
  border: 1.5px solid rgba(7, 54, 83, 0.26);
  box-shadow: none;
}

.ha-dark .wp-block-button.is-style-outline .wp-block-button__link,
.ha-hero .wp-block-button.is-style-outline .wp-block-button__link {
  color: var(--ha-white) !important;
  border-color: rgba(255, 255, 255, 0.45);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  color: var(--ha-navy);
  background: var(--ha-mist);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  content: "";
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"]::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"]::after {
  transform: translateY(-6px) rotate(-45deg);
}

.site-main {
  min-height: 50vh;
  overflow: clip;
}

.ha-section {
  position: relative;
  padding: clamp(74px, 9vw, 124px) 0;
}

.ha-section--compact {
  padding-top: clamp(56px, 6vw, 82px);
  padding-bottom: clamp(56px, 6vw, 82px);
}

.ha-section--mist {
  background: var(--ha-mist-2);
}

.ha-section--navy,
.ha-dark {
  color: rgba(255, 255, 255, 0.82);
  background: var(--ha-navy);
}

.ha-section--navy h1,
.ha-section--navy h2,
.ha-section--navy h3,
.ha-dark h1,
.ha-dark h2,
.ha-dark h3 {
  color: var(--ha-white);
}

.ha-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--ha-sky);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ha-eyebrow::before {
  width: 34px;
  height: 2px;
  content: "";
  background: currentColor;
}

.ha-dark .ha-eyebrow,
.ha-hero .ha-eyebrow {
  color: var(--ha-aqua);
}

.ha-section-heading {
  max-width: 760px;
  margin-bottom: 50px;
}

.ha-section-heading h2 {
  margin-bottom: 20px;
}

.ha-section-heading p,
.ha-lead {
  color: var(--ha-muted);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.65;
}

.ha-dark .ha-section-heading p,
.ha-dark .ha-lead {
  color: rgba(255, 255, 255, 0.72);
}

.ha-hero {
  --ha-hero-image: url("assets/images/hero-river.png");
  position: relative;
  min-height: 760px;
  color: rgba(255, 255, 255, 0.8);
  background: var(--ha-navy-deep);
}

.ha-hero::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(3, 29, 45, 0.98) 0%, rgba(3, 29, 45, 0.91) 43%, rgba(3, 29, 45, 0.30) 72%, rgba(3, 29, 45, 0.08) 100%),
    var(--ha-hero-image) center / cover no-repeat;
}

.ha-hero::after {
  position: absolute;
  z-index: 1;
  right: -110px;
  bottom: -140px;
  width: 420px;
  height: 420px;
  content: "";
  border: 80px solid rgba(4, 197, 215, 0.08);
  border-radius: 50%;
}

.ha-hero > .wp-block-group__inner-container,
.ha-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: min(calc(100% - 40px), var(--ha-container));
  min-height: 760px;
  margin: 0 auto;
}

.ha-hero__content {
  max-width: 760px;
  padding: 96px 0 116px;
}

.ha-hero h1 {
  max-width: 760px;
  margin-bottom: 26px;
  color: var(--ha-white);
}

.ha-hero h1 em {
  color: var(--ha-aqua);
  font-style: normal;
}

.ha-hero .ha-lead {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
}

.ha-hero .wp-block-buttons {
  margin-top: 34px;
}

.ha-hero__note {
  display: flex;
  flex-wrap: wrap;
  margin-top: 46px;
  gap: 24px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.86rem;
  font-weight: 700;
}

.ha-hero__note span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ha-hero__note span::before {
  width: 8px;
  height: 8px;
  content: "";
  background: var(--ha-aqua);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(4, 197, 215, 0.14);
}

.ha-page-hero {
  position: relative;
  padding: clamp(86px, 10vw, 138px) 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.76);
  background: var(--ha-navy);
}

.ha-page-hero--about {
  --ha-page-image: url("assets/images/crop-aerial.png");
}

.ha-page-hero--services {
  --ha-page-image: url("assets/images/solar-field.png");
}

.ha-page-hero--process {
  --ha-page-image: url("assets/images/farm-pipelines.png");
}

.ha-page-hero--projects {
  --ha-page-image: url("assets/images/solar-project.png");
}

.ha-page-hero--partnerships {
  --ha-page-image: url("assets/images/fields-irrigation.png");
}

.ha-page-hero--contact {
  --ha-page-image: url("assets/images/hero-river.png");
}

.ha-page-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(4, 31, 49, 0.98), rgba(7, 54, 83, 0.78)),
    var(--ha-page-image) center / cover no-repeat;
}

.ha-page-hero::after {
  position: absolute;
  right: -80px;
  bottom: -160px;
  width: 410px;
  height: 410px;
  content: "";
  border: 80px solid rgba(4, 197, 215, 0.1);
  border-radius: 50%;
}

.ha-page-hero > .wp-block-group__inner-container {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--ha-container));
  margin: 0 auto;
}

.ha-page-hero h1 {
  max-width: 880px;
  margin-bottom: 22px;
  color: var(--ha-white);
  font-size: clamp(3rem, 6vw, 5.4rem);
}

.ha-page-hero p:not(.ha-eyebrow) {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
}

.ha-stats {
  position: relative;
  z-index: 5;
  margin-top: -55px;
}

.ha-stats > .wp-block-group__inner-container,
.ha-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(calc(100% - 40px), var(--ha-container));
  margin: 0 auto;
  overflow: hidden;
  background: var(--ha-white);
  border: 1px solid rgba(10, 74, 105, 0.08);
  border-radius: var(--ha-radius);
  box-shadow: var(--ha-shadow);
}

.ha-stat {
  position: relative;
  min-height: 150px;
  padding: 32px;
}

.ha-stat + .ha-stat {
  border-left: 1px solid var(--ha-line);
}

.ha-stat strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ha-navy);
  font-family: var(--ha-display);
  font-size: clamp(2rem, 3.2vw, 3.15rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.ha-stat span {
  color: var(--ha-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.ha-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.ha-card {
  position: relative;
  height: 100%;
  padding: 32px;
  overflow: hidden;
  background: var(--ha-white);
  border: 1px solid var(--ha-line);
  border-radius: var(--ha-radius-sm);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.ha-card:hover {
  border-color: rgba(4, 197, 215, 0.5);
  transform: translateY(-7px);
  box-shadow: var(--ha-shadow);
}

.ha-card::after {
  position: absolute;
  right: -38px;
  bottom: -42px;
  width: 120px;
  height: 120px;
  content: "";
  background: var(--ha-mist);
  border-radius: 50%;
  transition: transform 220ms ease;
}

.ha-card:hover::after {
  transform: scale(1.3);
}

.ha-card__number,
.ha-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 26px;
  color: var(--ha-navy);
  background: var(--ha-mist);
  border-radius: 15px;
  font-size: 1rem;
  font-weight: 900;
}

.ha-card h3 {
  margin-bottom: 14px;
  font-size: 1.45rem;
}

.ha-card p {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  color: var(--ha-muted);
  font-size: 0.96rem;
}

.ha-card__link {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: 24px;
  color: var(--ha-navy);
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
}

.ha-card__link::after {
  margin-left: 8px;
  content: "→";
}

.ha-split {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(45px, 7vw, 90px);
}

.ha-split--reverse .ha-split__media {
  order: 2;
}

.ha-split__content > :last-child {
  margin-bottom: 0;
}

.ha-split__media {
  position: relative;
}

.ha-split__media::before {
  position: absolute;
  z-index: -1;
  top: -24px;
  right: -24px;
  width: 68%;
  height: 68%;
  content: "";
  background: var(--ha-aqua);
  border-radius: var(--ha-radius);
  opacity: 0.15;
}

.ha-split__media img {
  width: 100%;
  min-height: 520px;
  object-fit: cover;
  border-radius: var(--ha-radius);
  box-shadow: var(--ha-shadow);
}

.ha-check-list {
  padding: 0;
  margin: 30px 0;
  list-style: none;
}

.ha-check-list li {
  position: relative;
  padding-left: 34px;
  margin-bottom: 13px;
  color: var(--ha-ink);
  font-weight: 700;
}

.ha-check-list li::before {
  position: absolute;
  top: 0.33em;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  content: "✓";
  color: var(--ha-navy);
  background: rgba(4, 197, 215, 0.18);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 900;
}

.ha-dark .ha-check-list li {
  color: var(--ha-white);
}

.ha-process {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  counter-reset: process;
}

.ha-process__step {
  position: relative;
  padding: 28px 22px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--ha-radius-sm);
  counter-increment: process;
}

.ha-process__step::before {
  display: block;
  margin-bottom: 28px;
  color: var(--ha-aqua);
  content: "0" counter(process);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.ha-process__step h3 {
  margin-bottom: 12px;
  color: var(--ha-white);
  font-size: 1.18rem;
  line-height: 1.25;
}

.ha-process__step p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
  line-height: 1.55;
}

.ha-process__duration {
  display: inline-block;
  margin-top: 16px;
  color: var(--ha-aqua);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ha-project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

.ha-project-card {
  position: relative;
  grid-column: span 4;
  min-height: 430px;
  overflow: hidden;
  background: var(--ha-navy);
  border-radius: var(--ha-radius);
}

.ha-project-card:first-child {
  grid-column: span 7;
}

.ha-project-card:nth-child(2) {
  grid-column: span 5;
}

.ha-project-card img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  transition: transform 500ms ease;
}

.ha-project-card:hover img {
  transform: scale(1.04);
}

.ha-project-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 35%, rgba(3, 26, 40, 0.92));
}

.ha-project-card__content {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 32px;
}

.ha-project-card__content h3 {
  margin-bottom: 6px;
  color: var(--ha-white);
}

.ha-project-card__content p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  font-weight: 700;
}

.ha-records {
  display: grid;
  gap: 14px;
}

.ha-record {
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) repeat(3, minmax(140px, 1fr));
  align-items: center;
  padding: 24px 26px;
  gap: 18px;
  background: var(--ha-white);
  border: 1px solid var(--ha-line);
  border-radius: 14px;
}

.ha-record strong {
  color: var(--ha-navy);
  line-height: 1.3;
}

.ha-record span {
  color: var(--ha-muted);
  font-size: 0.9rem;
}

.ha-record__label {
  display: block;
  margin-bottom: 3px;
  color: var(--ha-sky) !important;
  font-size: 0.68rem !important;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ha-pricing-wrap {
  overflow-x: auto;
  border: 1px solid var(--ha-line);
  border-radius: var(--ha-radius-sm);
  box-shadow: 0 14px 40px rgba(6, 47, 70, 0.06);
}

.ha-pricing {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: var(--ha-white);
}

.ha-pricing th,
.ha-pricing td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--ha-line);
}

.ha-pricing th {
  color: var(--ha-white);
  background: var(--ha-navy);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ha-pricing td {
  color: var(--ha-muted);
  font-size: 0.92rem;
}

.ha-pricing td:first-child {
  color: var(--ha-ink);
  font-weight: 800;
}

.ha-pricing tr:last-child td {
  border-bottom: 0;
}

.ha-callout {
  --ha-callout-image: url("assets/images/fields-irrigation.png");
  position: relative;
  padding: clamp(46px, 7vw, 80px);
  overflow: hidden;
  color: rgba(255, 255, 255, 0.76);
  background:
    linear-gradient(115deg, rgba(4, 31, 49, 0.96), rgba(7, 54, 83, 0.78)),
    var(--ha-callout-image) center / cover no-repeat;
  border-radius: var(--ha-radius);
}

.ha-callout::after {
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 330px;
  height: 330px;
  content: "";
  border: 65px solid rgba(4, 197, 215, 0.13);
  border-radius: 50%;
}

.ha-callout > .wp-block-group__inner-container,
.ha-callout__inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.ha-callout h2 {
  margin-bottom: 20px;
  color: var(--ha-white);
}

.ha-callout .wp-block-buttons {
  margin-top: 30px;
}

.ha-benefit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.ha-benefit {
  padding: 30px;
  background: var(--ha-white);
  border: 1px solid var(--ha-line);
  border-radius: var(--ha-radius-sm);
}

.ha-benefit h3 {
  margin-bottom: 12px;
}

.ha-benefit p {
  margin-bottom: 0;
  color: var(--ha-muted);
}

.ha-contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(36px, 6vw, 80px);
}

.ha-contact-panel {
  padding: 36px;
  color: rgba(255, 255, 255, 0.75);
  background: var(--ha-navy);
  border-radius: var(--ha-radius);
}

.ha-contact-panel h2,
.ha-contact-panel h3 {
  color: var(--ha-white);
}

.ha-contact-panel a {
  color: var(--ha-aqua);
}

.ha-contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.ha-field--full,
.ha-form-status,
.ha-form-actions,
.ha-honeypot {
  grid-column: 1 / -1;
}

.ha-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--ha-ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.ha-field input,
.ha-field select,
.ha-field textarea {
  width: 100%;
  padding: 14px 15px;
  color: var(--ha-ink);
  background: var(--ha-white);
  border: 1px solid #cbdde4;
  border-radius: 10px;
  outline: none;
  transition: border 180ms ease, box-shadow 180ms ease;
}

.ha-field input:focus,
.ha-field select:focus,
.ha-field textarea:focus {
  border-color: var(--ha-aqua);
  box-shadow: 0 0 0 4px rgba(4, 197, 215, 0.12);
}

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

.ha-form-status {
  padding: 14px 16px;
  margin-bottom: 4px;
  border-radius: 10px;
}

.ha-form-status--success {
  color: #1a5c39;
  background: #e5f7ec;
}

.ha-form-status--error {
  color: #8b2933;
  background: #fbeaec;
}

.ha-honeypot {
  position: absolute !important;
  left: -9999px !important;
}

.ha-submit {
  min-width: 190px;
  cursor: pointer;
}

.site-footer {
  color: rgba(255, 255, 255, 0.64);
  background: var(--ha-navy-deep);
}

.site-footer__main {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(150px, 0.75fr));
  padding-top: 76px;
  padding-bottom: 58px;
  gap: 45px;
}

.site-footer__brand img {
  width: auto;
  max-width: 245px;
  max-height: 54px;
  margin-bottom: 25px;
}

.site-footer__brand p {
  max-width: 340px;
  font-size: 0.92rem;
}

.site-footer h3 {
  margin-bottom: 22px;
  color: var(--ha-white);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

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

.site-footer a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--ha-aqua);
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.8rem;
}

.site-footer__bottom p {
  margin: 0;
}

.ha-socials {
  display: flex;
  gap: 8px;
}

.ha-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--ha-white);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  font-size: 0.74rem;
  font-weight: 900;
}

.ha-post-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 90px 0;
}

.ha-post-card {
  padding: 28px;
  border: 1px solid var(--ha-line);
  border-radius: var(--ha-radius-sm);
}

.ha-post-card h2 {
  font-size: 1.7rem;
}

.ha-empty,
.ha-404 {
  width: min(calc(100% - 40px), 760px);
  padding: 120px 0;
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 1080px) {
  .site-header__inner {
    grid-template-columns: auto 1fr auto;
  }

  .header-cta {
    display: none;
  }

  .primary-navigation a {
    padding-right: 9px;
    padding-left: 9px;
    font-size: 0.84rem;
  }

  .ha-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ha-process {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .site-footer__contact {
    grid-column: 2 / 4;
  }
}

@media (max-width: 860px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .site-topbar__inner {
    justify-content: center;
  }

  .site-topbar__links {
    display: none;
  }

  .site-header__inner {
    grid-template-columns: 1fr auto;
    min-height: 76px;
  }

  .menu-toggle {
    display: block;
  }

  .primary-navigation {
    position: fixed;
    top: 114px;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    padding: 28px 20px;
    background: rgba(4, 31, 49, 0.98);
    overflow-y: auto;
  }

  .admin-bar .primary-navigation {
    top: 160px;
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-navigation .menu {
    display: block;
    width: min(100%, 520px);
    margin: 0 auto;
  }

  .primary-navigation li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .primary-navigation a {
    padding: 17px 10px;
    color: var(--ha-white);
    font-size: 1.12rem;
    border-radius: 0;
  }

  .primary-navigation a:hover,
  .primary-navigation a:focus,
  .primary-navigation .current-menu-item > a,
  .primary-navigation .current_page_item > a {
    color: var(--ha-aqua);
    background: transparent;
  }

  .ha-hero,
  .ha-hero > .wp-block-group__inner-container,
  .ha-hero__inner {
    min-height: 680px;
  }

  .ha-hero::before {
    background:
      linear-gradient(90deg, rgba(3, 29, 45, 0.98) 0%, rgba(3, 29, 45, 0.88) 72%, rgba(3, 29, 45, 0.65) 100%),
      var(--ha-hero-image) center / cover no-repeat;
  }

  .ha-stats > .wp-block-group__inner-container,
  .ha-stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ha-stat:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--ha-line);
  }

  .ha-stat:nth-child(4) {
    border-top: 1px solid var(--ha-line);
  }

  .ha-split {
    grid-template-columns: 1fr;
  }

  .ha-split--reverse .ha-split__media {
    order: 0;
  }

  .ha-split__media img {
    min-height: 430px;
  }

  .ha-project-card,
  .ha-project-card:first-child,
  .ha-project-card:nth-child(2) {
    grid-column: span 6;
  }

  .ha-record {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .site-footer__contact {
    grid-column: auto;
  }
}

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

  .ha-container,
  .alignwide,
  .wp-block-group.alignwide,
  .wp-block-columns.alignwide,
  .ha-hero > .wp-block-group__inner-container,
  .ha-hero__inner,
  .ha-page-hero > .wp-block-group__inner-container,
  .ha-stats > .wp-block-group__inner-container,
  .ha-stats__grid {
    width: min(calc(100% - 28px), var(--ha-container));
  }

  .site-topbar {
    font-size: 0.67rem;
  }

  .custom-logo,
  .site-branding__fallback {
    max-width: 210px;
    max-height: 46px;
  }

  .ha-hero,
  .ha-hero > .wp-block-group__inner-container,
  .ha-hero__inner {
    min-height: 650px;
  }

  .ha-hero__content {
    padding-top: 72px;
    padding-bottom: 100px;
  }

  .ha-hero h1 {
    font-size: clamp(2.65rem, 15vw, 4.2rem);
  }

  .ha-hero__note {
    display: block;
  }

  .ha-hero__note span {
    display: flex;
    margin-bottom: 12px;
  }

  .ha-stats {
    margin-top: -38px;
  }

  .ha-stat {
    min-height: 125px;
    padding: 24px 20px;
  }

  .ha-card-grid,
  .ha-process,
  .ha-benefit-grid,
  .ha-contact-form,
  .ha-post-list {
    grid-template-columns: 1fr;
  }

  .ha-process__step {
    min-height: 220px;
  }

  .ha-project-card,
  .ha-project-card:first-child,
  .ha-project-card:nth-child(2) {
    grid-column: 1 / -1;
    min-height: 380px;
  }

  .ha-record {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ha-callout {
    border-radius: 18px;
  }

  .ha-contact-panel {
    padding: 28px 24px;
  }

  .site-footer__main {
    grid-template-columns: 1fr;
  }

  .site-footer__brand,
  .site-footer__contact {
    grid-column: auto;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
