/* base_styles.css - Complete with two phone numbers support */
:root {
  /* Color Variables */
  --deep-navy: #102541;
  --safety-orange: #ff7f11;
  --brick-red: #a62639;
  --concrete-gray: #f5f5f5;
  --steel-gray: #6c757d;
  --accent-teal: #20c997;
  --sun-yellow: #ffc107;
  --metal-silver: #6c757d;
  --white: #ffffff;
  --dark-bg: #111111;
  --footer-blue: #0d2b4d;
  --footer-light-blue: #1a3a5f;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

/* Header Styles */
#main-header {
  background-color: var(--deep-navy);
  padding: 15px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 3px solid var(--safety-orange);
}

#main-header.scrolled {
  background-color: var(--deep-navy);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-size: 1.8rem;
  font-weight: 700;
  color: white !important;
}

.navbar-brand i {
  color: var(--safety-orange);
  margin-right: 8px;
}

.nav-link {
  color: white !important;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 4px;
  margin: 0 4px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  background-color: var(--safety-orange);
  border: 2px solid var(--safety-orange);
}

/* UPDATED: Phone numbers container in navbar */
.phone-numbers {
  display: flex;
  gap: 8px;
  margin-left: 15px;
}

.phone-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 15px !important;
  background-color: var(--brick-red);
  border: 2px solid var(--brick-red);
  border-radius: 4px;
  white-space: nowrap;
  font-weight: 600;
  transition: all 0.3s ease;
}

.phone-link:hover {
  background-color: #8c1c2b;
  border-color: #8c1c2b;
  transform: translateY(-2px);
}

.phone-link i {
  margin-right: 5px;
}

/* Fix dropdown menu for mobile */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: white;
    padding: 15px;
    margin-top: 10px;
    border-radius: 5px;
    border: 2px solid var(--safety-orange);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  }
  
  .navbar-collapse .nav-link {
    color: var(--deep-navy) !important;
    background-color: rgba(255, 255, 255, 0.9);
    margin: 5px 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .navbar-collapse .nav-link:hover,
  .navbar-collapse .nav-link.active {
    color: var(--deep-navy) !important;
    background-color: var(--safety-orange);
    border: 2px solid var(--safety-orange);
  }
  
  /* UPDATED: Phone numbers in mobile menu */
  .navbar-collapse .phone-numbers {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0 0 0;
    padding: 0;
  }
  
  .navbar-collapse .phone-link {
    color: white !important;
    background-color: var(--brick-red);
    border: 2px solid var(--brick-red);
    margin: 5px 0;
    text-align: center;
    justify-content: center;
  }
  
  .navbar-collapse .phone-link:hover {
    background-color: #8c1c2b;
    border-color: #8c1c2b;
  }
}

/* Desktop adjustments for phone numbers */
@media (min-width: 992px) {
  .phone-numbers {
    gap: 10px;
  }
  
  .phone-link {
    padding: 8px 20px !important;
  }
}

/* Hero Section */
.hero {
  background: rgba(10, 35, 66, 0.9) url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  color: white;
  padding: 180px 0 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  margin-block-start: 2rem;
}

.hero-content {
  max-width: 800px;
  text-align: left;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  padding-bottom: 20px;
}

.hero h1:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 120px;
  height: 4px;
  background-color: var(--safety-orange);
}

.hero .lead {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.hero-stats {
  margin-top: 4rem;
  justify-content: flex-start;
}

.stat {
  padding: 20px 0;
  text-align: left;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--safety-orange);
  line-height: 1;
}

.stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 10px;
}

/* Services Summary */
.services-summary {
  padding: 100px 0;
  background-color: var(--concrete-gray);
}

.services-summary h2 {
  color: var(--deep-navy);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 20px;
  display: block;
  text-align: center;
  width: 100%;
}

.services-summary h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background-color: var(--safety-orange);
}

.services-summary .lead {
  color: var(--steel-gray);
  font-size: 1.2rem;
  margin-bottom: 3rem;
}

.service-summary-card {
  background: white;
  border-radius: 8px;
  padding: 30px;
  height: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.service-summary-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid var(--safety-orange);
}

.service-summary-icon {
  width: 70px;
  height: 70px;
  background-color: var(--safety-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  border: 2px solid var(--safety-orange);
}

.service-summary-icon i {
  font-size: 30px;
  color: white;
}

.service-summary-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--deep-navy);
}

