/* =========================================================
   Eco Technology Ireland – design system
   Extracted from ecotechnology.ie (Elementor kit 95)
   Colours + typography are from the site's CSS.
   Component styles at the bottom are a starting point,
   built from that palette (check against the live site).
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@300;400;600;700&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* Brand colours */
  --navy:          #00384F;
  --navy-light:    #054965;
  --navy-dark:     #002B3D;
  --navy-darkest:  #001D29;
  --green:         #59CF53;
  --green-deep:    #4D9949;
  --accent:        #EB512F;
  --mint:          #E1F5EC;
  --pale-green:    #DDEDC1;
  --grey-bg:       #F7F7F7;
  --grey-bg-2:     #F3F3F3;
  --white:         #FFFFFF;
  --black:         #000000;

  /* Text */
  --text:          var(--navy);
  --text-muted:    #54595F;
  --text-inverse:  var(--white);

  /* Font */
  --font: 'Source Sans 3', 'Source Sans Pro', sans-serif;

  /* Type scale – desktop */
  --fs-h1: 72px;
  --fs-h2: 48px;
  --fs-h3: 36px;
  --fs-h4: 24px;
  --fs-h5: 18px;
  --fs-h6: 16px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-nav: 16px;
  --fs-meta: 13px;

  /* Layout */
  --container: 1200px;
  --gutter: 20px;
  --radius: 8px;
  --section-pad: 100px;
}

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --fs-h1: 48px;
    --fs-h2: 36px;
    --fs-h5: 16px;
    --fs-h6: 13px;
    --fs-body: 15px;
    --fs-small: 13px;
    --fs-nav: 15px;
    --fs-meta: 12px;
    --section-pad: 70px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  :root {
    --fs-h1: 38px;
    --fs-h2: 32px;
    --fs-h3: 24px;
    --fs-h4: 18px;
    --fs-h5: 14px;
    --fs-h6: 12px;
    --fs-body: 14px;
    --fs-small: 12px;
    --fs-nav: 14px;
    --fs-meta: 11px;
    --section-pad: 50px;
    --gutter: 16px;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-deep); text-decoration: none; }
a:hover { color: var(--green); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.5em;
}
h1 { font-size: var(--fs-h1); line-height: 1;   letter-spacing: -2px; }
h2 { font-size: var(--fs-h2); line-height: 1.1; }
h3 { font-size: var(--fs-h3); line-height: 1.1; }
h4 { font-size: var(--fs-h4); line-height: 1.3; }
h5 { font-size: var(--fs-h5); line-height: 1.6; }
h6 {
  font-size: var(--fs-h6);
  line-height: 1.6;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--green-deep);   /* eyebrow label, e.g. "Our Business" */
}

p { margin: 0 0 1em; }
small, .text-small { font-size: var(--fs-small); line-height: 1.6; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section       { padding: var(--section-pad) 0; }
.section--mint { background: var(--mint); }
.section--grey { background: var(--grey-bg); }
.section--navy { background: var(--navy); color: var(--text-inverse); }
.section--navy h1, .section--navy h2, .section--navy h3,
.section--navy h4, .section--navy h5 { color: var(--white); }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}
.nav { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav a {
  font-size: var(--fs-nav);
  font-weight: 600;
  color: var(--navy);
}
.nav a:hover, .nav a.active { color: var(--green); }

@media (max-width: 1024px) {
  .nav { display: none; }   /* swap for a burger menu */
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: var(--fs-nav);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-deep); color: var(--white); }
.btn--outline { border-color: var(--green); color: var(--green-deep); background: transparent; }
.btn--outline:hover { background: var(--green); color: var(--white); }
.btn--accent { background: var(--accent); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(rgba(0, 56, 79, 0.75), rgba(0, 29, 41, 0.85)),
              url('hero.jpg') center / cover no-repeat;
  color: var(--white);
  padding: 140px 0 120px;
}
.hero h1 { color: var(--white); max-width: 900px; }
.hero p  { font-size: calc(var(--fs-body) + 4px); max-width: 700px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 30px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 56, 79, 0.08);
}
.card__body { padding: 24px; }
.card h4 { margin-bottom: 0.4em; }
.card__link { font-weight: 600; color: var(--green-deep); }

/* ---------- Stats counter ---------- */
.stat__number {
  font-size: var(--fs-h1);
  font-weight: 700;
  color: var(--green);
  line-height: 1;
}

/* ---------- Feature list (ticks) ---------- */
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.ticks li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--green); font-weight: 700;
}

/* ---------- Testimonials ---------- */
.review {
  background: var(--white);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 28px;
}
.review__name    { font-weight: 700; color: var(--navy); margin-top: 16px; }
.review__company { font-size: var(--fs-small); color: var(--text-muted); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form input, .form textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid #d6dde0;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
}
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(89, 207, 83, 0.2);
}

/* ---------- Blog posts ---------- */
.post__meta { font-size: var(--fs-meta); font-weight: 300; color: var(--text-muted); }
.post__more { font-weight: 600; color: var(--green-deep); }

/* ---------- CTA banner ---------- */
.cta {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: var(--section-pad) 0;
}
.cta h2 { color: var(--white); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-darkest);
  color: rgba(255, 255, 255, 0.8);
  padding: 70px 0 0;
}
.site-footer h4, .site-footer h5 { color: var(--white); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a {
  font-size: var(--fs-nav);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  line-height: 2;
}
.footer-links a:hover { color: var(--green); }
.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 50px;
  padding: 20px 0;
  font-size: var(--fs-meta);
  font-weight: 300;
  text-align: center;
}
