/* Colours: change these and the whole site updates */
:root {
  --ironbark: #1f2b26;   /* dark text and header */
  --gum: #4f7360;        /* main green */
  --fog: #edf1ee;        /* light section background */
  --wattle: #e0b53a;     /* button accent */
  --white: #ffffff;
  --heading: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ironbark);
  background: var(--white);
}

h1, h2, h3 {
  font-family: "Archivo Black", "Segoe UI", system-ui, sans-serif;
  line-height: 1.1;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 400; margin-bottom: 1rem; text-decoration: underline; text-decoration-color:#4f7360; text-decoration-thickness: 4px; text-underline-offset: 8px; }
h3 { font-size: 1.1rem; font-weight: 400; line-height: 1.3rem; margin: 1rem 0 0.4rem; text-decoration: underline; text-decoration-color:#4f7360; text-decoration-thickness: 4px; text-underline-offset: 6px; }

p { max-width: 60ch; }
p + p { margin-top: 1rem; }

a { color: var(--gum); }
a:focus-visible, .button:focus-visible {
  outline: 3px solid var(--wattle);
  outline-offset: 3px;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  padding: 1rem clamp(1rem, 5vw, 4rem);
  background: var(--ironbark);
}
.brand {
  font-family: "Archivo Black", "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  font-size: 2rem;
  color: var(--white);
  text-decoration: none;
}
.site-header nav { display: flex; gap: 1.5rem; }
.site-header nav a { color: var(--white); text-decoration: none; }
.site-header nav a:hover { color: var(--wattle); }
.site-header nav { align-items: center; }

.phone-link {
  display: inline-flex;
  align-items: center;
}
.phone-link svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

/* Shared section spacing */
.hero, .about, .services, .contact {
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1rem, 5vw, 4rem);
}

/* Image slots: grey-green box that shows until a photo is added */
.slot {
  background: var(--fog);
  border: none;
  border-radius: 40px;
  overflow: hidden;
  min-height: 220px;
}
.slot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.hero-text p { margin: 1.25rem 0 1.75rem; font-size: 1.25rem; }
.hero-slot { min-height: 380px; }

.button {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  background: var(--wattle);
  color: var(--ironbark);
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
}
.button:hover { background: var(--ironbark); color: var(--white); }

/* About */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  background: var(--fog);
}
.about .slot { background: var(--white); min-height: 320px; }

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}
.service-slot { aspect-ratio: 4 / 3; min-height: 0; }

/* Contact */
.contact { background: var(--ironbark); color: var(--white); }
.contact a { color: var(--wattle); }
.contact-list { list-style: none; padding: 0; margin-top: 1.5rem; }
.contact-list li {
  display: grid;
  grid-template-columns: 9rem 1fr;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 36rem;
}

/* Footer */
.site-footer {
  padding: 1.5rem clamp(1rem, 5vw, 4rem);
  font-size: 0.95rem;
  background: var(--fog);
}

/* Mobile */
@media (max-width: 760px) {
  .hero, .about { grid-template-columns: 1fr; }
  .hero-slot { min-height: 240px; }
  .contact-list li { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Enquiry box */
#enquiry {
  width: min(32rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  overflow-y: auto;
  margin: auto;
  padding: 1.5rem;
  border: none;
  border-radius: 8px;
  color: var(--ironbark);
}
#enquiry::backdrop { background: rgba(31, 43, 38, 0.65); }

.enquiry-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.enquiry-head h2 { margin: 0; font-size: 1.8rem; }
.enquiry-close {
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ironbark);
}

#enquiry label { display: block; margin-top: 1rem; font-weight: 600; }
#enquiry input[type="text"],
#enquiry input[type="tel"],
#enquiry input[type="email"],
#enquiry textarea {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.65rem 0.75rem;
  font: inherit;
  border: 2px solid var(--gum);
  border-radius: 4px;
}
#enquiry input:focus-visible,
#enquiry textarea:focus-visible,
.enquiry-close:focus-visible {
  outline: 3px solid var(--wattle);
  outline-offset: 2px;
}
#enquiry .button { margin-top: 1.25rem; border: none; font: inherit; font-weight: 600; cursor: pointer; }
#enquiry .button:disabled { opacity: 0.6; cursor: wait; }

#enquiry-status { margin-top: 1rem; min-height: 1.5em; }
#enquiry-status.ok { color: var(--gum); font-weight: 600; }
#enquiry-status.error { color: #a32424; font-weight: 600; }

.contact {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}

.legal-note p {
  max-width: none;
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
}
.legal-note .legal-title { margin-bottom: 0.4rem; font-weight: 600; }

@media (max-width: 760px) {
  .contact { grid-template-columns: 1fr; }
}