/* ── KEI SERVICES — SHARED STYLES ── */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&family=DM+Mono:wght@400;500&display=swap');

:root {
  --bg:        #080808;
  --bg-2:      #0f0f0f;
  --bg-3:      #141414;
  --surface:   #1a1a1a;
  --border:    #242424;
  --border-2:  #2e2e2e;
  --text:      #f0f0f0;
  --text-2:    #a0a0a0;
  --text-3:    #5a5a5a;
  --accent:    #a8e85a;
  --accent-2:  #8dcc42;
  --accent-gl: rgba(168,232,90,0.12);
  --r:         12px;
  --r-lg:      20px;
  --fd:        'Syne', sans-serif;
  --fb:        'DM Sans', sans-serif;
  --fm:        'DM Mono', monospace;
  --nav-h:     72px;
}

/* ── LIGHT MODE VARIABLES ── */
[data-theme="light"] {
  --bg:        #f5f5f3;
  --bg-2:      #eeeeeb;
  --bg-3:      #e6e6e2;
  --surface:   #dcdcd7;
  --border:    #d0d0ca;
  --border-2:  #b8b8b0;
  --text:      #111111;
  --text-2:    #555550;
  --text-3:    #999990;
  --accent:    #5a9e1a;
  --accent-2:  #4a8814;
  --accent-gl: rgba(90,158,26,0.12);
}

/* Light mode specific overrides */
[data-theme="light"] nav.scrolled {
  background: rgba(245,245,243,.90);
}
[data-theme="light"] .mobile-menu {
  background: var(--bg);
}
[data-theme="light"] .tag {
  background: rgba(90,158,26,.08);
  border-color: rgba(90,158,26,.22);
}
[data-theme="light"] .btn-primary,
[data-theme="light"] .btn-lg,
[data-theme="light"] .btn-sm,
[data-theme="light"] .btn-submit {
  color: #ffffff;
}
[data-theme="light"] .logo-mark svg path {
  stroke: #ffffff;
}
[data-theme="light"] .btn-lg:hover { box-shadow: 0 12px 32px rgba(90,158,26,.25); }
[data-theme="light"] .btn-primary:hover { box-shadow: 0 8px 24px rgba(90,158,26,.22); }
[data-theme="light"] .btn-submit:hover { box-shadow: 0 8px 28px rgba(90,158,26,.22); }
[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-textarea:focus,
[data-theme="light"] .form-select:focus {
  border-color: rgba(90,158,26,.45);
  box-shadow: 0 0 0 3px rgba(90,158,26,.08);
}
[data-theme="light"] .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999990' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
[data-theme="light"] .form-select option { background: var(--bg-3); color: var(--text); }
[data-theme="light"] .check-dot { background: rgba(90,158,26,.1); border-color: rgba(90,158,26,.25); }
[data-theme="light"] .accent-box { border-color: rgba(90,158,26,.2); background: rgba(90,158,26,.05); }
[data-theme="light"] .hero-grid {
  background-image: linear-gradient(rgba(0,0,0,.05) 1px,transparent 1px),
                    linear-gradient(90deg,rgba(0,0,0,.05) 1px,transparent 1px);
}
[data-theme="light"] .page-hero::before {
  background-image: linear-gradient(rgba(0,0,0,.04) 1px,transparent 1px),
                    linear-gradient(90deg,rgba(0,0,0,.04) 1px,transparent 1px);
}
[data-theme="light"] .ba-lbl { background: rgba(0,0,0,.5); }
[data-theme="light"] .scroll-line { background: linear-gradient(to bottom,var(--text-3),transparent); }
[data-theme="light"] .notch-card::before { background: var(--bg); }

/* ── THEME TOGGLE BUTTON ── */
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s; flex-shrink: 0;
  color: var(--text-2);
}
.theme-toggle:hover { border-color: var(--text-3); color: var(--text); background: var(--bg-2); }
.theme-toggle svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: opacity .2s; }
/* Show sun in dark mode, moon in light mode */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { background: var(--bg); color: var(--text); font-family: var(--fb); line-height: 1.6; overflow-x: hidden; }
img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul   { list-style: none; }
input, textarea, select { font-family: inherit; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 2px; }

/* ── LAYOUT ── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 120px 0; }

/* ── TYPE ── */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--fm); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); background: rgba(184,255,87,.08);
  border: 1px solid rgba(184,255,87,.2); padding: 6px 14px; border-radius: 100px;
}
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

