/* ============================================================
   Motorwala — motorwala.in
   Palette: deep ink + warm cream + brass accent
   ============================================================ */

:root{
  --ink:        #14181d;
  --ink-soft:   #2c333c;
  --body:       #4a535f;
  --line:       #e2ddd4;
  --cream:      #faf8f5;
  --cream-deep: #f2ede5;
  --white:      #ffffff;
  --brass:      #a8762c;
  --brass-lit:  #c9932f;
  --brass-wash: #f6efe1;

  --wrap: 1180px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(20,24,29,.05), 0 4px 14px rgba(20,24,29,.05);
  --shadow-md: 0 2px 6px rgba(20,24,29,.06), 0 18px 44px rgba(20,24,29,.09);

  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }

html{ scroll-behavior:smooth; scroll-padding-top:88px; -webkit-text-size-adjust:100%; }

body{
  margin:0;
  font-family:var(--sans);
  font-size:17px;
  line-height:1.65;
  color:var(--body);
  background:var(--cream);
  -webkit-font-smoothing:antialiased;
}

img{ max-width:100%; display:block; }

h1,h2,h3,h4{
  font-family:var(--serif);
  color:var(--ink);
  font-weight:500;
  line-height:1.15;
  letter-spacing:-.015em;
  margin:0;
}

p{ margin:0; }
a{ color:inherit; }

.wrap{ width:100%; max-width:var(--wrap); margin-inline:auto; padding-inline:28px; }

.skip{
  position:absolute; left:-9999px; top:0; z-index:200;
  background:var(--ink); color:var(--white); padding:12px 18px; border-radius:0 0 var(--r-sm) 0;
}
.skip:focus{ left:0; }

