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

:root {
  --red:      #e3000b;
  --red-dark: #b8000a;
  --yellow:   #ffd700;
  --dark:     #111827;
  --dark2:    #1f2937;
  --mid:      #374151;
  --muted:    #6b7280;
  --light:    #f9fafb;
  --white:    #ffffff;
  --radius:   12px;
  --shadow:   0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 0; }

.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 10px;
}

.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
}

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

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 50px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(227,0,11,0.25);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(227,0,11,0.35);
}

.btn-large { padding: 18px 44px; font-size: 1.1rem; }

.btn-ghost {
  display: inline-block;
  color: var(--dark);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 50px;
  border: 2px solid #e5e7eb;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--red); color: var(--red); }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--red);
  font-weight: 800;
  font-size: 1rem;
  padding: 13px 30px;
  border-radius: 50px;
  border: 2px solid var(--red);
  transition: background 0.2s, color 0.2s;
}
.btn-secondary:hover { background: var(--red); color: var(--white); }

.btn-card {
  display: inline-block;
  color: var(--red);
  font-weight: 800;
  font-size: 0.95rem;
  margin-top: 16px;
  transition: letter-spacing 0.15s;
}
.btn-card:hover { letter-spacing: 0.02em; }

.btn-nav {
  display: inline-block;
  background: var(--red);
  color: var(--white) !important;
  font-weight: 800;
  padding: 9px 22px;
  border-radius: 50px;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.btn-nav:hover { background: var(--red-dark); }

/* ===== HEADER ===== */
#header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
  transition: box-shadow 0.2s;
}
#header.scrolled { box-shadow: var(--shadow); }

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--dark);
  user-select: none;
}
.logo-brick {
  color: var(--red);
  font-size: 1.1rem;
}
.logo-footer { font-size: 1.25rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-weight: 700;
  color: var(--mid);
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--red); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--dark);
  border-radius: 4px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0f0f1a 0%, #1a0a0a 60%, #1f0808 100%);
  padding: 80px 24px;
  gap: 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(227,0,11,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  flex: 1;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(227,0,11,0.15);
  color: #ff4d57;
  border: 1px solid rgba(227,0,11,0.3);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-sub {
  color: #9ca3af;
  font-size: 1.1rem;
  margin-bottom: 36px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Decorative brick grid */
.hero-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.brick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  transform: rotate(-8deg);
  opacity: 0.85;
}

.b {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  animation: float 4s ease-in-out infinite;
}

.b1  { background: #e3000b; animation-delay: 0s; }
.b2  { background: #ffd700; animation-delay: 0.3s; }
.b3  { background: #0057a8; animation-delay: 0.6s; }
.b4  { background: #1a8a3c; animation-delay: 0.9s; }
.b5  { background: #ff6600; animation-delay: 1.2s; }
.b6  { background: #e3000b; animation-delay: 0.2s; }
.b7  { background: #ffd700; animation-delay: 0.5s; }
.b8  { background: #0057a8; animation-delay: 0.8s; }
.b9  { background: #1a8a3c; animation-delay: 1.1s; }
.b10 { background: #ff6600; animation-delay: 0.4s; }
.b11 { background: #e3000b; animation-delay: 0.7s; }
.b12 { background: #ffd700; animation-delay: 1.0s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ===== CATEGORIES ===== */
.categories { background: var(--light); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.featured-card {
  border: 2px solid var(--yellow);
  position: relative;
}
.featured-card::before {
  content: 'Most Popular';
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--yellow);
  color: #7a5a00;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 50px;
  white-space: nowrap;
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 10px;
}

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

/* ===== WHY US ===== */
.why-us { background: var(--white); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.feature {
  text-align: center;
  padding: 28px 20px;
  border-radius: var(--radius);
  transition: background 0.2s;
}
.feature:hover { background: var(--light); }

.feature-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
  display: block;
}

.feature h4 {
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 8px;
}

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

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, #e3000b 0%, #9b0008 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 24px;
}

.cta-banner h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.cta-banner p {
  opacity: 0.88;
  font-size: 1.05rem;
  margin-bottom: 36px;
}

.cta-banner .btn-primary {
  background: var(--white);
  color: var(--red);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.cta-banner .btn-primary:hover {
  background: #f3f3f3;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* ===== CONTACT ===== */
.contact { background: var(--light); }
.contact-inner {
  max-width: 580px;
  text-align: center;
}
.contact-inner h2 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 14px;
}
.contact-inner p {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 1rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: #9ca3af;
  padding: 48px 24px 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer .logo { color: var(--white); }

.footer-tagline {
  font-size: 0.92rem;
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 8px 0;
}

.footer-links a {
  color: #9ca3af;
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

.copyright {
  font-size: 0.82rem;
  margin-top: 16px;
  border-top: 1px solid #374151;
  padding-top: 16px;
  width: 100%;
  text-align: center;
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.2rem; }
  .hamburger { display: flex; }

  .hero {
    flex-direction: column;
    text-align: center;
    min-height: auto;
    padding: 60px 24px;
    gap: 40px;
  }
  .hero-actions { justify-content: center; }
  .hero-sub { margin: 0 auto 36px; }
  .hero-content { max-width: 100%; }
  .brick-grid { gap: 10px; }
  .b { width: 60px; height: 60px; }

  .section { padding: 56px 0; }
  .section-header h2 { font-size: 1.8rem; }

  .cta-banner h2 { font-size: 1.6rem; }
  .contact-inner h2 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .b { width: 48px; height: 48px; border-radius: 7px; }
  .brick-grid { gap: 8px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-primary, .btn-ghost { width: 100%; text-align: center; }
}
