/* =========================================================
   Axlesoft Ltd — Shared Stylesheet
   ========================================================= */

:root {
  /* Brand palette */
  --color-navy: #0f2240;
  --color-navy-light: #1c3a63;
  --color-teal: #0ea5a6;
  --color-teal-dark: #0a7f80;
  --color-amber: #f59e0b;

  /* Neutral scale */
  --color-bg: #f7f9fb;
  --color-surface: #ffffff;
  --color-border: #e3e8ef;
  --color-text: #1a2433;
  --color-text-muted: #5b6b82;

  /* Layout */
  --max-width: 1180px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 34, 64, 0.06);
  --shadow-md: 0 6px 20px rgba(15, 34, 64, 0.08);
  --shadow-lg: 0 20px 40px rgba(15, 34, 64, 0.12);

  --font-heading: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--color-teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.25;
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--color-teal); color: #fff; }
.btn-primary:hover { background: var(--color-teal-dark); box-shadow: var(--shadow-md); }
.btn-outline { border-color: var(--color-surface); color: var(--color-surface); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-ghost { border-color: var(--color-border); color: var(--color-navy); background: #fff; }
.btn-ghost:hover { border-color: var(--color-teal); color: var(--color-teal-dark); }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }

/* =========================================================
   Site Header / Navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--color-navy), var(--color-teal));
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 1rem;
}
.brand-tagline {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--color-teal-dark);
  text-decoration: none;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--color-navy); margin: 5px 0;
  border-radius: 2px;
}

@media (max-width: 900px) {
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    gap: 16px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  background: radial-gradient(circle at 20% 20%, var(--color-navy-light), var(--color-navy) 60%);
  color: #fff;
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,166,0.35), transparent 70%);
}
.hero-inner {
  position: relative;
  max-width: 720px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-teal);
  margin-bottom: 14px;
  display: inline-block;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 18px;
}
.hero p.lead {
  font-size: 1.15rem;
  color: #cfd9e8;
  max-width: 560px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* =========================================================
   Sections / Cards
   ========================================================= */
.section {
  padding: 72px 0;
}
.section-alt { background: var(--color-surface); }
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.section-header h2 { margin: 0; font-size: 1.8rem; }
.section-header p { color: var(--color-text-muted); margin: 6px 0 0; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.category-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.category-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.category-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(14,165,166,0.12);
  color: var(--color-teal-dark);
  display: grid; place-items: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.category-card h3 { font-size: 1.15rem; }
.category-card p { color: var(--color-text-muted); font-size: 0.95rem; }

/* Content card used in grids / list pages */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-media {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--color-navy-light), var(--color-teal));
  display: grid; place-items: center;
  color: rgba(255,255,255,0.85);
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-heading);
}
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(14,165,166,0.12);
  color: var(--color-teal-dark);
  width: fit-content;
}
.badge.badge-book { background: rgba(245,158,11,0.14); color: #a86405; }
.badge.badge-video { background: rgba(14,165,166,0.14); color: var(--color-teal-dark); }
.badge.badge-web { background: rgba(15,34,64,0.1); color: var(--color-navy); }

.card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.card-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
}

/* Newsletter / CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; margin-bottom: 8px; }
.cta-banner p { color: #cfd9e8; margin: 0; }
.cta-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cta-form input[type="email"] {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: none;
  min-width: 240px;
  font-size: 0.95rem;
}

/* =========================================================
   List / Catalogue Page
   ========================================================= */
.page-banner {
  background: var(--color-navy);
  color: #fff;
  padding: 44px 0;
}
.breadcrumbs {
  font-size: 0.85rem;
  color: #a9b8cf;
  margin-bottom: 10px;
}
.breadcrumbs a { color: #a9b8cf; }
.breadcrumbs a:hover { color: #fff; }
.page-banner h1 { color: #fff; margin-bottom: 6px; }
.page-banner p { color: #cfd9e8; margin: 0; }

.list-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  padding: 48px 0 80px;
  align-items: start;
}
@media (max-width: 860px) {
  .list-layout { grid-template-columns: 1fr; }
}

/* Sidebar filters */
.filters {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  position: sticky;
  top: 90px;
}
.filters h3 {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}
.filter-group { margin-bottom: 26px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  margin-bottom: 10px;
  cursor: pointer;
}
.filter-option input { accent-color: var(--color-teal); width: 16px; height: 16px; }
.filter-clear {
  font-size: 0.85rem;
  color: var(--color-teal-dark);
  font-weight: 600;
  cursor: pointer;
  background: none; border: none; padding: 0;
}

/* Results toolbar */
.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.results-count { color: var(--color-text-muted); font-size: 0.92rem; }
.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}
.sort-control select {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: #fff;
  font-family: var(--font-body);
}
.search-box {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
}
.search-box input {
  border: none; padding: 10px 12px; outline: none;
  font-family: var(--font-body);
  min-width: 180px;
}
.search-box button {
  border: none; background: var(--color-teal); color: #fff;
  padding: 10px 14px; cursor: pointer;
}

/* List-view results (rows instead of grid, used on list page) */
.result-list { display: flex; flex-direction: column; gap: 18px; }
.result-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px;
  align-items: center;
  transition: box-shadow .2s ease;
}
.result-row:hover { box-shadow: var(--shadow-md); }
.result-thumb {
  width: 140px; height: 100px;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.85);
  font-weight: 700;
  font-family: var(--font-heading);
}
.result-content h3 { margin-bottom: 4px; font-size: 1.1rem; }
.result-content p { color: var(--color-text-muted); font-size: 0.92rem; margin-bottom: 8px; }
.result-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.result-side {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 110px;
}
.result-price { font-weight: 700; color: var(--color-navy); }

@media (max-width: 640px) {
  .result-row { grid-template-columns: 1fr; }
  .result-thumb { width: 100%; height: 140px; }
  .result-side { flex-direction: row; justify-content: space-between; align-items: center; width: 100%; }
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.pagination a, .pagination span {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.9rem;
  background: #fff;
}
.pagination a:hover { border-color: var(--color-teal); color: var(--color-teal-dark); text-decoration: none; }
.pagination .current { background: var(--color-teal); color: #fff; border-color: var(--color-teal); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--color-navy);
  color: #cfd9e8;
  padding: 56px 0 24px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
.footer-brand .brand { color: #fff; margin-bottom: 10px; }
.footer-brand p { color: #a9b8cf; font-size: 0.9rem; max-width: 280px; }
.footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.footer-col a {
  color: #a9b8cf;
  display: block;
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.85rem;
  color: #8ea0bb;
  flex-wrap: wrap;
  gap: 12px;
}
.social-links { display: flex; gap: 14px; }
.social-links a {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: grid; place-items: center;
  color: #fff;
}
.social-links a:hover { background: var(--color-teal); text-decoration: none; }