/* Our own styles, on top of Bootstrap.
   Bootstrap handles the grid, navbar, buttons and cards;
   this file adds the أفنان colors, fonts and a few custom pieces. */

/* ===== Brand colors and fonts ===== */
:root {
  --brand: #1f4d43;        /* deep green */
  --brand-dark: #163a32;
  --gold: #a57a32;         /* for lines and icons */
  --gold-text: #85601f;    /* darker gold, readable as small text */
  --gold-light: #e0be7c;   /* gold on the dark green section */
  --cream: #f8f5ef;
  --line: #e9e3d8;
  --muted: #6c6c6c;
  --radius: 16px;

  /* Tell Bootstrap to use our font and colors */
  --bs-body-font-family: 'Tajawal', Tahoma, Arial, sans-serif;
  --bs-body-font-size: 1.05rem;
  --bs-body-bg: var(--cream);
  --bs-body-color: #2a2a2a;
}

h1, h2, h3, .brand-name {
  font-family: 'El Messiri', 'Tajawal', Tahoma, serif;
  color: var(--brand);
}

/* ===== Buttons ===== */
.btn-brand,
.btn-outline-brand {
  --bs-btn-border-radius: 999px;
  --bs-btn-padding-x: 1.75rem;
  --bs-btn-font-weight: 700;
}

.btn-brand {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--brand-dark);
  --bs-btn-hover-border-color: var(--brand-dark);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--brand-dark);
  --bs-btn-active-border-color: var(--brand-dark);
}

.btn-outline-brand {
  --bs-btn-color: var(--brand);
  --bs-btn-border-color: var(--brand);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-border-color: var(--brand);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--brand);
  --bs-btn-active-border-color: var(--brand);
}

/* ===== Navigation bar ===== */
.site-nav {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: conic-gradient(#1f4d43 0 25%, #e0b23a 0 50%, #c4553a 0 75%, #3f6e8c 0);
}

.brand-name {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.brand-sub {
  align-self: flex-end;
  color: var(--gold-text);
  font-size: 0.95rem;
}

.site-nav .nav-link {
  position: relative;
  color: #555;
  font-weight: 500;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  color: var(--brand);
}

/* Small gold line under the current page (wide screens only) */
@media (min-width: 768px) {
  .site-nav .nav-link.active::after {
    content: '';
    position: absolute;
    inset-inline: 0.5rem;
    bottom: 0.2rem;
    height: 2px;
    background: var(--gold);
  }
}

/* ===== Small gold label above headings ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  color: var(--gold-text);
  font-weight: 700;
  font-size: 0.95rem;
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--gold);
}

/* ===== Hero ===== */
.hero {
  padding: 5rem 0 4rem;
  background: radial-gradient(circle at 20% 50%, #efe5d2 0, transparent 45%), var(--cream);
}

.hero h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.25;
}

.hero .lead {
  max-width: 32em;
  color: var(--muted);
}

/* Three buckets side by side, the middle one bigger and in front */
.hero-buckets {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-buckets .bucket { width: 34%; height: auto; }

.hero-buckets .bucket:nth-child(2) {
  position: relative;
  z-index: 1;
  width: 46%;
  margin-inline: -5%;
}

/* ===== Sections ===== */
.section {
  padding: 5rem 0;
  scroll-margin-top: 70px;   /* so the sticky navbar doesn't cover the heading */
}

.section-head {
  max-width: 36rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head h2,
.section-dark h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
}

.section-head p { margin: 0; color: var(--muted); }

/* ===== Category cards (landing page) ===== */
.category-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(31, 77, 67, 0.1);
}

.category-card .card-body {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.category-dot {
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08), 0 0 0 5px var(--cream);
}

.category-card h3 { margin-bottom: 0.35rem; font-size: 1.25rem; }

.category-card p {
  flex-grow: 1;
  color: var(--muted);
  font-size: 0.95rem;
}

.category-link { color: var(--gold-text); font-weight: 700; font-size: 0.9rem; }

/* ===== About (dark green section) ===== */
.section-dark {
  background: var(--brand);
  color: #dbe5e1;
}

.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: var(--gold-light); }
.section-dark .eyebrow::before { background: var(--gold-light); }

.feature {
  display: flex;
  gap: 1rem;
  height: 100%;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.feature i { color: var(--gold-light); font-size: 1.6rem; line-height: 1; }

.feature strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #fff;
  font-family: 'El Messiri', 'Tajawal', serif;
  font-size: 1.15rem;
}

.feature span { font-size: 0.95rem; opacity: 0.85; }

/* ===== Contact ===== */
.contact-card {
  height: 100%;
  padding: 2rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.contact-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: #f4ecdc;
  color: var(--gold);
  font-size: 1.4rem;
}

.contact-card h3 { font-size: 1.2rem; }
.contact-card p { margin: 0; color: #555; }

.contact-card a {
  color: var(--brand);
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
}

/* ===== Catalogue page ===== */
.page-head {
  padding: 3.5rem 0 2.5rem;
  background: radial-gradient(circle at 15% 30%, #efe5d2 0, transparent 40%), var(--cream);
  border-bottom: 1px solid var(--line);
}

.page-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; }
.page-head p { color: var(--muted); }
.page-head a { color: var(--brand); font-weight: 700; text-decoration: none; }
.page-head .breadcrumb a { color: var(--gold-text); font-weight: 500; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-pill {
  padding: 0.4rem 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #555;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.filter-pill:hover { border-color: var(--brand); color: var(--brand); }

.filter-pill.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow 0.25s;
}

.product-card:hover { box-shadow: 0 14px 30px rgba(31, 77, 67, 0.1); }

/* Bucket picture at the top of each product card */
.product-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 190px;
  margin: 0.75rem 0.75rem 0;
  background: radial-gradient(circle at 50% 55%, #fff 0, #f3eee4 75%);
  border-radius: 12px;
}

.product-visual .bucket { width: auto; height: 160px; }
.product-visual .tool-icon { color: var(--gold); font-size: 4rem; }

/* Color dots: click one to repaint the bucket */
.color-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.color-dot {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.color-dot.active { outline: 2px solid var(--brand); outline-offset: 2px; }

.product-card .card-body {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.1rem 1.1rem;
}

.tag {
  align-self: flex-start;
  padding: 0.15rem 0.7rem;
  background: #f6efe2;
  border-radius: 999px;
  color: var(--gold-text);
  font-size: 0.78rem;
  font-weight: 700;
}

.product-card h3 { margin: 0.6rem 0 0.3rem; font-size: 1.2rem; }

.product-card p {
  flex-grow: 1;
  color: var(--muted);
  font-size: 0.93rem;
}

.specs {
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line);
  font-size: 0.88rem;
}

.specs div { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.15rem 0; }
.specs dt { color: #888; font-weight: 400; }
.specs dd { margin: 0; font-weight: 700; }

/* The finish line sits a little apart from the price lines below it */
.specs .specs-finish { margin-bottom: 0.35rem; }
.specs .price { color: var(--brand); font-size: 0.98rem; }

.price-note { font-size: 0.9rem; }

/* ===== Footer ===== */
.site-footer {
  padding: 1.5rem 0;
  background: var(--brand-dark);
  color: #c9d6d1;
  font-size: 0.95rem;
}

/* ===== Phones and small screens ===== */
@media (max-width: 767.98px) {
  .hero { padding: 3rem 0 1.5rem; }
  .section { padding: 3.5rem 0; }

  /* Filters become one row you can swipe sideways */
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }
  .filter-pill { flex: none; white-space: nowrap; }
}
