/* ============================================================
   Aspect Grounds Maintenance — styles
   ============================================================ */

:root {
  --bg: #f5f2ec;
  --bg-alt: #efeae1;
  --green: #1a2e1f;
  --green-deep: #16271b;
  --sage: #4a6b4f;
  --ink: #20271f;
  --muted: #6b7065;
  --line: #d6d1c4;
  --line-light: #cfc9bb;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1460px;
  --pad: 40px;
  --header-h: 78px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section { padding: 72px 0; }

/* ---------- Eyebrow + headings ---------- */
.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  color: var(--sage);
  text-transform: uppercase;
  margin-bottom: 26px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--green);
  margin: 0;
  letter-spacing: 0.2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 16px 30px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-sm { padding: 11px 22px; font-size: 11px; }
.btn-solid {
  background: var(--green);
  color: #f3f0e9;
  border-color: var(--green);
}
.btn-solid:hover { background: #233c2a; }
.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline:hover { background: var(--green); color: #f3f0e9; }
.btn-light {
  color: #f3f0e9;
  border-color: rgba(243,240,233,.6);
}
.btn-light:hover { background: #f3f0e9; color: var(--green); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;                 /* sits over the hero */
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
/* Once scrolled past the hero, fade in the off-white background for legibility */
.site-header.scrolled {
  background: var(--bg);
  border-bottom-color: var(--line);
}
/* Safety-net scrim at the very top: a soft light wash so the dark logo/nav
   stay legible over the hero image. Light (not dark) because the text is dark.
   Sits behind the header content and fades out once the solid bg takes over. */
.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 150px;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(245, 242, 236, 0.55), rgba(245, 242, 236, 0));
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.site-header.scrolled::before { opacity: 0; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 44px; width: auto; display: block; }
.main-nav {
  display: flex;
  gap: 42px;
  margin-left: auto;
  margin-right: 42px;
}
.main-nav a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--ink);
  transition: color .2s;
}
.main-nav a:hover { color: var(--sage); }
.nav-toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  margin-top: calc(-1 * var(--header-h)); /* slide up so it starts behind the header */
  padding: 0;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: stretch;
  min-height: 100vh;          /* full, immersive viewport-height hero */
  /* copy stays in the container on the left; image bleeds to the right
     viewport edge by extending the grid to the section's right edge */
  max-width: none;
  width: calc((100% + min(var(--container), 100%)) / 2);
  margin-left: calc((100% - min(var(--container), 100%)) / 2);
  margin-right: 0;
  padding-right: 0;
}
.hero-copy {
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero h1 {
  font-size: 72px;
  line-height: 1.03;
  font-weight: 500;
  letter-spacing: 0;
}
.hero-sub {
  max-width: 380px;
  margin: 30px 0 38px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; }
.hero-image {
  align-self: stretch;        /* stretch to the copy column's height */
  position: relative;
  overflow: hidden;
}
.hero-image img {
  position: absolute;         /* fill the stretched cell exactly, no gaps */
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   STAT BAR
   ============================================================ */
.stat-bar {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  position: relative;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 28px;
  bottom: 28px;
  width: 1px;
  background: var(--line);
}
.stat-num {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 0.5px;
  line-height: 1;
}
.stat-label {
  margin-top: 14px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--muted);
}

/* ============================================================
   OUR STORY
   ============================================================ */
.story-inner {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 70px;
  align-items: center;
  /* image bleeds to the right viewport edge; copy stays in the container */
  max-width: none;
  width: calc((100% + min(var(--container), 100%)) / 2);
  margin-left: calc((100% - min(var(--container), 100%)) / 2);
  margin-right: 0;
  padding-right: 0;
}
.story h2 {
  font-size: 48px;
  line-height: 1.1;
  margin-bottom: 28px;
}
.story-copy p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  max-width: 440px;
  margin: 0 0 18px;
}
.story-image img {
  width: 100%;
  height: 620px;
  object-fit: cover;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services { padding-bottom: 52px; }   /* hug the wide gallery below */
.services-title {
  font-size: 50px;
  line-height: 1.08;
  margin-bottom: 50px;
  max-width: 700px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 60px;
  row-gap: 0;
}
.service {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
/* top row (four across) has no divider above it */
.services-grid .service:nth-child(1),
.services-grid .service:nth-child(2),
.services-grid .service:nth-child(3),
.services-grid .service:nth-child(4) {
  border-top: none;
}
.service h3 {
  font-size: 23px;
  font-weight: 500;
  margin-bottom: 12px;
}
.service p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 280px;
  margin: 0;
}

/* ============================================================
   GALLERY — editorial asymmetric breakout grid
   ============================================================ */
.gallery { padding: 72px 0 80px; }
/* break out wider than the standard container, small side gutters */
.gallery .container { max-width: 1880px; }

.gallery-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 272px;
  gap: 16px;
}
.gallery-item { margin: 0; overflow: hidden; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* magazine composition: one dominant image, others arranged around it */
.gallery-item:nth-child(1) { grid-column: span 7; grid-row: span 2; } /* large + tall (~560px) */
.gallery-item:nth-child(2) { grid-column: span 5; grid-row: span 1; }
.gallery-item:nth-child(3) { grid-column: span 5; grid-row: span 1; }
.gallery-item:nth-child(4) { grid-column: span 5; grid-row: span 1; }
.gallery-item:nth-child(5) { grid-column: span 7; grid-row: span 1; }

/* --- Per-image crop focus (object-position) ---------------------------
   Every cell is wider than its source photo, so object-fit:cover fills the
   width and crops the TOP/BOTTOM. The vertical % is what slides the visible
   band up/down (lower % = show higher up the photo). Tweak per tile below. */

/* tile 1 — tile_building.png — dominant left: glass building, trees, lawn */
.gallery-item:nth-child(1) img { object-position: center 52%; }

/* tile 2 — tile_pool.png — top-right: birch trunks against glass courtyard */
.gallery-item:nth-child(2) img { object-position: center 45%; }

/* tile 3 — tile_garden.png — mid-right: curving gravel path, lawn, walls */
.gallery-item:nth-child(3) img { object-position: center 60%; }

/* tile 4 — tile_hedge.png — bottom-left: stone path winding through hedges */
.gallery-item:nth-child(4) img { object-position: center 65%; }

/* tile 5 — tile_treepath.png — bottom-right: building framed by tree columns */
.gallery-item:nth-child(5) img { object-position: center 42%; }

/* ============================================================
   WHY ASPECT — credentials band
   ============================================================ */
.credentials { padding: 56px 0; }
.eyebrow-center { text-align: center; }
.cred-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cred {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 44px 30px;
  position: relative;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.2px;
  color: var(--green);
}
.cred + .cred::before {
  content: "";
  position: absolute;
  left: 0;
  top: 28px;
  bottom: 28px;
  width: 1px;
  background: var(--line);
}

/* ============================================================
   SERVICE AREA
   ============================================================ */
.area { padding: 64px 0; }
.area-inner {
  display: grid;
  grid-template-columns: 0.82fr 1.68fr;
  gap: 56px;
  align-items: center;
}
.area h2 {
  font-size: 47px;
  line-height: 1.1;
  margin-bottom: 22px;
}
.area-copy p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  max-width: 340px;
  margin: 0;
}
.area-map svg { width: 100%; height: auto; display: block; }
.area-map .map-mobile { display: none; }   /* desktop shows .map-desktop */

