/* ============================================================
   YSN EXTRACTORS — global.css
   Green · Blue · White — Clean, Fresh, Professional
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Raleway:wght@300;400;500;600;700&display=swap');

/* ── TOKENS ── */
:root {
  /* Brand Colours */
  --green:          #1B7B3A;
  --green-dark:     #145C2B;
  --green-mid:      #22973F;
  --green-light:    #4CAF72;
  --green-faint:    rgba(27, 123, 58, 0.08);
  --green-border:   rgba(27, 123, 58, 0.25);
  --green-border-mid: rgba(27, 123, 58, 0.45);

  --blue:           #1565C0;
  --blue-dark:      #0D47A1;
  --blue-mid:       #1976D2;
  --blue-light:     #42A5F5;
  --blue-faint:     rgba(21, 101, 192, 0.07);
  --blue-border:    rgba(21, 101, 192, 0.25);

  --white:          #FFFFFF;
  --off-white:      #F8FFFE;
  --light-bg:       #EEF7F1;
  --light-blue-bg:  #EDF2FB;

  --dark:           #0F1F14;
  --dark-mid:       #162A1C;
  --charcoal:       #1C2B22;

  --text-dark:      #0F1F14;
  --text-body:      #2D4A35;
  --text-mid:       #4A6855;
  --text-muted:     #7A9A84;
  --text-on-green:  #FFFFFF;
  --text-on-blue:   #FFFFFF;

  --shadow-sm:  0 2px 8px rgba(27,123,58,0.10);
  --shadow-md:  0 6px 24px rgba(27,123,58,0.13);
  --shadow-lg:  0 16px 48px rgba(27,123,58,0.15);

  --font-display: 'Raleway', sans-serif;
  --font-body:    'Montserrat', sans-serif;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;

  --transition: 0.25s ease;
  --max-w:      1280px;
  --nav-h:      72px;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }

/* ── TYPOGRAPHY ── */
.label {
  display: block;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 12px;
}

.display-xl {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 82px);
  line-height: 1.05;
  letter-spacing: -1px;
  font-weight: 800;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 42px);
  line-height: 1.15;
  font-weight: 700;
}

.display-sm {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 30px);
  font-weight: 600;
}

.body-lg { font-size: 17px; line-height: 1.8; color: var(--text-body); font-weight: 300; }
.body-md { font-size: 15px; line-height: 1.85; color: var(--text-body); font-weight: 300; }
.body-sm { font-size: 13px; line-height: 1.75; color: var(--text-mid); font-weight: 300; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-green {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-green:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-blue {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-blue:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(21,101,192,0.3);
}

.btn-outline-green {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline-green:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--green);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--off-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn svg { width: 16px; height: 16px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── LAYOUT ── */
.container { width: 100%; max-width: var(--max-w); margin-inline: auto; padding-inline: 5%; }
.section { padding-block: 96px; }
.section-sm { padding-block: 60px; }

/* ── ICON BOX ── */
.icon-box {
  width: 56px; height: 56px;
  background: var(--green-faint);
  border: 1.5px solid var(--green-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-box svg { width: 26px; height: 26px; stroke: var(--green); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-box.blue { background: var(--blue-faint); border-color: var(--blue-border); }
.icon-box.blue svg { stroke: var(--blue); }

/* ── DIVIDER ── */
.green-line { width: 48px; height: 3px; background: var(--green); border-radius: 2px; margin-block: 18px; }
.blue-line  { width: 48px; height: 3px; background: var(--blue);  border-radius: 2px; margin-block: 18px; }

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 50%, var(--blue) 100%);
  text-align: center;
  padding-block: 80px;
  padding-inline: 5%;
}
.cta-band h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 52px); font-weight: 800; color: var(--white); margin-bottom: 16px; }
.cta-band p  { font-size: 17px; color: rgba(255,255,255,0.8); margin-bottom: 36px; font-weight: 300; max-width: 560px; margin-inline: auto; }

/* ── PAGE HERO ── */
.page-hero {
  padding-top: calc(var(--nav-h) + 72px);
  padding-bottom: 72px;
  padding-inline: 5%;
  background: linear-gradient(135deg, var(--dark) 0%, var(--charcoal) 60%, var(--green-dark) 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231B7B3A' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1  { color: var(--white); position: relative; margin-bottom: 16px; }
.page-hero p   { color: rgba(255,255,255,0.75); position: relative; max-width: 520px; }
.page-hero .label { position: relative; }
.page-hero .green-line { position: relative; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: 5%;
  background: var(--white);
  border-bottom: 1px solid rgba(27,123,58,0.15);
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  transition: box-shadow var(--transition);
}

.nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.12); }

.nav__logo { display: flex; align-items: center; gap: 12px; }

/* Logo placeholder — replace with <img src="../images/logo.png"> */
.nav__logo-mark {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.5px;
}

.nav__logo-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1.1;
  letter-spacing: -0.3px;
}
.nav__logo-text small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  margin-top: 1px;
}

