/* Brand colours (from the logo) */
:root {
  --maroon: #7A1424;
  --maroon-dark: #4E0B16;
  --gold: #C9A54C;
  --silver: #F3F3F5;
  --border: #E0E0E4;
  --text: #1F1A1C;
  --whatsapp: #25D366;
}

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
}

/* Keeps content centred with space on the left and right */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

/* Logo on the left, menu on the right */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  color: var(--maroon);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.brand-name small {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--silver);
}

/* Highlights the page you are on */
.site-nav a[aria-current="page"] {
  color: var(--maroon);
  background: var(--silver);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
  color: #fff;
  padding: 72px 0 80px;
}

.hero .tagline {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 16px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.hero h1 {
  margin: 0 0 16px;
  max-width: 760px;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.2;
}

.hero p {
  max-width: 640px;
  color: #f1dfe2;
  font-size: 1.1rem;
}

/* Hero buttons: side by side with space between, wrapping on small screens */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.btn-wa {
  background: var(--whatsapp);
  color: #fff;
}

.btn-outline {
  border: 2px solid var(--maroon);
  color: var(--maroon);
}

/* On the dark maroon hero, outline buttons need to be white to be visible */
.hero .btn-outline {
  border-color: #fff;
  color: #fff;
}

/* ---------- Sections ---------- */
.section {
  padding: 64px 0;
}

/* Light grey background to separate alternating sections */
.section-soft {
  background: var(--silver);
}

.section h2 {
  margin: 0 0 32px;
  color: var(--maroon);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  text-align: center;
}

/* Short gold line under each section heading */
.section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin: 12px auto 0;
  background: var(--gold);
  border-radius: 2px;
}

.section-intro {
  margin: -16px 0 32px;
  color: #555;
  text-align: center;
}

/* ---------- Cards (shared look) ---------- */
.category-tile,
.location,
.policy {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(78, 11, 22, 0.06);
}

.category-tile h3,
.location h3,
.policy h3 {
  margin: 0 0 8px;
  color: var(--maroon);
}

/* ---------- What we do ---------- */
/* Grid: as many 260px-wide columns as fit; stacks to one column on phones */
.category-grid,
.location-grid,
.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.category-tile {
  color: var(--text);
  text-decoration: none;
  border-top: 4px solid var(--gold);
  transition: transform 0.2s, box-shadow 0.2s;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(78, 11, 22, 0.12);
}

.category-tile p {
  margin: 0;
  color: #555;
}

/* Space between paragraphs when a tile has more than one */
.category-tile p + p {
  margin-top: 10px;
}

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

/* Gold numbered circle before each step */
.steps li {
  counter-increment: step;
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--maroon);
  color: var(--gold);
  font-weight: 800;
}

.steps strong {
  display: block;
  color: var(--maroon);
  font-size: 1.1rem;
}

/* ---------- Showrooms ---------- */
.location p {
  margin: 0 0 8px;
}

.location a[href^="tel:"] {
  color: var(--maroon);
  font-weight: 700;
}

.location .btn {
  margin-top: 12px;
}

/* ---------- Policies ---------- */
.policy {
  border-left: 4px solid var(--maroon);
}

.policy p {
  margin: 0;
  color: #555;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--maroon-dark);
  color: #e6d3d6;
  padding: 48px 0 24px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.site-footer h4 {
  margin: 0 0 8px;
  color: var(--gold);
}

.site-footer p {
  margin: 0 0 6px;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  font-size: 0.85rem;
}

/* ---------- Product pages ---------- */
/* Shorter hero for inner pages */
.page-hero {
  padding: 48px 0 52px;
}

/* Filter buttons (All / Laptops / Desktops / Phones) */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}

.filters button {
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.filters button:hover {
  border-color: var(--maroon);
}

.filters button.is-active {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(78, 11, 22, 0.06);
}

/* Cards hidden by the filter */
.product-card[hidden] {
  display: none;
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--silver);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Portrait photos: show the whole picture, centred on the grey background */
.card-media img.is-portrait {
  object-fit: contain;
}

.card-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
}

.card-placeholder svg {
  width: 38%;
  fill: none;
  stroke: #b9a7aa;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* Small label in the corner of the photo */
.card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--maroon);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Availability label in the top-right corner of the photo */
.card-status {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* "Photo for illustration" note at the bottom of example photos */
.photo-note {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.7rem;
}

.status-stock {
  background: #dcfce7;
  color: #166534;
}

.status-order {
  background: var(--gold);
  color: var(--maroon-dark);
}

/* "We can buy it from the USA" box under the product grid */
.sourcing-box {
  margin-top: 40px;
  padding: 32px 24px;
  border: 2px dashed var(--gold);
  border-radius: 16px;
  background: #fffaf0;
  text-align: center;
}

.sourcing-box h3 {
  margin: 0 0 8px;
  color: var(--maroon);
  font-size: 1.3rem;
}

.sourcing-box p {
  max-width: 620px;
  margin: 0 auto 20px;
  color: #555;
}

.sourcing-box .hero-actions {
  justify-content: center;
  margin-top: 0;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px;
}

.card-body h3 {
  margin: 0 0 4px;
  color: var(--maroon);
  font-size: 1.1rem;
}

.card-condition {
  margin: 0 0 10px;
  color: #9a7a2e;
  font-size: 0.88rem;
  font-weight: 600;
}

.card-specs {
  flex: 1;
  margin: 0 0 16px;
  padding-left: 18px;
  color: #555;
  font-size: 0.92rem;
}

.card-specs li::marker {
  color: var(--gold);
}

.card-cta {
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Lagos and Owerri buttons side by side, equal width */
.card-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-small {
  padding: 9px 12px;
  font-size: 0.9rem;
  text-align: center;
}

.empty-state {
  grid-column: 1 / -1;
  color: #555;
  text-align: center;
}

/* ---------- About page ---------- */
/* Narrow column so long paragraphs are easy to read */
.about-intro {
  max-width: 760px;
  font-size: 1.08rem;
  text-align: center;
}

.about-intro p {
  color: #444;
}

/* Department cards */
.dept {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(78, 11, 22, 0.06);
}

.dept h3 {
  margin: 0 0 10px;
  color: var(--maroon);
}

.dept p {
  flex: 1;
  margin: 0 0 16px;
  color: #555;
}

/* R&D services shown as small pill labels */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.service-list li {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--silver);
  color: var(--maroon);
  font-size: 0.85rem;
  font-weight: 600;
}

.dept-link {
  color: var(--maroon);
  font-weight: 700;
  text-decoration: none;
}

.dept-link:hover {
  text-decoration: underline;
}

/* "Who we serve" reuses the numbered .steps cards; space before the description */
.serve strong {
  margin-bottom: 6px;
}

.serve li {
  background: var(--silver);
  color: #555;
}

/* Maroon call-to-action box */
.cta-band {
  background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
  border-radius: 20px;
  padding: 48px 24px;
  color: #fff;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: #f1dfe2;
}

.cta-band .hero-actions {
  justify-content: center;
}

.cta-band .btn-outline {
  border-color: #fff;
  color: #fff;
}

/* ---------- Contact page ---------- */
.map-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--maroon);
  font-weight: 700;
  text-decoration: none;
}

.map-link:hover {
  text-decoration: underline;
}

/* FAQ: click a question to open its answer */
.faq {
  max-width: 780px;
  margin: 0 auto;
}

.faq details {
  margin-bottom: 12px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.faq summary {
  color: var(--maroon);
  font-weight: 700;
  cursor: pointer;
}

.faq details p {
  margin: 10px 0 0;
  color: #555;
}
