/* Bitir — Marketing Website Styles */
/* Brand: iron red #A33629, charcoal #2B2D2E, muted #6B7280, warm bg #F7F3EE */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --red: #A33629;
  --red-dark: #7A261D;
  --charcoal: #2B2D2E;
  --muted: #6B7280;
  --warm-bg: #F7F3EE;
  --white: #FFFFFF;
  --light-grey: #E5E7EB;
  --dark-grey: #374151;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--warm-bg);
  color: var(--charcoal);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

/* ── Typography ── */

h1 { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
h2 { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 1rem; }
h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }

.section-subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 3rem;
}

.text-center { text-align: center; }
.text-center .section-subtitle,
.section-subtitle.text-center { margin-left: auto; margin-right: auto; }

/* ── Navigation ── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(247, 243, 238, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--light-grey);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo {
  height: 64px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--charcoal);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--red); }

.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background 0.15s !important;
}

.nav-cta:hover { background: var(--red-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  margin: 5px 0;
  transition: 0.2s;
}

/* ── Hero ── */

.hero {
  padding: 10rem 0 6rem;
  text-align: center;
}

.hero h1 {
  max-width: 700px;
  margin: 0 auto 1.25rem;
}

.hero .tagline {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* ── Buttons ── */

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover { background: var(--red-dark); }

.btn-secondary {
  background: var(--charcoal);
  color: var(--white);
}

.btn-secondary:hover { background: #1a1c1d; }

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

.btn-outline:hover {
  background: var(--charcoal);
  color: var(--white);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Who It's For ── */

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.audience-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid var(--light-grey);
}

.audience-card .label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.audience-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.audience-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.audience-card ul {
  list-style: none;
  margin-top: 1rem;
}

.audience-card ul li {
  padding: 0.4rem 0;
  font-size: 0.95rem;
  color: var(--dark-grey);
  padding-left: 1.5rem;
  position: relative;
}

.audience-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 6px;
  height: 6px;
  background: var(--charcoal);
  border-radius: 50%;
}

/* ── Features ── */

.features-section {
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  padding: 2rem;
  border-radius: 12px;
  background: var(--warm-bg);
  border: 1px solid var(--light-grey);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--charcoal);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--white);
  font-size: 1.4rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.93rem;
}

/* ── How It Works ── */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 1.25rem;
}

.step h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }

.step p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── Case Studies ── */

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.case-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--light-grey);
  transition: box-shadow 0.2s;
}

.case-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.case-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dark-grey);
  background: rgba(43, 45, 46, 0.06);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.case-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.case-card p { color: var(--muted); font-size: 0.9rem; }

.case-card blockquote {
  border-left: 3px solid var(--red);
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
  color: var(--dark-grey);
  font-size: 0.9rem;
}

.case-card .case-result {
  font-weight: 600;
  color: var(--charcoal);
  font-size: 0.9rem;
}

/* ── Download / CTA ── */

.cta-section {
  background: var(--charcoal);
  color: var(--white);
  text-align: center;
}

.cta-section h2 { color: var(--white); }

.cta-section .section-subtitle { color: rgba(255,255,255,0.6); }

.store-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--white);
  color: var(--charcoal);
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s;
}

.store-badge:hover { background: var(--light-grey); }

.store-badge svg { width: 24px; height: 24px; }

/* ── Contact ── */

.contact-section {
  background: var(--white);
}

.contact-inner {
  max-width: 560px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--light-grey);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--warm-bg);
  color: var(--charcoal);
  transition: border-color 0.15s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--red);
}

.contact-form textarea { resize: vertical; min-height: 120px; }

.contact-form .btn { width: 100%; text-align: center; }

/* ── Newsletter ── */

.newsletter-section {
  background: var(--warm-bg);
  border-top: 1px solid var(--light-grey);
}

.newsletter-inner {
  max-width: 680px;
  margin: 0 auto;
}

.newsletter-inner h2 { margin-bottom: 0.75rem; }

.newsletter-inner .section-subtitle { margin-bottom: 2rem; }

.newsletter-form {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 0.75rem;
  align-items: stretch;
  margin: 0 auto;
  max-width: 620px;
}

.newsletter-form input[type="email"],
.newsletter-form select {
  padding: 0.85rem 1rem;
  border: 1px solid var(--light-grey);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--charcoal);
  width: 100%;
}

.newsletter-form input[type="email"]:focus,
.newsletter-form select:focus {
  outline: none;
  border-color: var(--red);
}

.newsletter-form .btn {
  padding: 0.85rem 1.5rem;
  white-space: nowrap;
}

.newsletter-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1.25rem;
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .newsletter-form {
    grid-template-columns: 1fr;
  }
  .newsletter-form .btn { width: 100%; }
}

/* ── Footer ── */

.footer {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--light-grey);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--light-grey);
}

.footer-logo { height: 24px; width: auto; opacity: 0.7; }

.footer-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.85rem;
  transition: color 0.15s;
}

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

