/* ============================================================
   Toko UAE Tent's Builder — Home page styles
   Lightweight, mobile-first, no external dependencies.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --red: #d81e22;
  --red-dark: #b3171b;
  --ink: #14161a;
  --ink-soft: #3a3f47;
  --muted: #6b7280;
  --line: #e7e9ee;
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --bg-dark: #14161a;
  --white: #ffffff;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(20, 22, 26, 0.10);
  --shadow-lg: 0 24px 60px rgba(20, 22, 26, 0.18);
  --container: 1180px;
  --header-h: 76px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 800; letter-spacing: -0.02em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; font-weight: 700; font-size: .98rem;
  padding: .8rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-quote { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(216,30,34,.35); }
.btn-quote:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }
.btn-lg { padding: 1rem 1.8rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h); display: flex; align-items: center;
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { background: rgba(255,255,255,.96); box-shadow: 0 4px 20px rgba(0,0,0,.08); backdrop-filter: blur(8px); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; align-items: center; gap: .65rem; font-weight: 800; }
.brand-badge {
  display: grid; place-items: center; background: #fff; border-radius: 12px;
  padding: 5px; box-shadow: 0 4px 14px rgba(0,0,0,.18); flex: none;
}
.brand-badge img { width: 38px; height: 38px; border-radius: 6px; }
.brand-name { color: #fff; font-size: 1.12rem; letter-spacing: -.02em; line-height: 1.05; }
.brand-name em { display: block; font-style: normal; font-weight: 600; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.site-header.scrolled .brand-name { color: var(--ink); }

.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links > a:not(.btn) { color: #fff; font-weight: 600; font-size: .98rem; opacity: .92; position: relative; padding: .25rem 0; }
.nav-links > a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--red); transition: width .25s ease; }
.nav-links > a:not(.btn):hover::after { width: 100%; }
.site-header.scrolled .nav-links > a:not(.btn) { color: var(--ink); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; padding: 0; }
.nav-toggle span { display: block; height: 3px; width: 26px; margin: 0 auto; background: #fff; border-radius: 2px; transition: .3s; }
.site-header.scrolled .nav-toggle span { background: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; color: #fff; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,22,26,.55) 0%, rgba(20,22,26,.35) 40%, rgba(20,22,26,.78) 100%),
    radial-gradient(120% 90% at 15% 30%, rgba(216,30,34,.25), transparent 55%);
}
.hero-content { padding-top: calc(var(--header-h) + 24px); padding-bottom: 140px; max-width: 820px; }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .76rem; font-weight: 700; margin: 0 0 1rem; color: #fff; opacity: .9; }
.eyebrow.dark { color: var(--red); opacity: 1; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); margin-bottom: 1.1rem; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero h1 .accent { color: #fff; }
.hero h1 .accent { background: linear-gradient(90deg, #fff 0%, #ffd9da 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-hook { font-size: clamp(1.02rem, 2vw, 1.25rem); max-width: 660px; margin: 0 0 2rem; color: rgba(255,255,255,.92); }
.hero-hook strong { color: #fff; font-weight: 700; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 0; }

/* ---------- Clientele logo strip (pinned to bottom of hero) ---------- */
.hero-clients {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  background: #fff; padding: 18px 0;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .14);
  overflow: hidden;
}
.marquee { position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 0; width: max-content; animation: scroll-x 55s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.client-logo { flex: none; display: grid; place-items: center; padding: 0 6px; }
.client-logo img { height: 56px; width: auto; opacity: .6; filter: grayscale(1); transition: opacity .25s ease, filter .25s ease; }
.client-logo:hover img { opacity: 1; filter: grayscale(0); }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Section scaffolding ---------- */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: .4rem 0 .8rem; }
.section-sub { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- Services cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative; overflow: hidden; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card:hover .card-media img { transform: scale(1.07); }
.card-body { padding: 26px 24px 28px; text-align: center; }
.card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Gallery carousel ---------- */
.carousel { position: relative; max-width: 1320px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 10px; }
.car-viewport { overflow: hidden; width: 100%; border-radius: var(--radius); }
.car-track { display: flex; gap: 16px; transition: transform .45s cubic-bezier(.6,.05,.25,1); }
.car-slide { flex: 0 0 calc((100% - 32px) / 3); position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.car-slide img { width: 100%; height: 300px; object-fit: cover; }
.car-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 12px; color: #fff; font-size: .9rem; font-weight: 700; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.car-btn {
  flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--ink); color: #fff; font-size: 1rem; display: grid; place-items: center;
  box-shadow: var(--shadow); transition: background .2s, transform .2s; z-index: 2;
}
.car-btn:hover { background: var(--red); transform: scale(1.08); }
.car-dots { display: flex; gap: 8px; justify-content: center; margin-top: 26px; }
.car-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: #cfd3da; cursor: pointer; padding: 0; transition: background .2s, width .2s; }
.car-dots button.active { background: var(--red); width: 26px; border-radius: 999px; }

