/* ===== COLOURS =====
   Variables: change a colour here and it changes on the whole site */
:root {
  --black: #1e1e1e;
  --charcoal: #333333;
  --green: #8cbf26;
  --green-dark: #6f9a1c;
  --cream: #ead7b4;
  --white: #ffffff;
  --light: #f4f4f1;
  --text: #222222;
}

/* ===== BASE ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: var(--green); }
h1, h2, h3 { line-height: 1.2; margin-top: 0; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 750px; }
.green { color: var(--green); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  background: var(--green);
  color: var(--black);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  border: 2px solid var(--green);
  transition: background 0.2s;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-small { padding: 8px 18px; font-size: 0.9rem; }

/* ===== HEADER ===== */
.header { background: var(--black); position: sticky; top: 0; z-index: 10; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding-top: 12px; padding-bottom: 12px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--white); font-size: 0.9rem; line-height: 1.2;
}
.brand-logo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;   /* if the file is not square, it crops instead of stretching */
}
.brand-name strong { color: var(--green); }
.nav { display: flex; gap: 24px; }
.nav a { color: var(--white); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--green); }

/* ===== HERO ===== */
.hero {
  background: var(--charcoal);
  color: var(--white);
  padding: 40px 0;
}

/* Two columns: text on the left, photo on the right */
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: 16px;
}

.hero-text {
  font-size: 1.2rem;
  max-width: 480px;
  margin: 0 0 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-photo {
  width: 100%;
  max-width: 380px;
  justify-self: end;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
  -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
}

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section h2 { font-size: 2rem; text-align: center; margin-bottom: 40px; }
.section-dark { background: var(--black); color: var(--white); }

/* ===== CARDS ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.card { background: var(--white); padding: 32px; border-radius: 12px; border-top: 5px solid var(--green); }
.card h3 { color: var(--charcoal); }

/* ===== STEPS ===== */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px; text-align: center;
}
.step-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green); color: var(--black);
  font-size: 1.5rem; font-weight: 700; margin-bottom: 16px;
}

/* ===== FAQ ===== */
details {
  background: var(--white); border-radius: 10px; padding: 18px 24px;
  margin-bottom: 12px; border-left: 5px solid var(--green);
}
summary { font-weight: 600; cursor: pointer; }
details p { margin-bottom: 0; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.contact-grid h2 { text-align: left; margin-bottom: 24px; }
.contact-item a { color: var(--green); }
.map { width: 100%; height: 350px; border: 0; border-radius: 12px; }

/* ===== FOOTER ===== */
.footer { background: #111111; color: #aaaaaa; text-align: center; padding: 24px 0; font-size: 0.85rem; }
.footer p { margin: 4px 0; }
.footer a { color: #aaaaaa; }

/* ===== RESULTS (before & after) ===== */
.section-intro {
  text-align: center;
  max-width: 600px;
  margin: -24px auto 40px; /* pulls it closer to the title above */
}

/* Two cards side by side; one per row on small screens */
.results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 32px;
}

.result {
  background: var(--white);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* Before and after photos next to each other */
.result-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.result-photos figure {
  margin: 0;            /* figure has a default margin, we remove it */
  position: relative;   /* lets the label sit on top of the photo */
}

.result-photos img {
  width: 100%;
  aspect-ratio: 1 / 1;  /* both photos become perfect squares */
  object-fit: cover;
  border-radius: 10px;
}

/* "Before" label on top of the photo */
.result-photos figcaption {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--black);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 50px;
}

/* "After" label in green */
.result-photos figcaption.after {
  background: var(--green);
  color: var(--black);
}

.result-caption {
  text-align: center;
  font-weight: 600;
  margin: 16px 0 4px;
}

.result-caption {
  font-weight: 400;     /* normal text instead of bold */
  max-width: 600px;
  margin: 16px auto 4px;
  line-height: 1.7;
}

/* ===== MOBILE (screens narrower than 768px) ===== */
@media (max-width: 768px) {
  .nav { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 70px 0; }
  .section { padding: 60px 0; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-text { margin: 0 auto 32px; }
  .hero-buttons { justify-content: center; }
  .hero-photo { max-width: 320px; justify-self: center; }
}