/* ============================================================
   Enviroplan Inc. — Brand styles
   Palette extracted from the logo:
   --blue  #1855cf  (the bluest of the logo)
   --teal  #1f8f9b  (the color in between)
   --green #609d45  (the greenest of the logo)
   ============================================================ */

:root {
  --blue: #1855cf;
  --blue-dark: #10409e;
  --blue-light: #e8eefb;

  --teal: #1f8f9b;
  --teal-dark: #17707a;
  --teal-light: #e3f3f4;

  --green: #609d45;
  --green-dark: #4a7d34;
  --green-light: #eef5e8;

  /* Logo gradient transition tones */
  --grad-blue: #99c6d5;
  --grad-teal: #9ecbc8;
  --grad-green: #addb9e;

  --ink: #16324a;
  --ink-soft: #52697f;
  --white: #ffffff;
  --bg: #f7fafd;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(22, 50, 74, 0.08);
  --shadow-md: 0 12px 32px rgba(22, 50, 74, 0.14);
  --shadow-lg: 0 24px 60px rgba(22, 50, 74, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 55%, var(--green) 120%);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(24, 85, 207, 0.35);
}
.btn-primary:hover { box-shadow: 0 14px 32px rgba(24, 85, 207, 0.45); }

.btn-ghost {
  background: var(--white);
  color: var(--blue);
  border-color: rgba(24, 85, 207, 0.35);
}
.btn-ghost:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }

.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid rgba(22, 50, 74, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.brand-logo {
  height: auto;
  max-height: 72px;
  width: auto;
  max-width: 100%;
}

.site-nav ul { display: flex; gap: 28px; }
.site-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--blue); }

.header-actions { display: flex; align-items: center; gap: 14px; flex: none; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(22, 50, 74, 0.2);
  background: transparent;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}
.lang-toggle .lang-active { color: var(--blue); }
.lang-toggle:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.lang-sep { opacity: 0.4; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

/* Language toggle inside the mobile menu (hidden on desktop) */
.nav-lang { display: none; }
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 96px;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(30, 143, 155, 0.12), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(24, 85, 207, 0.12), transparent 60%),
    linear-gradient(180deg, #f2f7ff 0%, #eef5f3 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.4; }
.blob-blue  { width: 380px; height: 380px; background: var(--blue);  top: -120px; right: 6%; }
.blob-teal  { width: 300px; height: 300px; background: var(--teal);  bottom: -100px; left: -60px; }
.blob-green { width: 260px; height: 260px; background: var(--green); top: 40%; right: -80px; }

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-eyebrow,
.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.hero-sub {
  margin: 20px 0 28px;
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 34em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 18px; }
.hero-badges li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-blue { background: var(--blue); }
.dot-teal { background: var(--teal); }
.dot-green { background: var(--green); }

.hero-card {
  background: var(--white);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(22, 50, 74, 0.06);
  position: relative;
}
.hero-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(24,85,207,0.06), rgba(96,157,69,0.06));
  pointer-events: none;
}
.hero-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.hero-card h3 { font-size: 1.3rem; font-weight: 700; }
.hero-card p { color: var(--ink-soft); margin-bottom: 20px; }
.hero-card-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(22, 50, 74, 0.08);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--green-dark);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.card-icon svg { width: 26px; height: 26px; }
.card-icon-blue  { background: var(--blue-light);  color: var(--blue); }
.card-icon-green { background: var(--green-light); color: var(--green); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.section-sub { margin-top: 16px; color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Services ---------- */
.services { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.service-card {
  border-radius: var(--radius);
  padding: 34px;
  border: 1px solid rgba(22, 50, 74, 0.08);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-blue::before { background: linear-gradient(90deg, var(--blue), var(--teal)); }
.service-green::before { background: linear-gradient(90deg, var(--teal), var(--green)); }
.service-blue:hover { border-color: rgba(24, 85, 207, 0.4); }
.service-green:hover { border-color: rgba(96, 157, 69, 0.4); }

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.service-icon svg { width: 30px; height: 30px; }
.service-blue .service-icon { background: var(--blue-light); color: var(--blue); }
.service-green .service-icon { background: var(--green-light); color: var(--green); }

.service-card h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 12px; }
.service-card > p { color: var(--ink-soft); margin-bottom: 18px; }

.service-points { margin-bottom: 24px; display: grid; gap: 10px; }
.service-points li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.service-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}
.service-blue .service-points li::before { color: var(--blue); }
.service-green .service-points li::before { color: var(--green); }

.service-link {
  margin-top: auto;
  font-weight: 700;
  color: var(--blue);
}
.service-green .service-link { color: var(--green); }
.service-link:hover { text-decoration: underline; }

/* ---------- Why us ---------- */
.why { background: var(--bg); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}
.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(22, 50, 74, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.why-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.why-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.why-icon svg { width: 26px; height: 26px; }
.icon-blue  { background: var(--blue-light);  color: var(--blue); }
.icon-teal  { background: var(--teal-light);  color: var(--teal); }
.icon-green { background: var(--green-light); color: var(--green); }

.why-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.why-card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact {
  background:
    radial-gradient(900px 500px at 100% 0%, rgba(96, 157, 69, 0.1), transparent 60%),
    linear-gradient(180deg, var(--white) 0%, #f0f6f8 100%);
}
.contact-info {
  max-width: 720px;
  margin-inline: auto;
}
.contact-info h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; margin-bottom: 16px; }
.contact-intro { color: var(--ink-soft); margin-bottom: 30px; }

.contact-lines { display: grid; gap: 16px; }
.contact-line {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(22, 50, 74, 0.08);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.contact-line:hover { border-color: var(--teal); transform: translateX(4px); }
.contact-line-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.contact-line-icon svg { width: 22px; height: 22px; }
.contact-line strong { display: block; font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; }
.contact-line span span:last-child { font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--teal-dark) 60%, var(--green-dark) 130%);
  color: rgba(255, 255, 255, 0.92);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 40px;
}
.footer-logo {
  height: auto;
  max-height: 58px;
  width: auto;
  max-width: 100%;
  background: var(--white);
  border-radius: 8px;
  padding: 6px 10px;
  margin-bottom: 16px;
}
.footer-brand p { font-size: 0.92rem; opacity: 0.85; max-width: 34ch; }
.site-footer h4 { font-size: 1rem; margin-bottom: 16px; color: #fff; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer ul a { opacity: 0.85; font-size: 0.92rem; transition: opacity 0.2s ease; }
.site-footer ul a:hover { opacity: 1; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 18px 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }

  .site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: 100px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    padding: 20px;
    border-radius: 0 0 var(--radius) var(--radius);
    transform: translateY(-130%);
    transition: transform 0.3s ease;
  }
  .site-nav.open { transform: translateY(0); }
  .site-nav ul { flex-direction: column; gap: 6px; }
  .site-nav a { display: block; padding: 12px 10px; border-radius: 8px; }
  .site-nav a:hover { background: var(--blue-light); }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  /* FR/EN moves into the menu to free up room for the logo */
  .header-actions .lang-toggle { display: none; }
  .nav-lang {
    display: flex;
    justify-content: center;
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px solid rgba(22, 50, 74, 0.12);
  }
}

@media (max-width: 560px) {
  .hero { padding: 56px 0 72px; }
  .section { padding: 64px 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-actions { flex-direction: column; align-items: stretch; }

  /* Small blur radii / off-screen blobs avoid GPU banding lines on phones */
  .blob { filter: blur(24px); opacity: 0.3; }
  .blob-green { display: none; }
}
