/* ============================================================
   ECOLAST — design tokens
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root{
  --bg:          #0a0c0f;
  --bg-soft:     #101317;
  --panel:       #14181d;
  --ink:         #f2f4f3;
  --muted:       #98a2ab;
  --muted-2:     #626c75;
  --hair:        rgba(242,244,243,0.09);
  --hair-strong: rgba(242,244,243,0.16);

  --glass-bg:    rgba(242,244,243,0.055);
  --glass-bg-2:  rgba(242,244,243,0.09);
  --glass-brd:   rgba(242,244,243,0.14);

  /* default accent (overridden per line via [data-theme]) */
  --accent:      #2fd673;
  --accent-deep: #0e5f34;
  --accent-soft: rgba(47,214,115,0.16);
  /* text drawn on top of --accent (chat bubbles, badges). Dark-mode accents
     are all bright, so dark text reads fine; light-mode accents are deep
     colors (see below), so this flips to a light tone there. */
  --on-accent:   #06120b;

  --ease: cubic-bezier(.16,.8,.24,1);
  --ease-soft: cubic-bezier(.4,0,.2,1);
}

[data-theme="suv"]{
  --accent:      #35d67b;
  --accent-2:    #b7f04f;
  --accent-deep: #0c4a29;
  --accent-soft: rgba(53,214,123,0.16);
}
[data-theme="sedan"]{
  --accent:      #4a90ff;
  --accent-2:    #7ec8ff;
  --accent-deep: #0d2f7a;
  --accent-soft: rgba(74,144,255,0.16);
}
/* ---------- Light mode (EcoLast gold) ----------
   Turned on by adding data-mode="light" to <html> (see theme-toggle script).
   Colors are lifted from the yellow door-decal logo: gold panel, deep navy ink, leaf green accent. */
html[data-mode="light"]{
  --bg:          #dfae4c;
  --bg-soft:     #e6bd66;
  --panel:       #fff7e6;
  --ink:         #15163f;
  --muted:       #5c5646;
  --muted-2:     #776f5a;
  --hair:        rgba(21,22,63,0.14);
  --hair-strong: rgba(21,22,63,0.24);

  --glass-bg:    rgba(255,255,255,0.12);
  --glass-bg-2:  rgba(255,255,255,0.2);
  --glass-brd:   rgba(21,22,63,0.16);

  --accent:      #1f7a3d;
  --accent-deep: #0c4020;
  --accent-soft: rgba(31,122,61,0.18);
  --on-accent:   #fff7e6;

  --hex-veil:    rgba(223,174,76,0.42);
  --hex-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='144' viewBox='0 0 84 144'%3E%3Cg fill='none' stroke='%23808080' stroke-opacity='0.22' stroke-width='1.5'%3E%3Cpath d='M42 0 84 24 84 72 42 96 0 72 0 24Z M42 96 42 144'/%3E%3C/g%3E%3C/svg%3E");
}
html[data-mode="light"] .nav.scrolled {
    background: rgb(0 0 0 / 15%);
    border-bottom-color: rgb(224 225 235 / 14%);
}
html[data-mode="light"] .btn.solid{
  border:0px solid rgba(21,22,63,.14);
}
/* Note: data-theme lives on <body>, not <html> — these must be descendant
   selectors (html[data-mode="light"] body[data-theme="..."]) or they never
   match. --muted is also themed per category here (instead of the default
   purple-ish #4d4d72) so nav links, footer text, and body copy read as a
   darker shade of that page's own theme color. */
