/* css/style.css */

/*--------------------------------------------------------------
# Table of Contents
--------------------------------------------------------------
1. Globals
   - Variables (Colors, Fonts)
   - Base Styles (Body, Links, Headings)
   - Utility Classes
2. Header
3. Navigation
4. Hero Sections
5. Section Styling
6. Cards
7. Buttons
8. Footer
9. Animations & Transitions
10. Responsive Adjustments (Basic, will be refined per page)
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# 1. Globals
--------------------------------------------------------------*/

/* Variables */
:root {
  --primary-deep-blue: #1A3A68;
  --primary-bright-red: #E41E26;
  --secondary-light-blue: #4682B4;
  --secondary-light-gray: #F5F5F5;
  --accent-teal: #008080;
  --accent-orange: #FF8C00;
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --border-color: #DEE2E6;

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --font-technical: 'Roboto Mono', monospace;

  --section-padding: 60px 0;
  --container-max-width: 1200px;
}

/* Base Styles */
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.7;
  background-color: #FFFFFF; /* Default background */
  overflow-x: hidden; /* Prevent horizontal scroll */
}

a {
  color: var(--primary-bright-red);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: var(--accent-orange);
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-deep-blue);
  font-weight: 700;
  margin-top: 0;
}

h1 { font-size: 2.8rem; line-height: 1.2; margin-bottom: 20px; }
h2 { font-size: 2.2rem; line-height: 1.25; margin-bottom: 15px; }
h3 { font-size: 1.8rem; line-height: 1.3; margin-bottom: 10px; }
h4 { font-size: 1.4rem; line-height: 1.35; margin-bottom: 10px; }

p {
  margin-bottom: 1rem;
}

/* Utility Classes */
.section-bg {
  background-color: var(--secondary-light-gray);
}

.text-primary-deep-blue { color: var(--primary-deep-blue) !important; }
.text-primary-bright-red { color: var(--primary-bright-red) !important; }
.text-accent-teal { color: var(--accent-teal) !important; }
.text-accent-orange { color: var(--accent-orange) !important; }

.bg-primary-deep-blue { background-color: var(--primary-deep-blue) !important; }
.bg-primary-bright-red { background-color: var(--primary-bright-red) !important; }
.bg-accent-teal { background-color: var(--accent-teal) !important; }
.bg-accent-orange { background-color: var(--accent-orange) !important; }

.fw-medium { font-weight: 500 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-bold { font-weight: 700 !important; }

.img-fluid-styled {
  max-width: 100%;
  height: auto;
  object-fit: cover; /* Ensures the image covers the area, might crop */
  border-radius: 8px; /* Optional: if you want rounded corners for images */
}

.aspect-ratio-16-9 {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 9 / 16 * 100% */
}
.aspect-ratio-16-9 img,
.aspect-ratio-16-9 .placeholder-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.placeholder-img {
  background-color: var(--secondary-light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-deep-blue);
  font-family: var(--font-technical);
}


/*--------------------------------------------------------------
# 2. Header
--------------------------------------------------------------*/
.header {
  background-color: #fff;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease-in-out;
  padding: 15px 0;
}

.header .logo img {
  max-height: 50px; /* Adjust as needed */
  margin-right: 10px;
}

.header .logo span {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-deep-blue);
  font-family: var(--font-heading);
  letter-spacing: 1px;
}

/* Sticky Header */
.header.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1030; /* Bootstrap's default for fixed navbar is 1030 */
  padding: 10px 0;
}


/*--------------------------------------------------------------
# 3. Navigation
--------------------------------------------------------------*/
.navbar {
  padding: 0;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navbar li {
  position: relative;
}

.navbar a, .navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-deep-blue);
  white-space: nowrap;
  transition: 0.3s;
}

.navbar a:hover, .navbar .active, .navbar .active:focus, .navbar li:hover > a {
  color: var(--primary-bright-red);
}

/* Mobile Navigation */
.mobile-nav-toggle {
  color: var(--primary-deep-blue);
  font-size: 28px;
  cursor: pointer;
  display: none;
  line-height: 0;
  transition: 0.5s;
}