.section-title { font-family: var(--fd); font-size: clamp(34px,5vw,58px); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; }
.section-sub   { font-size: 17px; color: var(--text-2); line-height: 1.7; max-width: 520px; }
.page-title    { font-family: var(--fd); font-size: clamp(44px,6vw,72px); font-weight: 800; line-height: 1.04; letter-spacing: -.04em; }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; } .d5 { transition-delay: .5s; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h); display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background .4s, border-color .4s;
}
nav.scrolled {
  background: rgba(8,8,8,.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-logo  { display: flex; align-items: center; gap: 10px; font-family: var(--fd); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.logo-mark { width: 32px; height: 32px; background: #ffffff; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.logo-mark svg { width: 18px; height: 18px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 14px; color: var(--text-2); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active { position: relative; }
.nav-links a.active::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; background: var(--accent); border-radius: 1px; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.btn-ghost   { font-size: 14px; color: var(--text-2); padding: 8px 16px; border: 1px solid var(--border-2); border-radius: 8px; transition: all .2s; }
.btn-ghost:hover   { color: var(--text); background: var(--surface); }
.btn-primary { font-size: 14px; font-weight: 600; background: var(--accent); color: #080808; padding: 8px 20px; border-radius: 8px; transition: all .2s; }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(184,255,87,.25); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }
.mobile-menu { display: none; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding-top: calc(var(--nav-h) + 80px); padding-bottom: 80px;
  position: relative; overflow: hidden; background: var(--bg);
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.022) 1px,transparent 1px),
                    linear-gradient(90deg,rgba(255,255,255,.022) 1px,transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%,black 20%,transparent 100%);
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero-tag    { margin-bottom: 20px; }
.page-hero-title  { margin-bottom: 20px; }
.page-hero-sub    { font-size: 18px; color: var(--text-2); line-height: 1.75; max-width: 560px; }
.page-hero-meta   { display: flex; align-items: center; gap: 20px; margin-top: 32px; flex-wrap: wrap; }
.ph-meta-item     { font-family: var(--fm); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }

/* ── BUTTONS ── */
.btn-lg {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 600; background: var(--accent); color: #080808;
  padding: 14px 28px; border-radius: 10px; transition: all .25s; border: none; cursor: pointer;
}
.btn-lg:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(184,255,87,.3); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 500; color: var(--text-2);
  padding: 14px 28px; border-radius: 10px; border: 1px solid var(--border-2); transition: all .25s;
}
.btn-outline:hover { color: var(--text); border-color: var(--text-3); }
.btn-sm {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; background: var(--accent); color: #080808;
  padding: 10px 20px; border-radius: 8px; transition: all .2s; border: none; cursor: pointer;
}
.btn-sm:hover { background: var(--accent-2); transform: translateY(-1px); }

/* ── MARQUEE ── */
.marquee-section { padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; background: var(--bg-2); }
.marquee-track   { display: flex; white-space: nowrap; animation: marquee 28s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-item    { display: inline-flex; align-items: center; gap: 20px; padding: 0 32px; font-family: var(--fm); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.marquee-dot     { width: 4px; height: 4px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── CARDS ── */
.card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-lg);
  transition: border-color .3s, transform .3s;
}
.card:hover { border-color: var(--border-2); }

/* ── FORMS ── */
.form-group  { margin-bottom: 20px; }
.form-label  { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 8px; }
.form-input, .form-textarea, .form-select {
  width: 100%; background: var(--surface); border: 1px solid var(--border-2); border-radius: 8px;
  padding: 12px 16px; font-size: 15px; color: var(--text); outline: none; -webkit-appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: rgba(184,255,87,.4); box-shadow: 0 0 0 3px rgba(184,255,87,.08);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-3); }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a5a5a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; cursor: pointer;
}
.form-select option { background: var(--bg-3); color: var(--text); }
.form-textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.btn-submit {
  width: 100%; padding: 14px; background: var(--accent); color: #080808;
  font-size: 16px; font-weight: 700; border-radius: 10px; border: none; cursor: pointer;
  transition: all .25s; font-family: var(--fd); margin-top: 8px;
}
.btn-submit:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: 0 8px 28px rgba(184,255,87,.25); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── FOOTER ── */
footer { background: var(--bg); border-top: 1px solid var(--border); padding: 64px 0 32px; }
.footer-grid  { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-logo  { display: flex; align-items: center; gap: 10px; font-family: var(--fd); font-weight: 800; font-size: 18px; letter-spacing: -.02em; margin-bottom: 16px; }
.footer-tag   { font-size: 14px; color: var(--text-3); line-height: 1.7; max-width: 280px; margin-bottom: 24px; }
.footer-soc   { display: flex; gap: 10px; }
.soc-btn { width: 36px; height: 36px; border: 1px solid var(--border-2); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-3); transition: all .2s; }
.soc-btn:hover { border-color: var(--text-3); color: var(--text); background: var(--surface); }
.soc-btn svg { width: 15px; height: 15px; }
.footer-col-title { font-family: var(--fd); font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: var(--text-3); transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-hours { margin-top: 24px; padding: 16px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r); }
.footer-hours-title { font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.footer-hours p { font-size: 13px; color: var(--text-3); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 32px; border-top: 1px solid var(--border); gap: 16px; }
.footer-copy  { font-size: 13px; color: var(--text-3); }
.footer-badge { font-family: var(--fm); font-size: 11px; letter-spacing: .1em; color: var(--text-3); display: flex; align-items: center; gap: 8px; }

/* ── B/A SLIDER ── */
.ba-wrap  { position: relative; width: 100%; aspect-ratio: 4/3; overflow: hidden; cursor: col-resize; user-select: none; }
.ba-before, .ba-after { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.ba-after  { clip-path: inset(0 50% 0 0); }
.ba-ph     { font-family: var(--fm); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); opacity: .5; pointer-events: none; }
.ba-div    { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: white; z-index: 3; }
.ba-handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 36px; height: 36px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,0,0,.4); }
.ba-lbl-row { position: absolute; top: 16px; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 16px; z-index: 4; pointer-events: none; }
.ba-lbl { font-family: var(--fm); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; background: rgba(0,0,0,.6); backdrop-filter: blur(8px); color: white; padding: 4px 10px; border-radius: 4px; }

/* ── CHECKLIST ── */
.checklist { display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--text-2); }
.check-dot { width: 20px; height: 20px; border-radius: 50%; background: rgba(184,255,87,.1); border: 1px solid rgba(184,255,87,.22); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.check-dot svg { width: 10px; height: 10px; stroke: var(--accent); stroke-width: 2.5; fill: none; }

/* ── STATS ROW ── */
.stats-row { display: flex; gap: 48px; flex-wrap: wrap; }
.stat-num   { font-family: var(--fd); font-size: 40px; font-weight: 800; letter-spacing: -.04em; color: var(--accent); line-height: 1; }
.stat-label { font-size: 14px; color: var(--text-3); margin-top: 4px; }

/*
  ══════════════════════════════════════════════════════
  HOW TO ADD IMAGES — Read this first
  ══════════════════════════════════════════════════════

  Every photo placeholder in the site has a data-img attribute.
  To swap in a real photo, paste a URL into the quotes like this:

    data-img="https://your-image-url.com/photo.jpg"

  The script at the bottom of each page reads that attribute
  and applies it as a background image automatically.

  WHERE EACH data-img LIVES:
  ─────────────────────────────────────────────────────
  index.html
    • Team/truck photo on homepage About strip:
      class="about-ph" — look for data-img=""

  about.html
    • Main team photo (tall card):
      class="about-photo-main" — look for data-img=""
    • Kei truck photo (story section):
      class="truck-story-ph" — look for data-img=""

  portfolio.html
    • Before/after sliders — each ba-before and ba-after
      div has its own data-img="" — 18 total slots
    • Social tile photos — 4 data-img="" on .social-tile divs

  TIPS:
  • Use direct image URLs (ending in .jpg .png .webp)
  • Google Drive links do NOT work — use Imgur, Cloudinary,
    or just upload to your hosting provider and use that path
  • If an image doesn't appear, paste the URL in a browser
    tab first to confirm it loads on its own
  ══════════════════════════════════════════════════════
*/

/* ── IMAGE PLACEHOLDER SYSTEM ── */
[data-img] {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
[data-img].has-image span,
[data-img].has-image small,
[data-img].has-image .ba-ph,
[data-img].has-image .soc-tile-label {
  display: none;
}

/* ── SHAPE ACCENTS ── */
/* Square badge — used for icon containers, small accent blocks */
.shape-sq {
  border-radius: 4px;
}
/* Squircle — softer square feel */
.shape-squircle {
  border-radius: 10px;
}
/* Pill */
.shape-pill {
  border-radius: 100px;
}
/* Hard square rule divider */
.rule-sq {
  width: 40px; height: 3px;
  background: var(--accent);
  border-radius: 1px;
  margin-bottom: 20px;
}
/* Square stat block */
.sq-stat {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px 24px;
}
.sq-stat-num { font-family: var(--fd); font-size: 36px; font-weight: 800; letter-spacing: -.04em; color: var(--accent); line-height: 1; }
.sq-stat-label { font-size: 13px; color: var(--text-3); margin-top: 4px; }
/* Notched corner accent card */
.notch-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--r-lg);
  position: relative;
}
.notch-card::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 32px; height: 32px;
  background: var(--bg); /* cuts corner */
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}
/* Inline mono label with square left border */
.mono-label {
  font-family: var(--fm); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-3); padding-left: 12px;
  border-left: 2px solid var(--accent);
  display: inline-block;
}
/* Accent border box — sharp corners for contrast against rounded cards */
.accent-box {
  border: 1px solid rgba(184,255,87,.2);
  border-radius: 6px;
  padding: 16px 20px;
  background: rgba(184,255,87,.04);
}

/* ── CTA BAND ── */
.cta-band { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 80px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-title { font-family: var(--fd); font-size: clamp(28px,4vw,44px); font-weight: 800; letter-spacing: -.03em; }
.cta-title em { font-style: normal; color: var(--accent); }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; flex-shrink: 0; }

/* ── MOBILE NAV ── */
@media(max-width: 768px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: none; position: fixed; inset: 0; background: var(--bg); z-index: 999; flex-direction: column; justify-content: center; align-items: center; gap: 32px; padding: 40px; }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { font-family: var(--fd); font-size: 32px; font-weight: 800; letter-spacing: -.03em; color: var(--text-2); transition: color .2s; }
  .mobile-menu a:hover { color: var(--accent); }
  .mobile-close { position: absolute; top: 24px; right: 24px; font-size: 24px; color: var(--text-2); cursor: pointer; }
}

/* ── RESPONSIVE ── */
@media(max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media(max-width: 640px) {
  .section { padding: 80px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .stats-row { gap: 28px; }
}
