/* =============================================
   BibChintz — Dark Forge Theme
   Bold, dark, tech-forward design
   ============================================= */

:root {
  --bg: #0C1222;
  --bg-alt: #111827;
  --surface: #1A2235;
  --surface-hover: #1F2A40;
  --text: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --accent: #F59E0B;
  --accent-hover: #D97706;
  --accent-light: rgba(245,158,11,0.08);
  --accent-glow: rgba(245,158,11,0.12);
  --green: #10B981;
  --green-light: rgba(16,185,129,0.08);
  --border: #1E293B;
  --border-light: #253044;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.25);
  --shadow: 0 4px 16px rgba(0,0,0,0.35);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.45);
  --radius: 10px;
  --radius-lg: 14px;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

h1 { font-size: 3.2rem; letter-spacing: -0.035em; }
h2 { font-size: 2.25rem; letter-spacing: -0.025em; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p { color: var(--text-secondary); margin-bottom: 1rem; }

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; }

::selection { background: rgba(245,158,11,0.25); color: var(--text); }

/* ---------- Navbar ---------- */
.navbar {
  background: rgba(12,18,34,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  padding: 0.75rem 0;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 12px rgba(0,0,0,0.4);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text) !important;
  display: flex;
  align-items: center;
  gap: 0;
  letter-spacing: -0.02em;
}

.brand-dot {
  color: var(--accent);
}

.navbar-nav .nav-link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-muted) !important;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s;
}

.navbar-nav .nav-link:hover { color: var(--text) !important; }

.navbar-toggler {
  border: 1px solid var(--border);
  padding: 0.4rem 0.6rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(148,163,184,1)' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Buttons ---------- */
.btn-accent {
  background: var(--accent);
  color: #000;
  border: none;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(245,158,11,0.25);
}

.btn-accent-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius);
  transition: all 0.2s;
}

.btn-accent-outline:hover {
  background: var(--accent);
  color: #000;
  box-shadow: 0 4px 20px rgba(245,158,11,0.2);
}

.btn-lg { padding: 0.9rem 2.2rem; font-size: 1.05rem; }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-sm { padding: 3.5rem 0; }

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid rgba(245,158,11,0.15);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 560px;
}

.section-alt { background: var(--bg-alt); }

/* ---------- Hero ---------- */
.hero {
  padding: 8.5rem 0 5.5rem;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -300px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(245,158,11,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16,185,129,0.04) 0%, transparent 65%);
  pointer-events: none;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 1.25rem;
}

.hero-title .accent { color: var(--accent); }

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 2.25rem;
}

.hero-ctas {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

/* ---------- Trust Bar ---------- */
.trust-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.3rem 0;
}

.trust-items {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
}

.trust-icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
}

/* ---------- Product Cards ---------- */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--border-light);
  box-shadow: 0 0 0 1px var(--border-light), var(--shadow);
}

.product-card .card-img-wrap {
  background: var(--bg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.product-card .card-img-wrap img {
  max-height: 200px;
  object-fit: contain;
  width: auto;
}

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

.product-card .product-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.product-card .product-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 1rem;
}

.product-card .product-price {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 1rem;
}

/* ---------- Feature Cards ---------- */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}

.feature-number {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
  opacity: 0.8;
}

.feature-card h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* ---------- Service Cards ---------- */
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  border-color: var(--border-light);
  border-left-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.service-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.service-card p {
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- Stat Bar ---------- */
.stat-bar {
  padding: 3.5rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Team ---------- */
.team-card {
  text-align: center;
}

.team-card img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  margin-bottom: 1rem;
  filter: grayscale(20%);
  transition: filter 0.3s, border-color 0.3s;
}

.team-card:hover img {
  filter: grayscale(0%);
  border-color: var(--accent);
}

.team-card h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.team-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- FAQ ---------- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
  overflow: hidden;
  background: var(--surface);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.1rem 1.25rem;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-question:hover { background: var(--surface-hover); }

.faq-question .faq-icon {
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--accent); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.25rem;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 1.25rem 1.1rem;
}

.faq-answer p {
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- Contact Bar ---------- */
.contact-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.contact-card {
  text-align: center;
  padding: 2rem 1rem;
}

.contact-card .contact-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.contact-card .contact-value {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.contact-card .contact-value a { color: var(--text); }
.contact-card .contact-value a:hover { color: var(--accent); }

/* ---------- Contact Form ---------- */
.contact-form .form-control {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form .form-control:focus {
  background: var(--bg);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.1);
  outline: none;
  color: var(--text);
}

.contact-form .form-control::placeholder {
  color: var(--text-muted);
}

/* ---------- Checkout ---------- */
.checkout-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow);
}

.order-summary {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.order-summary h6 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.order-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--text-secondary);
  padding: 0.2rem 0;
}

.order-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 0.5rem;
}

.checkout-steps {
  background: var(--green-light);
  border: 1px solid rgba(16,185,129,0.15);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.checkout-steps h6 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.checkout-steps ol {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.secure-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.secure-badge svg {
  width: 14px;
  height: 14px;
  fill: var(--green);
}

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

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: invert(90%) hue-rotate(180deg) brightness(0.95) contrast(1.1);
}

/* ---------- Policy Pages ---------- */
.policy-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
}

.policy-content h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.policy-content p {
  line-height: 1.8;
  color: var(--text-secondary);
}

.policy-content strong {
  color: var(--text);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #070B14;
  color: var(--text-muted);
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.footer-brand .brand-dot { color: var(--accent); }

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.footer-contact-inline p {
  margin: 0.2rem 0;
  font-size: 0.85rem;
}

.footer-contact-inline a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-contact-inline a:hover { color: var(--accent); }

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--text); }

.footer-address {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-divider {
  border-color: var(--border);
  margin: 2rem 0 1.25rem;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
  text-align: center;
  opacity: 0.7;
}

/* ---------- Cookie Banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
  z-index: 9999;
  padding: 1rem 0;
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-inner p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  flex: 1;
}

.cookie-inner a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-outline-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline-secondary:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

/* ---------- About ---------- */
.about-image {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  h1, .hero-title { font-size: 2.4rem; }
  h2 { font-size: 1.75rem; }
  .hero { padding: 7rem 0 3.5rem; }
  .section { padding: 4rem 0; }
  .hero-image { margin-top: 2rem; }
}

@media (max-width: 767px) {
  h1, .hero-title { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  .hero { padding: 6rem 0 3rem; }
  .section { padding: 3rem 0; }
  .trust-items { gap: 1rem; }
  .trust-item { font-size: 0.78rem; }
  .policy-content { padding: 1.5rem; }
  .cookie-inner { flex-direction: column; text-align: center; }
  .stat-item { margin-bottom: 1.5rem; }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
