/* Clearfork Intelligence Website Styles */

:root {
  --primary-blue: #003B5C;
  --primary-blue-dark: #00293d;
  --primary-blue-light: #1B4F72;
  --primary-green: #1B5E20;
  --primary-green-dark: #0f4114;
  --primary-green-light: #2E7D32;
  --accent-blue: #0084FF;
  --accent-green: #4CAF50;
  --light-green: #E8F5E8;
  --text-primary: #1a1a1a;
  --text-secondary: #4a5568;
  --light-color: #f8fafc;
  --dark-color: #1a1a1a;
  --overlay-color: rgba(0, 59, 92, 0.85);
  --overlay-green: rgba(27, 94, 32, 0.85);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  
  /* Legacy mappings for smooth transition */
  --sunset-orange: var(--accent-green);
  --sunset-orange-dark: var(--primary-green-dark);
  --sunset-orange-light: var(--accent-green);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Open Sans', sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: #fff;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1.2rem;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--sunset-orange);
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary-blue);
  color: white;
  box-shadow: var(--card-shadow);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--sunset-orange), var(--sunset-orange-dark));
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--sunset-orange);
  color: var(--sunset-orange);
  font-weight: 600;
}

.btn-secondary:hover {
  background-color: var(--sunset-orange);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--card-shadow);
}

/* Header and Navigation */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

header.scrolled {
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
  background-color: rgba(255, 255, 255, 0.98);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  transition: padding 0.3s ease;
}

header.scrolled .navbar {
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 80px;
  margin-right: 10px;
  transition: height 0.3s ease;
}

header.scrolled .logo img {
  height: 50px;
}

.logo h1 {
  font-size: 1.5rem;
  margin-bottom: 0;
  color: var(--primary-green);
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 2rem;
  position: relative;
}

/* Dropdown Menu Styles */
.nav-item.has-dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  background-color: white;
  min-width: 200px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  padding: 0.5rem 0;
  margin-top: 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  pointer-events: none;
}

/* Add invisible bridge to prevent hover loss */
.nav-item.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 10px;
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-primary);
  font-weight: 500;
  transition: all 0.3s ease;
}

.dropdown-menu a:hover {
  background-color: var(--light-color);
  color: var(--sunset-orange);
}

.nav-link {
  font-weight: 600;
  color: var(--secondary-color);
  position: relative;
  font-size: 1.05rem;
  transition: all 0.3s ease;
}

header.scrolled .nav-link {
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--sunset-orange);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -5px;
  left: 0;
  background: linear-gradient(90deg, var(--sunset-orange), var(--sunset-orange-dark));
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #4CAF50 !important;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 1px;
}

.hamburger.active .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero Section */
.hero {
  height: 90vh;
  min-height: 600px;
  background: linear-gradient(rgba(26, 77, 46, 0.85), rgba(26, 77, 46, 0.85)), url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  display: flex;
  align-items: center;
  text-align: center;
  margin-top: 110px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  display: none;
}

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

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.8rem;
  margin-bottom: 1.8rem;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  opacity: 0.95;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

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

/* Services Section */
.services {
  padding: 6rem 0;
}

/* Improved spacing for sections */
.section {
  padding: 6rem 0;
}

.section + .section {
  padding-top: 4rem;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

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

.section-title p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.section-title h2 {
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  bottom: -10px;
  left: 25%;
  background: linear-gradient(90deg, var(--sunset-orange), var(--sunset-orange-dark));
}

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

.service-card {
  background-color: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0, 59, 92, 0.1);
}

.service-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  border-color: var(--sunset-orange);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-content {
  padding: 1.5rem;
}

.service-content h3 {
  color: var(--primary-blue);
  font-weight: 700;
}

/* About Section */
.about {
  padding: 6rem 0;
  background-color: var(--light-color);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.contact {
  padding: 5rem 0;
}

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

.contact-info {
  display: flex;
  flex-direction: column;
}

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

.contact-item i {
  font-size: 1.5rem;
  color: var(--sunset-orange);
  margin-right: 1rem;
}

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

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.contact-form textarea {
  height: 150px;
}

/* CTA Section */
.cta {
  background: var(--primary-blue);
  color: white;
  padding: 5rem 0;
  text-align: center;
}

.cta .container {
  position: relative;
  z-index: 1;
}

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

.cta p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.95;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 4rem 0 1rem;
}

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

.footer-column h3 {
  position: relative;
  margin-bottom: 1.5rem;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  bottom: -10px;
  left: 0;
  background: linear-gradient(90deg, var(--sunset-orange), var(--sunset-orange-dark));
}

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

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

.footer-links a {
  color: #ccc;
}

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

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

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: linear-gradient(135deg, var(--sunset-orange), var(--sunset-orange-dark));
  transform: scale(1.1);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
    cursor: pointer;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    right: -100%;
    background-color: white;
    width: 250px;
    height: 100vh;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 2rem;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-item {
    margin: 1.5rem 0;
    width: 100%;
  }
  
  /* Mobile dropdown menu */
  .nav-item.has-dropdown .dropdown-menu {
    position: static;
    display: block;
    opacity: 1;
    transform: none;
    box-shadow: none;
    background: transparent;
    padding: 0.5rem 0 0 1rem;
    margin: 0;
  }
  
  .nav-item.has-dropdown .dropdown-menu a {
    padding: 0.5rem 0;
    border-left: 2px solid var(--accent-blue);
    padding-left: 1rem;
    margin: 0.25rem 0;
    color: var(--text-secondary);
  }
  
  /* Hero Section Mobile */
  .hero {
    padding: 3rem 0;
  }
  
  .hero h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }
  
  .hero p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-buttons .btn {
    width: 100%;
    padding: 1rem;
  }
  
  /* Sections Mobile */
  .services,
  .about,
  .features-section {
    padding: 3rem 0;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }
  
  .section-title p {
    font-size: 1rem;
  }
  
  /* Service Cards Mobile */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  /* Footer Mobile */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  /* Forms Mobile */
  .form-group input,
  .form-group textarea {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.875rem;
  }
  
  /* CTA Section Mobile */
  .cta {
    padding: 3rem 0;
  }
  
  .cta h2 {
    font-size: 1.8rem;
  }
}