/* ══════════════════════════════════════════════════
   VARIABLES — dark mode defaults on :root
   Light mode overrides on :root.light
   This is the only pattern that works reliably on all browsers including mobile.
══════════════════════════════════════════════════ */
:root {
  --green:        #6CC24A;
  --green-dark:   #4FA832;
  --green-glow:   rgba(108,194,74,0.18);
  --bg-dark:      #1a1d23;
  --bg-panel:     #22262f;
  --bg-card:      #272b34;
  --bg-card-hover:#2e3341;
  --border:       #333844;
  --border-green: rgba(108,194,74,0.35);
  --text-primary: #e8eaf0;
  --text-secondary:#cacdd6;
  --text-muted:   #ffffff;
  --header-height:96px;
  --transition:   0.22s cubic-bezier(0.4,0,0.2,1);
  --header-bg:    rgba(26,29,35,0.96);
  --nav-bg:       rgba(26,29,35,0.98);
}

:root.light {
  --bg-dark:      #f4f5f7;
  --bg-panel:     #ffffff;
  --bg-card:      #b8ddb0;
  --bg-card-hover:#a3d098;
  --border:       #d0d4dc;
  --border-green: rgba(108,194,74,0.4);
  --text-primary: #1a1d23;
  --text-secondary:#3d4250;
  --text-muted:   #1a1d23;
  --header-bg:    rgba(255,255,255,0.97);
  --nav-bg:       rgba(255,255,255,0.98);
}

/* ── LIGHT MODE: components that need more than variable changes ── */
:root.light .hero-eyebrow {
  background: rgba(108,194,74,0.15);
  border-color: rgba(79,168,50,0.5);
  color: #2e7a10;
}
:root.light .hero-bg {
  background:
    radial-gradient(ellipse 60% 80% at 85% 50%, rgba(108,194,74,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 15% 80%, rgba(108,194,74,0.06) 0%, transparent 50%);
}
:root.light .card {
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
:root.light .hero-sub {
  color: #1a1d23;
  font-weight: 600;
}
:root.light footer p {
  color: #1a1d23;
}
:root.light .prose-block {
  background: #b8ddb0;
  border-color: #a3d098;
}
:root.light .feature-list li {
  background: #b8ddb0;
  border-color: #a3d098;
}
:root.light .form-input,
:root.light .form-textarea {
  background: #fefbd0;
  border-color: #e0d88a;
  color: #1a1d23;
}

/* ══════════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ══════════════════════════════════════════════════
   PAGE WRAPPER
══════════════════════════════════════════════════ */
.page { display: flex; min-height: 100vh; flex-direction: column; animation: fadeIn 0.35s ease; }
@keyframes fadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

/* ══════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════ */
header {
  position: sticky; top: 0; z-index: 300;
  height: var(--header-height);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 32px;
  gap: 24px;
}

.logo-area {
  display: flex; align-items: center; gap: 14px;
  cursor: pointer; flex-shrink: 0;
}
.logo-area a { display: flex; align-items: center; gap: 14px; text-decoration: none; }

.logo-img {
  width: 300px; height: 100px;
  object-fit: contain; display: block;
  pointer-events: none;
}

nav { display: flex; align-items: center; gap: 4px; flex: 1; }

nav a {
  padding: 8px 14px;
  font-size: 18px; font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 5px;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  letter-spacing: 0.01em;
}
nav a:hover { color: var(--text-primary); background: var(--bg-card); }
nav a.active { color: var(--green); background: var(--green-glow); }
nav a.active::after {
  content: '';
  position: absolute; bottom: 2px; left: 14px; right: 14px; height: 2px;
  background: var(--green); border-radius: 2px;
}

.header-contact-btn {
  margin-left: auto;
  padding: 8px 18px;
  background: var(--green);
  color: #111; font-weight: 700; font-size: 13px;
  border: none; border-radius: 5px; cursor: pointer;
  transition: var(--transition); white-space: nowrap; flex-shrink: 0;
  font-family: 'Barlow', sans-serif; letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-flex; align-items: center;
}
.header-contact-btn:hover { background: var(--green-dark); transform: translateY(-1px); }

/* ══════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════ */
.hero {
  position: relative; overflow: hidden;
  padding: 40px 48px 36px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
}

.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 80% at 85% 50%, rgba(108,194,74,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 15% 80%, rgba(108,194,74,0.04) 0%, transparent 50%);
}

.hero-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.04;
  background-image:
    linear-gradient(var(--green) 1px, transparent 1px),
    linear-gradient(90deg, var(--green) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-content { position: relative; z-index: 1; max-width: 680px; }

.pagedtl-image {
  position: absolute;
  left: 52%; top: 50%;
  transform: translateY(-50%);
  width: 500px; max-width: none; max-height: 80%; height: auto;
  border-radius: 10px; object-fit: fill;
  z-index: 1; cursor: zoom-in;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-glow); border: 1px solid var(--border-green);
  border-radius: 20px; padding: 4px 14px;
  font-size: 11.5px; font-weight: 600; color: var(--green);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.hero-eyebrow::before { content: '●'; font-size: 7px; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

.hero-tagline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -0.01em; margin-bottom: 14px;
}
.hero-tagline .accent { color: var(--green); }

.hero-sub {
  font-size: 17px; font-weight: 300;
  color: var(--text-secondary); line-height: 1.6;
  margin-bottom: 28px;
}

/* ══════════════════════════════════════════════════
   PAGE NAV TRIANGLES
══════════════════════════════════════════════════ */
.hero-page-prev,
.hero-page-next {
  position: absolute;
  top: 40px;
  z-index: 20;
  width: 28px; height: 28px;
  background: rgba(108,194,74,0.15);
  border: 1px solid rgba(108,194,74,0.35);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0.85;
  transition: opacity 0.2s ease, background 0.2s ease;
  text-decoration: none;
}
.hero-page-prev { left: 8px; }
.hero-page-next { right: 8px; }
.hero-page-prev:hover,
.hero-page-next:hover {
  opacity: 1;
  background: rgba(108,194,74,0.3);
}
.hero-page-prev::after,
.hero-page-next::after {
  content: '';
  display: block;
  width: 0; height: 0;
}
.hero-page-prev::after {
  border-top:    8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right:  11px solid var(--green);
  margin-right: 2px;
}
.hero-page-next::after {
  border-top:    8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left:   11px solid var(--green);
  margin-left: 2px;
}

@media (max-width: 860px) {
  .hero-page-prev,
  .hero-page-next { top: 32px; }
}

/* ══════════════════════════════════════════════════
   SECTION HEADER
══════════════════════════════════════════════════ */
.section-header { display: flex; align-items: center; gap: 14px; margin-bottom: 32px; }
.section-header-bar { width: 4px; height: 32px; background: var(--green); border-radius: 2px; flex-shrink: 0; }
.section-header h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px; font-weight: 700;
  letter-spacing: 0.02em; text-transform: uppercase;
}

/* ══════════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════════ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px; margin-bottom: 40px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 24px 22px;
  transition: var(--transition);
  cursor: default; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  color: inherit;
  text-decoration: none;
}
.card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--green); transform: scaleX(0);
  transform-origin: left; transition: var(--transition);
}
.card:hover { background: var(--bg-card-hover); border-color: var(--border-green); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.card:hover::before { transform: scaleX(1); }

.card-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--green-glow); border: 1px solid var(--border-green);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 14px;
}
.card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: 16px; color: var(--text-secondary); line-height: 1.55; flex: 1; }

.card.clickable { cursor: pointer; }
.card.clickable:hover .card-arrow { color: var(--green); transform: translateX(4px); }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.card-arrow { color: var(--text-muted); font-size: 18px; transition: var(--transition); }

.card-link-text { font-size: 12px; color: var(--green); }
:root.light .card-link-text { color: #1a4a0a; font-weight: 700; }

/* ══════════════════════════════════════════════════
   SERVICE LAYOUT
══════════════════════════════════════════════════ */
.service-layout { display: flex; gap: 32px; align-items: flex-start; }
.service-cards { flex: 1; min-width: 0; }

/* ══════════════════════════════════════════════════
   PROSE BLOCK
══════════════════════════════════════════════════ */
.prose-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: 0 8px 8px 0;
  padding: 24px 28px; margin-bottom: 24px;
}
.prose-block p { font-size: 18px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 12px; }
.prose-block p:last-child { margin-bottom: 0; }

