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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: #0A0A0A;
  color: #F5F5F5;
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font: inherit; border: none; background: none; color: inherit; }

/* ===== CONTAINER ===== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139, 0, 0, 0.2);
  transition: background 0.3s;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav__logo svg {
  height: 40px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: #999;
  transition: color 0.3s;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #8B0000;
  transition: width 0.3s;
}

.nav__link:hover {
  color: #F5F5F5;
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link--cta {
  padding: 8px 20px;
  border: 1px solid #8B0000;
  border-radius: 6px;
  color: #F5F5F5;
  transition: background 0.3s, border-color 0.3s;
}

.nav__link--cta::after { display: none; }

.nav__link--cta:hover {
  background: #8B0000;
  border-color: #8B0000;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #F5F5F5;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav__toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(139, 0, 0, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(178, 34, 34, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(139, 0, 0, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero__title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #F5F5F5 0%, #B22222 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: #999;
  max-width: 580px;
  margin-bottom: 36px;
  line-height: 1.7;
}

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s;
}

.btn--primary {
  background: #8B0000;
  color: #F5F5F5;
  border: 2px solid #8B0000;
}

.btn--primary:hover {
  background: #B22222;
  border-color: #B22222;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 0, 0, 0.3);
}

.btn--outline {
  background: transparent;
  color: #F5F5F5;
  border: 2px solid rgba(245, 245, 245, 0.25);
}

.btn--outline:hover {
  border-color: #F5F5F5;
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
}

/* ===== SECTION ===== */
.section {
  padding: 100px 0;
}

.section--dark {
  background: #111111;
}

.section__header {
  text-align: center;
  margin-bottom: 60px;
}

.section__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #8B0000;
  margin-bottom: 12px;
}

.section__title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section__desc {
  color: #999;
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto;
}

/* ===== SERVICES ===== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.service-card {
  background: #1A1A1A;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 36px 28px;
  transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(139, 0, 0, 0.4);
  box-shadow: 0 20px 48px rgba(139, 0, 0, 0.08);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(139, 0, 0, 0.12);
  color: #8B0000;
  margin-bottom: 20px;
  transition: background 0.3s, color 0.3s;
}

.service-card:hover .service-card__icon {
  background: #8B0000;
  color: #F5F5F5;
}

.service-card__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.service-card__desc {
  font-size: 0.9rem;
  color: #999;
  line-height: 1.7;
}

/* ===== WHY US ===== */
.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

.why-card {
  padding: 32px 24px;
  border-left: 3px solid #8B0000;
  transition: transform 0.3s;
}

.why-card:hover {
  transform: translateX(6px);
}

.why-card__num {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: rgba(139, 0, 0, 0.25);
  margin-bottom: 12px;
  line-height: 1;
}

.why-card__title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.why-card__desc {
  font-size: 0.9rem;
  color: #999;
  line-height: 1.7;
}

/* ===== FAQ ===== */
.faq__list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: #1A1A1A;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  color: #F5F5F5;
  transition: color 0.3s;
}

.faq-item__question:hover {
  color: #B22222;
}

.faq-item__arrow {
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-item.active .faq-item__arrow {
  transform: rotate(180deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-item__answer {
  max-height: 300px;
}

.faq-item__answer p {
  padding: 0 24px 20px;
  font-size: 0.92rem;
  color: #999;
  line-height: 1.7;
}

/* ===== CONTACT ===== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form__label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #999;
}

.form__input {
  padding: 14px 16px;
  background: #1A1A1A;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #F5F5F5;
  font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
  font-family: inherit;
}

.form__input::placeholder {
  color: #555;
}

.form__input:focus {
  border-color: #8B0000;
  box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.15);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 8px;
}

.contact__info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  color: #999;
}

.contact__info-item svg {
  color: #8B0000;
  flex-shrink: 0;
}

.contact__info-item--link {
  text-decoration: none;
  color: #999;
  transition: color 0.3s;
  cursor: pointer;
}

.contact__info-item--link:hover {
  color: #F5F5F5;
}

.form__toast {
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.4s, transform 0.4s;
  pointer-events: none;
}

.form__toast--visible {
  opacity: 1;
  transform: translateY(0);
}

.form__toast--success {
  background: rgba(26, 139, 26, 0.12);
  border: 1px solid rgba(26, 139, 26, 0.3);
  color: #4caf50;
}

.form__toast--error {
  background: rgba(139, 0, 0, 0.12);
  border: 1px solid rgba(139, 0, 0, 0.3);
  color: #B22222;
}

/* ===== FOOTER ===== */
.footer {
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer__copy {
  font-size: 0.85rem;
  color: #555;
}

/* ===== HERO BADGE ===== */
.hero__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #B22222;
  background: rgba(139, 0, 0, 0.1);
  border: 1px solid rgba(139, 0, 0, 0.25);
  border-radius: 100px;
  padding: 8px 20px;
  margin-bottom: 24px;
  animation: badge-pulse 3s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(139, 0, 0, 0.3); }
  50% { box-shadow: 0 0 0 10px rgba(139, 0, 0, 0); }
}

/* ===== HERO BG OVERLAY ===== */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ===== FEATURED SERVICE CARD ===== */
.service-card--featured {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: start;
  padding: 40px;
  border-color: rgba(139, 0, 0, 0.3);
  box-shadow: 0 0 40px rgba(139, 0, 0, 0.08), inset 0 0 40px rgba(139, 0, 0, 0.02);
}

.service-card--featured:hover {
  border-color: rgba(139, 0, 0, 0.5);
  box-shadow: 0 0 60px rgba(139, 0, 0, 0.12), inset 0 0 60px rgba(139, 0, 0, 0.04);
  transform: translateY(-2px);
}

.service-card--featured .service-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}

.service-card__features {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-card__features li {
  font-size: 0.9rem;
  color: #BBB;
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-card__features li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #8B0000;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ===== SECONDARY SERVICES ===== */
.services__secondary {
  margin-top: 80px;
}

.services__secondary-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}

.services__secondary-line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.services__secondary-label {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #666;
  white-space: nowrap;
}

.services__grid--secondary {
  gap: 16px;
}

/* ===== MINIMAL SERVICE CARD ===== */
.service-card--minimal {
  padding: 24px 20px;
}

.service-card--minimal .service-card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
}

.service-card--minimal .service-card__title {
  font-size: 1rem;
  margin-bottom: 6px;
}

.service-card--minimal .service-card__desc {
  font-size: 0.82rem;
}

/* ===== SCROLL REVEAL ===== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .nav__links {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(12px);
    padding: 16px 0;
    transform: translateY(-110%);
    visibility: hidden;
    opacity: 0;
    transition: transform 0.4s, visibility 0.4s, opacity 0.4s;
    border-bottom: 1px solid rgba(139, 0, 0, 0.2);
  }

  .nav__links.open {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
  }

  .nav__link {
    display: block;
    padding: 14px 24px;
    font-size: 1rem;
  }

  .nav__link--cta {
    margin: 8px 24px;
    text-align: center;
  }

  .nav__toggle {
    display: flex;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .service-card--featured {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 24px;
  }

  .why-card {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }
}