.nav__links { display: flex; align-items: center; gap: 36px; }

.nav__links a {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-mid);
  font-weight: 600;
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav__links a:hover, .nav__links a.active { color: var(--green); }
.nav__links a:hover::after, .nav__links a.active::after { transform: scaleX(1); }

.nav__cta {
  background: var(--green) !important;
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  transition: background var(--transition) !important;
  border-bottom: none !important;
}
.nav__cta::after { display: none !important; }
.nav__cta:hover { background: var(--green-dark) !important; color: var(--white) !important; }

.nav__burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav__burger span { display: block; width: 24px; height: 2px; background: var(--green); border-radius: 2px; transition: all var(--transition); }

.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--white);
  border-bottom: 2px solid var(--green-border);
  padding: 28px 5%;
  flex-direction: column;
  gap: 4px;
  z-index: 899;
  box-shadow: var(--shadow-md);
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-size: 14px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-body); font-weight: 600; padding: 12px 0;
  border-bottom: 1px solid var(--green-border);
  transition: color var(--transition), padding var(--transition);
}
.nav__mobile a:hover { color: var(--green); padding-left: 8px; }

/* ── FOOTER ── */
.footer { background: var(--dark); border-top: 3px solid var(--green); }

.footer__main {
  padding-block: 72px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 60px;
}

.footer__brand p { font-size: 14px; line-height: 1.85; color: rgba(255,255,255,0.45); font-weight: 300; max-width: 280px; margin-top: 18px; }

