/* ============================================
   ASIAN GEOS SURVEY MIDDLE EAST LLC
   Minimal overrides — let the template shine.
   Only branding colors, text logo, and new sections.
   ============================================ */

/* --- Color tokens (used only in our additions) --- */
:root {
  --ag-navy: #0A1628;
  --ag-dark-blue: #0D2137;
  --ag-ocean-blue: #1565C0;
  --ag-light-blue: #1E88E5;
  --ag-orange: #FF6D00;
  --ag-white: #FFFFFF;
  --ag-light-gray: #F5F7FA;
  --ag-gray: #8A9BB5;
  --ag-dark-gray: #4A5568;
}

/* ==============================================
   1. LOGO
   ============================================== */
.logo-sub {
  display: none !important;
}

.logo {
  height: 40px !important;
  width: auto !important;
}

.footer-logo {
  height: 36px !important;
  width: auto !important;
}

.logo-404 {
  height: 44px !important;
  width: auto !important;
}

/* ==============================================
   2. BRANDING COLOR OVERRIDES
   Only remap the template's accent colors.
   ============================================== */

/* Accent text (template uses this class) */
.accent-text {
  color: var(--ag-ocean-blue) !important;
}

/* Orange dots → ocean blue */
.dot.orange-color,
.big-dot.orange {
  background-color: var(--ag-ocean-blue) !important;
}

/* Primary button → ocean blue */
.primary-button {
  background-color: var(--ag-ocean-blue) !important;
}

.primary-button:hover {
  background-color: var(--ag-dark-blue) !important;
}

/* Navbar CTA button → navy */
.primary-button-orange {
  background-color: var(--ag-navy) !important;
}

.primary-button-orange:hover {
  background-color: var(--ag-ocean-blue) !important;
}

/* Secondary button */
.secondary-button {
  border-color: var(--ag-ocean-blue) !important;
  color: var(--ag-ocean-blue) !important;
}

.secondary-button:hover {
  background-color: var(--ag-ocean-blue) !important;
  color: var(--ag-white) !important;
}

/* Gradient CTA block */
.gragient-cta {
  background: linear-gradient(135deg, var(--ag-navy) 0%, var(--ag-ocean-blue) 100%) !important;
}

/* Dark sections */
.black-background,
.dark-background {
  background-color: var(--ag-navy) !important;
}

/* Footer */
.footer {
  background-color: var(--ag-navy) !important;
}

/* Gradient block (98% stat) */
.gradient-block {
  background: linear-gradient(135deg, var(--ag-ocean-blue) 0%, var(--ag-navy) 100%) !important;
}

/* Link lines */
.link-line {
  background-color: var(--ag-ocean-blue) !important;
}

.link-with-line:hover div:first-child {
  color: var(--ag-ocean-blue) !important;
}

/* Tags */
.tag {
  border-color: rgba(21, 101, 192, 0.3) !important;
}

/* Numbers */
.big-number {
  color: var(--ag-ocean-blue) !important;
}

.number {
  color: var(--ag-ocean-blue) !important;
}

.text-accent,
h4.text-accent {
  color: var(--ag-ocean-blue) !important;
}

/* Forms */
.contacts-input:focus,
.contacts-textarea:focus,
.text-field:focus {
  border-color: var(--ag-ocean-blue) !important;
}

.submit-button {
  background-color: var(--ag-ocean-blue) !important;
}

.submit-button:hover {
  background-color: var(--ag-dark-blue) !important;
}

.contacts-block-wrapper {
  background-color: var(--ag-navy) !important;
}

/* Overlay */
.overlay-image {
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.7) 0%, rgba(10, 22, 40, 0.9) 100%) !important;
}

/* Kill promo banner */
.promotion-labels-wrapper-to-remove {
  display: none !important;
}

/* ==============================================
   3. NEW SECTIONS (not in the original template)
   These need full styling since they're our additions.
   ============================================== */

/* --- Trusted By logos bar --- */
.trusted-by-section {
  padding: 48px 0 16px;
  border-bottom: 1px solid rgba(10, 22, 40, 0.06);
}

.trusted-by-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ag-gray);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 28px;
}

.trusted-by-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 0 20px;
}