/* ---------- Why choose us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.why-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 18px; text-align: center; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.why-item:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.why-ico { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: rgba(216,30,34,.10); color: var(--red); }
.why-ico svg { width: 30px; height: 30px; }
.why-item h3 { font-size: 1.05rem; margin: 0 0 .55rem; }
.why-item p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- Process / steps ---------- */
.steps { display: flex; gap: 0; position: relative; }
.step { flex: 1; position: relative; text-align: center; padding: 0 14px; }
.step-num {
  position: relative; z-index: 2; margin: 0 auto 22px;
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); color: #fff; font-weight: 800; font-size: 1.4rem;
  box-shadow: 0 10px 22px rgba(216,30,34,.35); border: 5px solid var(--bg-alt);
}
/* dashed flow line linking each circle to the next */
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 31px;
  left: calc(50% + 38px); width: calc(100% - 76px);
  border-top: 3px dashed rgba(216, 30, 34, .4); z-index: 0;
}
.step-body h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.step-body p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- About / team ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.about-media { position: relative; }
.about-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); display: block; }
.about-badge { position: absolute; right: -14px; bottom: -18px; background: var(--red); color: #fff; border-radius: var(--radius); padding: 16px 22px; box-shadow: var(--shadow); text-align: center; }
.about-badge strong { display: block; font-size: 1.8rem; line-height: 1; }
.about-badge span { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; opacity: .9; }
.about-body h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: .5rem 0 1rem; }
.about-body p { color: var(--ink-soft); margin: 0 0 1rem; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 1.4rem; }
.mv-item { border-left: 3px solid var(--red); padding-left: 16px; }
.mv-item h3 { font-size: 1.05rem; margin-bottom: .35rem; color: var(--red); }
.mv-item p { font-size: .92rem; color: var(--muted); margin: 0; }

/* ---------- Contact ---------- */
.contact { background: var(--bg-dark); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-info .eyebrow { color: var(--red); }
.contact-info h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: .4rem 0 1rem; }
.contact-lead { color: rgba(255,255,255,.72); max-width: 460px; margin: 0 0 2rem; }
.contact-list { display: grid; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.ci-ico { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--red); font-size: 1.2rem; }
.contact-list small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; opacity: .55; }
.contact-list a, .contact-list span > :not(small) { color: #fff; font-weight: 700; font-size: 1.05rem; }
.contact-list span { display: flex; flex-direction: column; }

.quote-form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-lg); }
.quote-form h3 { font-size: 1.4rem; margin-bottom: 1.2rem; }
.field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 6px; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: .95rem; color: var(--ink); background: #fbfbfc; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 3px rgba(216,30,34,.12); background: #fff; }
.field textarea { resize: vertical; }
.form-note { text-align: center; font-size: .82rem; color: var(--muted); margin: 12px 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: #0e0f12; color: rgba(255,255,255,.7); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 56px 22px 40px; }
.footer-brand .brand-badge { display: inline-grid; }
.footer-brand p { margin: 12px 0 0; color: #fff; font-weight: 700; }
.footer-tag { font-weight: 400 !important; color: rgba(255,255,255,.55) !important; font-size: .9rem; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; font-size: .85rem; }
.to-top:hover { color: #fff; }

/* ---------- Floating mobile quote ---------- */
.fab-quote {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; display: none;
  background: var(--red); color: #fff; font-weight: 700; padding: 14px 22px;
  border-radius: 999px; box-shadow: 0 10px 26px rgba(216,30,34,.45);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .car-slide { flex-basis: calc((100% - 16px) / 2); }
}

@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 12px 22px 22px;
    box-shadow: 0 20px 30px rgba(0,0,0,.12);
    transform: translateY(-150%); transition: transform .35s ease; visibility: hidden;
  }
  .nav-links.open { transform: translateY(0); visibility: visible; }
  .nav-links > a:not(.btn) { color: var(--ink) !important; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-links > a:not(.btn)::after { display: none; }
  .nav-links .btn-quote { margin-top: 14px; }
  .site-header.scrolled .nav-toggle span,
  .nav-toggle span { background: #fff; }
  .site-header.scrolled .nav-toggle span { background: var(--ink); }
  .nav-toggle.active span { background: var(--ink); }
  .nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .brand-name { color: #fff; }

  .cards { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }

  /* Process becomes a vertical timeline */
  .steps { flex-direction: column; }
  .step { display: flex; gap: 18px; text-align: left; padding: 0 0 30px; }
  .step-num { margin: 0; flex: none; }
  .step:not(:last-child)::after {
    top: 64px; left: 31px; width: 0; height: calc(100% - 64px);
    border-top: 0; border-left: 3px dashed rgba(216, 30, 34, .4);
  }
  .step-body { padding-top: 8px; }
  .car-slide { flex-basis: 100%; }
  .car-slide img { height: 250px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-badge { right: 12px; }
  .mv { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; text-align: left; }
  .footer-bottom .container { flex-direction: column; gap: 8px; }
  .fab-quote { display: inline-block; }
  .hero-content { padding-bottom: 120px; }
}

@media (max-width: 420px) {
  .brand-name em { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .car-track { transition: none; }
}
