/* =============================================
   Ultra Express DZ - Custom Styles
   =============================================
   Table of Contents:
   1. Base / Resets
   2. Logo
   3. Animations
   4. Feature Cards (home page)
   5. Form Fixes
   6. Section Typography
   7. Page Hero Decoration
   8. Offices: Grid
   9. Offices: Card
  10. Offices: CTA
  11. Footer
  12. Responsive
   ============================================= */

/* -- 1. Base / Resets -- */
html {
  scroll-behavior: smooth;
}

.container {
  width: min(1200px, calc(100% - 2rem));
  margin-inline: auto;
}

/* -- 1b. Sticky Header (sub-pages) -- */
/* bg-background/95 isn't in compiled Tailwind, so we provide a real bg */
header.sticky {
  background-color: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
header.sticky.is-scrolled {
  background-color: rgba(10, 10, 10, 0.98);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

/* -- 2. Logo -- */
.logo-text {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.15em;
}
.logo-text .logo-ultra  { font-weight: 900; }
.logo-text .logo-express { font-weight: 700; }
.logo-text .logo-dz      { font-weight: 900; color: var(--primary, #d60000); }
.logo-text-footer        { opacity: 0.3; }

/* -- 3. Animations -- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up { animation: fadeInUp 0.6s ease-out forwards; }
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* -- 4. Feature Cards (home page) -- */
.feature-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* -- 5. Form Fixes -- */
select option {
  background-color: #1a1a1a;
  color: #fff;
}

/* -- 6. Section Typography -- */
.section-title {
  max-width: 900px;
  margin-inline: auto;
  line-height: 1.05;
}
.section-description {
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
}

/* -- 7. Page Hero Decoration -- */
.page-hero-decoration {
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #d60000, #e0776a);
  margin: 1rem auto 0;
}

/* -- 8. Offices: Grid -- */
.offices-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .offices-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* -- 9. Offices: Card -- */
.office-card {
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  background: rgba(16, 16, 16, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.office-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.office-card:hover {
  transform: translateY(-4px);
  border-color: rgba(214, 0, 0, 0.25);
  box-shadow:
    0 16px 36px rgba(214, 0, 0, 0.12),
    0 8px 18px rgba(0, 0, 0, 0.34);
}
@media (min-width: 768px) {
  .office-card {
    flex-direction: row;
    align-items: stretch;
  }
}

.office-card__side {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  min-height: 140px;
  padding: 1.25rem 1rem;
  background: linear-gradient(135deg, #d60000 0%, #8b0000 100%);
  overflow: hidden;
  isolation: isolate;
}
.office-card__side::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.14), transparent 35%),
    radial-gradient(circle at bottom left, rgba(255,255,255,0.08), transparent 40%);
  z-index: 0;
}
.office-card__side::after {
  content: "";
  position: absolute;
  inset: auto auto -18px -10px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  filter: blur(4px);
  z-index: 0;
}
@media (min-width: 768px) {
  .office-card__side {
    width: 170px;
    min-width: 170px;
    max-width: 170px;
    min-height: auto;
  }
}

.office-card__city {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.office-card__code {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  margin-top: 0.75rem;
  font-size: clamp(3rem, 5vw, 4.3rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.16);
}

.office-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  background: linear-gradient(180deg, rgba(24,24,24,0.96) 0%, rgba(18,18,18,0.98) 100%);
}
@media (min-width: 768px) {
  .office-card__body {
    padding: 1.35rem 1.4rem 1.2rem;
  }
}

.office-card__row {
  display: flex;
  align-items: start;
  gap: 0.75rem;
}
.office-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--secondary, #e0776a), var(--primary, #d60000));
  color: #fff;
  box-shadow: 0 6px 14px rgba(214, 0, 0, 0.22);
}

.office-card__address {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.office-card__phone {
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.6;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.45);
  text-underline-offset: 3px;
}
.office-card__phone:hover {
  text-decoration-color: rgba(214, 0, 0, 0.9);
}

.office-card__maps {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 3rem;
  margin-top: 0.25rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #d60000 0%, #ad0000 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}
.office-card__maps:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #e10606 0%, #c00000 100%);
  box-shadow:
    0 8px 20px rgba(214,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.1);
}

/* -- 10. Offices: CTA -- */
.offices-cta {
  max-width: 820px;
  margin: 2.5rem auto 0;
  background: linear-gradient(135deg, rgba(214,0,0,0.08) 0%, rgba(26,26,26,0.72) 100%);
  border: 1px solid rgba(214, 0, 0, 0.16);
  border-radius: 1rem;
  padding: 2rem 1.25rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 26px rgba(0,0,0,0.2);
}
.offices-cta__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.offices-cta__phone:hover {
  text-decoration: underline;
}

/* -- 11. Footer -- */
.footer-line {
  height: 1px;
  width: 100%;
  background: linear-gradient(to right, transparent, var(--primary, #d60000), transparent);
}
.copyright-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
}

/* -- 12. Responsive -- */
@media (max-width: 767px) {
  .offices-grid {
    gap: 1.15rem;
  }
  .office-card__side {
    min-height: 130px;
  }
  .office-card__city {
    font-size: 1.05rem;
  }
  .office-card__code {
    font-size: 3.2rem;
  }
  .office-card__body {
    padding: 1rem;
  }
  .office-card__maps {
    min-height: 2.85rem;
    font-size: 0.9rem;
  }
  .offices-cta {
    padding: 1.5rem 1rem;
  }
}


.offices-hero{
  margin-top: 10rem;
}