.service-summary-desc {
  color: var(--steel-gray);
  margin-bottom: 20px;
}

.service-summary-features {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.service-summary-features li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.service-summary-link {
  color: var(--safety-orange);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  border: 2px solid transparent;
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.service-summary-link:hover {
  color: var(--deep-navy);
  border: 2px solid var(--safety-orange);
  background-color: rgba(255, 127, 17, 0.1);
}

/* Contact Section */
.contact {
  padding: 100px 0;
  background-color: var(--deep-navy);
  color: white;
}

.contact h2 {
  color: white;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 20px;
  display: block;
  text-align: center;
  width: 100%;
}

.contact h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background-color: var(--safety-orange);
}

.contact .lead {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 3rem;
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.contact-form .form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 15px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.contact-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.contact-form .form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid var(--safety-orange);
  box-shadow: 0 0 0 0.25rem rgba(255, 127, 17, 0.25);
  color: white;
}

/* Fixed: Select dropdown text color */
.contact-form select.form-control {
  color: white;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px 12px;
  padding-right: 45px;
}

/* Fixed: Select dropdown options - dark text */
.contact-form select.form-control option {
  color: var(--deep-navy) !important;
  background-color: white !important;
  padding: 10px;
}

/* Fixed: Selected option text color */
.contact-form select.form-control:valid,
.contact-form select.form-control:focus {
  color: white !important;
}

/* Fixed: Remove default option text color */
.contact-form select.form-control option[value=""][disabled] {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Fixed: Change dropdown arrow color to white */
.contact-form select.form-control::-ms-expand {
  display: none;
}

/* Fixed: For Firefox */
@-moz-document url-prefix() {
  .contact-form select.form-control {
    color: white !important;
    text-shadow: 0 0 0 white;
  }
  
  .contact-form select.form-control option {
    color: var(--deep-navy) !important;
    text-shadow: 0 0 0 var(--deep-navy);
  }
}

/* Fixed: Textarea text color */
.contact-form textarea.form-control {
  color: white;
  min-height: 150px;
  resize: vertical;
}

/* UPDATED: Footer with two phone numbers */
footer {
  background-color: var(--footer-blue);
  color: white;
  padding: 80px 0 30px;
  border-top: 3px solid var(--safety-orange);
}

footer .logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: white !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  margin-bottom: 20px;
}

footer .logo i {
  color: var(--safety-orange);
  margin-right: 8px;
}

footer .text-white.opacity-75 {
  color: rgba(255, 255, 255, 0.85) !important;
  line-height: 1.7;
  font-size: 1.05rem;
}

footer h5 {
  color: white;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 12px;
}

footer h5:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--safety-orange);
}

.footer-links {
  display: flex;
  flex-direction: column;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 10px 0;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  padding: 8px 12px;
  border-radius: 4px;
  margin: 2px 0;
  display: block;
}

.footer-links a:hover {
  color: white;
  border: 2px solid var(--safety-orange);
  background-color: var(--footer-light-blue);
  transform: translateX(5px);
}

/* UPDATED: Footer contact with two phone numbers */
.footer-contact {
  margin-top: 10px;
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  line-height: 1.6;
  padding-left: 5px;
}

.footer-contact i {
  color: var(--safety-orange);
  margin-right: 12px;
  margin-top: 5px;
  min-width: 20px;
  text-align: center;
}

/* UPDATED: Phone numbers container in footer */
.footer-phone-numbers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 15px 0;
}