/* ══════════════════════════════════════════════════
   FEATURE LIST
══════════════════════════════════════════════════ */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 7px; padding: 14px 16px;
  font-size: 14.5px; color: var(--text-secondary); line-height: 1.5;
  transition: var(--transition);
}
.feature-list li:hover { border-color: var(--border-green); color: var(--text-primary); }
.feature-list li::before { content: '▶'; color: var(--green); font-size: 10px; margin-top: 3px; flex-shrink: 0; }
.feature-list li strong { color: var(--text-primary); }

/* ══════════════════════════════════════════════════
   TWO COL LAYOUT
══════════════════════════════════════════════════ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════
   CONTACT FORM
══════════════════════════════════════════════════ */
.contact-form-section {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  padding: 40px 48px;
}
.contact-form-inner { max-width: 640px; margin: 0 auto; }

.form-title { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.form-title-bar { width: 3px; height: 24px; background: var(--green); border-radius: 2px; }
.form-title h3 { font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.form-title span { color: var(--text-secondary); font-size: 13px; margin-left: 4px; font-weight: 400; font-family: 'Barlow', sans-serif; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.form-group label { font-size: 15px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.06em; }

.form-input, .form-textarea {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 6px; padding: 10px 14px;
  color: var(--text-primary); font-family: 'Barlow', sans-serif; font-size: 16px;
  transition: var(--transition); outline: none; width: 100%;
}
.form-input:focus, .form-textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-glow); }
.form-textarea { min-height: 110px; resize: vertical; }

.submit-btn {
  background: var(--green); color: #111;
  font-family: 'Barlow', sans-serif; font-weight: 700;
  font-size: 14px; letter-spacing: 0.04em;
  border: none; border-radius: 6px;
  padding: 12px 32px; cursor: pointer;
  transition: var(--transition); text-transform: uppercase;
}
.submit-btn:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(108,194,74,0.3); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
footer {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  padding: 20px 48px;
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 12px;
}
footer p { font-size: 12px; color: var(--text-muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 12px; color: var(--text-muted); text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--green); }

/* ══════════════════════════════════════════════════
   STATUS BAR
══════════════════════════════════════════════════ */
.status-bar {
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  padding: 7px 48px;
  display: flex; align-items: center; gap: 24px;
}
.status-item { display: flex; align-items: center; gap: 7px; font-size: 14px; color: var(--text-muted); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

/* ══════════════════════════════════════════════════
   CONTACT INFO CARDS
══════════════════════════════════════════════════ */
.contact-info-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 24px 26px; margin-bottom: 24px;
}
.contact-info-card h4 { font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 12px; }
.contact-info-card p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.7; }
.contact-info-card .green { color: var(--green); font-weight: 600; }