.footer-certs {
  padding: 2rem 0 1.75rem;
  border-bottom: 1px solid var(--light-grey);
}

.footer-certs-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 1rem;
}

.iso-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  list-style: none;
}

.iso-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 10px;
  min-height: 48px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.iso-badge:hover {
  border-color: var(--red);
  box-shadow: 0 2px 10px rgba(163, 54, 41, 0.06);
}

.iso-badge-mark {
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--red);
  letter-spacing: 0.03em;
  border-right: 1px solid var(--light-grey);
  padding-right: 0.55rem;
}

.iso-badge-code {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--charcoal);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.iso-badge-name {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-left: 1px solid var(--light-grey);
  padding-left: 0.55rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.75rem;
}

.footer-copy,
.footer-legal {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── Article / Case study / KB pages ── */

.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 7rem 1.5rem 4rem;
}

.article .breadcrumb {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.article .breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.article .breadcrumb a:hover { color: var(--charcoal); }

.article .eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.article h1 {
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.article .lead {
  font-size: 1.15rem;
  color: var(--dark-grey);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.article .meta {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--light-grey);
  font-size: 0.85rem;
  color: var(--muted);
}

.article .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); display: inline-block; }

.person-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 14px;
  margin: 2rem 0;
}

.person-card .avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  background: linear-gradient(135deg, #F3E9E2, #E8D7CF);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--red-dark);
  font-size: 1.35rem;
}

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

.person-card .person-info p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.tldr {
  background: var(--white);
  border-left: 4px solid var(--red);
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  margin: 2rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.tldr h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.tldr p {
  margin: 0;
  color: var(--dark-grey);
  font-size: 0.98rem;
}

.article h2 {
  font-size: 1.55rem;
  margin-top: 2.5rem;
  margin-bottom: 0.9rem;
}

.article h3 {
  font-size: 1.15rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.article p,
.article li {
  color: var(--dark-grey);
  font-size: 1.02rem;
  line-height: 1.75;
}

.article ul,
.article ol {
  padding-left: 1.4rem;
  margin-bottom: 1.25rem;
}

.article li { margin-bottom: 0.5rem; }

.pull-quote {
  border-left: 4px solid var(--red);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  font-size: 1.2rem;
  color: var(--charcoal);
  font-style: italic;
  line-height: 1.55;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.stat {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
}

.stat-value {
  display: block;
  font-weight: 800;
  font-size: 1.65rem;
  color: var(--red);
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.faq {
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 14px;
}

.faq h2 { margin-top: 0; }

.faq details {
  border-bottom: 1px solid var(--light-grey);
  padding: 1rem 0;
}

.faq details:last-child { border-bottom: 0; }

.faq summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--charcoal);
  font-size: 1rem;
}

.faq details[open] summary { color: var(--red); }

.faq details p {
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.article-cta {
  margin: 3rem 0 1rem;
  padding: 2rem;
  background: var(--charcoal);
  color: var(--white);
  border-radius: 16px;
  text-align: center;
}

.article-cta h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 0.5rem; }
.article-cta p { color: rgba(255,255,255,0.75); margin-bottom: 1.25rem; }

/* ── Listing hub pages ── */

.hub {
  padding: 7rem 0 4rem;
}

.hub .hub-intro {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
}

.hub .hub-intro .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.hub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.hub-filter {
  font-size: 0.82rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--light-grey);
  color: var(--dark-grey);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.hub-filter.is-active,
.hub-filter:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.hub-card {
  background: var(--white);
  border: 1px solid var(--light-grey);
  border-radius: 16px;
  padding: 1.75rem;
  text-decoration: none;
  color: var(--charcoal);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.hub-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}

.hub-card .card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
}

.hub-card h3 {
  font-size: 1.1rem;
  line-height: 1.35;
  margin: 0;
  color: var(--charcoal);
}

.hub-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
  flex: 1;
}

.hub-card .card-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .hub-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .article h1 { font-size: 1.85rem; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .iso-badges { gap: 0.6rem; }
}

@media (max-width: 600px) {
  .hub-grid { grid-template-columns: 1fr; }
  .iso-badge { padding: 0.5rem 0.7rem; }
  .iso-badge-name { display: none; }
}

/* ── Page header (for privacy/terms) ── */

.page-header {
  padding: 7rem 0 2rem;
}

.page-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.page-content h2 { font-size: 1.15rem; margin-top: 2rem; margin-bottom: 0.5rem; }
.page-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.page-content li { margin-bottom: 0.4rem; }
.page-content a { color: var(--red); }
.page-content .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; }

/* ── Responsive ── */

@media (max-width: 900px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.6rem; }
  section { padding: 3.5rem 0; }
  .hero { padding: 8rem 0 4rem; }

  .audience-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  h1 { font-size: 1.85rem; }
  .hero { padding: 7rem 0 3rem; }
  .hero .tagline { font-size: 1.05rem; }

  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: rgba(247, 243, 238, 0.98);
    backdrop-filter: blur(12px);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--light-grey);
  }
  .nav-toggle { display: block; }
}