/* ============================================================
   FAQ
   ============================================================ */
.faq-inner {
  display: grid;
  grid-template-columns: 0.55fr 1.45fr;
  gap: 40px;
}
.faq-head h2 {
  font-size: 48px;
  margin-top: 6px;
}
.faq-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 60px;
}
.faq-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.faq-col .faq-item:first-child { padding-top: 0; }
.faq-item h4 {
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 10px;
}
.faq-item p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   CTA BAR
   ============================================================ */
.cta-bar { background: var(--green-deep); }
.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  padding: 70px 0;
  text-align: center;
}
.cta-bar h2 {
  color: #f1eee6;
  font-size: 44px;
  line-height: 1.1;
  font-weight: 500;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: start;
}
.contact h2 {
  font-size: 47px;
  line-height: 1.08;
  margin: 0 0 18px;
}
.contact-copy p {
  color: var(--muted);
  font-size: 14px;
  max-width: 280px;
  margin: 0 0 30px;
}
.contact-details { list-style: none; padding: 0; margin: 0; }
.contact-details li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 14px;
}
.contact-details .ci { color: var(--sage); font-size: 15px; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 16px 18px;
  border-radius: 0;
  outline: none;
  transition: border-color .2s;
}
.contact-form textarea { resize: vertical; line-height: 1.6; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #9a9c92; letter-spacing: 1.5px; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--sage); }
.contact-form select { appearance: none; color: #9a9c92;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4 L6 8 L10 4' stroke='%236b7065' stroke-width='1.2' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.contact-form select:valid { color: var(--ink); }
.contact-form .btn-solid { align-self: flex-start; margin-top: 4px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--green-deep);
  color: #c9cfc4;
  padding: 40px 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-brand { display: flex; align-items: flex-start; }
.footer-logo { width: 132px; height: auto; display: block; }
.footer-col h5 {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #8f9889;
  margin: 0 0 14px;
  text-transform: uppercase;
}
.footer-col p {
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
  color: #c9cfc4;
}

/* discreet legal + credit strip, beneath the info columns */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(201, 207, 196, 0.14);
}
.footer-bottom p {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
  color: #7f887a;
}
.footer-credit a {
  color: #8f9889;
  text-decoration: none;
  border-bottom: 1px solid rgba(143, 152, 137, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-credit a:hover {
  color: #c9cfc4;
  border-color: rgba(201, 207, 196, 0.5);
}

/* ============================================================
   SCROLL REVEAL — subtle, slow luxury ease
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Accessibility: no motion if the user prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --pad: 32px; }
  .hero h1 { font-size: 54px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  /* at two columns only the first row (items 1-2) is borderless */
  .services-grid .service:nth-child(3),
  .services-grid .service:nth-child(4) { border-top: 1px solid var(--line); }

  .gallery { padding: 84px 0; }
  .gallery-row { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 300px; }
  .gallery-item:nth-child(1) { grid-column: 1 / -1; grid-row: auto; }
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5) { grid-column: auto; grid-row: auto; }
}

@media (max-width: 760px) {
  :root { --pad: 22px; }
  .section { padding: 48px 0; }
  .main-nav, .nav-cta { display: none; }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
  }
  .nav-toggle span { width: 24px; height: 1.5px; background: var(--green); }

  .site-header.open .main-nav {
    display: flex;
    position: absolute;
    top: 78px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    margin: 0;
    padding: 10px var(--pad) 20px;
  }
  .site-header.open .main-nav a { padding: 14px 0; }

  .hero-inner,
  .story-inner,
  .testimonial-inner,
  .area-inner,
  .faq-inner,
  .faq-list,
  .contact-inner { grid-template-columns: 1fr; gap: 36px; }

  /* stacked: clear the overlaid header, no full-height, no right-bleed */
  .hero { padding: calc(var(--header-h) + 16px) 0 0; }
  .hero-inner { width: 100%; margin: 0; padding-right: var(--pad); min-height: 0; }
  .hero-copy { padding-bottom: 0; }
  .hero h1 { font-size: 44px; }
  .hero h1 br { display: none; }

  /* stacked: story image full-width below copy, no bleed */
  .story-inner { width: 100%; margin: 0; padding-right: var(--pad); }
  .story-image img { height: 320px; }

  .story h2,
  .services-title,
  .area h2,
  .faq-head h2,
  .contact h2 { font-size: 34px; }
  .cta-bar h2 { font-size: 32px; }
  .hero-image { height: 300px; }   /* stacked: img absolutely fills this */

  .stat-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  /* tighter band; keep every stat number on a single line */
  .stat { padding: 22px 8px; }
  .stat-num { font-size: 28px; white-space: nowrap; }
  .stat-label { margin-top: 10px; }

  .services-grid { grid-template-columns: 1fr; }
  /* stacked: every item except the first gets a divider above it
     (nth-child(n+2) matches the base rules' specificity, so it wins here) */
  .services-grid .service:nth-child(n+2) { border-top: 1px solid var(--line); }
  .services-grid .service:nth-child(1) { border-top: none; }

  .gallery .container { max-width: 100%; }
  .gallery-row { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .gallery-item:nth-child(1) { grid-column: auto; grid-row: auto; }

  .testimonial blockquote { font-size: 26px; }
  .testimonial-attr { border-left: none; padding-left: 0; }

  .field-row { grid-template-columns: 1fr; }

  /* ---- tighter mobile vertical rhythm: pull in the oversized gaps ---- */
  .story { padding: 48px 0; }
  .services { padding: 48px 0 40px; }
  .services-title { margin-bottom: 28px; }
  .service { padding: 18px 0; }
  .gallery { padding: 40px 0 44px; }          /* was inheriting 84px → big gap */
  .credentials { padding: 40px 0; }
  .area { padding: 44px 0; }
  .faq { padding: 48px 0; }
  .cta-inner { padding: 52px 0; }

  /* service-area map: swap to the taller, decluttered mobile diagram */
  .area-map .map-desktop { display: none; }
  .area-map .map-mobile { display: block; }
  .area-inner { gap: 28px; }

  /* credentials: stack 2x2 so the serif labels don't overflow narrow screens */
  .cred-row { grid-template-columns: 1fr 1fr; }
  .cred { padding: 26px 16px; font-size: 19px; }

  /* ---- footer: centred logo anchor + balanced 2-col info grid ---- */
  .site-footer { padding: 48px 0; }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 34px 24px;
    text-align: center;
  }
  /* logo centred across the top as the anchor, with room beneath */
  .footer-brand {
    grid-column: 1 / -1;
    justify-content: center;
    margin-bottom: 14px;
  }
  .footer-logo { margin: 0 auto; }
  .footer-col h5 { margin-bottom: 10px; }
  /* CONTACT + SERVICE AREA share the top row; ABN centred on its own row */
  .footer-col:last-child { grid-column: 1 / -1; }
  /* legal + credit stack and centre beneath the info grid */
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    margin-top: 34px;
  }
}
