/* ============================================================
   Kinara Phone Repairs — Custom Stylesheet
   Warm Amber + Charcoal palette, hand-crafted feel
   ============================================================ */

:root {
  /* Core brand palette */
  --brand:         #E8751A;        /* amber-orange */
  --brand-dark:    #C45E0A;
  --brand-light:   #F59742;
  --accent:        #1A73E8;        /* trust blue */
  --accent-light:  #4A9BF5;

  /* Backgrounds */
  --bg:            #141414;
  --bg-2:          #1E1E1E;
  --bg-3:          #252525;

  /* Borders */
  --border:        rgba(255,255,255,0.08);
  --border-hover:  rgba(232,117,26,0.45);

  /* Text */
  --text:          #F0EDE8;
  --text-sub:      #A39E97;
  --text-dim:      #6E6860;

  /* Shadows */
  --shadow-sm:  0 2px 8px  rgba(0,0,0,0.35);
  --shadow:     0 6px 24px rgba(0,0,0,0.45);
  --shadow-lg:  0 14px 48px rgba(0,0,0,0.55);
  --glow:       0 0 20px rgba(232,117,26,0.25);

  /* Shape */
  --r:  10px;
  --r-lg: 16px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand-light); }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.85rem;
  color: var(--text);
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  letter-spacing: -0.02em;
  color: #fff;
}
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

p { color: var(--text-sub); line-height: 1.7; }

a {
  color: var(--brand-light);
  text-decoration: none;
  transition: color 0.25s;
}
a:hover { color: var(--brand); }

/* ── Section underline accent ── */
.section-title {
  display: inline-block;
  position: relative;
  margin-bottom: 0.6rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--brand);
  border-radius: 2px;
  margin-top: 10px;
}
.text-center .section-title::after { margin-left: auto; margin-right: auto; }

/* ── Buttons ── */
.btn-primary {
  background: var(--brand);
  border: none;
  color: #fff;
  font-weight: 700;
  padding: 0.8rem 1.8rem;
  border-radius: var(--r);
  font-size: 0.97rem;
  letter-spacing: 0.01em;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  box-shadow: 0 4px 16px rgba(232,117,26,0.35);
}
.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,117,26,0.5);
}

.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
  font-weight: 600;
  padding: 0.8rem 1.8rem;
  border-radius: var(--r);
  font-size: 0.97rem;
  transition: border-color 0.25s, background 0.25s, transform 0.2s;
}
.btn-secondary:hover {
  border-color: var(--brand);
  background: rgba(232,117,26,0.08);
  color: var(--text);
  transform: translateY(-2px);
}

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.88rem; }

/* ── Navbar ── */
.navbar {
  background: rgba(20,20,20,0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: background 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  background: rgba(14,14,14,0.97);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text) !important;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: -0.01em;
}
.brand-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
  margin-left: 2px;
}

.nav-link {
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--text-sub) !important;
  padding: 0.45rem 0.9rem !important;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text) !important; }

/* Offcanvas */
.offcanvas {
  background: var(--bg-2);
  border-left: 1px solid var(--border);
}
.offcanvas-header { border-bottom: 1px solid var(--border); }
.offcanvas-title { color: var(--text); font-weight: 700; }

/* ── Hero ── */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('img/repairs.jpg');
  background-size: cover;
  background-position: center 40%;
  filter: brightness(0.22) saturate(0.6);
  z-index: 0;
}

/* warm overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(232,117,26,0.18) 0%,
    rgba(20,20,20,0.65) 60%,
    rgba(20,20,20,1) 100%
  );
}

/* bottom fade */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 180px;
  background: linear-gradient(to top, var(--bg), transparent);
  z-index: 1;
}

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

.hero h1 { margin-bottom: 1.2rem; }

.hero p.lead {
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  color: rgba(240,237,232,0.85);
  margin-bottom: 2rem;
  max-width: 580px;
  line-height: 1.65;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(232,117,26,0.15);
  border: 1px solid rgba(232,117,26,0.4);
  color: var(--brand-light);
  font-weight: 700;
  font-size: 0.83rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.6rem;
}

/* Hero stats */
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.hero-stats .stat {
  display: flex;
  flex-direction: column;
}
.hero-stats .stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand-light);
  line-height: 1;
}
.hero-stats .stat-label {
  font-size: 0.78rem;
  color: var(--text-sub);
  margin-top: 2px;
  letter-spacing: 0.02em;
}

/* ── Cards ── */
.card-box {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  height: 100%;
}
.card-box:hover {
  border-color: var(--border-hover);
  box-shadow: var(--glow), var(--shadow);
  transform: translateY(-4px);
}

/* Icon badge */
.icon-badge {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.1rem;
  flex-shrink: 0;
}
.icon-badge.orange {
  background: rgba(232,117,26,0.15);
  color: var(--brand-light);
}
.icon-badge.blue {
  background: rgba(26,115,232,0.15);
  color: var(--accent-light);
}
.icon-badge.green {
  background: rgba(34,197,94,0.12);
  color: #4ade80;
}

