/* ===================================================================
   Monmouthshire GreenWorks — stylesheet
   Palette:
     --deep-green   #17342A  (primary / hero / footer)
     --mid-green    #2F5D45  (accents, hover states)
     --sage         #E8ECE6  (light section backgrounds)
     --charcoal     #232323  (body copy, headings)
     --charcoal-70  #232323 at 70% (secondary text)
     --white        #FFFFFF
   Type:
     Display — 'Fraunces' (optical sizing, warm slab-serif with roots)
     Body/UI — 'Work Sans'
   =================================================================== */

:root {
  --deep-green: #17342a;
  --deep-green-dark: #0f241c;
  --mid-green: #2f5d45;
  --lime-accent: #7fa06f;
  --sage: #e8ece6;
  --sage-dark: #d8e0d5;
  --charcoal: #232323;
  --charcoal-70: rgba(35, 35, 35, 0.7);
  --white: #ffffff;

  --font-display: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1160px;
  --radius: 2px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 12rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

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

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--lime-accent);
  outline-offset: 3px;
}

/* ===================== BUTTONS ===================== */

.btn {
  display: inline-block;
  padding: 14px 30px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.btn-primary {
  background: var(--lime-accent);
  color: var(--deep-green-dark);
}
.btn-primary:hover {
  background: #93b184;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}
.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-form {
  width: 100%;
  text-align: center;
  border: none;
  font-size: 1rem;
  padding: 15px;
}

/* ===================== HEADER ===================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--sage-dark);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--deep-green);
  min-width: 0;
}

.brand-logo {
  height: 220px;
  width: auto;
  display: block;
  border-radius: var(--radius);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.brand-text em {
  font-style: italic;
  font-weight: 400;
  color: var(--mid-green);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--charcoal);
}
.main-nav a:hover {
  color: var(--mid-green);
}

.nav-cta {
  background: var(--deep-green);
  color: var(--white) !important;
  padding: 10px 10px;
  border-radius: var(--radius);
}
.nav-cta:hover {
  background: var(--mid-green);
}

/* ---- hamburger toggle (hidden on desktop) ---- */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  flex-shrink: 0;
  z-index: 60;
}
.nav-toggle:hover {
  background: var(--sage);
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--deep-green);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===================== HERO ===================== */

.hero {
  position: relative;
  background: var(--deep-green);
  color: var(--white);
  overflow: hidden;
  padding: 110px 0 100px;
}

.hero-rings {
  position: absolute;
  top: 50%;
  right: -8%;
  transform: translateY(-50%);
  width: 640px;
  height: 640px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 900px;
}

.eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime-accent);
  margin: 0 0 20px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  color: var(--white);
  margin-bottom: 24px;
}

.hero-lede {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 100%;
  margin: 0 0 36px;
}

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

/* ===================== TRUST STRIP ===================== */

.trust-strip {
  background: var(--sage);
  border-bottom: 1px solid var(--sage-dark);
}

.trust-inner {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 24px;
  padding: 32px 32px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  border-left: 1px solid var(--sage-dark);
  padding-left: 24px;
}
.trust-item:first-child {
  border-left: none;
  padding-left: 0;
}

.trust-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--deep-green);
}
.trust-label {
  font-size: 0.82rem;
  color: var(--charcoal-70);
}

/* ===================== SECTION HEADERS ===================== */

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid-green);
  margin: 0 0 14px;
}
.section-eyebrow--light {
  color: var(--lime-accent);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--deep-green);
  max-width: 620px;
  margin-bottom: 48px;
}
.section-title--light {
  color: var(--white);
  margin-bottom: 24px;
}

/* ===================== SERVICES ===================== */

.services {
  padding: 20px 0;
}

.service-grid {
  display: grid;
  grid-template-columns: auto auto auto;
  gap: 1px;
  background: var(--sage-dark);
  border: 1px solid var(--sage-dark);
}

.service-card {
  background: var(--white);
  padding: 40px 28px;
  transition: background 0.2s ease;
}
.service-card:hover {
  background: var(--sage);
}

.service-icon {
  color: var(--mid-green);
  margin-bottom: 22px;
}

.service-card h3 {
  font-size: 1.2rem;
  color: var(--deep-green);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.94rem;
  color: var(--charcoal-70);
  margin: 0;
}

/* ===================== ABOUT ===================== */

.about {
  background: var(--sage);
  padding: 100px 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.about-image-placeholder {
  aspect-ratio: 4 / 5;
  background: repeating-linear-gradient(135deg, var(--sage-dark), var(--sage-dark) 12px, #cfd9cb 12px, #cfd9cb 24px);
  border: 1px solid var(--mid-green);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--mid-green);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.5;
  padding: 20px;
}

.about-copy .section-title {
  margin-bottom: 20px;
}

.about-copy p {
  color: var(--charcoal-70);
  max-width: 520px;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 12px;
}

.about-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.95rem;
  color: var(--charcoal);
}

