/*
Theme Name: Aerial Analytics
Theme URI: https://example.com/
Author: Aerial Analytics
Description: A bespoke landing-page theme for Aerial Analytics UAV surveys, heritage modelling and roof inspections.
Version: 1.3.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: aerial-analytics
*/

:root {
  --navy: #061d33;
  --deep-navy: #031628;
  --ink: #101a31;
  --blue: #079eff;
  --blue-dark: #0876c8;
  --paper: #f7f6f3;
  --white: #fff;
  --muted: #5c6671;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.shell {
  width: min(100% - 56px, 1180px);
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: 585px;
  overflow: hidden;
  background: var(--deep-navy);
  color: var(--white);
}

.hero-image {
  position: absolute;
  inset: 0 0 0 35%;
  background: url("assets/hero-church-hd.jpg") center / cover no-repeat;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #031628 0%, rgba(3, 22, 40, .98) 29%, rgba(3, 22, 40, .7) 52%, rgba(3, 22, 40, .08) 100%),
    linear-gradient(0deg, rgba(3, 22, 40, .7), transparent 45%);
}

.site-header {
  position: relative;
  z-index: 3;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand img,
.footer-brand img {
  width: 146px;
}

.nav {
  display: flex;
  gap: clamp(26px, 3.1vw, 48px);
  align-items: center;
}

.nav a,
footer nav a {
  color: rgba(255,255,255,.92);
  transition: color .2s ease;
}

.nav a { font-size: 14px; }
footer nav a { font-size: 14px; }

.nav a:hover,
footer nav a:hover { color: var(--blue); }

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin: 5px 0;
  background: white;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 44px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--blue);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 620px;
  margin-bottom: 16px;
  font-size: clamp(36px, 4.2vw, 54px);
  line-height: .99;
  letter-spacing: -.045em;
}

.dot { color: var(--blue); }

.hero-copy {
  max-width: 470px;
  margin-bottom: 27px;
  color: rgba(255,255,255,.9);
  font-size: 15px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 18px;
}

.button {
  min-width: 176px;
  min-height: 48px;
  padding: 14px 24px;
  border: 1px solid var(--blue);
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 158, 255, .22);
}

.button.primary { background: var(--blue); color: white; }
.button.primary:hover { background: #18a7ff; }
.button.secondary { background: rgba(3, 22, 40, .46); color: white; }

.hero-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 32px;
  color: rgba(255,255,255,.68);
  font-size: 11px;
}

.hero-meta i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}

.shield {
  width: 19px;
  height: 22px;
  border: 2px solid var(--blue);
  border-radius: 4px 4px 9px 9px;
  display: inline-grid;
  place-items: center;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.section { padding: 52px 0 38px; }

.services,
.technology,
.approach {
  position: relative;
}

.back-to-top {
  position: absolute;
  z-index: 5;
  top: 20px;
  right: max(28px, calc((100vw - 1180px) / 2));
  min-height: 34px;
  padding: 5px 11px 5px 6px;
  border: 1px solid rgba(16, 26, 49, .2);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.75);
  color: #344052;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .03em;
  backdrop-filter: blur(8px);
  transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.back-to-top:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  color: var(--blue-dark);
  background: white;
}

.back-to-top.on-dark {
  border-color: rgba(255,255,255,.24);
  background: rgba(3,22,40,.58);
  color: rgba(255,255,255,.82);
}

.back-to-top.on-dark:hover {
  border-color: var(--blue);
  background: rgba(3,22,40,.9);
  color: white;
}

.back-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: white;
  font-size: 14px;
  line-height: 1;
}

.section h2,
.technology h2 {
  margin-bottom: 26px;
  font-size: clamp(28px, 3.3vw, 39px);
  line-height: 1.06;
  letter-spacing: -.035em;
}

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

.service-card {
  overflow: hidden;
  border: 1px solid #d3cec5;
  border-radius: 8px;
  background: #faf9f6;
}