/* ── Eyebrow ─────────────────────────────────────────────── */
.eyebrow{
  font-size:12px; font-weight:600; letter-spacing:.16em; text-transform:uppercase;
  color:var(--brass); margin-bottom:16px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  font-family:var(--sans); font-size:15px; font-weight:600; letter-spacing:.01em;
  padding:15px 28px; border-radius:100px; border:1px solid transparent;
  text-decoration:none; cursor:pointer;
  transition:transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn svg{ width:17px; height:17px; }
.btn-solid{ background:var(--ink); color:var(--cream); }
.btn-solid:hover{ background:#000; transform:translateY(-2px); box-shadow:var(--shadow-md); }
.btn-ghost{ background:transparent; color:var(--ink); border-color:var(--line); }
.btn-ghost:hover{ border-color:var(--ink); transform:translateY(-2px); }
.btn-sm{ padding:11px 20px; font-size:14px; }
.btn-block{ width:100%; }

/* ── Header ──────────────────────────────────────────────── */
.site-header{
  position:sticky; top:0; z-index:100;
  background:rgba(250,248,245,.82);
  backdrop-filter:saturate(1.6) blur(14px);
  border-bottom:1px solid transparent;
  transition:border-color .25s ease, background .25s ease;
}
.site-header.is-scrolled{ border-bottom-color:var(--line); background:rgba(250,248,245,.94); }

.header-inner{ display:flex; align-items:center; gap:34px; height:74px; }

.brand{ display:flex; align-items:center; gap:11px; text-decoration:none; margin-right:auto; }
.brand-mark{ display:inline-block; width:46px; height:46px; flex:none; }
.brand-mark img{ width:100%; height:100%; display:block; object-fit:contain; }
.brand-text{ display:flex; flex-direction:column; line-height:1.05; }
.brand-text strong{ font-family:var(--serif); font-size:21px; font-weight:600; color:var(--ink); letter-spacing:-.02em; }
.brand-text em{ font-style:normal; font-size:11px; letter-spacing:.08em; color:var(--brass); }

.site-nav{ display:flex; gap:30px; }
.site-nav a{
  font-size:15px; font-weight:500; color:var(--ink-soft); text-decoration:none;
  position:relative; padding:6px 0; transition:color .18s ease;
}
.site-nav a::after{
  content:''; position:absolute; left:0; bottom:0; height:1.5px; width:0;
  background:var(--brass); transition:width .22s ease;
}
.site-nav a:hover{ color:var(--ink); }
.site-nav a:hover::after{ width:100%; }

.nav-toggle{
  display:none; flex-direction:column; gap:5px; justify-content:center;
  width:42px; height:42px; padding:0 10px;
  background:transparent; border:1px solid var(--line); border-radius:var(--r-sm); cursor:pointer;
}
.nav-toggle span{ height:1.5px; background:var(--ink); border-radius:2px; transition:transform .2s ease, opacity .2s ease; }

/* ── Hero ────────────────────────────────────────────────── */
.hero{
  position:relative; overflow:hidden;
  padding:104px 0 92px;
  background:
    radial-gradient(900px 460px at 82% 8%, var(--brass-wash) 0%, transparent 62%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
}
.hero-grid{
  display:grid; grid-template-columns:1.05fr .95fr; gap:70px; align-items:center;
}

h1{ font-size:clamp(2.5rem, 5vw, 4rem); margin-bottom:26px; }
h1 .accent{ color:var(--brass); font-style:italic; }

.lede{ font-size:19px; max-width:33em; margin-bottom:36px; }

.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom:44px; }

.hero-points{ list-style:none; margin:0; padding:0; display:grid; gap:12px; }
.hero-points li{ display:flex; align-items:center; gap:12px; font-size:15.5px; color:var(--ink-soft); }
.hero-points span{
  width:22px; height:22px; flex:none; border-radius:50%;
  background:var(--brass); color:var(--white);
  display:grid; place-items:center; font-size:11px; font-weight:700;
}

.hero-visual{ position:relative; }

.hero-badge{
  position:absolute; left:-26px; bottom:36px;
  background:var(--ink); color:var(--cream);
  padding:18px 26px; border-radius:var(--r-md);
  box-shadow:var(--shadow-md);
  display:flex; flex-direction:column; line-height:1.3;
}
.hero-badge strong{ font-family:var(--serif); font-size:19px; font-weight:600; }
.hero-badge span{ font-size:13px; color:var(--brass-lit); letter-spacing:.03em; }

/* ── Photo slots (graceful when image missing) ───────────── */
.photo{
  margin:0; position:relative; overflow:hidden;
  border-radius:var(--r-lg); background:var(--cream-deep);
  box-shadow:var(--shadow-md);
}
.photo img{ width:100%; height:100%; object-fit:cover; }
.photo figcaption{ display:none; }

.photo-hero{ aspect-ratio:4/3; }
.photo-hero img{ object-position:center 58%; }
.photo-app{ aspect-ratio:4/3; border-radius:var(--r-md); box-shadow:var(--shadow-sm); }

/* placeholder state — shown until a real photo is dropped in */
.photo.is-empty img{ display:none; }
.photo.is-empty{
  background:
    repeating-linear-gradient(135deg, rgba(168,118,44,.07) 0 12px, transparent 12px 24px),
    linear-gradient(150deg, #ece5da 0%, #ddd3c4 100%);
  border:1px solid var(--line);
  display:grid; place-items:center;
}
.photo.is-empty::before{
  content:''; width:64px; height:64px; border-radius:50%;
  border:1.5px dashed var(--brass); opacity:.55;
}
.photo.is-empty figcaption{
  display:block; position:absolute; bottom:16px; left:0; right:0; text-align:center;
  font-family:var(--sans); font-size:12px; letter-spacing:.08em; text-transform:uppercase;
  color:var(--brass); opacity:.85;
}

/* ── Trust strip ─────────────────────────────────────────── */
.strip{ background:var(--ink); color:var(--cream); padding:34px 0; }
.strip-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:26px; }
.strip-grid div{ display:flex; flex-direction:column; gap:3px; position:relative; padding-left:22px; }
.strip-grid div::before{
  content:''; position:absolute; left:0; top:6px; bottom:6px; width:2px;
  background:var(--brass); border-radius:2px;
}
.strip-grid strong{ font-family:var(--serif); font-size:19px; font-weight:600; color:var(--white); }
.strip-grid span{ font-size:14px; color:#a9b1bd; }

/* ── Sections ────────────────────────────────────────────── */
.section{ padding:104px 0; }
.section-muted{ background:var(--cream-deep); }
.section-dark{ background:var(--ink); color:#b3bcc8; }
.section-dark h2, .section-dark h3{ color:var(--white); }
.section-dark .eyebrow{ color:var(--brass-lit); }

.section-head{ max-width:44rem; margin-bottom:60px; }
.section-head-center{ margin-inline:auto; text-align:center; }
.section-head h2{ font-size:clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom:20px; }
.section-lede{ font-size:17.5px; }

/* ── Cards ───────────────────────────────────────────────── */
.cards{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }

.card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--r-lg);
  padding:36px 32px 30px;
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover{ transform:translateY(-5px); box-shadow:var(--shadow-md); border-color:#d8cfc0; }
.card-icon{
  display:grid; place-items:center; width:56px; height:56px; margin-bottom:22px;
  border-radius:var(--r-md); background:var(--brass-wash); color:var(--brass);
}
.card-icon svg{ width:30px; height:30px; }
.card h3{ font-size:21px; margin-bottom:11px; }
.card p{ font-size:15.5px; margin-bottom:20px; }

.chips{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:7px; }
.chips li{
  font-size:12.5px; font-weight:500; color:var(--ink-soft);
  background:var(--cream-deep); border:1px solid var(--line);
  padding:5px 11px; border-radius:100px;
}

/* ── Showcase band (full-bleed shop shelf) ───────────────── */
.showcase{ background:var(--ink); }
.showcase-fig{ margin:0; position:relative; }
.showcase-fig img{
  width:100%; height:clamp(340px, 46vw, 560px); object-fit:cover; display:block;
  filter:brightness(.84) saturate(1.06);
}
.showcase-fig figcaption{
  position:absolute; inset:auto 0 0 0;
  padding:96px 28px 46px;
  background:linear-gradient(to top,
    rgba(9,12,16,.97) 0%, rgba(9,12,16,.93) 34%, rgba(9,12,16,.72) 62%, rgba(9,12,16,0) 100%);
  color:#cdd5df;
}
.showcase-fig figcaption > *{ max-width:var(--wrap); margin-inline:auto; }
.showcase-fig .eyebrow{ color:var(--brass-lit); margin-bottom:10px; }
.showcase-fig h2{ color:#fff; font-size:clamp(1.6rem,3vw,2.4rem); margin-bottom:12px; }
.showcase-fig figcaption p:last-child{ font-size:16.5px; max-width:56ch; }

/* brands photo */
.photo-brands{ aspect-ratio:16/9; margin-top:44px; border-radius:var(--r-lg); }

/* ── Steps ───────────────────────────────────────────────── */
.steps{
  list-style:none; margin:0 0 64px; padding:0;
  display:grid; grid-template-columns:repeat(4,1fr); gap:0;
  border-top:1px solid rgba(255,255,255,.12);
}
.steps li{
  padding:36px 30px 34px 0; position:relative;
  border-right:1px solid rgba(255,255,255,.12);
}
.steps li:last-child{ border-right:0; }
.steps li:not(:first-child){ padding-left:30px; }
.steps li::before{
  content:''; position:absolute; top:-3px; left:0; width:5px; height:5px;
  border-radius:50%; background:var(--brass-lit);
}
.steps li:not(:first-child)::before{ left:30px; }
.step-num{
  display:block; font-family:var(--serif); font-size:13px; font-weight:600;
  letter-spacing:.14em; color:var(--brass-lit); margin-bottom:14px;
}
.steps h3{ font-size:20px; margin-bottom:10px; }
.steps p{ font-size:15px; }

.pledge{
  text-align:center; max-width:40rem; margin-inline:auto;
  padding:44px 32px; border:1px solid rgba(255,255,255,.14); border-radius:var(--r-lg);
  background:linear-gradient(180deg, rgba(255,255,255,.04), transparent);
}
.pledge p{
  font-family:var(--serif); font-style:italic; font-size:clamp(1.35rem,2.6vw,1.85rem);
  line-height:1.35; color:var(--white); margin-bottom:14px;
}
.pledge span{ font-size:13px; letter-spacing:.14em; text-transform:uppercase; color:var(--brass-lit); }

/* ── Applications ────────────────────────────────────────── */
.apps{ display:grid; grid-template-columns:repeat(3,1fr); gap:30px; }
.app{
  background:var(--white); border:1px solid var(--line); border-radius:var(--r-lg);
  overflow:hidden; display:flex; flex-direction:column;
  transition:transform .25s ease, box-shadow .25s ease;
}
.app:hover{ transform:translateY(-5px); box-shadow:var(--shadow-md); }
.app .photo{ border-radius:0; box-shadow:none; }
.app-body{ padding:28px 28px 30px; }
.app h3{ font-size:22px; margin-bottom:10px; }
.app p{ font-size:15.5px; margin-bottom:18px; }
.app ul{ list-style:none; margin:0; padding:0; display:grid; gap:9px; }
.app li{ position:relative; padding-left:20px; font-size:14.5px; color:var(--ink-soft); }
.app li::before{
  content:''; position:absolute; left:0; top:9px; width:8px; height:8px;
  border-radius:50%; border:1.5px solid var(--brass);
}

/* ── Brands ──────────────────────────────────────────────── */
.brands-wrap{ display:grid; grid-template-columns:1fr 1fr; gap:70px; align-items:center; }
.brands-copy h2{ font-size:clamp(1.7rem,3vw,2.35rem); margin-bottom:20px; }
.brand-list{
  list-style:none; margin:0; padding:0;
  display:grid; grid-template-columns:repeat(2,1fr); gap:14px;
}
.brand-list li{
  display:grid; place-items:center; height:82px;
  background:var(--white); border:1px solid var(--line); border-radius:var(--r-md);
  font-family:var(--serif); font-size:18px; font-weight:600; color:var(--ink);
  letter-spacing:.01em;
  transition:border-color .2s ease, color .2s ease;
}
.brand-list li:hover{ border-color:var(--brass); color:var(--brass); }

/* ── Contact ─────────────────────────────────────────────── */
.contact-grid{ display:grid; grid-template-columns:1fr .85fr; gap:70px; align-items:start; }
.contact-copy h2{ font-size:clamp(1.8rem,3.2vw,2.5rem); margin-bottom:20px; }

.contact-list{ list-style:none; margin:36px 0 0; padding:0; display:grid; gap:22px; }
.contact-list li{ display:flex; gap:16px; align-items:flex-start; }
.ci{
  width:44px; height:44px; flex:none; border-radius:var(--r-sm);
  background:var(--brass-wash); color:var(--brass); display:grid; place-items:center;
}
.ci svg{ width:21px; height:21px; }
.contact-list strong{ display:block; font-size:13px; letter-spacing:.1em; text-transform:uppercase; color:var(--brass); margin-bottom:2px; }
.contact-list a, .contact-list div span{ font-size:16.5px; color:var(--ink); text-decoration:none; }
.contact-list a:hover{ color:var(--brass); }

.contact-form{
  background:var(--white); border:1px solid var(--line); border-radius:var(--r-lg);
  padding:36px 34px; box-shadow:var(--shadow-sm);
}
.contact-form h3{ font-size:22px; margin-bottom:24px; }
.field{ margin-bottom:18px; }
.field label{
  display:block; font-size:13px; font-weight:600; letter-spacing:.03em;
  color:var(--ink-soft); margin-bottom:7px;
}
.field .opt{ font-weight:400; color:#8d97a4; }
.field input, .field select, .field textarea{
  width:100%; font-family:var(--sans); font-size:15.5px; color:var(--ink);
  padding:13px 15px; background:var(--cream);
  border:1px solid var(--line); border-radius:var(--r-sm);
  transition:border-color .18s ease, box-shadow .18s ease;
}
.field textarea{ resize:vertical; }
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color:var(--brass); box-shadow:0 0 0 3px rgba(168,118,44,.12);
}
.field input::placeholder, .field textarea::placeholder{ color:#a4adb9; }
.form-note{ font-size:13px; color:#8d97a4; text-align:center; margin-top:14px; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer{ background:var(--ink); color:#98a2af; padding:72px 0 0; }
.footer-grid{
  display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:44px; padding-bottom:56px;
}
.footer-brand .brand-mark{ color:var(--brass-lit); margin-bottom:14px; }
.footer-brand strong{ font-family:var(--serif); font-size:22px; font-weight:600; color:var(--white); }
.footer-tag{ font-size:14.5px; margin-top:10px; max-width:26em; }

.footer-col h4{
  font-family:var(--sans); font-size:12px; font-weight:600; letter-spacing:.14em;
  text-transform:uppercase; color:var(--brass-lit); margin-bottom:16px;
}
.footer-col a, .footer-col span{
  display:block; font-size:15px; color:#98a2af; text-decoration:none; margin-bottom:10px;
  transition:color .18s ease;
}
.footer-col a:hover{ color:var(--white); }

.footer-base{
  display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap;
  border-top:1px solid rgba(255,255,255,.1); padding-block:24px 30px;
  font-size:13.5px; color:#78828f;
}
.footer-base .credits{ font-size:12.5px; color:#69737f; text-align:center; }
.footer-base .credits a{ color:#8a94a1; }

/* ── Reveal animation ────────────────────────────────────── */
.reveal{ opacity:0; transform:translateY(18px); transition:opacity .55s ease, transform .55s ease; }
.reveal.in{ opacity:1; transform:none; }

@media (prefers-reduced-motion:reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  html{ scroll-behavior:auto; }
  *{ animation:none !important; transition:none !important; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width:1040px){
  .cards, .apps{ grid-template-columns:repeat(2,1fr); }
  .steps{ grid-template-columns:repeat(2,1fr); }
  .steps li{ border-bottom:1px solid rgba(255,255,255,.12); }
  .steps li:nth-child(2n){ border-right:0; }
  .steps li:nth-child(n+3){ border-bottom:0; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}

@media (max-width:900px){
  .hero-grid, .brands-wrap, .contact-grid{ grid-template-columns:1fr; gap:48px; }
  .hero{ padding:72px 0 76px; }
  .hero-visual{ max-width:460px; }
  .hero-badge{ left:auto; right:-8px; }
  .strip-grid{ grid-template-columns:repeat(2,1fr); gap:22px; }

  .site-nav{
    position:absolute; top:74px; left:0; right:0;
    flex-direction:column; gap:0;
    background:var(--cream); border-bottom:1px solid var(--line);
    padding:8px 28px 20px;
    display:none;
  }
  body.nav-open .site-nav{ display:flex; }
  .site-nav a{ padding:14px 0; border-bottom:1px solid var(--line); }
  .site-nav a:last-child{ border-bottom:0; }
  .nav-toggle{ display:flex; }
  .header-cta{
    width:42px; height:42px; padding:0; border-radius:50%;
    flex:none; gap:0;
  }
  .header-cta span{ display:none; }
  .header-cta svg{ width:19px; height:19px; }
  .header-inner{ gap:12px; }
}

@media (max-width:640px){
  body{ font-size:16px; }
  .wrap{ padding-inline:20px; }
  .section{ padding:72px 0; }
  .cards, .apps, .steps, .footer-grid{ grid-template-columns:1fr; }
  .steps li{ padding:28px 0 26px !important; border-right:0; border-bottom:1px solid rgba(255,255,255,.12); }
  .steps li::before{ left:0 !important; }
  .steps li:last-child{ border-bottom:0; }
  .brand-list{ grid-template-columns:repeat(2,1fr); }
  .contact-form{ padding:28px 22px; }
  .footer-base{ flex-direction:column; gap:6px; }
  .hero-badge{ position:static; margin-top:18px; align-items:flex-start; }
}