.footer__col h4 { font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--green-light); margin-bottom: 20px; font-weight: 600; }
.footer__col li { margin-bottom: 10px; }
.footer__col li a { font-size: 14px; color: rgba(255,255,255,0.45); font-weight: 300; transition: color var(--transition); }
.footer__col li a:hover { color: var(--green-light); }
.footer__col address { font-style: normal; font-size: 14px; color: rgba(255,255,255,0.45); line-height: 1.9; font-weight: 300; }
.footer__col address a { color: rgba(255,255,255,0.45); transition: color var(--transition); }
.footer__col address a:hover { color: var(--green-light); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-block: 28px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer__bottom p { font-size: 12px; color: rgba(255,255,255,0.25); }
.footer__bottom span { font-size: 12px; color: var(--green-light); letter-spacing: 1px; opacity: 0.6; }

/* ── SCROLL REVEAL ── */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
[data-reveal].revealed { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .footer__main { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer__main { grid-template-columns: 1fr; }
  :root { --nav-h: 64px; }
}

/* ══════════════════════════════════════════
   NAV LOGO (real image)
   ══════════════════════════════════════════ */
.nav__logo-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav__logo-fallback {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Footer logo */
.footer__logo-wrap { margin-bottom: 16px; }
.footer__logo { height: 52px; width: auto; object-fit: contain; }

/* Footer social icons */
.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.footer__social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.footer__social a:hover { background: var(--green); }
.footer__social svg {
  width: 16px; height: 16px;
  stroke: rgba(255,255,255,0.7);
  fill: none; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.footer__social a:hover svg { stroke: #fff; }

/* ══════════════════════════════════════════
   FLOATING CALL BUTTON
   ══════════════════════════════════════════ */
.float-call {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--green);
  color: var(--white);
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(27,123,58,0.45);
  overflow: hidden;
  transition: background var(--transition), box-shadow var(--transition), gap var(--transition), padding var(--transition);
  padding: 14px 16px;
  max-width: 56px;
}

.float-call:hover {
  background: var(--green-dark);
  box-shadow: 0 10px 32px rgba(27,123,58,0.55);
  gap: 10px;
  max-width: 240px;
  padding: 14px 22px;
}

.float-call__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.float-call__icon svg {
  width: 22px; height: 22px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.float-call__label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transition: max-width 0.3s ease, opacity 0.25s ease;
}

.float-call:hover .float-call__label {
  max-width: 180px;
  opacity: 1;
}

/* Pulse ring animation */
.float-call::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  background: var(--green);
  animation: callPulse 2.5s ease-out infinite;
  z-index: -1;
}

@keyframes callPulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  70%  { transform: scale(1.35); opacity: 0;   }
  100% { transform: scale(1.35); opacity: 0;   }
}

/* On mobile: always show label */
@media (max-width: 600px) {
  .float-call {
    bottom: 20px; right: 16px;
    max-width: 200px;
    gap: 10px;
    padding: 13px 20px;
  }
  .float-call__label { max-width: 160px; opacity: 1; }
  .float-call::before { display: none; }
}

/* ══════════════════════════════════════
   NAV LOGO
   ══════════════════════════════════════ */
.nav__logo-img {
  height: 140px;
  width: auto;

  transform: scale(1.2);

  transform-origin: left center;

  object-fit: contain;

  display: block;
}
.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo-img {
  height: 90px;
  width: auto;

  display: block;
  object-fit: contain;

  background: transparent;
}

/* Fallback */
.nav__logo-fallback {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Footer logo */
.footer__logo-wrap {
  margin-bottom: 16px;
}

.footer__logo {
  height: 70px;
  width: auto;

  object-fit: contain;

  background: transparent;
}

/* Footer social icons */
.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.footer__social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.footer__social a:hover { background: var(--green); }
.footer__social svg {
  width: 16px; height: 16px;
  stroke: rgba(255,255,255,0.7);
  fill: none; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.footer__social a:hover svg { stroke: #fff; }

/* ══════════════════════════════════════
   FLOATING CALL BUTTON
   Works with file:// — pure CSS, no JS
   ══════════════════════════════════════ */
.float-call {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--green);
  color: var(--white);
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(27,123,58,0.5);
  overflow: hidden;
  padding: 15px 18px;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.3s ease, gap 0.3s ease;
  /* Always visible */
  opacity: 1 !important;
  visibility: visible !important;
}

.float-call:hover {
  background: var(--green-dark);
  box-shadow: 0 8px 28px rgba(27,123,58,0.6);
  gap: 12px;
  padding: 15px 24px;
}

.float-call__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.float-call__icon svg {
  width: 22px; height: 22px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.footer__logo {
  height: 95px;
}
.float-call__label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width 0.35s ease, opacity 0.25s ease;
}

.float-call:hover .float-call__label {
  max-width: 180px;
  opacity: 1;
}

/* Pulse ring */
.float-call::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  border: 2px solid var(--green);
  animation: callRing 2s ease-out infinite;
  pointer-events: none;
}

@keyframes callRing {
  0%   { transform: scale(1);    opacity: 0.8; }
  100% { transform: scale(1.55); opacity: 0;   }
}

@media (max-width: 640px) {

  .float-call {
    width: 58px;
    height: 58px;

    padding: 0;
    gap: 0;

    border-radius: 999px;

    justify-content: center;

    overflow: hidden;

    transition: all 0.35s ease;

    bottom: 18px;
    right: 16px;
  }

  .float-call__label {
    max-width: 0;
    opacity: 0;

    overflow: hidden;
    white-space: nowrap;

    transition: all 0.3s ease;
  }

  /* Show number on hover/touch */
  .float-call:hover,
  .float-call:focus-within,
  .float-call:active {
    width: 220px;
    padding: 13px 20px;
    gap: 10px;
  }

  .float-call:hover .float-call__label,
  .float-call:focus-within .float-call__label,
  .float-call:active .float-call__label {
    max-width: 160px;
    opacity: 1;
  }

}
@media (max-width: 768px) {

  .footer__col {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 16px;
    margin-bottom: 16px;
  }

  .footer__col h4 {
    position: relative;
    cursor: pointer;
    margin-bottom: 0;
    padding: 10px 0;
  }

  .footer__col h4::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--green-light);
  }

  .footer__col ul,
  .footer__col address {
    max-height: 0;
    overflow: hidden;
    opacity: 0;

    transition:
      max-height 0.35s ease,
      opacity 0.25s ease,
      margin-top 0.25s ease;

    margin-top: 0;
  }

  /* Active state */
  .footer__col.active ul,
  .footer__col.active address {
    max-height: 300px;
    opacity: 1;
    margin-top: 16px;
  }

  .footer__col.active h4::after {
    content: '−';
  }
}

@media (max-width: 768px) {

  .footer__main {
    gap: 10px;
  }

  .footer__col {
    padding-bottom: 8px;
    margin-bottom: 8px;
  }

  .footer__col h4 {
    padding: 0;
    min-height: auto;
  }

  .footer__col ul,
  .footer__col address {
    margin-top: 12px;
  }

  .footer__brand p {
    margin-bottom: 18px;
  }

  .footer__social {
    margin-top: 14px;
  }

  .footer__bottom {
    padding-top: 18px;
  }

}

@media (max-width: 768px) {

  .footer__bottom {
    padding-top: 14px;
    padding-bottom: 90px;
  }

}

