/* =============================================================
   Bali Electric Motorbike & Sur Ron Rental
   Shared stylesheet — plain CSS, no build step.
   Edit design tokens in :root to re-skin the whole site.
   ============================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
ul, ol { padding-left: 1.25rem; }

/* ---------- Design tokens ---------- */
:root {
  --ink:        #16181d;
  --ink-soft:   #4a4f5a;
  --line:       #e4e6eb;
  --paper:      #ffffff;
  --paper-2:    #f6f7f9;
  --paper-3:    #eef0f3;
  --dark:       #101317;
  --dark-2:     #191d23;

  --volt:       #c8ff2b;   /* electric lime accent */
  --volt-ink:   #16181d;   /* text on --volt */
  --wa:         #25d366;   /* WhatsApp green */
  --wa-dark:    #1da851;
  --ig:         #d62976;   /* Instagram accent */

  --focus:      #2b6fff;

  --maxw:       1120px;
  --radius:     14px;
  --radius-sm:  10px;
  --shadow:     0 1px 2px rgba(16,19,23,.06), 0 12px 32px -12px rgba(16,19,23,.18);
  --shadow-sm:  0 1px 2px rgba(16,19,23,.06), 0 6px 16px -10px rgba(16,19,23,.16);

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

/* ---------- Base ---------- */
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  font-size: 1.0625rem;
}
h1, h2, h3, h4 { line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); }
p { color: var(--ink-soft); }
strong { color: var(--ink); }