.service-photo {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.service-info {
  min-height: 124px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: center;
}

.service-info > img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.service-info h3,
.tech-copy h3 {
  margin-bottom: 7px;
  font-size: 17px;
}

.service-info p,
.tech-copy p {
  margin-bottom: 0;
  color: #3d4651;
  font-size: 12px;
  line-height: 1.45;
}

.technology {
  padding: 52px 0 34px;
  background: #031628;
  color: white;
}

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

.tech-card {
  padding: 0 55px 12px;
}

.tech-card:first-child { border-right: 1px solid rgba(255,255,255,.24); }

.tech-card img {
  width: 100%;
  height: 250px;
  object-fit: contain;
}

.tech-copy { padding: 5px 12px 0; }
.tech-copy p { max-width: 420px; color: rgba(255,255,255,.84); }

.approach { padding-bottom: 28px; }

.workflow {
  margin: 22px 0 28px;
  padding-bottom: 27px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid #cbc7c0;
}

.workflow-step {
  min-height: 78px;
  padding: 0 26px;
  display: flex;
  gap: 16px;
  align-items: center;
  border-right: 1px solid #a7a6a4;
}

.workflow-step:first-child { padding-left: 8px; }
.workflow-step:last-child { border-right: 0; }

.workflow-step img {
  width: 70px;
  height: 62px;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.workflow-step span {
  display: block;
  margin-bottom: 4px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 700;
}

.workflow-step h3 { margin: 0; font-size: 17px; }

.projects-title {
  margin-bottom: 18px !important;
  font-size: 25px !important;
}

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

.project-grid figure { margin: 0; }

.project-grid img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 7px;
}

.project-grid figcaption {
  padding-top: 11px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.contact {
  min-height: 540px;
  position: relative;
  overflow: hidden;
  padding: 50px 0;
  background: #031628;
  color: white;
}

.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3,22,40,.99) 0%, rgba(3,22,40,.94) 43%, rgba(3,22,40,.72) 100%),
    linear-gradient(0deg, #031628 0%, transparent 45%);
}

.contact-image {
  position: absolute;
  inset: 0 0 0 42%;
  opacity: .44;
  background: url("assets/app-tower-hd.jpg") center / cover no-repeat;
}

.contact-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(440px, 1.1fr);
  gap: clamp(38px, 5vw, 70px);
  align-items: center;
}

