/* ==========================================================================
   Summer Inspection & Logistique W/A LTD
   Core Design System & Stylesheet
   Restructured Clean Vanilla CSS (Optimized for Speed & SEO)
   ========================================================================== */

:root {
  --primary-color: #0c3ba1;
  --primary-dark: #082970;
  --primary-light: #1e52c8;
  --accent-gold: #f59e0b;
  --text-primary: #1e293b;
  --text-muted: #626262;
  --text-light: #8892b0;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-dark: #151a36;
  --bg-darker: #0c1024;
  --border-color: #e2e8f0;
  --border-radius: 8px;
  --font-main: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Roboto Slab", Georgia, serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.12), 0 8px 10px -6px rgba(0,0,0,0.06);
  --container-max-width: 1200px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-muted);
  background-color: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  color: var(--primary-color);
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
  transition: var(--transition);
}

/* Screen reader text for accessibility & SEO */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  background-color: var(--bg-white);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
}

.site-branding {
  display: flex;
  align-items: center;
}

.site-logo {
  max-width: 320px;
  height: auto;
  transition: transform 0.2s ease;
}

.site-logo:hover {
  transform: scale(1.01);
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 22px;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #222222;
  padding: 32px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

.nav-link i.fa-angle-down {
  font-size: 11px;
  transition: transform 0.2s ease;
}

.nav-item:hover > .nav-link {
  color: var(--primary-color);
}

.nav-item:hover > .nav-link i.fa-angle-down {
  transform: rotate(180deg);
}

.nav-item.current-menu-item > .nav-link {
  color: var(--primary-color);
}

/* Dropdown Submenu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 290px;
  background-color: var(--bg-white);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--primary-color);
  border-radius: 0 0 6px 6px;
  list-style: none;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.25s ease;
  z-index: 999;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-link {
  display: block;
  padding: 9px 20px;
  font-size: 12.5px;
  font-weight: 600;
  color: #333333;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.4;
  border-bottom: 1px solid #f1f5f9;
}

.dropdown-link:hover {
  background-color: #f8fafc;
  color: var(--primary-color);
  padding-left: 24px;
}

.dropdown-item:last-child .dropdown-link {
  border-bottom: none;
}

/* Header Action Tools (Desktop Search & Mobile Toggles) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-search-btn {
  color: #333;
  font-size: 17px;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-search-btn:hover {
  color: var(--primary-color);
  background-color: #f1f5f9;
}

.mobile-toggle-btn {
  display: none;
  font-size: 22px;
  color: #222;
  padding: 6px;
}

/* Mobile Sidebar Drawer */
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -320px;
  width: 320px;
  height: 100vh;
  background-color: var(--bg-dark);
  color: #ffffff;
  z-index: 2000;
  overflow-y: auto;
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 25px rgba(0,0,0,0.3);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
}

