/* Lime Agency — colours, font and shapes taken from lime-agency.com (2022 Flatsome design) */
:root {
  --navy: #1f1f3d;
  --navy-2: #2b2b59;
  --blue-btn: #292991;
  --lime: #cdd768;
  --sky: #95d8ec;
  --yellow: #f4d242;
  --cream: #f4f2e4;
  --sand: #e2dcd1;
  --text: #333333;
  --white: #ffffff;
  --font: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --wrap: 68rem;
  --curve: 9rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--navy); font-weight: 900; line-height: 1.15; margin: 0 0 0.75rem; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 46rem; }

/* Header: logo left, one contact button right (colours as on lime-agency.com) */
.wrap-wide { max-width: 82rem; margin: 0 auto; padding: 0 2rem; }
.site-header { background: var(--navy); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 0.6rem; padding-bottom: 0.6rem; }
.site-header .brand { height: 3.4rem; width: auto; }
.header-cta {
  background: var(--blue-btn);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.7rem 1.2rem;
  text-decoration: none;
}
.header-cta:hover { background: var(--navy-2); }

/* Dark hero: heading left, cards right, lime band tucked under the cards */
.hero { background: var(--navy); color: var(--white); padding: 4rem 0 5rem; }
.hero h1 { color: var(--white); max-width: 15ch; margin-bottom: 2.5rem; }
.hero .lede { font-size: 1.35rem; line-height: 1.5; max-width: 40rem; color: rgba(255, 255, 255, 0.92); }
.hero-home { padding-bottom: 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 3.2fr; gap: 2rem; align-items: start; }
.hero-grid h1 { font-size: clamp(2rem, 3.2vw, 2.9rem); margin: 0; }
.hero-grid .cards { position: relative; z-index: 1; margin-bottom: -9rem; }
.after-hero { background: var(--navy); }
.after-hero .bg-lime { margin-top: 0; margin-left: max(2rem, calc((100% - 82rem) / 2 + 2rem)); padding-top: 13rem; }
.after-hero .bg-lime .narrow { margin-left: calc(25% - 1rem); }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.card { position: relative; display: block; color: var(--white); text-decoration: none; }
.card img { width: 100%; }
.card-body { position: absolute; inset: 0; padding: 12% 10%; }
.card h2 { color: inherit; font-size: clamp(1.4rem, 2.6vw, 2rem); max-width: 11ch; }
.card.on-yellow { color: var(--navy); }
.btn {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.4rem;
  text-decoration: none;
  border: 0;
}
.btn::after { content: " ›"; }
.btn-yellow { background: var(--yellow); color: var(--navy); margin-top: 1rem; }
.card .btn { margin-top: 1.25rem; font-size: 0.8rem; padding: 0.9rem 1.5rem; }

/* Sections with the curved top-left corner, as on the live site */
.section { padding: 4.5rem 0; }
.curve { border-top-left-radius: var(--curve) 6rem; margin-top: -3rem; position: relative; }
.bg-lime { background: var(--lime); }
.bg-sky { background: var(--sky); }
.bg-cream { background: var(--cream); }
.bg-sand { background: var(--sand); }
.section .intro { font-size: 1.2rem; line-height: 1.75; color: var(--navy); }
.section-tight { padding-top: 0; }

/* Steps (AI page) */
.steps { display: grid; gap: 1.5rem; margin-top: 2rem; }
.step { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; align-items: start; }
.step .num { font-size: 2.4rem; font-weight: 900; color: var(--navy); line-height: 1; }
.step p { margin: 0; color: var(--navy); }

/* Testimonial */
.testimonial {
  background: var(--navy) url("img/Testimonial-Background.svg") no-repeat right bottom / cover;
  color: var(--white);
  padding: 4rem 3rem;
}
.testimonial h3 { color: var(--white); font-size: 1.6rem; }
.testimonial blockquote { margin: 0 0 1.5rem; max-width: 46rem; }
.testimonial figcaption { display: flex; align-items: center; gap: 1.25rem; font-size: 0.9rem; }
.testimonial figcaption img { width: 4.5rem; border-radius: 50%; }

/* Quote on the light-blue band */
.quote { margin: 0; color: var(--navy); }
.quote h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.quote blockquote { margin: 0 0 1.25rem; }
.quote figcaption { display: flex; align-items: center; gap: 1rem; font-size: 0.9rem; }
.quote figcaption img { width: 4rem; border-radius: 50%; }

/* People */
.people { display: grid; grid-template-columns: 2fr 3fr; gap: 3rem; align-items: center; }
.person + .person { margin-top: 1.75rem; }
.person h3 { margin-bottom: 0.35rem; }
.person p { color: var(--navy); margin: 0; }
.markets { margin-top: 2rem; font-weight: 700; color: var(--navy); }

/* Contact band */
.contact-band { display: flex; align-items: center; justify-content: center; gap: 2rem; text-align: left; }
.contact-band img { width: 5.5rem; }
.contact-band h2 { margin-bottom: 0.25rem; }
.contact-band a { color: var(--navy); font-weight: 500; }

/* Footer */
.site-footer {
  background: var(--navy) url("img/Footer-Image.svg") no-repeat center bottom / 100% auto;
  color: rgba(255, 255, 255, 0.9);
  padding: 2.5rem 0 9rem;
  font-size: 0.95rem;
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer small { font-size: 0.8rem; overflow-wrap: anywhere; }

/* Curved section directly under a navy area (404 page) */
.on-navy { background: var(--navy); }
.on-navy .curve { margin-top: 0; }

/* Placeholder text that still needs replacing */
.todo { background: rgba(244, 210, 66, 0.45); }

@media (max-width: 48rem) {
  .people { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; gap: 1rem; }
  .hero { padding: 3rem 0 4rem; }
  .hero-home { padding-bottom: 0; }
  .wrap-wide { padding: 0 1.25rem; }
  .site-header .brand { height: 2.8rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid .cards { margin-bottom: -5rem; }
  .after-hero .bg-lime { margin-left: 0; padding-top: 7rem; }
  .after-hero .bg-lime .narrow { margin-left: auto; }
  .testimonial { padding: 2.5rem 1.5rem; }
  .contact-band { flex-direction: column; text-align: center; }
  :root { --curve: 5rem; }
}
