/* ==========================================================================
   GLOBAL VARIABLES & BASE STYLES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Montserrat:ital,wght@0,300..900;1,300..900&display=swap');

:root {
  /* Colors */
  --primary: #d1424c;
  --primary-hover: #bc3b44;
  --bg-color: #FFFFFF;
  --text-color: #292929;
  --text-muted: #666666;
  --light-gray: #f8f9fa;
  --border-color: #e9ecef;

  /* Typography */
  --font-heading: 'Anton', sans-serif;
  --font-body: 'Montserrat', sans-serif;

  /* Layout & Design Rules */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 15px 40px rgba(191, 0, 40, 0.15);
  --transition: all 0.3s ease-in-out;
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--text-color);
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   TYPOGRAPHY UTILITIES
   ========================================================================== */
.bg-primary {
  background-color: var(--primary) !important;
}

.text-primary {
  color: var(--primary) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 3rem auto;
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* Buttons */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  padding: 12px 30px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(191, 0, 40, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(191, 0, 40, 0.3);
}

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

.btn-outline:hover {
  background-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* Cards */
.card-premium {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-premium:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(191, 0, 40, 0.2);
}

.card-red-top {
  background: #fff;
  padding: 30px;
  box-shadow: var(--shadow-soft);
  border-top: 3px solid var(--primary);
  height: 100%;
  transition: var(--transition);
}

.card-red-top:hover {
  box-shadow: var(--shadow-hover);
}

.bg-dark-section {
  background-color: #2b2b2b;
  color: #fff;
}

.card-dark {
  background-color: #363636;
  border: none;
  padding: 25px;
  transition: var(--transition);
}

.card-dark:hover {
  background-color: #404040;
}

/* Forms */
.form-control,
.form-select {
  border-radius: var(--radius-sm);
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  font-family: var(--font-body);
  transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(191, 0, 40, 0.1);
  outline: none;
}

/* ==========================================================================
   LAYOUT & SECTIONS
   ========================================================================== */
.section-padding {
  padding: 80px 0;
}

.bg-light-gray {
  background-color: var(--light-gray);
}

.bg-primary-dark {
  background-color: var(--primary);
  color: #fff;
}

.bg-primary-dark h1,
.bg-primary-dark h2,
.bg-primary-dark h3,
.bg-primary-dark p {
  color: #fff;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
  transition: var(--transition);
}

.header-brand img {
  max-height: 50px;
}

.header-brand .brand-text {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--primary);
  line-height: 1;
}

.main-nav .nav-link {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-color);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
  padding: 6px 10px;
  white-space: nowrap;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
  color: var(--primary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #fff;
  padding: 80px 0 0;
  border-top: 1px solid var(--border-color);
}

.footer-widget h5 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  color: var(--text-muted);
}

.footer-contact i {
  color: var(--primary);
  font-size: 1.2rem;
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 20px 0;
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   ANIMATIONS (Intersection Observer)
   ========================================================================== */
.anim-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.anim-fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Delay classes */
.delay-100 {
  transition-delay: 100ms;
}

.delay-200 {
  transition-delay: 200ms;
}

.delay-300 {
  transition-delay: 300ms;
}

.delay-400 {
  transition-delay: 400ms;
}

/* ==========================================================================
   PAGE HEADER
   ========================================================================== */
.page-header {
  position: relative;
  background: url('../images/hero_bg.png') center/cover !important;
  z-index: 1;
  padding-top: 120px !important;
  padding-bottom: 120px !important;
  border-bottom: 5px solid var(--primary) !important;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(0 0 0 / 38%);
  z-index: -1;
}

.page-header h1 {
  color: #fff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.page-header p {
  color: rgba(255, 255, 255, 0.9) !important;
  background-color: #d1424c;
}

/* Custom nowrap rules to prevent header menu elements and buttons from breaking or wrapping */
.site-header .nav-link,
.site-header .btn,
.site-header .header-brand {
  white-space: nowrap !important;
}

/* Service Image Card Styles (Home Page) */
.service-image-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-image-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(191, 0, 40, 0.15);
  border-color: rgba(191, 0, 40, 0.2);
}

.service-card-img-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  border-bottom: 3px solid var(--primary);
}

.service-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-image-card:hover .service-card-img-wrapper img {
  transform: scale(1.05);
}

.service-card-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-body h4 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  color: var(--text-color);
  letter-spacing: 0.5px;
}

.service-card-body p {
  flex-grow: 1;
  color: var(--text-muted);
}

/* Modern Timeline UI/UX Styling */
.modern-timeline {
  position: relative;
  padding-left: 50px;
  margin: 40px 0;
}

/* Timeline Vertical Line */
.modern-timeline::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 20px;
  bottom: 10px;
  width: 4px;
  background: linear-gradient(to bottom, var(--primary), rgba(191, 0, 40, 0.15));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 45px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* Timeline Badge (Icon inside Circle) */
.timeline-badge {
  position: absolute;
  top: 12px;
  left: -50px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(191, 0, 40, 0.15);
  transition: all 0.3s ease-in-out;
}

.timeline-item:hover .timeline-badge {
  background: var(--primary);
  color: #fff;
  transform: scale(1.15);
  box-shadow: 0 6px 15px rgba(191, 0, 40, 0.3);
}

/* Timeline Card */
.timeline-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 25px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
  position: relative;
  transition: all 0.3s ease-in-out;
}

.timeline-card::before {
  content: '';
  position: absolute;
  top: 24px;
  left: -8px;
  width: 15px;
  height: 15px;
  background: #fff;
  border-left: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  transform: rotate(45deg);
  transition: all 0.3s ease-in-out;
}

.timeline-item:hover .timeline-card {
  transform: translateX(10px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(191, 0, 40, 0.2);
}

.timeline-item:hover .timeline-card::before {
  border-color: rgba(191, 0, 40, 0.2);
}

/* Timeline Badge/Pill for Year */
.timeline-year {
  display: inline-block;
  background: rgba(191, 0, 40, 0.08);
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  padding: 4px 12px;
  border-radius: 30px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  font-weight: 700;
  transition: all 0.3s ease-in-out;
}

.timeline-item:hover .timeline-year {
  background: var(--primary);
  color: #fff;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--text-color);
}

.timeline-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}