/* ══════════════════════════════════════════════════
   SCROLLBAR
══════════════════════════════════════════════════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--green); }

/* ══════════════════════════════════════════════════
   THEME TOGGLE BUTTON
══════════════════════════════════════════════════ */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px; padding: 3px 10px;
  font-size: 16px; cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition); line-height: 1.4;
}
.theme-toggle:hover { border-color: var(--green); background: var(--green-glow); }

/* ══════════════════════════════════════════════════
   MOBILE NAV
══════════════════════════════════════════════════ */
.nav-toggle {
  display: none; background: none; border: none;
  color: var(--text-primary); font-size: 28px;
  cursor: pointer; flex-shrink: 0; padding: 0 8px; line-height: 1;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }

  header { justify-content: space-between; position: relative; }

  .logo-img { max-width: 140px; height: auto; width: auto; }

  nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0; right: 0;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 16px; gap: 4px;
    z-index: 299;
  }
  nav.open { display: flex; }

  .header-contact-btn { display: none; }

  .pagedtl-image,
  .hero img,
  .hero-image-placeholder { display: none !important; }

  .hero { padding: 32px 24px; }
  .contact-form-section { padding: 32px 24px; }
  footer { padding: 20px 24px; }
  .status-bar { padding: 7px 24px; flex-wrap: wrap; gap: 12px; }

  div[style*="padding:32px 10%"] { padding: 24px 5% 0 !important; }

  /* Logo carousel — 2 visible on mobile */
  .logo-carousel-track { padding: 0 48px; gap: 10px; }
  .logo-carousel-item {
    width: calc((100vw - 96px - 10px) / 2) !important;
    height: 64px !important;
  }
  .logo-carousel-item img { max-height: 44px; }

  /* Testimonial carousel — 1 visible on mobile */
  .testimonial-card {
    width: calc(100vw - 96px - 10px) !important;
  }

  /* Shift hero-content right to clear the left nav arrow */
  .hero-content { padding-left: 24px; }
}

/* ══════════════════════════════════════════════════
   LOGO CAROUSEL
══════════════════════════════════════════════════ */
.logo-carousel-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.logo-carousel-track {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 56px;
}
.logo-carousel-item {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  height: 80px;
  width: calc((100vw - 112px - 6 * 16px) / 7);
  padding: 10px 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  user-select: none;
}
.logo-carousel-item img {
  max-height: 56px; max-width: 100%;
  object-fit: contain; filter: grayscale(20%);
}
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--text-primary);
  transition: var(--transition); z-index: 10;
}
.carousel-btn:hover { background: var(--green); color: #111; border-color: var(--green); }
.carousel-btn[hidden] { display: none; }
.carousel-btn.left { left: 8px; }
.carousel-btn.right { right: 8px; }

/* ══════════════════════════════════════════════════
   TESTIMONIAL CAROUSEL
══════════════════════════════════════════════════ */
.testimonial-carousel-outer {
  position: relative;
  width: 100%;
  margin-bottom: 40px;
}
.testimonial-carousel-wrap {
  overflow: hidden;
  width: 100%;
}
.testimonial-carousel-track {
  display: flex;
  gap: 16px;
}
.testimonial-card {
  flex-shrink: 0;
  width: calc((100% - 2 * 16px) / 3);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 28px 24px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.testimonial-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--green); transform: scaleX(0);
  transform-origin: left; transition: var(--transition);
}
.testimonial-card:hover { border-color: var(--border-green); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.testimonial-card:hover::before { transform: scaleX(1); }
.testimonial-quote { font-size: 48px; line-height: 1; color: var(--green); opacity: 0.4; margin-bottom: 8px; font-family: Georgia, serif; }
.testimonial-text { font-size: 16px; line-height: 1.7; color: var(--text-secondary); flex: 1; font-style: italic; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--border); padding-top: 16px; }
.testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--green-glow); border: 2px solid var(--border-green); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.testimonial-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.testimonial-role { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.testimonial-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--text-primary);
  transition: var(--transition); z-index: 10;
}
.testimonial-btn:hover { background: var(--green); color: #111; border-color: var(--green); }
.testimonial-btn[hidden] { display: none; }
#testimonialLeft  { left: -20px; }
#testimonialRight { right: -20px; }