.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--mid-green);
  border-radius: 50%;
}

/* ===================== GALLERY ===================== */

.gallery {
  padding: 100px 0;
}

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

.gallery-placeholder {
  aspect-ratio: 4 / 3;
  background: var(--sage);
  border: 1px dashed var(--mid-green);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--mid-green);
  font-size: 0.85rem;
  padding: 16px;
}

/* ===================== CONTACT ===================== */

.contact {
  background: var(--deep-green-dark);
  color: var(--white);
  padding: 100px 0;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-lede {
  color: rgba(255, 255, 255, 0.78);
  max-width: 460px;
  margin-bottom: 36px;
}

.contact-details {
  display: grid;
  gap: 20px;
  margin: 0 0 36px;
}

.contact-detail dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--lime-accent);
  margin-bottom: 4px;
}

.contact-detail dd {
  margin: 0;
  font-size: 1rem;
  color: var(--white);
}
.contact-detail dd a:hover {
  color: var(--lime-accent);
}

.social-row {
  display: flex;
  gap: 20px;
}
.social-row a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 2px;
}
.social-row a:hover {
  color: var(--white);
  border-color: var(--white);
}

/* ---- form ---- */

.enquiry-form {
  background: var(--white);
  color: var(--charcoal);
  padding: 40px;
  border-radius: var(--radius);
}

.enquiry-form h3 {
  font-size: 1.3rem;
  color: var(--deep-green);
  margin-bottom: 24px;
}

.form-row {
  margin-bottom: 18px;
}

.form-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  background: var(--sage);
  border: 1px solid var(--sage-dark);
  border-radius: var(--radius);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--mid-green);
  outline-offset: 1px;
  background: var(--white);
}

.form-row textarea {
  resize: vertical;
  min-height: 100px;
}

.form-note {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: var(--charcoal-70);
  text-align: center;
}
.form-note--success {
  color: var(--mid-green);
  font-weight: 600;
}
.form-note--error {
  color: #b3261e;
  font-weight: 600;
}

.form-error {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: #b3261e;
}

/* ===================== FOOTER ===================== */

.site-footer {
  background: var(--deep-green-dark);
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 48px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer-brand .brand-logo--footer {
  height: 66px;
  background: var(--white);
  padding: 4px;
}
.footer-brand p {
  margin-top: 12px;
  font-size: 0.85rem;
  max-width: 260px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 0.88rem;
}
.footer-links a:hover {
  color: var(--white);
}

.footer-legal {
  font-size: 0.78rem;
  line-height: 1.7;
}

/* ===================== RESPONSIVE ===================== */

/* ---- Tablet ---- */
@media (max-width: 1024px) {
  .brand-logo {
    height: 140px;
  }
  .brand-text {
    font-size: 2rem;
  }
  .hero-rings {
    width: 480px;
    height: 480px;
  }
}

@media (max-width: 900px) {
  /* Hamburger takes over from here down */
  .nav-toggle {
    display: flex;
  }

  .brand-logo {
    height: 90px;
  }
  .brand-text {
    font-size: 1.5rem;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-top: 1px solid var(--sage-dark);
    box-shadow: 0 16px 24px -12px rgba(0, 0, 0, 0.18);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.3s ease, visibility 0.3s;
  }

  .main-nav.is-open {
    max-height: 400px;
    visibility: visible;
    padding: 8px 32px 24px;
  }

  .main-nav a {
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--sage-dark);
  }
  .main-nav a:last-of-type {
    border-bottom: none;
  }

  .nav-cta {
    display: block;
    text-align: center;
    margin-top: 12px;
    padding: 13px 10px;
  }

  /* Prevent background scroll while the mobile menu is open */
  body.nav-open {
    overflow: hidden;
  }

  .trust-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-item:nth-child(3) {
    border-left: none;
  }

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

  .about-inner {
    grid-template-columns: 1fr;
  }
  .about-image-placeholder {
    max-width: 420px;
  }

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

  .contact-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ---- Phone ---- */
@media (max-width: 560px) {
  .wrap {
    padding: 0 20px;
  }

  .brand-logo {
    height: 64px;
  }
  .brand-text {
    font-size: 1.15rem;
  }

  .main-nav.is-open {
    padding: 8px 20px 20px;
  }

  .hero {
    padding: 56px 0 56px;
  }
  .hero-rings {
    width: 340px;
    height: 340px;
    opacity: 0.7;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    text-align: center;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .form-row--split {
    grid-template-columns: 1fr;
  }
  .form-row input,
  .form-row select,
  .form-row textarea {
    font-size: 16px; /* prevents iOS Safari auto-zoom on focus */
  }
  .trust-inner {
    grid-template-columns: 1fr 1fr;
    padding: 28px 20px;
  }

  .enquiry-form {
    padding: 28px 20px;
  }

  .about,
  .gallery,
  .contact {
    padding: 64px 0;
  }
}