.card-box:hover .icon-badge { transform: scale(1.08); transition: transform 0.3s; }

.card-box h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.card-box p { font-size: 0.92rem; color: var(--text-sub); margin-bottom: 1rem; }

/* ── Section spacing ── */
section { padding: 5rem 0; }
.section-header {
  margin-bottom: 3.5rem;
}
.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-sub);
  margin-top: 0.6rem;
}

/* ── Services section bg ── */
#services { background: var(--bg); }
#about    { background: var(--bg-2); }
#pricing  { background: var(--bg); }
#testimonials { background: var(--bg-2); }
#booking  { background: var(--bg); }

/* ── Pricing ── */
.price-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.price-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--glow), var(--shadow);
  transform: translateY(-4px);
}

.price-badge {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--brand-light);
  display: block;
  margin-top: 0.6rem;
}

.price-card h4 {
  font-size: 1rem;
  color: var(--text);
  margin-top: 0.75rem;
  margin-bottom: 0.2rem;
}
.price-card p {
  font-size: 0.83rem;
  color: var(--text-dim);
}

/* ── Testimonials ── */
.testimonial-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem 2rem 1.75rem;
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}
.testimonial-card .quote-mark {
  position: absolute;
  top: 14px; left: 22px;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--brand);
  opacity: 0.15;
  font-family: Georgia, serif;
  pointer-events: none;
}
.testimonial-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-sub);
  margin-bottom: 1.25rem;
}
.reviewer-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(232,117,26,0.2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--brand-light);
  flex-shrink: 0;
}
.reviewer-name { font-weight: 700; font-size: 0.95rem; color: var(--text); }
.reviewer-loc  { font-size: 0.8rem; color: var(--text-dim); }

.carousel-control-prev-icon,
.carousel-control-next-icon { filter: none; }
.carousel-control-prev,
.carousel-control-next {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  top: 50%; transform: translateY(-50%);
  opacity: 1;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.25s;
}
.carousel-control-prev:hover,
.carousel-control-next:hover { border-color: var(--brand); }
.carousel-indicators { bottom: -28px; }
.carousel-indicators button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  border: none;
}
.carousel-indicators button.active { background: var(--brand); }

/* ── Booking form ── */
.form-panel {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
}

.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-sub);
  margin-bottom: 0.4rem;
  display: block;
}
.form-control {
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.7rem 1rem;
  border-radius: var(--r);
  font-size: 0.94rem;
  width: 100%;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-control:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(232,117,26,0.15);
  background: var(--bg-3);
  color: var(--text);
}
.form-control::placeholder { color: var(--text-dim); }
textarea.form-control { resize: vertical; min-height: 110px; }

/* Contact sidebar */
.contact-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}
.contact-card .detail-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.contact-card .detail-row:last-child { margin-bottom: 0; }
.contact-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(232,117,26,0.12);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}
.contact-card strong { font-size: 0.82rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 1px; }
.contact-card span, .contact-card a { font-size: 0.94rem; color: var(--text); }

.offer-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(232,117,26,0.12);
  border: 1px dashed rgba(232,117,26,0.35);
  color: var(--brand-light);
  border-radius: var(--r);
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
}

/* ── Footer ── */
footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
}
footer h3 { font-size: 1.25rem; margin-bottom: 1.25rem; color: var(--text); }
footer p  { font-size: 0.92rem; color: var(--text-sub); }
.footer-link { color: var(--text-sub); transition: color 0.2s; }
.footer-link:hover { color: var(--brand-light); }
.social-btn {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-sub);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.social-btn:hover {
  background: rgba(232,117,26,0.12);
  border-color: var(--brand);
  color: var(--brand-light);
}

/* ── WhatsApp FAB ── */
.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 1.75rem;
  z-index: 1040;
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
}
.wa-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 10px 32px rgba(37,211,102,0.55);
  color: white;
}

/* ── Modal ── */
.modal-content {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.modal-header { border-bottom: 1px solid var(--border); color: var(--text); }
.modal-title  { color: var(--text); font-weight: 700; }
.modal-body   { color: var(--text-sub); }
.modal-footer { border-top: 1px solid var(--border); }
.btn-close    { filter: invert(1) opacity(0.6); }

/* ── Map ── */
.map-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* ── Fade-up animation ── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  section { padding: 3rem 0; }
  .hero   { min-height: 78vh; padding: 3.5rem 0 2.5rem; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero-stats { gap: 1.25rem; }
  .hero-stats .stat-num { font-size: 1.3rem; }
  .card-box, .price-card { padding: 1.3rem; }
  .form-panel { padding: 1.35rem; }
  .contact-card { padding: 1.35rem; }
  .btn-primary, .btn-secondary { padding: 0.72rem 1.45rem; font-size: 0.93rem; }
}