/* ========================================
   EZER — MAIN STYLESHEET
   Design System: Navy #1B3A6B | Teal #2ABFA3
======================================== */

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #111827;
  background-color: #F7F9FC;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* === VARIABLES === */
:root {
  --color-primary: #1B3A6B;
  --color-accent: #2ABFA3;
  --color-accent-dark: #1fa88e;
  --color-bg: #F7F9FC;
  --color-surface: #FFFFFF;
  --color-text-primary: #111827;
  --color-text-secondary: #6B7280;
  --color-border: #E5E7EB;
  --color-success: #10B981;
  --color-error: #EF4444;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.13);
  --max-width: 1280px;
  --nav-height: 72px;
}

/* === UTILITIES === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.text-accent { color: var(--color-accent); }

.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-header.section-header--row {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  text-align: left;
}

.section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--color-text-secondary);
}

.section-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-accent);
  transition: color 0.2s;
}
.section-link:hover { color: var(--color-accent-dark); }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1.5px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-ghost:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
  font-size: 15px;
  padding: 13px 28px;
}
.btn-white:hover {
  background: var(--color-bg);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
  font-size: 15px;
  padding: 13px 28px;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* === NAVBAR === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.nav-container {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-primary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--color-accent); background: rgba(42,191,163,0.07); }
.nav-link.active { color: var(--color-primary); font-weight: 600; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-actions-mobile { display: none; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* === HERO === */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0f2547 100%);
  padding: 96px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(42,191,163,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(42,191,163,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(42,191,163,0.15);
  color: var(--color-accent);
  border: 1px solid rgba(42,191,163,0.3);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* Search Bar */
.search-wrapper {
  max-width: 720px;
  margin: 0 auto 48px;
}

.search-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 8px 8px 8px 16px;
  box-shadow: var(--shadow-lg);
  gap: 12px;
}

.search-icon {
  color: var(--color-text-secondary);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--color-text-primary);
  background: transparent;
}
.search-input::placeholder { color: var(--color-text-secondary); }

.search-btn {
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 11px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.search-btn:hover {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
}

.search-suggestions {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.search-suggestions a {
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.1);
  padding: 3px 10px;
  border-radius: 100px;
  transition: background 0.2s;
}
.search-suggestions a:hover { background: rgba(255,255,255,0.2); }

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.2);
}

/* === CATEGORIES === */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.category-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  transition: all 0.2s ease;
  cursor: pointer;
  display: block;
  border-left: 4px solid transparent;
}
.category-card:hover {
  border-left-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.category-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.category-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
  line-height: 1.3;
}

.category-card p {
  font-size: 0.78rem;
  color: var(--color-text-secondary);
  line-height: 1.4;
  margin-bottom: 12px;
}

.category-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  background: rgba(42,191,163,0.1);
  padding: 3px 10px;
  border-radius: 100px;
}

.category-card--all {
  background: linear-gradient(135deg, var(--color-primary), #0f2547);
  border-color: transparent;
  border-left-color: var(--color-accent) !important;
}
.category-card--all h3,
.category-card--all p { color: rgba(255,255,255,0.9); }
.category-card--all p { color: rgba(255,255,255,0.65); }
.category-card--all .category-count {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

@media (max-width: 1280px) {
  .categories-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .categories-grid { grid-template-columns: 1fr 1fr; }
}

/* === HOW IT WORKS === */
.how-section { background: #fff; }

.steps-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.step-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: center;
  flex: 1;
  max-width: 320px;
  transition: box-shadow 0.2s;
}
.step-card:hover { box-shadow: var(--shadow-md); }

.step-number {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.step-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.step-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.step-arrow {
  font-size: 1.8rem;
  color: var(--color-accent);
  font-weight: 300;
  flex-shrink: 0;
}

/* === FEATURED MANUALS === */
.featured-section { background: var(--color-bg); }

.featured-section .section-header {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  margin-bottom: 32px;
}

.manuals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.manual-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
  border-top: 3px solid transparent;
}
.manual-card:hover {
  border-top-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.manual-category-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-accent);
  background: rgba(42,191,163,0.1);
  padding: 3px 10px;
  border-radius: 100px;
  display: inline-block;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.manual-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.4;
  flex: 1;
}

.manual-brand {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.manual-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--color-text-secondary);
  flex-wrap: wrap;
}

/* === CTA BANNER === */
.cta-section {
  background: linear-gradient(135deg, var(--color-accent) 0%, #1a9e87 100%);
  padding: 80px 0;
  text-align: center;
}

.cta-content h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === FOOTER === */
.footer {
  background: var(--color-primary);
  padding: 64px 0 32px;
  color: rgba(255,255,255,0.8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 16px;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.65);
  max-width: 280px;
}

.footer-logo {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-socials {
  display: flex;
  gap: 10px;
}
.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s;
}
.footer-socials a:hover { background: var(--color-accent); }

.footer-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--color-accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .section { padding: 56px 0; }
  .container { padding: 0 20px; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 24px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 12px 8px; border-bottom: 1px solid var(--color-border); border-radius: 0; }
  .nav-actions { display: none; }
  .nav-actions-mobile {
    display: flex;
    gap: 12px;
    padding-top: 16px;
    flex-direction: column;
  }
  .nav-actions-mobile .btn { width: 100%; justify-content: center; }
  .hamburger { display: flex; }

  .search-bar { flex-wrap: wrap; }
  .search-btn { width: 100%; }

  .hero-stats { gap: 20px; }
  .stat-divider { display: none; }

  .steps-grid { flex-direction: column; }
  .step-arrow { transform: rotate(90deg); }
  .step-card { max-width: 100%; }

  .manuals-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr 1fr; }

  .featured-section .section-header { flex-direction: column; text-align: center; gap: 12px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .categories-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; }
}

/* === PAYMENT SUCCESS OVERLAY === */
.payment-success-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-success-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: var(--shadow-lg);
}

.success-icon { font-size: 3rem; margin-bottom: 16px; }

.payment-success-card h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.payment-success-card p {
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

/* === NAV USER GREETING === */
.nav-user-greeting {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
}