.footer-phone-link {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 10px 15px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid transparent;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.footer-phone-link:hover {
  color: white;
  background-color: var(--footer-light-blue);
  border: 2px solid var(--safety-orange);
  transform: translateX(5px);
}

.footer-phone-link i {
  color: var(--safety-orange);
  margin-right: 10px;
  font-size: 1.1rem;
}

.footer-phone-number {
  font-weight: 600;
  font-size: 1.05rem;
}

.footer-phone-label {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-left: 5px;
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 25px;
}

.social-icons a {
  width: 42px;
  height: 42px;
  background: var(--footer-light-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.social-icons a:hover {
  background-color: var(--safety-orange);
  transform: translateY(-5px);
  border: 2px solid var(--safety-orange);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 30px;
  margin-top: 50px;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

.copyright p {
  margin: 0;
  padding: 0;
}

/* Button Styles */
.btn-primary {
  background-color: var(--safety-orange);
  border: 2px solid var(--safety-orange);
  padding: 15px 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  color: white;
}

.btn-primary:hover {
  background-color: #ff6b00;
  border-color: #ff6b00;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 127, 17, 0.3);
}

.btn-outline-light {
  border: 2px solid white;
  color: white;
  padding: 15px 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  background-color: transparent;
}

.btn-outline-light:hover {
  background-color: white;
  color: var(--deep-navy);
  border-color: white;
}

/* Fix for all section headings alignment */
section h2 {
  position: relative;
  padding-bottom: 20px;
  display: inline-block;
}

/* Left-aligned headings get left-aligned underline */
section h2:not(.text-center) {
  padding-left: 0;
  padding-right: 0;
}

section h2:not(.text-center):after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100px;
  height: 4px;
  background-color: var(--safety-orange);
}

/* Center-aligned headings get center-aligned underline */
section h2.text-center {
  display: block;
  text-align: center;
  width: 100%;
}

section h2.text-center:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background-color: var(--safety-orange);
}

/* Fix for iOS Safari 100vh issue */
@supports (-webkit-touch-callout: none) {
  .hero, .services-hero {
    height: -webkit-fill-available;
  }
}

/* Improve touch targets for mobile */
@media (max-width: 767px) {
  .nav-link {
    padding: 12px 16px !important;
    margin: 4px 0;
  }
  
  .btn-primary, .btn-outline-light {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* Better focus states for accessibility */
*:focus {
  outline: 2px solid var(--safety-orange);
  outline-offset: 2px;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Better image rendering */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure consistent section spacing */
section {
  scroll-margin-top: 80px;
}

/* Mobile responsive fixes */
@media (max-width: 767px) {
  section h2 {
    padding-bottom: 15px;
  }
  
  section h2:after,
  section h2.text-center:after,
  .services-summary h2:after,
  .contact h2:after {
    width: 80px;
    height: 3px;
  }
  
  .hero h1:after {
    width: 80px;
    height: 3px;
  }
  
  /* Footer mobile fixes */
  footer {
    padding: 60px 0 25px;
  }
  
  footer .row > div {
    margin-bottom: 30px;
  }
  
  footer .row > div:last-child {
    margin-bottom: 0;
  }
  
  footer h5 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
  }
  
  footer h5:after {
    width: 40px;
    height: 2px;
  }
  
  .footer-links a {
    padding: 8px 10px;
    font-size: 0.95rem;
  }
  
  .footer-contact p {
    font-size: 0.95rem;
    margin-bottom: 15px;
  }
  
  /* UPDATED: Footer phone numbers mobile */
  .footer-phone-numbers {
    gap: 8px;
  }
  
  .footer-phone-link {
    padding: 8px 12px;
  }
  
  .footer-phone-number {
    font-size: 1rem;
  }
  
  .social-icons {
    margin-top: 20px;
  }
  
  .social-icons a {
    width: 38px;
    height: 38px;
  }
  
  .copyright {
    padding-top: 25px;
    margin-top: 40px;
    font-size: 0.9rem;
  }
}

/* Tablet adjustments */
@media (max-width: 991px) and (min-width: 768px) {
  .hero h1 {
    font-size: 2.8rem !important;
  }
  
  .hero h1:after {
    width: 100px;
  }
  
  /* Footer tablet adjustments */
  footer .row > div {
    margin-bottom: 30px;
  }
  
  footer h5 {
    font-size: 1.25rem;
  }
  
  /* Navbar phone numbers tablet */
  .phone-numbers {
    flex-direction: column;
    gap: 5px;
  }
  
  .phone-link {
    padding: 6px 12px !important;
    font-size: 0.9rem;
  }
}

/* WhatsApp specific styling in social icons */
.social-icons .fa-whatsapp {
    color: #25D366;
}

.social-icons a:hover .fa-whatsapp {
    color: white;
}

/* Phone number links */
.phone-link, .footer-phone-link {
    transition: all 0.3s ease;
}

.phone-link:hover, .footer-phone-link:hover {
    text-decoration: none;
}


.nav-logo-img {
  width: clamp(12.5rem, 6.25rem + 31.25vw, 31.25rem);
}
