/*
 * Global Stylesheet for LHS Solutions LLC
 *
 * This file defines the colour palette, typography, layout
 * and component styles used throughout the site. The design
 * draws inspiration from leading IT service providers and
 * incorporates modern, minimalist principles to help visitors
 * focus on your value proposition. All colours and fonts
 * are defined as variables at the top of the file for easy
 * adjustments. Responsive breakpoints ensure the layout
 * adapts gracefully across desktop, tablet and mobile.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Colour variables */
:root {
  --primary-color: #0a192f;      /* Deep navy used for headers and footers */
  --secondary-color: #172a45;    /* Slightly lighter navy for accents */
  --accent-color: #4f46e5;      /* Indigo accent for buttons and highlights */
  --light-bg: #f9fafb;          /* Soft off‑white used for main backgrounds */
  --card-bg: #ffffff;           /* Pure white for cards */
  --text-color: #1f2937;        /* Dark grey for primary text */
  --muted-text: #6b7280;        /* Mid grey for secondary text */
  --border-radius: 8px;
  --transition: 0.3s ease;
}

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

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-bg);
  overflow-x: hidden;
}

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

a:hover {
  color: darken(var(--accent-color), 10%);
}

/* Utility classes */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: background-color var(--transition), color var(--transition);
}

.btn-primary {
  background-color: var(--accent-color);
  color: #fff;
}

.btn-primary:hover {
  background-color: #3730a3; /* darker indigo for hover */
}

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

.btn-secondary:hover {
  background-color: var(--accent-color);
  color: #fff;
}

/* Header and navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(10, 25, 47, 0.9);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
}

header .nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}

header .logo a {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
}

header nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

header nav ul li a {
  color: #fff;
  font-weight: 500;
  position: relative;
}

header nav ul li a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width var(--transition);
  position: absolute;
  bottom: -4px;
  left: 0;
}

header nav ul li a:hover::after {
  width: 100%;
}

/* Mobile navigation */
#nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

#nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #fff;
  transition: transform var(--transition);
}

/* Collapse nav on small screens */
@media (max-width: 768px) {
  header nav ul {
    position: fixed;
    top: 60px;
    right: 0;
    background-color: rgba(10, 25, 47, 0.95);
    flex-direction: column;
    padding: 1rem 2rem;
    width: 250px;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
    border-bottom-left-radius: var(--border-radius);
  }
  header nav ul.open {
    max-height: 300px;
  }
  #nav-toggle {
    display: flex;
  }
  header nav ul li {
    margin: 0.5rem 0;
  }
}

/* Hero section */
.hero {
  min-height: 80vh;
  background-image: linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.85)), url('../assets/hero-bg.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 2rem 0;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  color: #cbd5e1;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
  .hero p {
    font-size: 1.25rem;
  }
}

/* Feature section */
.features {
  padding: 4rem 0;
  background-color: var(--light-bg);
}

.features h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 600;
}

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

.feature-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Fade-in animations for dynamic appearance */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.feature-card i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.feature-card p {
  color: var(--muted-text);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* Why choose us section */
.why {
  padding: 4rem 0;
  background-color: var(--secondary-color);
  color: #e5e7eb;
}

.why h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 600;
}

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

.why-item {
  text-align: center;
  padding: 2rem;
}

.why-item i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.why-item h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #fff;
}

.why-item p {
  color: #cbd5e1;
  font-size: 0.95rem;
}

/* Call to action */
.cta {
  padding: 3rem 0;
  text-align: center;
  background-color: var(--accent-color);
  color: #fff;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.cta p {
  margin-bottom: 1.5rem;
  color: #e2e8f0;
}

.cta .btn-primary {
  background-color: #fff;
  color: var(--accent-color);
}

.cta .btn-primary:hover {
  background-color: #e0e7ff;
  color: var(--secondary-color);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: #94a3b8;
  padding: 3rem 0;
}

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

footer h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #fff;
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: 0.5rem;
}

footer ul li a {
  color: #94a3b8;
  font-size: 0.9rem;
}

footer ul li a:hover {
  color: #c7d2fe;
}

footer .company-info p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

footer .social-links a {
  margin-right: 1rem;
  font-size: 1.2rem;
  color: #94a3b8;
  transition: color var(--transition);
}

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

footer .copyright {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: #64748b;
}

/* Services page */
.services-hero {
  background-image: linear-gradient(rgba(10,25,47,0.8), rgba(10,25,47,0.8)), url('../assets/hero-bg.png');
  background-size: cover;
  background-position: center;
  padding: 4rem 0;
  text-align: center;
  color: #fff;
}

.services-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.services-hero p {
  font-size: 1.1rem;
  color: #cbd5e1;
}

.service-section {
  padding: 4rem 0;
}

.service-section:nth-child(even) {
  background-color: var(--light-bg);
}

.service {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 3rem;
}

.service h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-color);
}

.service .icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
}

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

.service p {
  font-size: 1rem;
  color: var(--muted-text);
  max-width: 800px;
}

.service ul {
  margin-top: 0.5rem;
  margin-left: 1.5rem;
  list-style: disc;
  color: var(--muted-text);
}

.service ul li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

@media (min-width: 768px) {
  .service {
    flex-direction: row;
    align-items: center;
  }
  .service .icon {
    margin-right: 1.5rem;
  }
  .service h2 {
    margin-top: 0;
  }
}

/* Contact page */
.contact-hero {
  background-image: linear-gradient(rgba(10,25,47,0.8), rgba(10,25,47,0.8)), url('../assets/hero-bg.png');
  background-size: cover;
  background-position: center;
  padding: 4rem 0;
  text-align: center;
  color: #fff;
}

.contact-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.contact-hero p {
  font-size: 1.1rem;
  color: #cbd5e1;
}

.contact-section {
  padding: 4rem 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info {
  flex: 1;
}

.contact-form-container {
  flex: 1;
}

.contact-form {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #d1d5db;
  border-radius: var(--border-radius);
  font-size: 0.95rem;
}

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

.contact-form button {
  padding: 0.75rem 1.5rem;
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  cursor: pointer;
  transition: background-color var(--transition);
}

.contact-form button:hover {
  background-color: #3730a3;
}

@media (min-width: 768px) {
  .contact-section {
    flex-direction: row;
  }
}