.trusted-by-logos .client-logo-img {
  height: 28px;
  width: auto;
  opacity: 0.35;
  transition: opacity 0.3s ease;
  filter: grayscale(100%);
}

.trusted-by-logos .client-logo-img:hover {
  opacity: 0.8;
  filter: grayscale(0%);
}

.trusted-by-logos .client-logo-wide {
  height: 24px;
}

.trusted-by-logos .client-logo-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ag-navy);
  opacity: 0.12;
}

/* --- Services Static Grid --- */
.services-static-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media screen and (min-width: 992px) {
  .services-static-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media screen and (max-width: 767px) {
  .services-static-grid {
    grid-template-columns: 1fr;
  }
}

.service-card-static {
  background-color: var(--ag-light-gray);
  border-radius: 12px;
  padding: 28px 24px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  min-height: 240px;
}

.service-card-static:hover {
  border-color: var(--ag-ocean-blue);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(21, 101, 192, 0.1);
}

.service-card-static .service-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(21, 101, 192, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.service-card-static .service-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--ag-ocean-blue);
  stroke-width: 1.5;
  fill: none;
  transition: stroke 0.3s ease;
}

.service-card-static:hover .service-icon {
  background-color: var(--ag-ocean-blue);
}

.service-card-static:hover .service-icon svg {
  stroke: white;
}

.service-card-static h4 {
  margin-bottom: 10px;
  font-size: 18px;
}

.service-card-static p {
  color: var(--ag-dark-gray);
  margin-bottom: 16px;
  flex-grow: 1;
  font-size: 14px;
  line-height: 1.65;
}

.service-card-static .service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ag-ocean-blue);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: gap 0.3s ease;
  margin-top: auto;
}

.service-card-static .service-link:hover {
  gap: 12px;
}

/* --- Tighter spacing around testimonials --- */
.section.bg.without-top-spacing {
  padding-top: 60px !important;
  padding-bottom: 80px !important;
}

/* --- Space below news bg section before CTA --- */
.section.without-space.without-top-spacing + .section.without-space-copy {
  padding-top: 80px !important;
}

/* (How We Work now uses template's native steps-section / steps-grid) */

/* --- Featured Projects --- */
.featured-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

@media screen and (max-width: 991px) {
  .featured-projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 767px) {
  .featured-projects-grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  border-radius: 16px;
  overflow: hidden;
  background: white;
  border: 1px solid rgba(10, 22, 40, 0.08);
  transition: all 0.3s ease;
}

.project-card:hover {
  border-color: var(--ag-ocean-blue);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(21, 101, 192, 0.1);
}

.project-card-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card-image img {
  transform: scale(1.05);
}

.project-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10, 22, 40, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.project-card-content {
  padding: 24px;
}

.project-card-content h5 {
  margin-bottom: 8px;
  font-size: 18px;
}

.project-card-content p {
  color: var(--ag-dark-gray);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.project-card-client {
  font-size: 12px;
  color: var(--ag-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* --- Blog card hover --- */
.blog-post-item {
  transition: transform 0.3s ease;
}

.blog-post-item:hover {
  transform: translateY(-4px);
}

/* --- Rich text (service detail pages) --- */
.rich-text-content h2 {
  color: var(--ag-navy);
  margin-top: 32px;
  margin-bottom: 16px;
}

.rich-text-content h3 {
  color: var(--ag-navy);
  margin-top: 24px;
  margin-bottom: 12px;
}

.rich-text-content p {
  color: var(--ag-dark-gray);
  line-height: 1.8;
  margin-bottom: 16px;
}

.rich-text-content ul {
  padding-left: 24px;
  margin-bottom: 20px;
}

.rich-text-content ul li {
  color: var(--ag-dark-gray);
  line-height: 1.8;
  margin-bottom: 8px;
}

.rich-text-content ul li::marker {
  color: var(--ag-ocean-blue);
}

/* --- Specs table (equipment pages) --- */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.specs-table th {
  background-color: var(--ag-navy);
  color: var(--ag-white);
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.specs-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  color: var(--ag-dark-gray);
}

.specs-table tr:hover td {
  background-color: var(--ag-light-gray);
}