.contact-intro h2 {
  max-width: 500px;
  margin-bottom: 18px;
  font-size: clamp(30px, 3.7vw, 44px);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.contact-intro > p:not(.eyebrow) {
  max-width: 510px;
  margin-bottom: 22px;
  color: rgba(255,255,255,.8);
  font-size: 14px;
  line-height: 1.55;
}

.contact-intro ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.contact-intro li {
  display: flex;
  align-items: center;
  gap: 11px;
  color: rgba(255,255,255,.9);
  font-size: 13px;
}

.contact-intro li::before {
  content: "✓";
  width: 21px;
  height: 21px;
  border: 1px solid var(--blue);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.contact-form {
  position: relative;
  padding: 23px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px;
  background: rgba(248, 248, 246, .98);
  box-shadow: 0 26px 70px rgba(0,0,0,.28);
  color: var(--ink);
}

.form-submitting {
  position: absolute;
  z-index: 4;
  inset: 0;
  border-radius: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  background: rgba(248, 248, 246, .92);
  color: var(--ink);
  text-align: center;
}

.form-submitting[hidden] { display: none; }

.form-submitting strong {
  font-size: 15px;
}

.form-spinner {
  width: 34px;
  height: 34px;
  border: 4px solid rgba(7, 158, 255, .2);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: form-spin .7s linear infinite;
}

@keyframes form-spin {
  to { transform: rotate(360deg); }
}

.submission-success {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 34px;
  text-align: center;
}

.submission-success-icon {
  width: 62px;
  height: 62px;
  margin-bottom: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(7, 158, 255, .24);
  color: white;
  font-size: 28px;
  font-weight: 800;
}

.submission-success .eyebrow {
  margin-bottom: 9px;
  font-size: 11px;
}

.submission-success h3 {
  margin-bottom: 11px;
  font-size: 26px;
  letter-spacing: -.025em;
}

.submission-success p:last-child {
  max-width: 360px;
  margin: 0;
  color: #586571;
  font-size: 13px;
  line-height: 1.55;
}

.form-heading {
  margin-bottom: 17px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.form-heading span:first-child {
  display: block;
  margin-bottom: 5px;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.form-heading h3 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -.025em;
}

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

.contact-form label:not(.consent) {
  margin-bottom: 11px;
  display: grid;
  gap: 7px;
  color: #263342;
  font-size: 11px;
  font-weight: 700;
}

.optional {
  margin-left: 5px;
  color: #82909b;
  font-weight: 400;
}

.field-label {
  display: inline-flex;
  align-items: baseline;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #cbd3d8;
  border-radius: 5px;
  outline: none;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-form input,
.contact-form select {
  height: 39px;
  padding: 0 12px;
}

.contact-form textarea {
  min-height: 84px;
  padding: 11px 12px;
  resize: vertical;
  line-height: 1.45;
}

.contact-form textarea::placeholder { color: #8c969e; }

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(7,158,255,.13);
}

.consent {
  margin: 1px 0 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #4f5b66;
  font-size: 11px;
  line-height: 1.4;
}

.consent input {
  width: 17px;
  height: 17px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--blue);
}

.form-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.form-actions .button {
  min-width: 142px;
  min-height: 40px;
  border: 0;
  cursor: pointer;
}

.privacy-note {
  margin: 0;
  color: #78838d;
  font-size: 11px;
  line-height: 1.35;
}

.form-status {
  margin: 16px 0 0;
  padding: 11px 13px;
  border-left: 3px solid var(--blue);
  background: #eaf6fd;
  color: #164d72;
  font-size: 11px;
  line-height: 1.4;
}

.form-status.is-error {
  border-left-color: #b42318;
  background: #fff0ee;
  color: #7a271a;
}

.website-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

footer {
  padding: 15px 0;
  border-top: 1px solid rgba(255,255,255,.35);
  background: #031628;
  color: white;
}

.footer-inner {
  min-height: 78px;
  display: grid;
  grid-template-columns: 145px 1fr auto;
  gap: 26px;
  align-items: center;
}

.footer-brand img { width: 120px; }

.footer-address {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: rgba(255,255,255,.88);
  font-size: 11px;
}

.footer-address strong { font-size: 13px; color: white; }
footer nav { display: flex; gap: 36px; }

@media (max-width: 860px) {
  .shell { width: min(100% - 36px, 720px); }
  .site-header { height: 88px; }
  .menu-toggle { display: block; position: relative; z-index: 5; }
  .nav {
    position: absolute;
    top: 74px;
    right: 0;
    width: min(260px, calc(100vw - 36px));
    padding: 18px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 8px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    background: rgba(3, 22, 40, .97);
    box-shadow: 0 20px 45px rgba(0,0,0,.3);
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 10px; }
  .back-to-top { right: 18px; }
  .hero { min-height: 625px; }
  .hero-image { left: 24%; opacity: .8; }
  .hero-shade { background: linear-gradient(90deg, #031628 0%, rgba(3,22,40,.92) 58%, rgba(3,22,40,.36)); }
  .hero-content { padding-top: 52px; }
  .service-grid, .technology-grid { grid-template-columns: 1fr; }
  .service-photo { height: 320px; }
  .tech-card { padding-inline: 40px; }
  .tech-card:first-child { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.22); }
  .workflow { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .workflow-step:nth-child(odd) { padding-left: 8px; }
  .workflow-step:nth-child(2) { border-right: 0; }
  .project-grid { gap: 12px; }
  .project-grid img { height: 150px; }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .contact-intro { max-width: 620px; }
  .contact-form { padding: 21px; }
  .footer-inner { grid-template-columns: 110px 1fr; }
  footer nav { grid-column: 1 / -1; justify-content: space-between; padding: 8px 0; }
}

@media (max-width: 570px) {
  .shell { width: min(100% - 28px, 520px); }
  .brand img { width: 124px; }
  .hero { min-height: 660px; }
  .hero-image { inset: 0; opacity: .52; background-position: 62% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(3,22,40,.97), rgba(3,22,40,.64)); }
  .hero-content { padding-top: 72px; }
  .back-to-top {
    top: 12px;
    right: 14px;
    min-width: 32px;
    min-height: 32px;
    padding: 4px;
  }
  .back-to-top > span:last-child { display: none; }
  .back-icon { width: 22px; height: 22px; }
  h1 { font-size: 35px; }
  .hero-copy { font-size: 14px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 12px; }
  .button { width: 100%; }
  .hero-meta { flex-wrap: wrap; }
  .hero-meta i { margin-left: 4px; }
  .section, .technology { padding-top: 40px; }
  .section h2, .technology h2 { font-size: 28px; }
  .service-photo { height: 230px; }
  .service-info { grid-template-columns: 56px 1fr; padding: 17px; }
  .service-info > img { width: 50px; height: 54px; }
  .tech-card { padding: 0 8px 20px; }
  .tech-card img { height: 210px; }
  .workflow { grid-template-columns: 1fr; }
  .workflow-step { border-right: 0; border-bottom: 1px solid #d3d0ca; padding: 0 8px 16px; }
  .workflow-step:last-child { border-bottom: 0; }
  .project-grid { grid-template-columns: 1fr; gap: 22px; }
  .project-grid img { height: 220px; }
  .contact { min-height: 0; padding: 40px 0; }
  .contact-image { inset: 0; opacity: .2; }
  .contact::after { background: rgba(3,22,40,.85); }
  .contact-grid { grid-template-columns: 1fr; gap: 25px; }
  .contact-intro h2 { font-size: 30px; }
  .contact-form { padding: 18px 15px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .button { width: 100%; }
  .privacy-note { text-align: center; }
  .footer-inner { grid-template-columns: 90px 1fr; gap: 15px; }
  footer nav { flex-wrap: wrap; justify-content: flex-start; gap: 16px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .form-spinner { animation: none; }
}