html[data-mode="light"] body[data-theme="suv"]{
  --accent: #6d4e2b; --accent-2: #db8200; --accent-deep: #4a341c; --accent-soft: rgba(109,78,43,0.18); --accent-rgb: 109,78,43;
  --muted: #6b5738; --muted-2: #6f5a3a; --on-accent: #fff7e6;
}
html[data-mode="light"] body[data-theme="sedan"]{
  --accent: #173e94; --accent-2: #2a5bc9; --accent-deep: #0a2a70; --accent-soft: rgba(23,62,148,0.18);
  --muted: #35478f; --muted-2: #3f52a0; --on-accent: #fff7e6;
}
html[data-mode="light"] body[data-theme="truck"]{
  --accent: #a02020; --accent-2: #8a2e12; --accent-deep: #6e1414; --accent-soft: rgba(160,32,32,0.18);
  --muted: #8a3a2c; --muted-2: #954331; --on-accent: #fff7e6;
}
/* The quote/banner section always has a dark scrim behind it (see
   .banner::before per page), in both dark and light mode, so its text needs
   to stay light regardless of --ink/--muted/--accent going dark for the rest
   of the (now golden) light-mode page. */
html[data-mode="light"] .banner h2{ color:#f5ecd8; }
html[data-mode="light"] .banner p{ color:#e7dcc3; }
html[data-mode="light"] body[data-theme="suv"] .banner h2 em{ color:#f0b562; }
html[data-mode="light"] body[data-theme="sedan"] .banner h2 em{ color:#8db1ff; }
html[data-mode="light"] body[data-theme="truck"] .banner h2 em{ color:#ff8a65; }
body, .nav, .nav.scrolled, footer, .glass, .btn{
  transition: background-color .4s var(--ease-soft), color .4s var(--ease-soft), border-color .4s var(--ease-soft);
}

[data-theme="truck"]{
  --accent:      #ff4d4d;
  --accent-2:    #ffb14a;
  --accent-deep: #6e1414;
  --accent-soft: rgba(255,77,77,0.16);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:'Inter',system-ui,sans-serif;
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

h1,h2,h3,h4,.disp{
  font-family:'Rajdhani',system-ui,sans-serif;
  font-weight:700;
  letter-spacing:0.01em;
  margin:0;
  color:var(--ink);
  text-transform:uppercase;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
button{ font-family:inherit; cursor:pointer; }

.wrap{ max-width:1280px; margin:0 auto; padding:0 32px; }
@media (max-width:720px){ .wrap{ padding:0 20px; } }

/* -------- hex texture backgrounds --------
   One tile = 84 x 144 px: one full hexagon plus the edge that links it to the row below,
   so repeated tiles form a continuous honeycomb with no leftover shapes. */
.hex-field{
  position:absolute; inset:0;
  background-image:
    linear-gradient(0deg, var(--hex-veil, rgba(10,12,15,0.65)), var(--hex-veil, rgba(10,12,15,0.65))),
    var(--hex-pattern, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='144' viewBox='0 0 84 144'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.06' stroke-width='1.5'%3E%3Cpath d='M42 0 84 24 84 72 42 96 0 72 0 24Z M42 96 42 144'/%3E%3C/g%3E%3C/svg%3E"));
  background-size:auto, var(--hex-size, 56px) calc(var(--hex-size, 56px) * 12 / 7);   /* --hex-size = width of one tile */
  pointer-events:none;
}
button.btn {
    border: 0px solid var(--glass-brd)!important;
}
/* -------- glass primitives -------- */
.glass{
  background:var(--glass-bg);
  border:1px solid var(--glass-brd);
  backdrop-filter:blur(18px) saturate(140%);
  -webkit-backdrop-filter:blur(18px) saturate(140%);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: 11px;
    font-family: 'Rajdhani',sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.02em;
    /* border: 1px solid var(--glass-brd); */
    background: var(--glass-bg-2);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    color: var(--ink);
    transition: border-color .35s var(--ease-soft), background .35s var(--ease-soft), transform .35s var(--ease-soft), box-shadow .35s var(--ease-soft);
}
.btn:hover{
  border-color:var(--accent);
  background:var(--accent-soft);
  transform:translateY(-2px);
  box-shadow:0 10px 30px -12px var(--accent-soft);
}
.btn svg{ width:16px; height:16px; transition:transform .35s var(--ease-soft); }
.btn:hover svg{ transform:translateX(3px); }

.btn.solid {
    background: #ffffff;
    border-color: transparent;
    color: #08090a;
}
.btn.solid:hover {
    box-shadow: 0px 2px 20px 9px rgb(196 214 47 / 16%);
    transform: translateY(-2px);
}

/* -------- nav -------- */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:100;
  padding:18px 0;
  transition:background .4s var(--ease-soft), border-color .4s var(--ease-soft), padding .4s var(--ease-soft);
  border-bottom:1px solid transparent;
}
.nav.scrolled{
  background:rgba(10,12,15,0.62);
  backdrop-filter:blur(7px) saturate(40%);
  -webkit-backdrop-filter:blur(16px) saturate(140%);
  border-bottom:1px solid var(--hair);
  padding:12px 0;
}
.nav .wrap{ display:flex; align-items:center; justify-content:space-between; }
.brand{ display:flex; align-items:center; gap:0px; flex-shrink:1; min-width:0; }
.brand img{ min-width:20px; width:auto; }
.brand svg{ width:26px; height:26px; }
.brand .word{ font-family:'Rajdhani',sans-serif; font-weight:700; font-size:20px; letter-spacing:0.02em; }
.brand .word b{ color:var(--accent); font-weight:700; }
.navlinks{ display:flex; align-items:center; gap:6px; }
.navlinks a{
  padding:9px 16px; border-radius:18px; font-size:14.5px;
  font-family:'Rajdhani',sans-serif; font-weight:600; letter-spacing:0.03em;
  color:var(--muted); border:1px solid transparent;
  transition:color .3s var(--ease-soft), border-color .3s var(--ease-soft), background .3s var(--ease-soft);        font-weight: 400;
}
.navlinks a:hover{ color:var(--ink); background:var(--glass-bg); border-color:var(--glass-brd); }
.navlinks a.active{ color:var(--ink); background:var(--glass-bg-2); border-color:var(--glass-brd); }
/* -------- sliding nav highlight (moves between pages, see script.js) -------- */
.navlinks{ position:relative; }
.navlinks .nav-pill{
  position:absolute; left:0; top:0; width:0; height:0; z-index:0; pointer-events:none;
  border-radius:18px; background:var(--glass-bg-2); border:1px solid var(--glass-brd);
  opacity:0; will-change:transform,width,height;
  transition:transform .55s cubic-bezier(.65,0,.25,1), width .55s cubic-bezier(.65,0,.25,1),
             height .55s cubic-bezier(.65,0,.25,1), opacity .35s ease;
}
/* the pill replaces the per-link active background (class is set in <head> to avoid a flash) */
html.nav-pill-on .navlinks a{ position:relative; z-index:1; }
html.nav-pill-on .navlinks a.active,
html.nav-pill-on .navlinks a.active:hover{ background:transparent; border-color:transparent; }
@media (prefers-reduced-motion: reduce){ .navlinks .nav-pill{ transition:none; } }
.nav .dot{ width:6px; height:6px; border-radius:50%; background:var(--accent); display:inline-block; margin-left:6px; }

/* -------- footer -------- */
footer{
  border-top:1px solid var(--hair);
  padding:56px 0 34px;
  color:var(--muted-2);
}
footer .fgrid{
  display:flex; justify-content:space-between; align-items:flex-end; gap:24px; flex-wrap:wrap;
}
footer .ftag{ font-family:'Rajdhani',sans-serif; font-size:15px; color:var(--muted); letter-spacing:0.02em; }
footer .fcopy{ font-size:13px; margin-top:26px; color:var(--muted-2); }
footer .flinks{ display:flex; gap:22px; font-family:'Rajdhani',sans-serif; font-weight:600; font-size:14px; }
footer .flinks a{ color:var(--muted); transition:color .25s; }
footer .flinks a:hover{ color:var(--ink); }

/* -------- reveal on scroll -------- */
.reveal{ opacity:0; transform:translateY(26px); transition:opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in{ opacity:1; transform:translateY(0); }
/* Product pages: the big hero picture fades in a little after the heading and text (overrides the per-element delay script.js sets) */
.hero-art.reveal{ transition-duration:1.1s; transition-delay:.45s !important; }

  @media (max-width: 500px) {
  .navlinks a {
    padding: 2px 2px!important;
}
.word-mark .eco {
    font-size: 60px;
}
.word-mark .last {
    font-size: 60px;
}
}

  @media only screen and (min-width: 320px) and (max-width:738px){
      
      .panel {
   
    min-height: 300px!important;}
  }
   
/* Keep all five nav links (incl. Order) on one row on phones and small tablets */
@media (max-width: 860px){
  .navlinks{ gap:0; }
  .navlinks a{ white-space:nowrap; letter-spacing:0; font-size:14px; padding:8px 8px; }
}
@media (max-width: 500px){
  .nav .wrap{ gap:8px; }
  .navlinks a{
    font-size:clamp(11.5px, 3.4vw, 14px);
    padding:6px clamp(4px, 1.4vw, 7px) !important;
  }
  /* Arabic nav labels run longer than the English ones at the same size,
     which was squeezing the logo down to nothing. Scale them down a bit
     more so all 5 links plus the logo still fit on one row. */
  html[lang="ar"] .navlinks a{
    font-size:clamp(9.5px, 2.6vw, 12px);
    padding:6px clamp(3px, 1vw, 5px) !important;
  }
}
/* narrow phones: show just the logo mark so the links have room */
@media (max-width: 479px){
  .brand .word{ display:none; }
}
@media (max-width: 339px){
  .navlinks a{ font-size:11px; padding:6px 3px !important; }
  html[lang="ar"] .navlinks a{ font-size:8.5px; padding:6px 1px !important; }
}

.logo-landing {
  animation: scaleUp 2s ease-out forwards;
}

@keyframes scaleUp {
  from {
    transform: scale(0.8);
    opacity: 0; /* optional, gives a nice fade-in too */
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.panel img {
  transition: transform 0.3s ease;
}

.panel:hover img {
  transform: scale(1.1);
}

@font-face {
    font-family: Vazir;
    src: url('images/Vazir.eot');
    src: url('images/Vazir.eot?#iefix') format('embedded-opentype'),
         url('images/Vazir.woff2') format('woff2'),
         url('images/Vazir.woff') format('woff'),
         url('images/Vazir.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: Vazir;
    src: url('images/Vazir-Bold.eot');
    src: url('images/Vazir-Bold.eot?#iefix') format('embedded-opentype'),
         url('images/Vazir-Bold.woff2') format('woff2'),
         url('images/Vazir-Bold.woff') format('woff'),
         url('images/Vazir-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: Vazir;
    src: url('images/Vazir-Black.eot');
    src: url('images/Vazir-Black.eot?#iefix') format('embedded-opentype'),
         url('images/Vazir-Black.woff2') format('woff2'),
         url('images/Vazir-Black.woff') format('woff'),
         url('images/Vazir-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}
@font-face {
    font-family: Vazir;
    src: url('images/Vazir-Medium.eot');
    src: url('images/Vazir-Medium.eot?#iefix') format('embedded-opentype'),
         url('images/Vazir-Medium.woff2') format('woff2'),
         url('images/Vazir-Medium.woff') format('woff'),
         url('images/Vazir-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: Vazir;
    src: url('images/Vazir-Light.eot');
    src: url('images/Vazir-Light.eot?#iefix') format('embedded-opentype'),
         url('images/Vazir-Light.woff2') format('woff2'),
         url('images/Vazir-Light.woff') format('woff'),
         url('images/Vazir-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: Vazir;
    src: url('images/Vazir-Thin.eot');
    src: url('images/Vazir-Thin.eot?#iefix') format('embedded-opentype'),
         url('images/Vazir-Thin.woff2') format('woff2'),
         url('images/Vazir-Thin.woff') format('woff'),
         url('images/Vazir-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}


.lang-switch {padding:0!important;}

span.word {
    color: #3333b4!important;
}



.word-mark .last {
    color: #1e2ba3!important;
    -webkit-background-clip: text;
    background-clip: text;
    font-family: serif;
    color: transparent;
    font-size: 60px;
}

h1.word-mark {
    display: none;
}
span.word {
    display: none;
}
.onlinechat {
   display:none;
    background-image: url(images/chat.jpg)!important;
  
}
/* ---------- Engine-care video (glass frame) ---------- */
.video-frame{
  position:relative;
  max-width:960px;
  margin:0 auto;
}
.video-frame::before{
  content:"";
  position:absolute;
  inset:-40px;
  background:radial-gradient(ellipse at center, var(--accent-soft) 0%, transparent 70%);
  filter:blur(40px);
  z-index:0;
  pointer-events:none;
}
.video-frame .glass{
  position:relative;
  z-index:1;
  border-radius:28px;
  padding:10px;
  box-shadow:0 30px 60px -20px rgba(0,0,0,0.5);
}
.video-frame video{
  display:block;
  width:100%;
  border-radius:20px;
}

/* ---------- Dashboard video banner (video composited into screen mockup) ---------- */
.dash-banner{
  position:relative;
  width:100%;
  overflow:hidden;
  line-height:0;
}
.dash-banner video {
    position: absolute;
    z-index: 1;
    left: 20.82%;
    top: 11.91%;
    width: 58.21%;
    height: 76.18%;
    object-fit: cover;
}
.dash-banner img{
  position:relative;
  z-index:2;
  width:100%;
  display:block;
}
.dash-resume{
  position:absolute;
  z-index:3;
  left:50%; top:50%;
  transform:translate(-50%,-50%);
  width:56px; height:56px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,0.35);
  background:rgba(10,12,15,0.55);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  padding:0;
}
.dash-resume[hidden]{ display:none; }
.dash-resume svg{ width:22px; height:22px; margin-left:3px; }


.ecochat-msg.me{color:e6e6e6!important;}

/* -------- burger menu (phones) -------- */
.burger{ display:none; }
@media (max-width: 768px){
  .nav .wrap{ position:relative; }
  .burger{
    display:flex; flex-direction:column; justify-content:center; align-items:center; gap:5px;
    width:42px; height:42px; padding:0; margin-inline-start:auto; flex-shrink:0;
    background:rgb(255 250 238 / 30%); border:1px solid var(--glass-brd); border-radius:11px; cursor:pointer;
  }
  .burger span{
    display:block; width:20px; height:2px; border-radius:2px; background:var(--ink);
    transition:transform .3s var(--ease-soft), opacity .2s;
  }
  .burger[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2){ opacity:0; }
  .burger[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

  .navlinks{
    position:absolute; top:calc(100% + 12px); left:20px; right:20px;
    flex-direction:column; align-items:stretch; gap:4px; padding:10px;
    background:rgb(255 250 238 / 30%); border:1px solid var(--hair-strong); border-radius:14px;
    backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px);
    opacity:0; visibility:hidden; transform:translateY(-8px); pointer-events:none;
    transition:opacity .25s var(--ease-soft), transform .25s var(--ease-soft), visibility .25s;
  }
  html[data-mode="light"] .navlinks{ background:rgb(255 250 238 / 30%); }
  .nav.open .navlinks{ opacity:1; visibility:visible; transform:none; pointer-events:auto; }
  .nav .navlinks a, html[lang="ar"] .nav .navlinks a{
    font-size:17px !important; padding:12px 14px !important; white-space:normal; letter-spacing:0.03em;
  }
}
.burger span {
    background: #308401!important;
}
.burger {
    background: rgb(255 250 238 / 0%);
    border: 0px solid var(--glass-brd);
}