/* ==========================================================================
   Seaboard Trading Saudi Arabia (seaboardtrading.sa)
   Manufactt Exact Typography, Scale Ratios & Design System
   Brand Color System: Maritime Navy & Cobalt (#1d4e7d, #123354, #5b9fc7)
   ========================================================================== */

:root {
  /* Logo-Derived Brand Colors */
  --color-primary: #1d4e7d;           /* Seaboard Steel Navy */
  --color-primary-dark: #123354;      /* Deep Midnight Cobalt */
  --color-primary-light: #2b70af;     /* Logo Blue Tone */
  --color-primary-glow: #5b9fc7;      /* Ambient Blue from Logo */
  --color-accent-amber: #d4a359;      /* Desert Gold subtle accent */
  
  /* Surfaces & Grid (Manufactt Exact Values) */
  --color-bg-white: #ffffff;
  --color-bg-subtle: #fcfcfd;
  --color-bg-zinc: #f1f5f9;
  --color-bg-dark: #0a111a;
  --color-border: #e6ebf1;
  --color-text-main: #0f172a;
  --color-text-muted: #52525b;

  /* Manufactt Exact Font Families */
  --font-heading: 'Mona Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Geist', system-ui, -apple-system, sans-serif;

  /* Typographic Scale Ratios */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;
}

/* Base Body Styles */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.45;
  color: var(--color-text-main);
  background-color: var(--color-bg-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Headings with Mona Sans - inherit color so light text on dark backgrounds works properly */
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.035em;
  line-height: 1.15;
  font-weight: 700;
  color: inherit;
}

/* Default headings color on light backgrounds */
body > section h1,
body > section h2,
body > section h3,
body > section h4,
.text-slate-900,
.light-heading {
  color: #0f172a;
}

/* Ensure headings on dark containers/cards are always crisp pure white */
.text-white,
.text-white h1,
.text-white h2,
.text-white h3,
.text-white h4,
[class*="bg-slate-900"] h1,
[class*="bg-slate-900"] h2,
[class*="bg-slate-900"] h3,
[class*="bg-slate-900"] h4,
[class*="bg-brand-navyDark"] h1,
[class*="bg-brand-navyDark"] h2,
[class*="bg-brand-navyDark"] h3,
[class*="bg-brand-navyDark"] h4,
[class*="bg-brand-primaryDark"] h1,
[class*="bg-brand-primaryDark"] h2,
[class*="bg-brand-primaryDark"] h3,
[class*="bg-brand-primaryDark"] h4,
.dark-engineering-section h1,
.dark-engineering-section h2,
.dark-engineering-section h3,
.dark-engineering-section h4,
.cta-banner h1,
.cta-banner h2,
.cta-banner h3,
.cta-banner h4 {
  color: #ffffff !important;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.875rem); font-weight: 700; }
h4 { font-size: 1.25rem; font-weight: 700; }
p { line-height: 1.6; }

/* RTL Support */
body[dir="rtl"] {
  direction: rtl;
  text-align: right;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
body[dir="rtl"] .font-heading {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* Completely suppress Google Translate intrusive top box & banners */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
iframe.goog-te-banner-frame,
iframe.goog-te-banner-frame.skiptranslate,
.VIpgJd-ZVi9od-ORHb-Oxf5Fd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.goog-te-gadget-simple,
#google_translate_element {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  border: none !important;
}
html, body { 
  top: 0px !important; 
  position: static !important;
}
#goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* ==========================================================================
   Header & Sticky Navigation (Solid Opaque, Zero Transparency)
   ========================================================================= */
.site-header {
  background-color: #ffffff !important;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
}

/* ==========================================================================
   Manufactt Vertical Grid System (Subtle Dotted Guides)
   ========================================================================= */
.manufactt-grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 25% 100%;
  z-index: 1;
}

/* Manufactt Pill Badges */
.badge-manufactt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  font-size: 13px;
  font-weight: 500;
  color: #0f172a;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.badge-manufactt-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: var(--color-primary);
}

/* Manufactt Signature Asymmetric Buttons */
.btn-manufactt {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  border-radius: 6px;
  border-bottom-right-radius: 18px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-manufactt:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(29, 78, 125, 0.35);
}

.btn-manufactt-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #0f172a;
  color: #ffffff;
  padding: 12px 22px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  border-radius: 6px;
  border-bottom-right-radius: 16px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

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

/* Manufactt Interactive Capability Rows */
.capability-row {
  display: grid;
  grid-template-columns: 80px 1.5fr 2fr 48px;
  align-items: center;
  gap: 24px;
  padding: 28px 20px;
  border-bottom: 1px solid var(--color-border);
  transition: all 0.25s ease;
  cursor: pointer;
}

.capability-row:hover {
  background-color: #f8fafc;
  padding-left: 28px;
  padding-right: 28px;
  border-color: #cbd5e1;
}

.capability-row:hover .cap-arrow {
  background-color: var(--color-primary);
  color: #ffffff;
  transform: translateX(4px);
}

.cap-arrow {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border-bottom-right-radius: 12px;
  background-color: #f1f5f9;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

/* Dark Engineering Section */
.dark-engineering-section {
  background-color: #090e17;
  color: #ffffff !important;
  position: relative;
  overflow: hidden;
}

.dark-engineering-section::before {
  content: '';
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(29, 78, 125, 0.45) 0%, transparent 70%);
  pointer-events: none;
}

/* Spec Table */
.spec-table th {
  background-color: #f8fafc;
  color: var(--color-primary-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.spec-table td, .spec-table th {
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--color-border);
}

/* ==========================================================================
   INTERACTIVE ANIMATIONS, TRANSITIONS & HOVER EFFECTS
   ========================================================================== */

/* 1. Scroll-triggered Reveal Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* 2. Interactive Product & Spec Cards Lift & Glow */
.group, [class*="rounded-2xl"], [class*="rounded-3xl"] {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.product-card-hover {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.product-card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -10px rgba(29, 78, 125, 0.15), 0 8px 16px -6px rgba(0, 0, 0, 0.05);
  border-color: rgba(29, 78, 125, 0.35) !important;
}

.product-card-hover img {
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* 3. Hero Visual Shimmer Effect on CTA Buttons */
.btn-manufactt {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-manufactt::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  transition: none;
}

.btn-manufactt:hover::after {
  left: 140%;
  transition: left 0.75s ease-in-out;
}

.btn-manufactt:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -6px rgba(29, 78, 125, 0.4);
}

.btn-manufactt:active {
  transform: translateY(0);
}

/* 4. Pulse Dot Animation for Badges */
.badge-manufactt-dot {
  position: relative;
}

.badge-manufactt-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background-color: inherit;
  opacity: 0.75;
  animation: pingDot 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pingDot {
  75%, 100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* 5. Capability Row Floating Indicator */
.capability-row {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.capability-row:hover {
  padding-left: 24px;
  background-color: #f8fafc;
  border-color: rgba(29, 78, 125, 0.3);
}

/* 6. Spec Table Interactive Rows */
.spec-table tbody tr {
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.spec-table tbody tr:hover {
  background-color: #f1f5f9 !important;
}

/* 7. Subtle Smooth Scroll */
html {
  scroll-behavior: smooth;
}
