/* ==========================================================================
   1. Global Styles & Variables
   ========================================================================== */

/* --- CSS Variables --- */
:root {
  --primary-color: #0a4d9e;
  /* A professional blue */
  --secondary-color: #f0f6ff;
  /* A very light blue for backgrounds */
  --accent-color: #ff9900;
  /* A warm orange for CTAs */
  --text-color: #333333;
  --heading-color: #1a2a4d;
  --light-gray-color: #f8f9fa;
  --border-color: #dee2e6;
  --white-color: #ffffff;
  --footer-bg-color: #1a2a4d;
  --footer-text-color: #cdd3e0;
  --font-family-base: 'Arial', sans-serif;
  --font-family-headings: 'Georgia', serif;
  --container-max-width: 1200px;
  --header-height: 80px;
}

/* --- Base Styles --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  line-height: 1.6;
}

body {
  font-family: var(--font-family-base);
  color: var(--text-color);
  background-color: var(--white-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Container --- */
.container {
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  width: 100%;
}

/* --- Links --- */
a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: var(--heading-color);
}

/* --- Images --- */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Lists --- */
ul,
ol {
  list-style-position: inside;
  padding-left: 0;
}

ul {
  list-style-type: none;
}

/* --- Headings --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-headings);
  color: var(--heading-color);
  margin-top: 0;
  margin-bottom: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.75rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.25rem;
}

/* --- Paragraphs --- */
p {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* --- Section Padding --- */
.section-padding {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* --- Background Colors --- */
.bg-light {
  background-color: var(--light-gray-color);
}

/* ==========================================================================
   2. Header & Navigation
   ========================================================================== */

.site-header {
  background-color: var(--white-color);
  border-bottom: 1px solid var(--border-color);
  height: var(--header-height);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo a {
  display: inline-block;
}

.logo img {
  max-height: 50px;
  width: auto;
}

.main-navigation {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin-left: 2rem;
}

.nav-link {
  color: var(--heading-color);
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 0;
  text-decoration: none;
  position: relative;
  display: block;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
  text-decoration: none;
}

/* --- Mobile Navigation --- */
.menu-toggle {
  display: none;
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.hamburger-bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--heading-color);
  margin: 5px 0;
}

/* ==========================================================================
   3. Footer
   ========================================================================== */
.site-footer {
  background-color: var(--footer-bg-color);
  color: var(--footer-text-color);
  padding-top: 50px;
  padding-bottom: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.footer-column {
  padding: 0 15px;
}

.footer-logo img {
  max-height: 80px;
  filter: brightness(0) invert(1);
  margin-bottom: 15px;
}

.footer-about-text {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-heading {
  color: var(--white-color);
  font-size: 1.1rem;
  margin-bottom: 20px;
  font-family: var(--font-family-base);
  font-weight: 600;
}

.footer-menu {
  list-style: none;
  padding: 0;
}

.footer-menu li {
  margin-bottom: 10px;
}

.footer-menu a {
  color: var(--footer-text-color);
  text-decoration: none;
}

.footer-menu a:hover {
  color: var(--white-color);
  text-decoration: underline;
}

.contact-info {
  list-style: none;
  padding: 0;
}

.contact-info li {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.contact-info strong {
  color: var(--white-color);
}

.footer-bottom {
  border-top: 1px solid #3a4a6d;
  padding-top: 20px;
  text-align: center;
}

.copyright-text {
  font-size: 0.85rem;
  margin: 0;
}


/* ==========================================================================
   4. Hero Section (Home Page)
   ========================================================================== */
.hero-section {
  background-color: var(--secondary-color);
  padding: 12rem 0;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-color);
  opacity: 0.9;
}

/* ==========================================================================
   5. Buttons & Forms
   ========================================================================== */

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border-radius: 5px;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--heading-color);
  border-color: var(--heading-color);
  color: var(--white-color);
}

.btn-secondary {
  background-color: var(--accent-color);
  color: var(--white-color);
  border-color: var(--accent-color);
}

.btn-secondary:hover {
  background-color: #e68a00;
  border-color: #e68a00;
  color: var(--white-color);
}

/* --- Forms --- */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--heading-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  font-family: var(--font-family-base);
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(10, 77, 158, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.error-message {
  color: #d9534f;
  font-size: 0.875rem;
  display: none;
  /* Hidden by default */
  margin-top: 5px;
}

.form-success-message {
  color: #28a745;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  padding: 15px;
  border-radius: 4px;
  margin-top: 20px;
  display: none;
  /* Hidden by default */
}

/* ==========================================================================
   6. Page-Specific Sections
   ========================================================================== */

/* --- General Section Header --- */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  margin-bottom: 0.5rem;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--text-color);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Services Section --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.service-card {
  background-color: var(--white-color);
  border: 1px solid var(--border-color);
  padding: 30px;
  text-align: center;
  border-radius: 8px;
}

.service-icon {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.service-description {
  font-size: 1rem;
  margin-bottom: 0;
}

/* --- Why Choose Us Section --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.feature-item {
  background-color: var(--white-color);
  padding: 25px;
  border-left: 4px solid var(--primary-color);
}

.feature-title {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.feature-description {
  margin-bottom: 0;
}

/* --- Industries Section --- */
.industries-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.industry-item {
  background-color: var(--secondary-color);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: 20px;
}

.industry-name {
  margin: 0;
  font-weight: 600;
  color: var(--heading-color);
}

/* --- Testimonials Section --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background-color: var(--white-color);
  padding: 30px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  display: flex;
  flex-direction: column;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  flex-grow: 1;
}

.testimonial-author {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
}

.author-name {
  font-weight: 700;
  margin-bottom: 0;
  color: var(--heading-color);
}

.author-title {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 0;
}

/* --- CTA Section --- */
.cta-section {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 60px 0;
  text-align: center;
}

.cta-content {
  max-width: 750px;
  margin: auto;
}

.cta-title {
  color: var(--white-color);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-text {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* --- Page Header (for sub-pages) --- */
.page-header-section {
  background-color: var(--footer-bg-color);
  color: var(--white-color);
  padding: 50px 0;
  text-align: center;
}

.page-title {
  color: var(--white-color);
}

.page-subtitle {
  color: var(--footer-text-color);
  font-size: 1.1rem;
  margin: 0;
}


/* --- Contact Page --- */
.contact-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
}

.contact-form-title,
.contact-info-title {
  margin-bottom: 25px;
}

.contact-info-wrapper {
  padding: 30px;
  background-color: var(--secondary-color);
  border-radius: 5px;
}

.contact-info-list {
  list-style: none;
  padding: 0;
}

.contact-info-item {
  margin-bottom: 20px;
}

.contact-info-item h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.contact-info-item p {
  margin: 0;
}

/* --- Legal Pages --- */
.legal-page-section {
  background-color: var(--white-color);
}

.legal-content {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.legal-content h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.legal-content p,
.legal-content li {
  line-height: 1.7;
  margin-bottom: 1rem;
}

.legal-content ul {
  list-style-type: disc;
  padding-left: 20px;
}

.legal-content ul li {
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   7. Responsiveness
   ========================================================================== */

/* --- Tablet (max-width: 1024px) --- */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 2.75rem;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-about {
    grid-row: 1;
  }

  .footer-logo img {
    margin-left: auto;
    margin-right: auto;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}


/* --- Mobile (max-width: 768px) --- */
@media (max-width: 768px) {

  /* --- General Adjustments --- */
  .section-padding {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  /* --- Navigation --- */
  .menu-toggle {
    display: block;
    z-index: 1002;
    position: relative;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    flex-direction: column;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-item {
    margin-left: 0;
    text-align: center;
  }

  .nav-link {
    padding: 15px 20px;
    width: 100%;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover,
  .nav-link.active {
    background-color: var(--secondary-color);
  }

  /* --- Hero Section --- */
  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  /* --- Grids --- */
  .services-grid,
  .features-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* --- Contact Page --- */
  .contact-layout {
    gap: 30px;
  }

}