
/*
Theme Name: Hyde Aerial
Theme URI: https://hydeaerial.co.uk/
Author: OpenAI for Hyde Aerial
Description: Lightweight custom WordPress theme for Hyde Aerial drone photography, video and mapping services.
Version: 1.2.1
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: hyde-aerial
*/

:root{
  --ha-navy:#071726;
  --ha-navy-2:#0a2238;
  --ha-blue:#0da7ff;
  --ha-blue-2:#2d8cff;
  --ha-white:#ffffff;
  --ha-off:#f4f7fa;
  --ha-text:#0d1823;
  --ha-muted:#63707d;
  --ha-border:#dce4ec;
  --ha-radius:18px;
  --ha-shadow:0 12px 35px rgba(7,23,38,.12);
  --ha-max:1180px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,Arial,sans-serif;color:var(--ha-text);background:#fff;line-height:1.6}
a{color:inherit}
img{max-width:100%;height:auto}
.ha-wrap{width:min(var(--ha-max),calc(100% - 40px));margin:auto}
.ha-section{padding:80px 0}
.ha-section--tight{padding:56px 0}
.ha-dark{background:var(--ha-navy);color:#fff}
.ha-soft{background:var(--ha-off)}
.ha-kicker{font-size:.78rem;letter-spacing:.2em;text-transform:uppercase;font-weight:800;color:var(--ha-blue)}
.ha-title{font-size:clamp(2rem,4vw,3.7rem);line-height:1.04;margin:.2em 0 .35em;font-weight:800}
.ha-subtitle{font-size:clamp(1.05rem,1.6vw,1.25rem);max-width:760px;color:var(--ha-muted)}
.ha-dark .ha-subtitle{color:#c7d2dc}
.ha-btn{display:inline-block;padding:14px 22px;border-radius:10px;text-decoration:none;font-weight:700;border:1px solid transparent}
.ha-btn--primary{background:var(--ha-blue);color:#fff}
.ha-btn--ghost{border-color:rgba(255,255,255,.65);color:#fff}
.ha-btn--light{background:#fff;color:var(--ha-navy)}
.ha-btn:hover{transform:translateY(-1px)}
.ha-grid{display:grid;gap:24px}
.ha-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.ha-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.ha-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.ha-card{background:#fff;border:1px solid var(--ha-border);border-radius:var(--ha-radius);overflow:hidden;box-shadow:var(--ha-shadow)}
.ha-card__body{padding:22px}
.ha-card h3{margin:.2rem 0 .4rem;font-size:1.3rem}
.ha-card p{margin:0 0 1rem;color:var(--ha-muted)}
.ha-card__image{height:210px;background:
linear-gradient(135deg,rgba(7,23,38,.2),rgba(13,167,255,.12)),
linear-gradient(160deg,#8197aa,#d9e2ea 45%,#496c59 46%,#173b2c 100%)}
.ha-icon{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:var(--ha-navy);color:var(--ha-blue);font-size:1.45rem;margin-top:-28px;border:4px solid #fff}
.ha-header{background:var(--ha-navy);color:#fff;position:sticky;top:0;z-index:20;border-bottom:1px solid rgba(255,255,255,.08)}
.ha-header__inner{display:flex;align-items:center;justify-content:space-between;min-height:74px;gap:24px}
.ha-brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.ha-brand__mark{width:44px;height:44px;border:2px solid var(--ha-blue);border-radius:50%;display:grid;place-items:center;font-weight:900;color:var(--ha-blue)}
.ha-brand__name{font-weight:800;font-size:1.35rem;letter-spacing:.04em}
.ha-brand__name span{color:var(--ha-blue)}
.ha-nav{display:flex;align-items:center;gap:26px}
.ha-nav a{text-decoration:none;font-weight:600;font-size:.95rem}
.ha-nav a:hover{color:var(--ha-blue)}
.ha-nav__cta{background:var(--ha-blue);padding:10px 16px;border-radius:999px}
.ha-menu-btn{display:none;background:none;border:0;color:#fff;font-size:1.4rem}
.ha-hero{min-height:640px;display:grid;align-items:center;color:#fff;background:
linear-gradient(90deg,rgba(5,17,29,.9) 0%,rgba(5,17,29,.72) 42%,rgba(5,17,29,.18) 100%),
radial-gradient(circle at 77% 22%,rgba(255,174,66,.45),transparent 18%),
linear-gradient(155deg,#38556b 0%,#183248 35%,#375d42 61%,#172c21 100%)}
.ha-hero__content{max-width:700px;padding:90px 0}
.ha-hero .ha-title span{color:var(--ha-blue)}
.ha-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:28px}
.ha-trustbar{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:34px}
.ha-trust{padding:18px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(255,255,255,.05)}
.ha-trust strong{display:block}
.ha-split{display:grid;grid-template-columns:1.1fr .9fr;gap:50px;align-items:center}
.ha-drone-visual{min-height:420px;border-radius:24px;background:
radial-gradient(circle at 55% 47%,#109fea 0 9%,#162838 10% 18%,transparent 19%),
linear-gradient(160deg,#4d6572,#172735 45%,#0a1a26 100%);position:relative;overflow:hidden}
.ha-drone-visual:before,.ha-drone-visual:after{content:"";position:absolute;left:15%;right:15%;height:10px;background:#8b98a3;top:43%;border-radius:9px;transform:rotate(7deg)}
.ha-drone-visual:after{transform:rotate(-7deg)}
.ha-gallery{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.ha-gallery__item{aspect-ratio:4/3;border-radius:14px;background:
linear-gradient(160deg,#7893a8 0%,#d8e0e5 38%,#6c8f5e 39%,#294c30 100%);overflow:hidden}
.ha-gallery__item:nth-child(2n){background:linear-gradient(160deg,#f0a45d,#627d8c 35%,#466f45 36%,#173a28)}
.ha-gallery__item:nth-child(3n){background:linear-gradient(160deg,#93b7cf,#e5edf3 42%,#536f3e 43%,#223d29)}
.ha-cta{background:
linear-gradient(90deg,rgba(0,73,130,.94),rgba(0,128,214,.84)),
linear-gradient(160deg,#244b66,#152b3c);color:#fff}
.ha-cta__inner{display:flex;align-items:center;justify-content:space-between;gap:25px}
.ha-footer{background:#04111d;color:#d5e0e9;padding:44px 0 24px}
.ha-footer__top{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:40px}
.ha-footer a{text-decoration:none}
.ha-footer__links{display:grid;gap:9px}
.ha-footer__bottom{margin-top:32px;padding-top:22px;border-top:1px solid rgba(255,255,255,.1);display:flex;justify-content:space-between;gap:20px;font-size:.9rem;color:#9db0bf}
.ha-page-hero{padding:86px 0;color:#fff;background:
linear-gradient(90deg,rgba(5,17,29,.86),rgba(5,17,29,.4)),
linear-gradient(155deg,#3f5f73,#29485a 35%,#355c3e 100%)}
.ha-list{display:grid;gap:12px;padding:0;list-style:none}
.ha-list li:before{content:"✓";color:var(--ha-blue);font-weight:900;margin-right:10px}
.ha-service-row{display:grid;grid-template-columns:.9fr 1.1fr;gap:36px;align-items:center;padding:28px 0;border-bottom:1px solid var(--ha-border)}
.ha-service-row:nth-child(even){grid-template-columns:1.1fr .9fr}
.ha-service-row:nth-child(even) .ha-service-row__visual{order:2}
.ha-service-row__visual{min-height:290px;border-radius:18px;background:linear-gradient(160deg,#7393a8,#e8eef2 40%,#4e7145 41%,#1e3928)}
.ha-form{display:grid;gap:16px}
.ha-form label{font-weight:700;font-size:.95rem}
.ha-form input,.ha-form select,.ha-form textarea{width:100%;padding:13px 14px;border:1px solid #cdd7df;border-radius:9px;font:inherit}
.ha-form textarea{min-height:150px;resize:vertical}
.ha-form button{cursor:pointer}
.ha-contact-grid{display:grid;grid-template-columns:1.5fr .8fr;gap:50px}
.ha-alert{padding:14px 16px;border-radius:10px;margin-bottom:20px}
.ha-alert--success{background:#e9f8ef;color:#155a2f}
.ha-alert--error{background:#fff0f0;color:#8a1d1d}
.ha-hp{position:absolute!important;left:-9999px!important}
@media(max-width:900px){
  .ha-grid-4{grid-template-columns:repeat(2,1fr)}
  .ha-grid-3,.ha-split,.ha-contact-grid,.ha-footer__top{grid-template-columns:1fr}
  .ha-gallery{grid-template-columns:repeat(2,1fr)}
  .ha-nav{display:none;position:absolute;left:0;right:0;top:74px;background:var(--ha-navy);padding:22px;flex-direction:column;align-items:flex-start}
  .ha-nav.is-open{display:flex}
  .ha-menu-btn{display:block}
  .ha-service-row,.ha-service-row:nth-child(even){grid-template-columns:1fr}
  .ha-service-row:nth-child(even) .ha-service-row__visual{order:0}
}
@media(max-width:620px){
  .ha-wrap{width:min(100% - 28px,var(--ha-max))}
  .ha-section{padding:60px 0}
  .ha-grid-4,.ha-grid-2{grid-template-columns:1fr}
  .ha-gallery{grid-template-columns:1fr 1fr}
  .ha-hero{min-height:560px}
  .ha-trustbar{grid-template-columns:1fr}
  .ha-cta__inner,.ha-footer__bottom{align-items:flex-start;flex-direction:column}
}

/* Additions preserve the original theme layout and colour palette. */
.ha-hero {min-height:560px}
.ha-hero__content {padding:76px 0}
.ha-section h2 {font-size:clamp(1.7rem,3vw,2.5rem);line-height:1.2}
.ha-page-hero .ha-subtitle {color:#d6e1e9}
.ha-btn--primary,.ha-nav__cta {background:#0076b8;color:#fff}
.ha-nav .ha-nav__cta:hover {background:#005c91;color:#fff}
.ha-nav a[aria-current=page] {text-decoration:underline;text-underline-offset:6px}
.ha-gallery__item {position:relative;display:flex;flex-direction:column;justify-content:flex-end;color:#fff;padding:18px;background-image:linear-gradient(0deg,rgba(7,23,38,.95),rgba(7,23,38,.08)),url('assets/images/landscape.svg');background-size:cover;background-position:center}
.ha-gallery__item:nth-child(2n),.ha-gallery__item:nth-child(3n) {background-image:linear-gradient(0deg,rgba(7,23,38,.95),rgba(7,23,38,.08)),url('assets/images/landscape.svg');background-size:cover}
.ha-gallery__item small {font-size:.75rem;color:#d5e7f0}
.ha-gallery--categories {grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:30px 0}
.ha-gallery--categories figure {margin:0;aspect-ratio:auto;min-height:300px}
.ha-gallery--categories strong {font-size:1.25rem}
.ha-gallery--categories p {font-size:.95rem;line-height:1.5}
.ha-card__image,.ha-service-row__visual {background-image:linear-gradient(135deg,rgba(7,23,38,.15),rgba(13,167,255,.08)),url('assets/images/landscape.svg');background-size:cover;background-position:center}
.ha-service-row__visual {display:flex;align-items:flex-end;padding:18px;color:white}
.ha-service-row__visual span {background:#071726;padding:4px 10px;border-radius:6px;font-size:.8rem}
.ha-contact-aside {align-self:start}
.ha-form input[type=checkbox] {width:20px;height:20px;vertical-align:middle;margin:0 8px 0 0;accent-color:#0076b8}
.ha-form label {display:block}
.ha-form h3 {margin:12px 0 0}
.ha-form button {justify-self:start}
.ha-prose {max-width:820px}
.ha-skip {position:absolute;left:16px;top:-100px;background:white;color:#071726;padding:12px;z-index:100}
.ha-skip:focus {top:12px}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible {outline:3px solid #cf8100;outline-offset:4px}
details {padding:18px 0;border-bottom:1px solid var(--ha-border)}
summary {cursor:pointer;font-weight:700}
.ha-footer a:hover {text-decoration:underline}
.ha-footer__links {overflow-wrap:anywhere}
.ha-editor-content:empty {display:none}
@media(max-width:900px){.ha-gallery--categories{grid-template-columns:repeat(2,minmax(0,1fr))}.ha-menu-btn{min-width:44px;min-height:44px}}
@media(max-width:620px){.ha-gallery--categories{grid-template-columns:1fr}.ha-gallery:not(.ha-gallery--categories){grid-template-columns:1fr}.ha-page-hero{padding:56px 0}.ha-brand__name{font-size:1.1rem}.ha-drone-visual{min-height:270px}.ha-title{overflow-wrap:break-word}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.ha-btn:hover{transform:none}}

/* Supplied identity and reference-inspired imagery. */
.ha-logo {display:block;width:180px;height:80px;object-fit:cover;object-position:center}
.ha-header__inner {min-height:88px}
.ha-header,.ha-footer {background:#080d10}
.ha-hero {background-image:linear-gradient(90deg,rgba(5,17,29,.9),rgba(5,17,29,.58) 48%,rgba(5,17,29,.08)),url('assets/images/hero-landscape.webp');background-size:cover;background-position:center;min-height:520px}
.ha-image-note {font-size:.72rem;color:#d1dde6;margin:0 0 18px}
.ha-about-feature {background-image:linear-gradient(90deg,#071726 3%,rgba(7,23,38,.88) 42%,rgba(7,23,38,.15)),url('assets/images/drone-background.webp');background-size:cover;background-position:center}
.ha-about-feature .ha-drone-visual {background:none}
.ha-drone-visual {background-image:url('assets/images/drone-background.webp');background-size:cover;background-position:70% center}
.ha-drone-visual:before,.ha-drone-visual:after {display:none}
.ha-footer .ha-logo {width:240px;height:107px}
@media(max-width:900px){.ha-nav{top:88px}.ha-about-feature .ha-drone-visual{display:none}.ha-about-feature{background-position:70% center;background-image:linear-gradient(90deg,rgba(7,23,38,.95),rgba(7,23,38,.75)),url('assets/images/drone-background.webp')}}
@media(max-width:620px){.ha-logo{width:160px;height:72px}.ha-hero{background-position:60% center}.ha-hero__content{padding:64px 0}}

.ha-hero .ha-subtitle{color:#e1eaf0}
.ha-card__image{position:relative;background-image:linear-gradient(0deg,rgba(7,23,38,.4),rgba(7,23,38,.03)),url('assets/images/hero-landscape.webp')}
.ha-card__image:after{content:"AI-generated illustration";position:absolute;bottom:10px;left:12px;font-size:.68rem;color:#fff;background:rgba(7,23,38,.75);padding:3px 7px;border-radius:4px}
.ha-card:nth-child(2) .ha-card__image{background-position:right center}
.ha-card:nth-child(3) .ha-card__image{background-position:65% center}
.ha-card:nth-child(4) .ha-card__image{background-image:linear-gradient(0deg,rgba(7,23,38,.4),rgba(7,23,38,.03)),url('assets/images/landscape.svg')}
.ha-card:nth-child(4) .ha-card__image:after{content:"Mapping illustration"}

/* Distinct service imagery without individual labels. */
.ha-card__image:after,.ha-card:nth-child(4) .ha-card__image:after{display:none}
.ha-card__image,.ha-card:nth-child(4) .ha-card__image,.ha-service-row__visual{background:none;padding:0;position:relative;overflow:hidden}
.ha-card-photo{width:100%;height:210px;object-fit:cover;display:block}
.ha-service-row__visual{min-height:0;display:block}
.ha-service-image{display:block;width:100%;height:310px;object-fit:cover;border-radius:18px}
.ha-detail-image{display:block;width:100%;border-radius:18px}
.ha-gallery__item,.ha-gallery__item:nth-child(2n),.ha-gallery__item:nth-child(3n){background:#071726;padding:0;margin:0;display:block;position:relative;overflow:hidden}
.ha-gallery-photo{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.ha-gallery__item figcaption{position:absolute;inset:auto 0 0;padding:16px;background:linear-gradient(0deg,rgba(7,23,38,.98),rgba(7,23,38,.5));font-size:.9rem;line-height:1.4}
.ha-gallery--categories figure{min-height:380px}
.ha-gallery--categories strong{font-size:1.1rem}
.ha-gallery--categories p{font-size:.85rem;margin:.4rem 0 0}
.ha-service-row h3{font-size:1.6rem;line-height:1.25;margin:.3rem 0 .8rem}
@media(max-width:620px){.ha-service-image{height:240px}}
/* Native WordPress blocks retain the supplied theme's visual design. */
.wp-site-blocks{padding:0}
.wp-block-group{box-sizing:border-box}
.wp-block-group.ha-wrap{width:min(var(--ha-max),calc(100% - 40px));margin-inline:auto}
.wp-block-buttons.ha-actions{gap:14px;margin-top:28px}
.wp-block-button.ha-btn--primary .wp-block-button__link{background:#0076b8;color:#fff;border-radius:10px;padding:14px 22px;font-weight:700}
.wp-block-button.ha-btn--ghost .wp-block-button__link{background:transparent;color:#fff;border:1px solid #d4e2ee;border-radius:10px;padding:13px 22px}
.wp-block-button.ha-btn--light .wp-block-button__link{background:white;color:#071726;border-radius:10px;padding:14px 22px}
.wp-block-button.ha-more-link .wp-block-button__link{background:transparent;color:#0076b8;padding:0;border-radius:0;text-decoration:none;font-weight:700}
.ha-card__body .ha-actions{margin-top:16px}
figure.ha-card-image{margin:0;line-height:0}
.ha-card-image img{width:100%;height:210px;object-fit:cover}
.wp-block-cover.ha-hero,.wp-block-cover.ha-about-cover{background:none;padding:0;min-height:520px}
.ha-hero .wp-block-cover__background{background:linear-gradient(90deg,rgba(5,17,29,.92),rgba(5,17,29,.62) 48%,rgba(5,17,29,.06))!important;opacity:1!important}
.ha-about-cover{padding:80px 0!important;min-height:560px!important;color:#fff}
.ha-about-cover .wp-block-cover__background{background:linear-gradient(90deg,#071726 2%,rgba(7,23,38,.89) 44%,rgba(7,23,38,.12))!important;opacity:1!important}
.ha-about-copy{max-width:600px}
.ha-about-cover .ha-subtitle{color:#d5e3ec}
.ha-about-cover h3{font-size:1rem;margin:0}
.ha-trust p{margin:.4rem 0 0;font-size:.9rem}
.ha-gallery-image{margin:0!important}
.ha-gallery-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ha-gallery-caption{position:absolute;inset:auto 0 0;padding:14px;background:linear-gradient(0deg,rgba(7,23,38,.98),rgba(7,23,38,.5));color:white}
.ha-gallery-caption h3{font-size:.9rem;line-height:1.3;margin:0}
.ha-gallery:not(.ha-gallery--categories) .ha-gallery-caption p{display:none}
.ha-gallery--categories .ha-gallery-caption h3{font-size:1.1rem}
.ha-gallery-caption p{font-size:.85rem;line-height:1.4;margin:.5rem 0 0}
.ha-service-row figure img{display:block;height:310px;width:100%;object-fit:cover;border-radius:18px}
.ha-service-row:nth-child(even) figure{order:2}
.ha-detail-image,.ha-about-image{margin:0}
.ha-detail-image img,.ha-about-image img{width:100%;border-radius:18px}
.ha-logo-block,.ha-footer-logo{margin:0!important;flex-shrink:0}
.ha-logo-block img{display:block;width:180px;height:80px;object-fit:cover}
.ha-footer-logo img{display:block;width:240px;height:107px;object-fit:cover}
.ha-header__inner>.ha-actions{margin-top:0}
.ha-block-nav{color:white;flex-grow:1;justify-content:flex-end;font-size:.95rem;font-weight:600}
.ha-block-nav a{text-decoration:none}
.ha-block-nav a:hover{text-decoration:underline}
.ha-block-nav .wp-block-navigation__container{gap:24px}
.ha-block-nav .wp-block-navigation__responsive-container.is-menu-open{background:#071726!important;color:white!important}
.ha-site-header{position:sticky;top:0;z-index:30}
.admin-bar .ha-site-header{top:32px}
.ha-footer__top h3{font-size:1rem;margin:0 0 14px}
.ha-footer__top p{margin:0 0 12px}
.ha-footer a{color:#d5e0e9}
@media(max-width:900px){.ha-about-copy{max-width:100%}.ha-about-cover .wp-block-cover__background{background:rgba(7,23,38,.82)!important}.ha-service-row:nth-child(even) figure{order:0}.ha-header__inner>.ha-actions{display:none}}
@media(max-width:620px){.wp-block-group.ha-wrap{width:calc(100% - 28px)}.ha-logo-block img{width:160px;height:72px}.ha-gallery:not(.ha-gallery--categories){grid-template-columns:repeat(2,minmax(0,1fr))}.ha-gallery .ha-gallery__item{aspect-ratio:4/3}.ha-gallery--categories .ha-gallery__item{aspect-ratio:auto}.admin-bar .ha-site-header{top:46px}}
.ha-hero__content{margin-left:0!important;margin-right:auto!important}
.ha-grid+p{margin-top:24px}
