/* css/style.css — GoGaro Website */

:root {
  --primary:       #1565C0;
  --primary-dark:  #0D47A1;
  --primary-light: #E3F2FD;
  --accent:        #FF6D00;
  --accent-light:  #FFF3E0;
  --text:          #1A1A2E;
  --text-muted:    #6B7280;
  --text-light:    #9CA3AF;
  --bg:            #F4F6FB;
  --bg-white:      #FFFFFF;
  --border:        #E5E7EB;
  --success:       #1B5E20;
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     18px;
  --radius-xl:     24px;
  --shadow-sm:     0 2px 8px rgba(0,0,0,.06);
  --shadow-md:     0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-white);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Typography ────────────────────────────────────────────────────────── */
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem);   font-weight: 700; line-height: 1.3; }
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: 1rem;    font-weight: 600; }

.section-title {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: .4rem;
}
.section-sub {
  color: var(--text-muted);
  font-size: .95rem;
  margin-bottom: 2.5rem;
}

/* ── Layout ────────────────────────────────────────────────────────────── */
.container   { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.section     { padding: 5rem 0; }
.section-sm  { padding: 3rem 0; }
.section-bg  { background: var(--bg); }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .7rem 1.5rem; border-radius: var(--radius-md);
  font-size: .9rem; font-weight: 600; transition: all .18s; white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline {
  border: 2px solid var(--primary); color: var(--primary); background: transparent;
}
.btn-outline:hover { background: var(--primary-light); }
.btn-accent  { background: var(--accent); color: #fff; }
.btn-accent:hover  { background: #E65100; transform: translateY(-1px); }
.btn-white   { background: #fff; color: var(--primary); }
.btn-white:hover   { background: #f0f4ff; }
.btn-lg { padding: .9rem 2rem; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-sm { padding: .45rem 1rem; font-size: .82rem; }

/* ── Cards ─────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-body { padding: 1.25rem; }

/* ── Navbar ─────────────────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: .85rem 0;
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-logo {
  display: flex; align-items: center; gap: .5rem;
  font-size: 1.4rem; font-weight: 800; color: var(--primary);
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex; align-items: center; gap: .25rem; list-style: none;
}
.nav-links a {
  padding: .45rem .9rem; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 500; color: var(--text-muted);
  transition: color .15s, background .15s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); background: var(--primary-light); }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.cart-btn {
  position: relative; padding: .5rem .75rem;
  border-radius: var(--radius-sm); color: var(--text-muted);
  transition: background .15s;
}
.cart-btn:hover { background: var(--bg); color: var(--primary); }
.cart-badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.hamburger { display: none; padding: .5rem; border-radius: var(--radius-sm); }
.mobile-menu {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 200;
}
.mobile-menu-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 280px;
  background: #fff; padding: 1.5rem; overflow-y: auto;
}
.mobile-menu.open { display: block; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0D47A1 0%, #1565C0 50%, #1976D2 100%);
  color: #fff; padding: 5rem 0 4rem; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
  position: relative; z-index: 1;
}
.hero-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.15; margin-bottom: 1rem; }
.hero-subtitle { font-size: 1.1rem; opacity: .85; margin-bottom: 2rem; line-height: 1.6; }
.hero-search {
  display: flex; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; margin-bottom: 1.5rem;
}
.hero-search input {
  flex: 1; padding: 1rem 1.25rem; border: none; outline: none;
  font-size: 1rem; color: var(--text);
}
.hero-search button {
  background: var(--accent); color: #fff; padding: 1rem 1.5rem;
  font-size: .95rem; font-weight: 600; transition: background .15s;
}
.hero-search button:hover { background: #E65100; }
.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 1.6rem; font-weight: 800; }
.hero-stat .lbl { font-size: .8rem; opacity: .75; }
.hero-img { position: relative; }
.hero-img img { border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.hero-badge {
  position: absolute; background: #fff; border-radius: var(--radius-md);
  padding: .75rem 1rem; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: .6rem;
}
.hero-badge-1 { bottom: 2rem; left: -1rem; }
.hero-badge-2 { top: 2rem; right: -1rem; }
.hero-badge .icon { width: 36px; height: 36px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }

/* ── Category grid ─────────────────────────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1rem; }
.cat-card {
  background: var(--bg-white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem 1rem;
  text-align: center; cursor: pointer; transition: all .18s;
}
.cat-card:hover { border-color: var(--primary); background: var(--primary-light); transform: translateY(-3px); }
.cat-card img  { width: 52px; height: 52px; object-fit: contain; margin: 0 auto .75rem; }
.cat-card-name { font-size: .82rem; font-weight: 600; color: var(--text); }

/* ── Service cards ─────────────────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.service-card { cursor: pointer; }
.service-card-img { height: 180px; overflow: hidden; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.service-card:hover .service-card-img img { transform: scale(1.06); }
.service-card-body { padding: 1rem 1.25rem 1.25rem; }
.service-card-cat  { font-size: .75rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: .5px; margin-bottom: .3rem; }
.service-card-title { font-size: 1rem; font-weight: 700; margin-bottom: .3rem; line-height: 1.3; }
.service-card-desc  { font-size: .83rem; color: var(--text-muted); margin-bottom: .85rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.service-card-footer { display: flex; align-items: center; justify-content: space-between; }
.service-price { font-size: 1.15rem; font-weight: 800; color: var(--primary); }
.service-price small { font-size: .72rem; font-weight: 500; color: var(--text-muted); }

/* ── Stars ─────────────────────────────────────────────────────────────── */
.stars { color: #F59E0B; letter-spacing: 1px; font-size: .9rem; }
.star-count { font-size: .78rem; color: var(--text-muted); margin-left: .25rem; }

/* ── Banners / Slider ──────────────────────────────────────────────────── */
.banner-slider { position: relative; overflow: hidden; border-radius: var(--radius-xl); }
.banner-track  { display: flex; transition: transform .45s ease; }
.banner-slide  { min-width: 100%; }
.banner-slide img { width: 100%; height: 320px; object-fit: cover; }
.slider-dots   { display: flex; justify-content: center; gap: .5rem; margin-top: 1rem; }
.slider-dot    { width: 8px; height: 8px; border-radius: 4px; background: var(--border); cursor: pointer; transition: all .2s; }
.slider-dot.active { width: 24px; background: var(--primary); }

/* ── How it works ──────────────────────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.step-card  { text-align: center; }
.step-num   {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  font-size: 1.4rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem;
}
.step-title { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.step-desc  { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }

/* ── App download ──────────────────────────────────────────────────────── */
.app-section {
  background: linear-gradient(135deg, #0D47A1, #1565C0);
  color: #fff; border-radius: var(--radius-xl); padding: 3.5rem;
  display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center;
}
.app-btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.app-btn  {
  display: inline-flex; align-items: center; gap: .75rem;
  background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.3);
  color: #fff; padding: .75rem 1.25rem; border-radius: var(--radius-md);
  font-size: .85rem; transition: background .18s;
}
.app-btn:hover { background: rgba(255,255,255,.22); }
.app-btn .store-label { font-size: .7rem; opacity: .7; display: block; }
.app-btn .store-name  { font-weight: 700; font-size: .95rem; }
.app-phones { display: flex; gap: .5rem; }
.app-phones img { height: 200px; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer { background: #0D1B3E; color: #CBD5E1; padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-logo { font-size: 1.6rem; font-weight: 800; color: #fff; margin-bottom: .75rem; }
.footer-logo span { color: var(--accent); }
.footer-desc { font-size: .85rem; line-height: 1.7; opacity: .75; }
.footer-col h4 { color: #fff; font-size: .9rem; font-weight: 700; margin-bottom: 1rem; }
.footer-col ul  { list-style: none; }
.footer-col li  { margin-bottom: .5rem; }
.footer-col a   { font-size: .85rem; opacity: .75; transition: opacity .15s; }
.footer-col a:hover { opacity: 1; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: .82rem; opacity: .6; }
.footer-socials { display: flex; gap: .75rem; }
.footer-social  { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; transition: background .15s; }
.footer-social:hover { background: var(--primary); }

/* ── Toast ──────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
  background: #1A1A2E; color: #fff; padding: .85rem 1.25rem;
  border-radius: var(--radius-md); font-size: .9rem; font-weight: 500;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .6rem;
  transform: translateY(120%); transition: transform .3s;
  max-width: 320px;
}
.toast.show { transform: translateY(0); }
.toast.success { border-left: 4px solid #22C55E; }
.toast.error   { border-left: 4px solid #EF4444; }

/* ── Modal ──────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 500; display: flex; align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: #fff; border-radius: var(--radius-xl); padding: 2rem;
  width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto;
  transform: scale(.95); transition: transform .2s;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.modal-close  { padding: .4rem; border-radius: var(--radius-sm); color: var(--text-muted); transition: background .15s; }
.modal-close:hover { background: var(--bg); }

/* ── Form elements ──────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }
.form-label { display: block; font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: .4rem; }
.form-input {
  width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-md); font-size: .95rem; color: var(--text);
  outline: none; transition: border-color .15s;
  font-family: inherit;
}
.form-input:focus { border-color: var(--primary); }
.otp-inputs { display: flex; gap: .75rem; justify-content: center; }
.otp-input  {
  width: 56px; height: 60px; text-align: center; font-size: 1.6rem; font-weight: 700;
  border: 2px solid var(--border); border-radius: var(--radius-md); outline: none;
  transition: border-color .15s; font-family: inherit;
  -moz-appearance: textfield; /* Firefox: hide spinner */
}
.otp-input::-webkit-outer-spin-button,
.otp-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.otp-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }

/* ── Breadcrumb ─────────────────────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { color: var(--text-muted); }

/* ── Chips / Filters ────────────────────────────────────────────────────── */
.chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip {
  padding: .4rem 1rem; border-radius: 20px; font-size: .82rem; font-weight: 500;
  border: 1.5px solid var(--border); background: #fff; color: var(--text-muted);
  cursor: pointer; transition: all .15s;
}
.chip:hover, .chip.active { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }

/* ── Loader ──────────────────────────────────────────────────────────────── */
.spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-center { display: flex; justify-content: center; padding: 3rem 0; }
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner     { grid-template-columns: 1fr; }
  .hero-img       { display: none; }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
  .app-section    { grid-template-columns: 1fr; }
  .app-phones     { display: none; }
}
@media (max-width: 640px) {
  .nav-links, .nav-actions .btn { display: none; }
  .hamburger   { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .section     { padding: 3rem 0; }
  .hero        { padding: 3rem 0; }
}