.mobile-nav-toggle.bi-x {
  color: #fff; /* For the close icon when menu is open */
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }

  .navbar ul {
    display: none; /* Hidden by default on mobile */
    position: absolute;
    top: 55px; /* Adjust based on header height */
    right: 15px;
    left: 15px;
    padding: 10px 0;
    background-color: white;
    box-shadow: 0px 0px 30px rgba(127, 137, 161, 0.25);
    z-index: 999;
    border-radius: 8px;
    flex-direction: column; /* Stack items vertically */
  }
  .navbar ul.navbar-mobile-active {
    display: flex; /* Show when active */
  }

  .navbar a, .navbar a:focus {
    padding: 10px 20px;
    font-size: 16px;
    width: 100%; /* Full width links */
  }
   .navbar a:hover, .navbar .active, .navbar .active:focus, .navbar li:hover > a {
    color: var(--primary-bright-red);
  }
}

/*--------------------------------------------------------------
# 4. Hero Sections
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 80vh; /* Adjust as needed */
  display: flex;
  align-items: center;
  position: relative;
  padding: var(--section-padding);
  background-color: var(--primary-deep-blue); /* Fallback */
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 20px;
}

.hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

/* Subtle Animated Gradient Background for Hero */
.hero-animated-gradient {
  background: linear-gradient(-45deg, var(--primary-deep-blue), var(--secondary-light-blue), #23a6d5, #23d5ab);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/*--------------------------------------------------------------
# 5. Section Styling
--------------------------------------------------------------*/
section {
  padding: var(--section-padding);
  overflow: hidden; /* For AOS animations */
}

.section-title {
  text-align: center;
  padding-bottom: 40px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  position: relative;
  color: var(--primary-deep-blue);
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary-bright-red);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.section-title p {
  margin-bottom: 0;
  color: #555;
  font-size: 1.1rem;
}

/*--------------------------------------------------------------
# 6. Cards
--------------------------------------------------------------*/
.service-card, .product-card, .industry-card, .faq-item {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.08);
  padding: 30px;
  transition: all 0.3s ease-in-out;
  height: 100%; /* For equal height cards in a row */
  display: flex;
  flex-direction: column;
}

.service-card:hover, .product-card:hover, .industry-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.12);
}

.service-card .icon, .industry-card .icon {
  font-size: 48px; /* For Font Awesome icons */
  margin-bottom: 20px;
  color: var(--accent-teal);
  text-align: center;
}
.service-card img.icon-img, .industry-card img.icon-img {
  max-width: 60px; /* For SVG/image icons */
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}


.service-card h4, .product-card h4, .industry-card h4 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-deep-blue);
}
.service-card h4 a, .product-card h4 a, .industry-card h4 a {
  color: var(--primary-deep-blue);
}
.service-card h4 a:hover, .product-card h4 a:hover, .industry-card h4 a:hover {
  color: var(--primary-bright-red);
}


.service-card p, .product-card p, .industry-card p {
  font-size: 0.95rem;
  color: #555;
  flex-grow: 1; /* Makes p take available space, pushing cta to bottom */
}

.product-card .product-image-container {
  width: 100%;
  padding-bottom: 75%; /* 4:3 aspect ratio */
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 15px;
}
.product-card .product-image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* Use 'contain' to see the whole product, 'cover' to fill */
  transition: transform 0.3s ease;
}
.product-card:hover .product-image-container img {
  transform: scale(1.05);
}


/*--------------------------------------------------------------
# 7. Buttons
--------------------------------------------------------------*/
.btn-custom {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px; /* Pill shape */
  transition: 0.3s;
  line-height: 1;
  text-align: center;
  border: 2px solid transparent;
}

.btn-primary-custom {
  background-color: var(--primary-bright-red);
  color: var(--text-light);
  border-color: var(--primary-bright-red);
}
.btn-primary-custom:hover {
  background-color: var(--accent-orange);
  color: var(--text-light);
  border-color: var(--accent-orange);
}

.btn-secondary-custom {
  background-color: var(--accent-teal);
  color: var(--text-light);
  border-color: var(--accent-teal);
}
.btn-secondary-custom:hover {
  background-color: var(--primary-deep-blue);
  color: var(--text-light);
  border-color: var(--primary-deep-blue);
}

