:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --header: #0b1220;
  --mist: #f8fafc;
}

body {
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

h1, h2, h3, .navbar-brand, .phone-name {
  font-family: "Outfit", "Source Sans 3", sans-serif;
}

.site-header {
  background: var(--header);
}
.navbar-brand {
  font-weight: 700;
  letter-spacing: -0.02em;
}
.navbar-dark .nav-link { color: rgba(255,255,255,.82); }
.navbar-dark .nav-link:hover { color: #fff; }

.search-form {
  max-width: 280px;
}
.search-form .form-control {
  border-radius: 8px 0 0 8px;
  border: 0;
}
.search-form .btn {
  border-radius: 0 8px 8px 0;
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.currency-switcher .form-select {
  min-width: 140px;
  background-color: #1e293b;
  color: #fff;
  border-color: #334155;
}

.hero {
  background: linear-gradient(160deg, #0b1220 0%, #1e293b 55%, #0f172a 100%);
  color: #fff;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .75rem;
  font-weight: 600;
  color: var(--accent);
}
.hero .lead { color: #cbd5e1; max-width: 36rem; }
.hero-search { max-width: 36rem; }
.hero-search .form-control { border: 0; }

.phone-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.phone-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
  color: inherit;
}
.phone-card-img {
  background: var(--mist);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.phone-card-img img {
  max-height: 180px;
  object-fit: contain;
}
.phone-placeholder {
  font-size: 3.5rem;
  color: #cbd5e1;
}
.phone-placeholder.large { font-size: 6rem; }
.brand-label { letter-spacing: .06em; font-size: .7rem; }
.price { color: var(--accent-dark); font-weight: 700; }
.price-lg { font-size: 1.6rem; font-weight: 700; color: var(--accent-dark); }

.brand-strip { background: var(--mist); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.brand-tile { border: 1px solid var(--line); border-radius: 12px; color: inherit; }
.brand-tile:hover { border-color: var(--accent); color: inherit; }
.brand-letter {
  width: 48px; height: 48px; margin: 0 auto;
  border-radius: 50%;
  background: var(--header); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: Outfit, sans-serif; font-weight: 700; font-size: 1.2rem;
}
.brand-logo { max-height: 48px; }

.phone-hero-img {
  background: var(--mist);
  border-radius: 16px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

/* Phone detail gallery */
.phone-gallery .phone-hero-img {
  min-height: 340px;
}
.phone-gallery .phone-hero-img img {
  max-height: 320px;
  object-fit: contain;
}
.phone-gallery .carousel-control-prev,
.phone-gallery .carousel-control-next {
  width: 12%;
  opacity: 0;
  transition: opacity .15s ease;
}
.phone-gallery:hover .carousel-control-prev,
.phone-gallery:hover .carousel-control-next {
  opacity: .85;
}
.phone-gallery .carousel-control-prev-icon,
.phone-gallery .carousel-control-next-icon {
  filter: invert(1) grayscale(1);
}
.gallery-caption {
  text-align: center;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: .5rem;
}
.gallery-thumbs {
  position: static;
  margin: .75rem 0 0;
  gap: .4rem;
  flex-wrap: wrap;
}
/* Bootstrap styles indicators as flat dashes; these buttons are thumbnails. */
.gallery-thumbs [data-bs-target] {
  box-sizing: border-box;
  width: 50px;
  height: 50px;
  margin: 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  opacity: 1;
  text-indent: 0;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gallery-thumbs [data-bs-target].active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(249, 115, 22, .2);
}

/* Home: latest phone from each brand */
.brand-carousel-section {
  background: linear-gradient(155deg, #0f172a 0%, #1e293b 60%, #0b1220 100%);
  color: #fff;
}
.carousel-all-link { color: #cbd5e1; }
.carousel-all-link:hover { color: var(--accent); }
.brand-carousel {
  padding: 0 0 3.5rem;
}
/* Keep slides off the arrows, which sit in the dark gutters either side. */
.brand-carousel .carousel-inner {
  max-width: 940px;
  margin: 0 auto;
}
.brand-slide {
  min-height: 300px;
}
.brand-slide-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 16px;
  padding: 1rem;
  min-height: 260px;
}
.brand-slide-img img {
  max-height: 240px;
  object-fit: contain;
}
.brand-slide-title {
  color: #fff;
  text-decoration: none;
}
.brand-slide-title:hover { color: var(--accent); }
.brand-carousel .price-lg { color: #fdba74; }
.slide-meta { color: #94a3b8; font-size: .85rem; }
.slide-specs span {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  padding: .25rem .7rem;
  font-size: .8rem;
  color: #e2e8f0;
}
.brand-carousel .carousel-control-prev,
.brand-carousel .carousel-control-next {
  width: 5%;
  opacity: .6;
}
.brand-carousel .carousel-control-prev:hover,
.brand-carousel .carousel-control-next:hover { opacity: 1; }
@media (max-width: 767.98px) {
  /* No room beside the slide on phones — swipe and the brand pills cover it. */
  .brand-carousel .carousel-control-prev,
  .brand-carousel .carousel-control-next { display: none; }
  .brand-slide-img { min-height: 180px; }
}
.brand-tabs {
  margin: 0;
  bottom: 0;
  gap: .4rem;
  flex-wrap: wrap;
}
.brand-tabs [data-bs-target] {
  box-sizing: border-box;
  width: auto;
  height: auto;
  margin: 0;
  text-indent: 0;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: transparent;
  color: #cbd5e1;
  font-size: .78rem;
  padding: .2rem .7rem;
  opacity: 1;
}
.brand-tabs [data-bs-target]:hover { color: #fff; border-color: rgba(255, 255, 255, .45); }
.brand-tabs [data-bs-target].active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.highlight {
  background: var(--mist);
  border-radius: 10px;
  padding: .75rem .9rem;
  height: 100%;
}
.highlight span {
  display: block;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: .15rem;
}

.spec-table {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.spec-group-title {
  background: var(--header);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .45rem .9rem;
}
.spec-table .table { margin-bottom: 0; }
.spec-table th {
  width: 28%;
  color: var(--muted);
  font-weight: 600;
  background: #f8fafc;
}
.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: 0; }

.site-footer {
  background: var(--header);
  color: #94a3b8;
}
.site-footer a { color: #e2e8f0; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-links a { margin-left: .85rem; }
.text-muted-footer { color: #94a3b8; }

.breadcrumb a { text-decoration: none; }

.prose p { max-width: 42rem; line-height: 1.65; }
.page-narrow { max-width: 46rem; }
.guide-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.15rem 1.2rem;
  background: #fff;
}
.guide-card a { color: var(--ink); text-decoration: none; }
.guide-card a:hover { color: var(--accent-dark); }
.contact-form { max-width: 32rem; }
.accordion-button:not(.collapsed) {
  background: #fff7ed;
  color: var(--ink);
}