a { text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.section { padding-block: clamp(3rem, 8vw, 5.5rem); }
.section--tight { padding-block: clamp(2rem, 5vw, 3rem); }
.section--paper-2 { background: var(--paper-2); }
.section--dark { background: var(--dark); color: #eef0f3; }
.section--dark p { color: #b7bdc9; }
.section--dark h2, .section--dark h3, .section--dark strong { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .75rem;
}
.section--dark .eyebrow { color: var(--volt); }

.lead { font-size: 1.15rem; max-width: 60ch; }
.center { text-align: center; }
.center .lead, .center p { margin-inline: auto; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.btn--wa { background: var(--wa); color: #fff; box-shadow: var(--shadow-sm); }
.btn--wa:hover { background: var(--wa-dark); }
.btn--ig {
  color: #fff;
  background: #d62976;
  background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
  box-shadow: var(--shadow-sm);
}
.btn--ig:hover { filter: brightness(1.06); }
.btn--volt { background: var(--volt); color: var(--volt-ink); box-shadow: var(--shadow-sm); }
.btn--volt:hover { filter: brightness(1.04); }
.btn--ghost { background: transparent; border-color: currentColor; }
.btn--ghost:hover { background: rgba(0,0,0,.05); }
.section--dark .btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn--lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; justify-content: center; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }
.center .btn-row { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand__logo { display: none; height: 48px; width: auto; }
.brand.has-logo .brand__logo { display: block; }
.brand.has-logo .brand__mark,
.brand.has-logo .brand__text { display: none; }
.site-footer .brand.has-logo .brand__logo { height: 68px; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--volt);
  color: var(--volt-ink);
  font-weight: 900;
}
.brand__mark svg { width: 20px; height: 20px; }

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { font-weight: 600; font-size: .97rem; color: var(--ink); }
.nav a:hover { color: #000; }
.nav__cta { display: inline-flex; gap: .5rem; }
.nav__cta a:hover { text-decoration: none; }
.nav__cta .btn--ig { padding-inline: .85rem; }
.nav__ig-label { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .5rem;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: .5rem 0 1rem;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .8rem clamp(1rem, 4vw, 2rem); border-top: 1px solid var(--line); }
  .nav__cta { margin: .8rem clamp(1rem, 4vw, 2rem) 0; flex-direction: column; gap: .6rem; }
  .nav__cta .btn { width: 100%; justify-content: center; }
  .nav__cta .btn--ig { padding-inline: 1.4rem; }
  .nav__ig-label { display: inline; }
}

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 500px at 75% -10%, rgba(200,255,43,.14), transparent 60%), var(--dark);
  color: #eef0f3;
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
}
.hero h1 { color: #fff; }
.hero p { color: #c3c9d4; font-size: 1.15rem; max-width: 54ch; }
.hero .btn-row { margin-top: 1.8rem; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: var(--dark-2);
  aspect-ratio: 1 / 1;
}
.hero__media img { width: 100%; height: 100%; object-fit: contain; }
.hero__media--wide { aspect-ratio: 3 / 2; }
.hero__points { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .55rem; }
.hero__points li { display: flex; gap: .6rem; color: #c3c9d4; }
.hero__points svg { width: 1.2rem; height: 1.2rem; color: var(--volt); flex: none; margin-top: .2rem; }
@media (max-width: 820px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
}

/* ---------- Generic media placeholder ---------- */
.ph {
  display: grid;
  place-items: center;
  text-align: center;
  background:
    repeating-linear-gradient(45deg, var(--paper-3) 0 12px, var(--paper-2) 12px 24px);
  color: var(--ink-soft);
  border: 1px dashed #c7ccd6;
  border-radius: var(--radius);
  padding: 1.5rem;
  font-size: .9rem;
  aspect-ratio: 4 / 3;
}
.ph span { max-width: 30ch; }
.hero__media.ph { border-color: rgba(255,255,255,.18); background:
    repeating-linear-gradient(45deg, #1c2128 0 12px, #171b21 12px 24px); color:#8b93a1; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .4rem; }
.card p { font-size: .98rem; }
.card__media { border-radius: var(--radius-sm); overflow: hidden; margin: -.4rem -.4rem 1rem; aspect-ratio: 1 / 1; position: relative; background: var(--paper-2); }
.card__media.ph { aspect-ratio: 1 / 1; margin: -.4rem -.4rem 1rem; }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card--link { transition: transform .12s ease, box-shadow .12s ease; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.card__tag {
  display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: .5rem;
}

/* numbered steps */
.steps { counter-reset: step; display: grid; gap: 1.1rem; }
.steps li { list-style: none; display: flex; gap: 1rem; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  flex: none;
  width: 2.1rem; height: 2.1rem;
  display: grid; place-items: center;
  background: var(--volt); color: var(--volt-ink);
  border-radius: 999px; font-weight: 800;
}
.steps ol { padding: 0; }

/* feature list with checks */
.checks { list-style: none; padding: 0; display: grid; gap: .7rem; }
.checks li { display: flex; gap: .65rem; }
.checks li::before {
  content: "";
  flex: none; margin-top: .35rem;
  width: 1rem; height: 1rem;
  background: var(--volt);
  border-radius: 4px;
  clip-path: polygon(14% 44%, 0 60%, 40% 100%, 100% 16%, 84% 0, 39% 66%);
}

/* ---------- Spec table ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .spec { min-width: 360px; }
.table-scroll .spec th, .table-scroll .spec td { padding: .7rem .6rem; font-size: .95rem; }
.table-scroll .spec th:first-child { width: 26%; }
.spec {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec th, .spec td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
.spec th { width: 40%; background: var(--paper-2); font-weight: 700; color: var(--ink); vertical-align: top; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .75rem; max-width: 780px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  padding: 0 1.1rem;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 0;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 700; font-size: 1.3rem; line-height: 1; color: var(--ink-soft); }
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details > p, .faq details > ul { padding: 1rem 0; font-size: .98rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .88rem; color: var(--ink-soft); padding-top: 1.25rem; }
.breadcrumb ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumb li::after { content: "\203A"; margin-left: .4rem; color: #b7bdc9; }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--ink-soft); }

/* ---------- Prose (guides) ---------- */
.prose { max-width: 72ch; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { display: grid; gap: .5rem; }
.prose li { color: var(--ink-soft); }
.prose a { color: var(--focus); text-decoration: underline; text-underline-offset: 2px; }
.prose .callout {
  border: 1px solid var(--line);
  border-left: 4px solid var(--volt);
  background: var(--paper-2);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
}
.prose .callout p { color: var(--ink); }
.prose .callout strong { display: block; margin-bottom: .25rem; }

/* Placeholder flag for content that needs real business data */
.needs-data {
  border: 1px solid #f0c36d;
  background: #fff8e8;
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-size: .95rem;
  color: #6b4e12;
}
.needs-data strong { color: #6b4e12; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--dark); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #c3c9d4; max-width: 52ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 1.6rem; }

/* ---------- Areas grid ---------- */
.areas { display: flex; flex-wrap: wrap; gap: .6rem; }
.areas a {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: .5rem 1rem;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
}
.areas a:hover { border-color: var(--ink); text-decoration: none; }
.section--dark .areas a { background: var(--dark-2); border-color: rgba(255,255,255,.14); color:#eef0f3; }
.section--dark .areas a:hover { border-color: var(--volt); }

/* ---------- Reviews ---------- */
.review { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.review__stars { color: #f5a623; letter-spacing: 2px; margin-bottom: .5rem; }
.review p { color: var(--ink); font-size: 1rem; }
.review__by { margin-top: .9rem; font-weight: 700; font-size: .9rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #aab1be; padding-block: 3.5rem 2rem; }
.site-footer a { color: #d3d8e0; }
.site-footer a:hover { color: #fff; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 800px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .9rem; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: .5rem; font-size: .95rem; }
.site-footer__bottom {
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .85rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
}

/* ---------- Floating social buttons (always visible, bottom-right) ---------- */
.social-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.social-float__btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.45);
}
.social-float__btn svg { width: 1.6rem; height: 1.6rem; }
.social-float__btn:hover { text-decoration: none; filter: brightness(1.05); }
.social-float__btn--wa { background: var(--wa); }
.social-float__btn--ig {
  background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
}
/* nudge in from the very edge on wider screens */
@media (min-width: 901px) { .social-float { right: 1.5rem; bottom: 1.5rem; } }

/* ---------- Utilities ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--volt); color: var(--volt-ink);
  padding: .75rem 1rem; border-radius: 0 0 8px 0; font-weight: 700; z-index: 100;
}
.skip-link:focus { left: 0; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