.btn-outline-custom {
  color: var(--primary-deep-blue);
  border-color: var(--primary-deep-blue);
  background-color: transparent;
}
.btn-outline-custom:hover {
  background-color: var(--primary-deep-blue);
  color: var(--text-light);
}

/*--------------------------------------------------------------
# 8. Footer
--------------------------------------------------------------*/
.footer {
  background-color: var(--primary-deep-blue);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  padding: 60px 0 30px 0;
}

.footer .footer-top {
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 30px;
}

.footer .footer-logo img {
  max-height: 40px;
  margin-bottom: 15px;
}

.footer .footer-contact p {
  margin-bottom: 5px;
  line-height: 1.5;
}
.footer .footer-contact p strong {
  color: var(--text-light);
}
.footer .footer-contact a {
  color: rgba(255, 255, 255, 0.7);
}
.footer .footer-contact a:hover {
  color: var(--text-light);
  text-decoration: underline;
}


.footer .footer-links h4 {
  font-size: 16px;
  font-weight: bold;
  color: var(--text-light);
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 15px;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul li {
  padding: 8px 0;
  display: flex;
  align-items: center;
}

.footer .footer-links ul li:first-child {
  padding-top: 0;
}

.footer .footer-links ul a {
  color: rgba(255, 255, 255, 0.7);
  transition: 0.3s;
  display: inline-block;
  line-height: 1;
}

.footer .footer-links ul a:hover {
  color: var(--text-light);
}

.footer .footer-links ul i { /* For icons next to links */
  padding-right: 5px;
  color: var(--primary-bright-red);
  font-size: 16px;
}

.footer .copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1); /* Optional additional separator */
}

.footer .credits {
  padding-top: 5px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
.footer .credits a {
    color: var(--primary-bright-red);
}

/*--------------------------------------------------------------
# 9. Animations & Transitions
--------------------------------------------------------------*/
/* AOS (Animate On Scroll) will handle most of these */
/* Ensure AOS styles are loaded via CDN */


/*--------------------------------------------------------------
# 10. Responsive Adjustments
--------------------------------------------------------------*/
@media (max-width: 1199px) { /* Large devices to tablets */
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; }
    .section-title h2 { font-size: 2.2rem; }
}

@media (max-width: 991px) { /* Tablets */
    .header .logo span { font-size: 22px; }
    .hero { min-height: 70vh; text-align: center; }
    .hero .container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer .footer-top > .row > div {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) { /* Mobile */
    :root { --section-padding: 40px 0; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .hero { min-height: auto; padding: 80px 0; }
    .hero h1 { font-size: 2rem; }
    .section-title h2 { font-size: 2rem; }
    .btn-custom { padding: 10px 25px; font-size: 14px; }
    .footer { padding: 40px 0 20px 0; }
    .footer .footer-top { text-align: center; }
    .footer .footer-links ul li { justify-content: center; }
}

/* Specific styling for FAQ page */
.faq-list {
  padding: 0;
  list-style: none;
}
.faq-list li {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
  padding-bottom: 20px;
}
.faq-list li:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.faq-list .question {
  display: block;
  position: relative;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 1.5;
  font-weight: 600;
  padding-right: 25px; /* Space for icon */
  cursor: pointer;
  color: var(--primary-deep-blue);
  transition: 0.3s;
}
.faq-list .question:hover {
  color: var(--primary-bright-red);
}
.faq-list .answer {
  padding: 10px 0 0 0;
  margin-top: 5px;
  display: none; /* Hidden by default */
  color: #444;
  font-size: 1rem;
}
.faq-list i.icon-show, .faq-list i.icon-close {
  font-size: 18px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease-in-out;
}
.faq-list .question.collapsed i.icon-show { display: inline-block; }
.faq-list .question.collapsed i.icon-close { display: none; }
.faq-list .question:not(.collapsed) i.icon-show { display: none; }
.faq-list .question:not(.collapsed) i.icon-close { display: inline-block; transform: translateY(-50%) rotate(180deg);}

/* Ensure Bootstrap collapse functionality works with these styles */
.faq-list .question[aria-expanded="true"] + .answer {
  display: block;
}
.faq-list .question[aria-expanded="true"] {
  color: var(--primary-bright-red);
}