/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #b91c1c; /* Crimson Red */
  --secondary-color: #dc2626; /* Lighter Red */
  --accent-color: #ea580c; /* Dark Orange */
  --dark-color: #111827; /* Dark Gray/Black */
  --light-color: #f9fafb; /* Off White */
  --gray-color: #6b7280; /* Gray */
  --white-color: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--white-color);
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.header {
  background: transparent;
  box-shadow: none;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transform: translateY(0); /* Always visible */
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Transparent navigation for home and about pages */
body.home .header-bar,
body.about .header-bar {
  background: transparent;
  box-shadow: none;
  margin: 0 200px 0 auto;
}

/* Crimson background for Contact and Login pages */
body.contact .header-bar,
body.login .header-bar {
  background: var(--primary-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header.scrolled .header-bar {
  background: var(--primary-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-bar {
  background: transparent;
  border-radius: 0 0 15px 15px;
  padding: 0.3rem 0;
  box-shadow: none;
  width: fit-content;
  margin: 0 200px 0 auto;
  min-width: 400px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar {
  padding: 0;
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-logo .logo {
  height: 90px;
  width: auto;
  position: fixed;
  top: 0.9375rem;
  left: 4rem;
  z-index: 1001;
  transform: none !important;
  transition: height 0.3s ease, top 0.3s ease;
}

/* Larger logo for home page only */
body.home .nav-logo .logo {
  height: 180px;
  top: 0.4375rem;
}

body.home .nav-logo .logo.scrolled {
  height: 90px;
  top: 0.9375rem;
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--white-color);
  font-weight: 500;
  transition: var(--transition);
  padding: 0.3rem 0.8rem;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
}

/* White navigation text for home and about pages */
body.home .nav-link,
body.about .nav-link {
  color: var(--white-color);
}

/* White navigation text for Services, Contact and Login pages */
body.contact .nav-link,
body.login .nav-link {
  color: var(--white-color);
}

.nav-link:hover {
  color: var(--white-color);
  opacity: 0.8;
}

.nav-link.login-btn {
  background: var(--white-color) !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--white-color);
  padding: 0.3rem 0.8rem;
  font-size: 0.9rem;
}

.nav-link.login-btn:hover {
  background: var(--primary-color) !important;
  color: var(--white-color) !important;
  border: 2px solid var(--white-color);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--white-color);
  margin: 3px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.hero-content {
  text-align: center;
  color: var(--white-color);
  max-width: 800px;
  padding: 0 20px;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  margin-top: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white-color);
}

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

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

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--white-color);
}

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

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white-color);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* Section Styles */
section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--gray-color);
  max-width: 600px;
  margin: 0 auto;
}