.mobile-sidebar.is-open {
  left: 0;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-close-btn {
  color: #fff;
  font-size: 24px;
}

.sidebar-search-form {
  position: relative;
  margin-bottom: 25px;
}

.sidebar-search-form input {
  width: 100%;
  padding: 10px 40px 10px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 14px;
}

.sidebar-search-form input:focus {
  outline: none;
  border-color: var(--primary-light);
  background: rgba(255,255,255,0.15);
}

.sidebar-search-form button {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #ccc;
  font-size: 14px;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav-item {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 10px;
}

.mobile-nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

.mobile-dropdown-toggle {
  font-size: 16px;
  color: #94a3b8;
  padding: 4px 8px;
}

.mobile-dropdown {
  list-style: none;
  display: none;
  padding-left: 15px;
  margin-top: 8px;
}

.mobile-dropdown.is-open {
  display: block;
}

.mobile-dropdown-link {
  display: block;
  padding: 6px 0;
  color: #cbd5e1;
  font-size: 12px;
  text-transform: uppercase;
}

.mobile-dropdown-link:hover {
  color: #ffffff;
}

.sidebar-social-icons {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 14px;
}

.sidebar-social-link:hover {
  background: var(--primary-color);
}

/* ==========================================================================
   Hero Carousel Section
   ========================================================================== */

.hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #0b1021;
}

.carousel-container {
  position: relative;
  width: 100%;
  min-height: 480px;
  height: 520px;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background-color: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 10;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.carousel-btn:hover {
  background-color: var(--primary-color);
  transform: translateY(-50%) scale(1.08);
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.indicator-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.indicator-dot.active {
  background-color: #ffffff;
  transform: scale(1.2);
  border-color: var(--primary-color);
}

/* ==========================================================================
   Content Sections
   ========================================================================== */

.content-section {
  padding: 65px 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

.section-intro-text {
  max-width: 860px;
  margin: 0 auto 40px auto;
  text-align: center;
  font-size: 16px;
  line-height: 1.8;
  color: #4b5563;
}

/* Welcome Box */
.welcome-section {
  padding: 65px 0 45px 0;
  text-align: center;
  background-color: #ffffff;
}

.welcome-title {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.welcome-lead {
  max-width: 900px;
  margin: 0 auto;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
  color: #333333;
}

/* ==========================================================================
   Services Grid
   ========================================================================== */

.services-section {
  background-color: #fbfcfd;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 20px;
}

.service-card {
  background: var(--bg-white);
  padding: 35px 25px;
  border-radius: var(--border-radius);
  border: 1px solid #eef2f6;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.service-icon-wrapper {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--primary-color);
  font-size: 26px;
  background-color: #f0f4ff;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon-wrapper {
  background-color: var(--primary-color);
  color: #ffffff;
  transform: rotateY(180deg);
}

.service-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.5;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.service-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   Who We Are (Two Column Section)
   ========================================================================== */

.about-section {
  padding: 70px 0;
  background-color: #ffffff;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  align-items: center;
}

.about-content h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.about-content h3:nth-of-type(2) {
  margin-top: 30px;
}

.about-content p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.8;
  text-align: justify;
}

.about-image-wrapper {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.4s ease;
}

.about-image-wrapper:hover img {
  transform: scale(1.02);
}

/* ==========================================================================
   Tools Section (Density Calculator & Spec Tables)
   ========================================================================== */

.tools-section {
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.tools-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.tool-tab-btn {
  padding: 12px 24px;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: #ffffff;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 30px;
  transition: var(--transition);
}

.tool-tab-btn.active, .tool-tab-btn:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.tool-panel {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.tool-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Calculator Card */
.calculator-card {
  max-width: 720px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 12px;
  padding: 35px;
  box-shadow: var(--shadow-md);
  border: 1px solid #e2e8f0;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  text-transform: uppercase;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 14.5px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-color: #ffffff;
  color: #1e293b;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(12, 59, 161, 0.15);
}

.calc-btn-group {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: #f1f5f9;
  color: #334155;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 6px;
}

.btn-secondary:hover {
  background-color: #e2e8f0;
}

.calc-result-box {
  margin-top: 25px;
  padding: 20px;
  border-radius: 8px;
  background-color: #f0fdf4;
  border: 1px solid #86efac;
  display: none;
}

.calc-result-box.is-active {
  display: block;
}

.calc-result-box h4 {
  color: #166534;
  font-size: 15px;
  margin-bottom: 8px;
}

.calc-result-box p {
  color: #14532d;
  font-size: 14px;
  line-height: 1.6;
}

/* Specification Tables */
.spec-table-container {
  overflow-x: auto;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
}

.spec-table th, .spec-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #e2e8f0;
}

.spec-table th {
  background-color: #0c3ba1;
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12.5px;
  letter-spacing: 0.5px;
}

.spec-table tr:hover {
  background-color: #f8fafc;
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */

.gallery-section {
  background-color: #ffffff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 25px;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 220px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(12, 16, 36, 0.9));
  color: #ffffff;
  padding: 20px 14px 10px 14px;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

/* ==========================================================================
   Career Section
   ========================================================================== */

.career-section {
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.career-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 40px;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  max-width: 900px;
  margin: 0 auto;
}

.career-card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: #1e293b;
  margin-bottom: 16px;
}

.career-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.career-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 25px 0;
}

.benefit-item {
  background-color: #f1f5f9;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
}

.benefit-item i {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.benefit-item h4 {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.benefit-item p {
  font-size: 12.5px;
  margin-bottom: 0;
}

/* ==========================================================================
   Contact & Enquiry Section
   ========================================================================== */

.contact-section {
  background-color: #ffffff;
  border-top: 1px solid #e2e8f0;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  margin-top: 30px;
}

/* Contact Info Side */
.contact-info-card {
  background: var(--bg-dark);
  color: #ffffff;
  border-radius: 12px;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-card h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  color: #ffffff;
  margin-bottom: 15px;
}

.contact-info-card p.info-lead {
  color: #94a3b8;
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 30px;
}

.contact-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  font-size: 18px;
  flex-shrink: 0;
}

.detail-text h4 {
  font-size: 13px;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.detail-text a, .detail-text span {
  font-size: 15px;
  color: #ffffff;
  font-weight: 500;
}

.detail-text a:hover {
  color: #38bdf8;
}

/* Contact Form Side */
.contact-form-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 40px 35px;
  box-shadow: var(--shadow-sm);
}

.contact-form-card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: #1e293b;
  margin-bottom: 20px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-feedback {
  padding: 14px 18px;
  border-radius: 6px;
  margin-bottom: 20px;
  display: none;
  font-size: 14px;
  line-height: 1.5;
}

.form-feedback.success {
  display: block;
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #86efac;
}

.form-feedback.error {
  display: block;
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background-color: var(--primary-color);
  color: #ffffff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit:hover {
  background-color: var(--primary-dark);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ==========================================================================
   Clients Carousel
   ========================================================================== */

.clients-section {
  background-color: #f8fafc;
  padding: 60px 0;
}

.clients-carousel-wrapper {
  position: relative;
  overflow: hidden;
  margin-top: 30px;
  padding: 10px 0 35px 0;
}

.clients-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  align-items: center;
}

.client-item {
  flex: 0 0 25%;
  max-width: 25%;
  padding: 0 15px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.client-item img {
  max-height: 85px;
  width: auto;
  filter: grayscale(20%);
  opacity: 0.85;
  transition: all 0.3s ease;
}

.client-item img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

.clients-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

/* ==========================================================================
   A Member Of Section
   ========================================================================== */

.membership-section {
  padding: 50px 0;
  text-align: center;
  background-color: #ffffff;
  border-top: 1px solid #f1f5f9;
}

.membership-logo-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.membership-logo-wrapper img {
  max-width: 160px;
  height: auto;
  box-shadow: var(--shadow-sm);
  border-radius: 4px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: var(--bg-dark);
  color: #abb8c3;
  padding: 30px 0;
  text-align: center;
  font-size: 14px;
  border-top: 3px solid var(--primary-color);
}

.footer-copyright a {
  color: #ffffff;
  font-weight: 500;
}

.footer-copyright a:hover {
  text-decoration: underline;
  color: var(--primary-light);
}

/* ==========================================================================
   Disclaimer Modal Popup
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
}

.modal-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #ffffff;
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalPop 0.35s ease-out;
}

@keyframes modalPop {
  from {
    transform: scale(0.92) translateY(-20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.modal-header {
  padding: 20px 24px;
  background-color: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-family: var(--font-heading);
  color: #b91c1c;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.modal-close-icon {
  font-size: 24px;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
}

.modal-close-icon:hover {
  color: #0f172a;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 13.5px;
  color: #334155;
  line-height: 1.7;
}

.modal-body p {
  margin-bottom: 14px;
  text-align: justify;
}

.modal-body b, .modal-body strong {
  color: #0f172a;
}

.modal-footer {
  padding: 16px 24px;
  background-color: #f8fafc;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-modal-agree {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 8px 24px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
}

.btn-modal-agree:hover {
  background-color: var(--primary-dark);
}

.btn-modal-close {
  background-color: #e2e8f0;
  color: #334155;
  padding: 8px 20px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
}

.btn-modal-close:hover {
  background-color: #cbd5e1;
}

/* ==========================================================================
   Header Search Modal Overlay
   ========================================================================== */

.search-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.search-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.search-modal-container {
  width: 100%;
  max-width: 600px;
  position: relative;
}

.search-modal-close {
  position: absolute;
  top: -45px;
  right: 0;
  color: #ffffff;
  font-size: 32px;
}

.search-modal-form {
  position: relative;
  width: 100%;
}

.search-modal-form input {
  width: 100%;
  padding: 16px 55px 16px 20px;
  font-size: 18px;
  border: 2px solid #3b82f6;
  border-radius: 8px;
  outline: none;
  background-color: #ffffff;
  color: #0f172a;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.search-modal-form button {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
  font-size: 20px;
}

/* ==========================================================================
   FAQ Section (AI Search & Human Knowledge Optimization)
   ========================================================================== */

.faq-section {
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.faq-accordion {
  max-width: 860px;
  margin: 30px auto 0 auto;
}

.faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
  border-color: #cbd5e1;
}

.faq-item.is-open {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.faq-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 15.5px;
  font-weight: 700;
  color: #1e293b;
  gap: 15px;
}

.faq-header:hover {
  color: var(--primary-color);
}

.faq-icon {
  font-size: 14px;
  color: var(--primary-color);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 24px;
}

.faq-item.is-open .faq-content {
  max-height: 500px;
  padding: 0 24px 20px 24px;
}

.faq-content p {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.8;
  margin: 0;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */


@media screen and (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }

  .mobile-toggle-btn {
    display: block;
  }

  .carousel-container {
    height: 420px;
    min-height: 420px;
  }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .career-benefits {
    grid-template-columns: 1fr;
  }

  .client-item {
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }
}

@media screen and (max-width: 640px) {
  .site-logo {
    max-width: 240px;
  }

  .header-container {
    min-height: 70px;
  }

  .carousel-container {
    height: 280px;
    min-height: 280px;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .welcome-title {
    font-size: 22px;
  }

  .welcome-lead {
    font-size: 14.5px;
  }

  .section-title {
    font-size: 22px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .calc-grid, .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .client-item {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .modal-container {
    max-height: 92vh;
  }
}
