/* ═══════════════════════════════════════════════════════
   Real iPhone Service — Styles
   ═══════════════════════════════════════════════════════ */

:root {
  --primary: #0a2540;        /* dark blue */
  --primary-light: #1a3a5c;
  --accent: #f5a623;         /* orange */
  --accent-soft: #fff4e0;
  --bg: #f4f6f9;
  --card: #ffffff;
  --text: #1c2b3a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --green: #16a34a;
  --red: #dc2626;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(10, 37, 64, 0.06);
  --maxw: 760px;
}

/* Z06-Walone (z.ttf) — local Myanmar font (Unicode) */
@font-face {
  font-family: "Z06-Walone";
  src: url("../fonts/z.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Z06-Walone", "Noto Sans Myanmar", "Pyidaungsu", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Header ---------- */
.header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }

.brand-logo {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--accent);
  display: grid; place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}

.brand-name { font-size: 17px; font-weight: 800; letter-spacing: .2px; white-space: nowrap; }
.brand-tagline { font-size: 11.5px; color: #b6c6d8; font-weight: 400; }

.nav { display: flex; gap: 6px; }

.nav-link {
  color: #fff;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 9px;
  transition: background .2s;
  white-space: nowrap;
}
.nav-link:hover { background: rgba(255,255,255,.12); }

/* ---------- Hamburger menu ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: linear-gradient(135deg, #f7b733 0%, var(--accent) 55%, #f08c00 100%);
  border: none;
  border-radius: 11px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(245, 166, 35, .32), inset 0 1px 0 rgba(255,255,255,.25);
  -webkit-tap-highlight-color: transparent;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease;
}
.hamburger:hover { box-shadow: 0 6px 16px rgba(245, 166, 35, .45), inset 0 1px 0 rgba(255,255,255,.25); }
.hamburger:active { transform: scale(.92); }
.hamburger:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.hamburger .bar {
  display: block;
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
  transition: transform .32s cubic-bezier(.68,-.55,.265,1.55), opacity .22s ease;
}
.hamburger.open .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open .bar:nth-child(2) { opacity: 0; transform: translateX(-4px); }
.hamburger.open .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero / Banner ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, #0a2540 0%, #12365c 52%, #1a4a78 100%);
  color: #fff;
  padding: 26px 0 40px;
  text-align: center;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .55;
}
.blob-1 { width: 240px; height: 240px; background: #f5a623; top: -90px; right: -60px; }
.blob-2 { width: 220px; height: 220px; background: #1877f2; bottom: -80px; left: -70px; opacity: .4; }

.hero-emoji {
  position: absolute;
  font-size: 40px;
  opacity: .18;
  filter: grayscale(.3);
}
.hero-emoji-1 { top: 40px; left: 18px; transform: rotate(-20deg); }
.hero-emoji-2 { bottom: 30px; right: 20px; transform: rotate(18deg); }

.hero-inner { position: relative; z-index: 2; }

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  padding: 8px 16px 8px 10px;
  border-radius: 999px;
  margin-bottom: 18px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hero-logo {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--accent);
  display: grid; place-items: center;
  font-size: 18px;
}
.hero-logo-img {
  width: 40px; height: 34px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 3px;
}
.hero-brand-text { text-align: left; line-height: 1.25; }
.hero-brand-name { display: block; font-size: 14px; font-weight: 800; letter-spacing: .2px; }
.hero-brand-sub { display: block; font-size: 10.5px; color: #b6c6d8; font-weight: 400; }

.hero-title-wrap { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.hero-title { font-size: 24px; font-weight: 800; margin: 0; }
.hero-sub { font-size: 13.5px; color: #c7d4e3; max-width: 520px; margin: 0 auto 16px; line-height: 1.6; }

.hero-date {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.tbadge {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.price-note {
  margin-top: 18px;
  font-size: 12px;
  color: #ffd9a0;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.search-box {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}

.search-icon {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
}

.search-input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  border-radius: 12px;
  border: none;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text);
  outline: none;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,.18);
}
.search-input::placeholder { color: #94a3b8; }

/* ---------- Search autocomplete ---------- */
.autocomplete {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 260px;
  overflow-y: auto;
  display: none;
  z-index: 60;
  text-align: left;
}
.autocomplete.open { display: block; }
.autocomplete li {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.autocomplete li:hover { background: var(--accent-soft); }
.autocomplete .ac-empty { color: var(--text-muted); cursor: default; }

/* ---------- Chips ---------- */
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 0 0 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }

/* ---------- Toolbar (sticky view toggle + chips) ---------- */
.toolbar {
  position: sticky;
  top: 70px;
  z-index: 40;
  background: var(--bg);
  padding-top: 12px;
  box-shadow: 0 6px 14px -8px rgba(10,37,64,.12);
}

.view-toggle {
  display: flex;
  gap: 6px;
  padding: 0 0 10px;
}
.vt-btn {
  flex: 1;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background .18s, color .18s, border-color .18s, box-shadow .18s;
}
.vt-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(10,37,64,.22);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--card);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all .18s;
}
.chip-icon { font-size: 14px; }

.chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ---------- Price list ---------- */
#priceList { padding: 12px 0 40px; }

/* ---------- Series grouping (model view) ---------- */
.series-group { margin-bottom: 6px; }

.series-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 2px 10px;
  width: 100%;
  border: none;
  background: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border-radius: 10px;
}
.series-head:active { background: #f3f6fa; }
.series-group:first-child .series-head { padding-top: 4px; }

.series-arrow {
  color: var(--text-muted);
  font-size: 12px;
  transition: transform .18s;
}
.series-group.closed .series-arrow { transform: rotate(-90deg); }

.series-body { display: none; }
.series-body.open { display: block; }

.series-label {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--primary);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.series-count {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.series-line {
  flex: 1;
  height: 1px;
  background: var(--border);
  border-radius: 1px;
}

.price-section {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.price-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  background: var(--accent-soft);
  border-bottom: 1px solid var(--border);
}

.price-section-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 20px;
}

.price-section-title { font-size: 15.5px; font-weight: 700; color: var(--primary); }
.price-section-note { font-size: 12px; color: var(--text-muted); }

/* ---------- Accordion ---------- */
.price-section-head.acc-head {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s ease;
}
.price-section-head.acc-head:hover { background: #ffe9c7; }
.acc-head-text { flex: 1; min-width: 0; }
.acc-arrow {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 14px;
  color: var(--text-muted);
  transition: transform .25s ease;
}
.price-section.open .acc-arrow { transform: rotate(180deg); }
.acc-body { display: none; }
.price-section.open .acc-body { display: block; }

.price-table { padding: 4px 0; }

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
}
.price-row:last-child { border-bottom: none; }
.price-row.clickable { cursor: pointer; transition: background .15s; }
.price-row.clickable:active { background: #f3f6fa; }
.price-row.clickable:hover { background: #f8fafc; }

.price-left { min-width: 0; }

.price-model { font-size: 13.5px; font-weight: 500; color: var(--text); }

.price-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.meta-warranty { background: #e7f6ec; color: var(--green); }
.meta-duration { background: #eef2ff; color: #3b5bdb; }

.price {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--green);
  white-space: nowrap;
}

.price-na {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ── 🔥 Promotion (လျှော့ဈေး) ── */
.price-stack { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.price-line { display: flex; align-items: center; gap: 7px; }
.price-old {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: line-through;
  white-space: nowrap;
}
.price-promo { color: var(--red); font-size: 15px; font-weight: 900; white-space: nowrap; }
.promo-tag {
  display: inline-block;
  background: #fde8e8;
  color: #b91c1c;
  border: 1px solid #fecaca;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ── Detail Modal (အသေးစိတ်ကြည့်ရန် popup) ── */
body.modal-open { overflow: hidden; }
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 20, 36, .55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 200;
}
.modal-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 18px;
  padding: 26px 22px 22px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  max-height: 85vh;
  overflow-y: auto;
  animation: modalIn .2s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 34px; height: 34px;
  border: none;
  border-radius: 10px;
  background: #eef1f5;
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.modal-close:active { transform: scale(.92); }
.md-icon { font-size: 34px; text-align: center; }
.md-cat {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .4px;
  margin-top: 6px;
}
.md-model { text-align: center; font-size: 18px; font-weight: 800; margin: 2px 0 8px; }
.modal-price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 4px 0 14px;
}
.md-rows { border-top: 1px dashed var(--border); padding-top: 12px; margin-top: 4px; }
.md-row {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13.5px;
}
.md-row:last-child { border-bottom: none; }
.md-label { color: var(--text-muted); font-weight: 600; white-space: nowrap; min-width: 76px; }
.md-value { font-weight: 700; }
.md-detail .md-value { font-weight: 500; line-height: 1.6; }
.md-actions { text-align: center; margin-top: 16px; }
.modal-call {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: 12px;
  box-shadow: 0 5px 14px rgba(245,166,35,.35);
}

/* ---------- No results ---------- */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.no-results-icon { font-size: 40px; margin-bottom: 10px; }
.no-results-text { font-size: 14px; }

/* ---------- Contact ---------- */
.contact {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 40px 0 48px;
}

.section-title {
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.section-sub {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s, transform .15s;
}
.contact-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.contact-card { min-width: 0; }

.contact-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--accent-soft);
  display: grid; place-items: center;
  font-size: 19px;
}

.contact-label { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.contact-value { font-size: 13.5px; font-weight: 600; color: var(--text); word-break: break-word; }

/* ---------- Footer ---------- */
.footer {
  background: var(--primary);
  color: #9fb2c5;
  padding: 18px 0;
  text-align: center;
  font-size: 12.5px;
}

/* ---------- Responsive ---------- */
@media (min-width: 600px) {
  .hero-title { font-size: 30px; }
  .hero { padding: 40px 0 54px; }
  .hero-brand { margin-bottom: 24px; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .price-row { padding: 13px 18px; }
}

@media (max-width: 380px) {
  .brand-name { font-size: 14.5px; }
  .nav-link { padding: 7px 9px; font-size: 12.5px; }
  .hero-title { font-size: 20px; }
  .hero-date { font-size: 10.5px; }
  .tbadge { font-size: 10.5px; padding: 4px 10px; }
}

/* ══════ iPhone / Mobile-first enhancements ══════ */

/* Safe area (iPhone notch / home indicator) */
.footer { padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }

/* Bigger touch targets on mobile */
@media (max-width: 599px) {
  .chip { padding: 11px 16px; font-size: 13.5px; }
  .price-row { min-height: 54px; }
}

/* ---------- Hamburger menu (mobile) ---------- */
@media (max-width: 599px) {
  .hamburger { display: flex; }

  .nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    background: linear-gradient(180deg, #0c2b4c 0%, var(--primary) 100%);
    padding: 12px 16px 18px;
    border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 18px 34px rgba(0,0,0,.32);
    /* hidden by default — animated open */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-14px);
    pointer-events: none;
    transition: opacity .3s ease, transform .3s cubic-bezier(.22,1,.36,1), visibility .3s;
  }
  .nav.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-link {
    padding: 13px 14px;
    font-size: 15px;
    border-radius: 10px;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .28s ease, transform .28s ease, background .2s ease;
  }
  .nav.open .nav-link { opacity: 1; transform: translateY(0); }
  .nav.open .nav-link:nth-child(1) { transition-delay: .05s; }
  .nav.open .nav-link:nth-child(2) { transition-delay: .11s; }
  .nav-link:active { background: rgba(255,255,255,.14); }
}

/* Prevent iOS input zoom (inputs >= 16px) */
.search-input { font-size: 16px; }
input[type=text] { font-size: 16px; }

/* Disable tap highlight flashes on iOS */
a, button { -webkit-tap-highlight-color: transparent; }

/* smoother momentum scrolling for the sticky chips row */
.chips { -webkit-overflow-scrolling: touch; }