/* Services Grid */
.services {
  background: var(--light-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--white-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.service-icon i {
  font-size: 2rem;
  color: var(--white-color);
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.service-card p {
  color: var(--gray-color);
  line-height: 1.6;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--white-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-color);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon i {
  font-size: 1.5rem;
  color: var(--white-color);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.feature-card p {
  color: var(--gray-color);
}

/* Contact CTA */
.contact-cta {
  background: var(--primary-color);
  color: var(--white-color);
  text-align: center;
}

.cta-buttons .btn-primary {
  background: var(--white-color);
  color: var(--primary-color);
  border: 2px solid var(--white-color);
}

.cta-buttons .btn-primary:hover {
  background: transparent;
  color: var(--white-color);
}

.phone-icon-link {
  text-decoration: none;
  display: inline-block;
  margin-left: -2px;
}

.contact-icon {
  color: var(--white-color);
  font-size: 1rem;
  transition: var(--transition);
}

.phone-icon-link:hover .contact-icon {
  color: #ffcccb;
}

.phone-link {
  color: var(--white-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.phone-link:hover {
  color: #ffcccb;
  text-decoration: underline;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Page Hero */
.page-hero {
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
  height: 60vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.page-hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: -1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1,
.page-hero p {
  color: var(--white-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.25rem;
}

/* About Page */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--gray-color);
  line-height: 1.7;
}

.about-video video {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.team-card {
  background: var(--white-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.team-image {
  width: 150px;
  height: 150px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.team-role {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Services Detailed */
.services-detailed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.service-detailed-card {
  background: var(--white-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-detailed-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-detailed-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-color);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-detailed-icon i {
  font-size: 1.75rem;
  color: var(--white-color);
}

.service-detailed-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.service-detailed-card p {
  color: var(--gray-color);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.service-detailed-card ul {
  list-style: none;
}

.service-detailed-card li {
  padding: 0.5rem 0;
  color: var(--gray-color);
  position: relative;
  padding-left: 1.5rem;
}

.service-detailed-card li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.contact-info > p {
  color: var(--gray-color);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 1.25rem !important;
  color: var(--white-color) !important;
  display: block !important;
}

.contact-details h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.contact-details p {
  color: var(--gray-color);
}

.contact-details a {
  color: var(--primary-color);
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

.address-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}

.address-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Form Styles */
.contact-form-container h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Login Page */
.login-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--light-color);
  padding-top: 80px;
}

.login-container {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.login-card {
  background: var(--white-color);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo {
  height: 60px;
  margin-bottom: 1rem;
}

.login-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--dark-color);
}

.login-header p {
  color: var(--gray-color);
}

.login-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.login-footer a {
  color: var(--primary-color);
  text-decoration: none;
}

.login-footer a:hover {
  text-decoration: underline;
}

/* Dashboard */
.dashboard-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-top: 80px;
}

.dashboard-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.dashboard-header p {
  font-size: 1.125rem;
  color: var(--gray-color);
  margin-bottom: 1.5rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.dashboard-card {
  background: var(--white-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.dashboard-icon {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.dashboard-icon i {
  font-size: 2rem;
  color: var(--white-color);
}

.dashboard-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.dashboard-card p {
  color: var(--gray-color);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Footer */
.footer {
  background: var(--dark-color);
  color: var(--white-color);
  padding: 1.5rem 0 0.5rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-logo {
  padding-left: 0;
}

.footer-section h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.footer-logo-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-logo-img {
  height: 50px;
  align-self: center;
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 50px; /* Match logo height */
}

.footer-logo-text h3 {
  font-size: 1.0rem !important;
  font-weight: 700;
  margin-bottom: 0;
  margin-top: auto; /* Push to bottom */
  color: var(--white-color);
}

.footer-logo-text p {
  font-size: 0.8rem;
  color: #9ca3af;
  line-height: 1.4;
  margin-bottom: 0;
  margin-top: 0; /* Position at top */
}

.locations-logo {
  height: 30px;
  margin: 1rem 0 0.5rem 0;
  opacity: 0.9;
}

.footer-section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-section p {
  color: #9ca3af;
  line-height: 1.6;
}

.disclaimer {
  font-size: 0.875rem;
  color: #6b7280;
  font-style: italic;
  margin-top: 0.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-item i {
  color: var(--primary-color);
  width: 20px;
}

.contact-link {
  color: #9ca3af;
  text-decoration: none;
  transition: var(--transition);
}

.contact-link:hover {
  color: var(--white-color);
  text-decoration: underline;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white-color);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #374151;
  color: #9ca3af;
}

/* Alert Styles */
.alert {
  padding: 1rem;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
}

.fade-in-section {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 60px;
    flex-direction: column;
    background-color: var(--primary-color);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 1.5rem 0;
    border-radius: 0 0 20px 20px;
  }

  .nav-menu .nav-link {
    color: var(--white-color);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-logo .logo {
    height: 60px;
    top: 0.75rem;
    left: 2rem;
    transform: none !important;
    transition: height 0.3s ease, top 0.3s ease;
  }

  /* Larger logo for home page only on mobile */
  body.home .nav-logo .logo {
    height: 120px;
    top: 1rem;
  }

  body.home .nav-logo .logo.scrolled {
    height: 60px;
    top: 0.75rem;
  }

  .header-bar {
    margin: 0 20px 0 auto;
    min-width: 300px;
    padding: 0.25rem 0;
  }

  .footer-container {
    padding: 0 15px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .page-hero h1 {
    font-size: 2.5rem;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .dashboard-header h1 {
    font-size: 2rem;
  }
}

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

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .services-grid,
  .features-grid,
  .team-grid,
  .services-detailed-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}
