/* Aedis Partners: site styles.
   Layout: photo-led hero. Headline on plain Hunter Green at left, the site photograph filling the right side and fading into the green at its left edge. Paper sections below; Eucalyptus only as rule lines. Single committed brand look (Aedis guidelines Issue 01). */

/* Inter, self-hosted (Latin subset, variable weight, SIL OFL: see assets/fonts/Inter-OFL.txt) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-variable.woff2") format("woff2");
}

:root {
  --hunter: #1E2E2A;
  --eucalyptus: #6B9E8F;
  --paper: #F4F5F4;
  --white: #FFFFFF;
  --ink-soft: #3D4F4B;
  --line: #D9DEDB;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--hunter); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--eucalyptus); outline-offset: 3px; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 24px; }

/* Skip link: off screen until focused */
.skip { position: absolute; left: 16px; top: -100px; z-index: 10; background: var(--white); color: var(--hunter); padding: 10px 16px; font-size: 14px; font-weight: 600; text-decoration: none; border-radius: 2px; }
.skip:focus { top: 16px; }
main:focus { outline: none; }

/* Hero */
.hero { position: relative; background: var(--hunter); color: var(--white); overflow: hidden; isolation: isolate; }
.hero-inner { position: relative; max-width: 1440px; min-height: 760px; margin-inline: auto; display: flex; flex-direction: column; }
.pad { padding-inline: max(24px, calc((100% - 1180px) / 2 + 24px)); }
.photo { position: absolute; inset: 0 0 0 auto; width: 64%; z-index: -1; }
.photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 38% 55%; }
.photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #1E2E2A 0%, rgba(30,46,42,.78) 14%, rgba(30,46,42,0) 52%); }
.photo::after { content: ""; position: absolute; inset: 0 0 auto 0; z-index: 1; height: 170px; background: linear-gradient(180deg, rgba(30,46,42,.85), rgba(30,46,42,0)); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 28px; }
.nav .logo { display: block; width: 112px; }
.nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; font-size: 14px; font-weight: 500; letter-spacing: .01em; color: rgba(255,255,255,.82); }
.nav ul a:hover { color: var(--white); }
.btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: 15px; padding: 13px 24px; border-radius: 2px; border: 1.5px solid transparent; transition: background .15s, border-color .15s; }
.btn-solid { background: var(--white); color: var(--hunter); }
.btn-solid:hover { background: var(--paper); }
.btn-ghost { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }
.nav .btn { padding: 10px 18px; font-size: 14px; }
.hero-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: 24px 96px; }
.hero-copy { max-width: 500px; }
.eyebrow { display: block; font-size: 12px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.62); margin-bottom: 20px; }
.rule { display: block; width: 44px; height: 2px; background: var(--eucalyptus); margin-bottom: 28px; }
h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; font-weight: 700; letter-spacing: -.035em; margin: 0 0 28px; text-wrap: balance; }
.lede { font-size: 19px; line-height: 1.55; color: rgba(255,255,255,.82); max-width: 460px; margin: 0 0 40px; }
.audience { margin: 32px 0 0; max-width: 390px; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.62); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* Stats */
.stats { padding-block: 56px 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat { border-top: 2px solid var(--eucalyptus); padding-top: 18px; min-width: 0; }
.stat b { display: block; font-size: clamp(30px, 4vw, 46px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat b i { font-style: normal; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stat > span { display: block; margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.caption { margin: 28px 0 0; font-size: 11.5px; font-style: italic; color: var(--ink-soft); }

/* Shared headings */
.head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 40px; margin-bottom: 32px; }
h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; letter-spacing: -.025em; line-height: 1.12; margin: 0; text-wrap: balance; }
.head p { margin: 0; max-width: 440px; color: var(--ink-soft); font-size: 16px; }

/* Track record (scheme images are supplied pre-cropped to 3:2) */
.record { padding-block: 56px 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.card { min-width: 0; display: flex; flex-direction: column; }
.shot { aspect-ratio: 3 / 2; width: 100%; overflow: hidden; background: var(--hunter); }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot.credited { position: relative; }
.credit { position: absolute; right: 0; bottom: 0; padding: 5px 10px; font-size: 11px; font-weight: 500; letter-spacing: .02em; line-height: 1.3; color: rgba(255,255,255,.92); background: rgba(30,46,42,.72); }
.card-body { padding-top: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.kind { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.card h3 { font-size: 21px; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; margin: 0; }
.value { font-weight: 700; font-variant-numeric: tabular-nums; }
.card p { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* Services */
.services { padding-block: 56px 0; }
/* Services intro with portrait */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: 64px; align-items: center; margin-bottom: 48px; }
.portrait { margin: 0; }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 30%; border-radius: 28px; }
.portrait figcaption { margin-top: 14px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--ink-soft); }
.portrait figcaption strong { font-weight: 600; color: var(--hunter); }
.intro-copy p { margin: 18px 0 0; max-width: 560px; font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.intro-copy h2 + p { margin-top: 20px; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.svc { padding: 30px 28px 34px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.svc:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.svc h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; margin: 0 0 10px; }
.svc p { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* Why Aedis */
.why { background: var(--paper); padding-block: 56px 64px; }
.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; border-top: 1px solid var(--line); }
.why-item { padding: 28px 0 32px; border-bottom: 1px solid var(--line); }
.why-item h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; margin: 0 0 10px; }
.why-item p { margin: 0; font-size: 15px; color: var(--ink-soft); max-width: 62ch; }

/* Contact band */
.contact { background: var(--hunter); color: var(--white); padding-block: 56px; }
.contact-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px 72px; align-items: start; }
.contact h2 { max-width: 560px; }
.contact .rule { margin-bottom: 24px; }
.details { padding-top: 30px; font-size: 16px; line-height: 1.5; color: rgba(255,255,255,.86); }
.details .name { font-weight: 600; color: var(--white); }
.contacts { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.contacts li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.contacts svg, .contacts img { flex: none; display: block; }
.contacts img { height: auto; }
.contacts a { text-decoration: none; overflow-wrap: break-word; display: inline-block; padding-block: 8px; }
.contacts a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Enquiry form */
.enq { margin-top: 32px; display: grid; gap: 18px; max-width: 560px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--white); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.28); border-radius: 2px; padding: 12px 14px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--eucalyptus); outline-offset: 1px; border-color: var(--eucalyptus); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.8); }
.consent input { flex: none; width: 22px; height: 22px; margin-top: 0; accent-color: var(--eucalyptus); }
.consent input:focus-visible { outline: 2px solid var(--eucalyptus); outline-offset: 2px; }
.consent a { color: var(--white); text-underline-offset: 3px; }
.enq .btn { justify-self: start; cursor: pointer; font-family: inherit; }
.enq .btn[disabled] { cursor: progress; opacity: .7; }
.form-note { margin: 0; font-size: 14px; color: rgba(255,255,255,.86); border-left: 2px solid var(--eucalyptus); padding-left: 12px; }
/* Result flags for the no-JavaScript path: contact.php redirects to #enquiry-... and :target reveals the matching note */
.form-flag { display: none; scroll-margin-top: 30vh; }
.form-flag:target:not([hidden]) { display: block; }
.legal { margin-top: 20px; font-size: 13px; color: rgba(255,255,255,.62); }
.privacy { margin-top: 12px; font-size: 13px; color: rgba(255,255,255,.72); }
.privacy summary { cursor: pointer; font-weight: 500; color: var(--white); width: max-content; padding-block: 10px; }
.privacy div { margin-top: 12px; max-width: 760px; line-height: 1.6; }
.privacy p { margin: 0 0 10px; }
.tag { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: rgba(255,255,255,.62); }
.tag strong { font-weight: 600; color: var(--white); }
.tag .flogo { display: block; width: 200px; max-width: 60vw; height: auto; }
.tag { align-items: flex-end; }

@media (max-width: 1100px) {
  .hero-inner { min-height: 0; }
  .hero-body { padding-block: 24px 48px; }
  .photo { position: relative; inset: auto; width: 100%; height: 340px; }
  .photo img { object-position: 40% 60%; }
  .photo::before { background: linear-gradient(180deg, #1E2E2A 0%, rgba(30,46,42,0) 38%); }
  .photo::after { display: none; }
  .nav ul { display: none; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .contact-in { grid-template-columns: 1fr; }
  .details { padding-top: 0; }
  .intro { grid-template-columns: 1fr; gap: 28px; }
  .portrait { max-width: 300px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc, .svc:not(:nth-child(3n+1)) { padding: 26px 20px 28px 0; border-left: 0; }
  .svc:nth-child(2n) { padding-left: 20px; border-left: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .row2 { grid-template-columns: 1fr; }
  .lede { font-size: 17px; }
  .cards { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc, .svc:nth-child(2n), .svc:not(:nth-child(3n+1)) { padding: 24px 0 26px; border-left: 0; }
  .stat-grid { gap: 28px 20px; }
  .nav .btn { padding: 10px 16px; font-size: 14px; }
  .photo { height: 260px; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
/* Animated logo: hidden until the script starts it; static for no-JS and reduced motion */
.logo-anim .alogo { visibility: hidden; }
.alogo .l-line { fill: none; stroke: #6B9E8F; opacity: 0; }
