/* ==========================================================================
   SHAMS METALS (شركة شمس المعادن)
   Complete Light Architectural Redesign (إعادة تصميم شاملة باللون الفاتح)
   Clean, Airy, Modern Typography in Tajawal, Realistic Ocean Ship Panorama,
   and Prominent Uncropped Transparent Logo.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600&family=Inter:wght@300;400;500;600&family=Tajawal:wght@400;500;700;800;900&display=swap');

:root {
  /* Pristine Light Palette */
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-accent-soft: rgba(184, 119, 20, 0.07);

  /* High-Contrast Charcoal Typography */
  --text-main: #0f172a;       /* Dark Slate */
  --text-body: #334155;       /* Muted Slate */
  --text-muted: #64748b;      /* Light Slate */
  --text-light: #94a3b8;

  /* Subtle Hairline Borders */
  --border-light: #e2e8f0;
  --border-hover: #cbd5e1;
  --border-gold: rgba(184, 119, 20, 0.28);

  /* Brand Accents */
  --gold-accent: #b87714;
  --gold-dark: #925c0a;
  --gold-light: #dfa237;
  --ocean-blue: #0284c7;
  --ocean-deep: #0c2d48;

  /* Typography Stack */
  --font-arabic: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-latin: 'Inter', system-ui, sans-serif;
  --font-heading: 'Tajawal', var(--font-arabic);

  /* Modern Refined Sizing */
  --font-size-xs: 0.76rem;    /* 12.2px */
  --font-size-sm: 0.86rem;    /* 13.8px */
  --font-size-base: 0.94rem;  /* 15px */
  --font-size-md: 1.08rem;    /* 17.3px */
  --font-size-lg: 1.25rem;    /* 20px */
  --font-size-xl: 1.6rem;     /* 25.6px - Main Headline */

  --container-max: 1100px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.08);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-page);
  color: var(--text-main);
}

body {
  font-family: var(--font-arabic);
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: 1.85;
  direction: rtl;
  text-align: right;
  background-color: var(--bg-page);
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.ltr {
  direction: ltr;
  text-align: left;
  font-family: var(--font-latin), var(--font-arabic);
}

/* Headings with Tajawal */
h1, h2, h3, h4, h5, h6,
.hero-title-main,
.section-title-clean,
.brand-title-text,
.phase-card-title,
.grade-item-title,
.spec-box-title,
.metric-value {
  font-family: var(--font-heading);
  letter-spacing: -0.3px;
  color: var(--text-main);
}

body.ltr h1,
body.ltr h2,
body.ltr h3,
body.ltr h4,
body.ltr h5,
body.ltr h6,
body.ltr .hero-title-main,
body.ltr .section-title-clean,
body.ltr .brand-title-text,
body.ltr .phase-card-title,
body.ltr .grade-item-title,
body.ltr .spec-box-title {
  font-family: var(--font-heading), var(--font-latin);
}

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

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ==========================================================================
   Clean Top Header Navigation
   ========================================================================== */
.site-header-clean {
  position: relative;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  z-index: 50;
}

.nav-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.header-brand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.brand-title-text {
  font-size: var(--font-size-md);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.brand-sub-text {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  font-weight: 400;
  display: block;
}

.nav-links-clean {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link-clean {
  font-size: var(--font-size-sm);
  color: var(--text-body);
  font-weight: 500;
  transition: var(--transition);
}

.nav-link-clean:hover, .nav-link-clean.active {
  color: var(--gold-accent);
}

.nav-actions-clean {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-clean {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--text-body);
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.btn-clean:hover {
  border-color: var(--border-hover);
  background: var(--bg-subtle);
  color: var(--text-main);
}

.btn-clean-primary {
  background: var(--text-main);
  color: #ffffff;
  border-color: var(--text-main);
}

.btn-clean-primary:hover {
  background: #1e293b;
  border-color: #1e293b;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
  transform: translateY(-1px);
}

/* Language Dropdown Selector (Matching exact clean button design) */
.lang-selector-wrap {
  position: relative;
  display: inline-block;
}

.lang-btn {
  user-select: none;
  cursor: pointer;
}

.lang-arrow {
  transition: transform 0.2s ease;
  margin-inline-start: 2px;
}

.lang-selector-wrap.open .lang-arrow {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  min-width: 135px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  padding: 0.35rem;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lang-selector-wrap.open .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-opt-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.45rem 0.65rem;
  font-family: inherit;
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--text-body);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  text-align: start;
}

.lang-opt-btn:hover {
  background: var(--bg-subtle);
  color: var(--gold-accent);
}

.lang-opt-btn.active {
  background: var(--bg-accent-soft);
  color: var(--gold-accent);
}

.lang-opt-check {
  font-size: 0.72rem;
  opacity: 0;
}

.lang-opt-btn.active .lang-opt-check {
  opacity: 1;
}


/* ==========================================================================
   Hero Section: Top Transparent Logo & Natural Oceanic Panorama
   ========================================================================== */
.hero-stage {
  padding-top: 2rem;
  padding-bottom: 4.5rem;
  text-align: center;
  background: linear-gradient(to bottom, #ffffff 0%, var(--bg-page) 100%);
  border-bottom: 1px solid var(--border-light);
}

/* ==========================================================================
   Central Hero Logo with Horizontal Right-to-Left Solar Transit
   ========================================================================== */
.hero-logo-showcase {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  overflow: visible;
  min-height: 180px;
}

/* 1. Full-Width Horizontal Motion Track (Right of screen to Left of screen) */
.screen-motion-track {
  position: absolute;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  height: 90px;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Subtle Architectural Guide Line */
.transit-guide-line {
  position: absolute;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(217, 119, 6, 0.04) 15%,
    rgba(217, 119, 6, 0.22) 50%,
    rgba(217, 119, 6, 0.04) 85%,
    transparent 100%
  );
}

/* Luminous Solar Laser Beam Sweeping from Right to Left across Screen */
.transit-light-beam {
  position: absolute;
  width: 260px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(245, 158, 11, 0.2) 20%,
    #f59e0b 65%,
    #ffffff 92%,
    transparent 100%
  );
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.8), 0 0 4px #ffffff;
  animation: screenBeamRTL 5.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Particle Stream Traveling Right to Left */
.transit-particle-stream {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.stream-dot {
  position: absolute;
  height: 3px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b, 0 0 2px #fff;
  opacity: 0;
  animation: particleStreamRTL 4.5s linear infinite;
}

.stream-dot.p1 { width: 5px; top: 44px; animation-delay: 0.2s; }
.stream-dot.p2 { width: 3px; top: 42px; animation-delay: 1.1s; }
.stream-dot.p3 { width: 4px; top: 46px; animation-delay: 1.9s; }
.stream-dot.p4 { width: 6px; top: 44px; animation-delay: 2.7s; }
.stream-dot.p5 { width: 3px; top: 43px; animation-delay: 3.5s; }
.stream-dot.p6 { width: 4.5px; top: 45px; animation-delay: 4.2s; }

/* 2. Centered Interactive Logo Stage */
.logo-interactive-stage {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  user-select: none;
  perspective: 1000px;
}

/* Ambient Golden Aura Backlight */
.logo-ambient-aura {
  position: absolute;
  width: 290px;
  height: 180px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse,
    rgba(245, 158, 11, 0.22) 0%,
    rgba(217, 119, 6, 0.06) 55%,
    transparent 75%
  );
  filter: blur(16px);
  pointer-events: none;
  animation: auraBreathe 4s ease-in-out infinite alternate;
}

/* Kinetic Logo Frame: Horizontal Right-to-Left Smooth Drift */
.logo-core-frame {
  position: relative;
  z-index: 2;
  display: inline-block;
  transform-style: preserve-3d;
  animation: logoHorizontalDriftRTL 6.5s ease-in-out infinite;
  transition: transform 0.25s cubic-bezier(0.2, 0, 0.2, 1);
}

.hero-transparent-logo {
  width: 210px;
  max-width: 80vw;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(217, 119, 6, 0.2)) drop-shadow(0 2px 8px rgba(15, 23, 42, 0.08));
  transition: filter 0.4s ease, transform 0.4s ease;
}

/* Right-to-Left Metallic Light Sheen */
.logo-metallic-sheen-rtl {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 12px;
}

.logo-metallic-sheen-rtl::after {
  content: '';
  position: absolute;
  top: -60%;
  right: -130%;
  width: 70%;
  height: 220%;
  background: linear-gradient(
    75deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 25%,
    rgba(255, 240, 190, 0.7) 50%,
    rgba(255, 255, 255, 0.15) 75%,
    transparent 100%
  );
  transform: rotate(-25deg);
  animation: metallicGleamRTL 5.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Click Horizontal Pulse Wave */
.transit-pulse-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f59e0b, #fff, #f59e0b, transparent);
  box-shadow: 0 0 20px #f59e0b;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scaleX(0.2);
  z-index: 5;
}

.transit-pulse-wave.active {
  animation: pulseFlashRTL 0.75s ease-out forwards;
}

/* ==========================================================================
   Keyframes: Horizontal Right-to-Left (RTL) Motion System
   ========================================================================== */

/* Full-Screen Laser Beam Moving from Far-Right to Far-Left */
@keyframes screenBeamRTL {
  0% {
    transform: translateX(55vw);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translateX(-55vw);
    opacity: 0;
  }
}

/* Particle Streaks Flowing Right to Left */
@keyframes particleStreamRTL {
  0% {
    transform: translateX(50vw);
    opacity: 0;
  }
  15% {
    opacity: 0.95;
  }
  85% {
    opacity: 0.95;
  }
  100% {
    transform: translateX(-50vw);
    opacity: 0;
  }
}

/* Smooth Horizontal Logo Drift from Right to Left Across the Center */
@keyframes logoHorizontalDriftRTL {
  0% {
    transform: translateX(34px) rotate(1deg);
  }
  50% {
    transform: translateX(-34px) rotate(-1deg);
  }
  100% {
    transform: translateX(34px) rotate(1deg);
  }
}

/* Metallic Light Sheen Sweeping strictly from Right to Left */
@keyframes metallicGleamRTL {
  0% {
    transform: translateX(160%) skewX(-25deg);
    opacity: 0;
  }
  14% {
    opacity: 0.95;
  }
  38% {
    transform: translateX(-160%) skewX(-25deg);
    opacity: 0;
  }
  100% {
    transform: translateX(-160%) skewX(-25deg);
    opacity: 0;
  }
}

/* Soft Ambient Golden Breathing */
@keyframes auraBreathe {
  0% {
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 0.95;
  }
}

/* Click Shockwave Expansion */
@keyframes pulseFlashRTL {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scaleX(0.2);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scaleX(2.8);
  }
}

.logo-interactive-stage:hover .hero-transparent-logo {
  filter: drop-shadow(0 14px 28px rgba(217, 119, 6, 0.35)) drop-shadow(0 4px 12px rgba(15, 23, 42, 0.12));
}

.logo-interactive-stage:active .logo-core-frame {
  transform: scale(0.96);
}

.hero-phase-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--font-size-xs);
  color: var(--gold-accent);
  background: var(--bg-accent-soft);
  padding: 0.3rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-gold);
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
}

/* 2. Panoramic Ocean Sailing Centerpiece */
.maritime-panoramic-container {
  width: 100%;
  max-width: 1040px;
  margin-inline: auto;
  margin-bottom: 2.75rem;
}

.ocean-panoramic-window {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #092543;
}

/* Real Oceanic Photography Background with Waves */
.ocean-water-backdrop {
  position: absolute;
  inset: -15%;
  background: url('../images/aerial-cargo-ship-1.jpg') center center no-repeat;
  background-size: cover;
  filter: saturate(1.15) brightness(1.02);
  animation: oceanSubtleSwell 25s ease-in-out infinite alternate;
}

@keyframes oceanSubtleSwell {
  0% { transform: scale(1.02) translate(0, 0); }
  50% { transform: scale(1.05) translate(-10px, 8px); }
  100% { transform: scale(1.02) translate(0, 0); }
}

/* Water Ripple Overlay tuned for Emerald/Turquoise Water */
.ocean-ripple-layer {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.04) 0%, rgba(18, 145, 136, 0.08) 60%, rgba(15, 23, 42, 0.18) 100%);
  pointer-events: none;
}

/* Simulated Vessel Wake & Spray */
.vessel-motion-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.dynamic-wake-pulse {
  position: absolute;
  width: 75%;
  height: 180px;
  background: radial-gradient(ellipse at 75% 50%, rgba(255, 255, 255, 0.35) 0%, rgba(14, 165, 233, 0.15) 40%, transparent 70%);
  filter: blur(8px);
  animation: wakeEngineSwell 2.4s ease-in-out infinite alternate;
}

@keyframes wakeEngineSwell {
  0% { opacity: 0.6; transform: scaleX(0.95); }
  100% { opacity: 0.9; transform: scaleX(1.05); }
}

/* Navigational Telemetry Bar in Crisp Light Glass */
.telemetry-floating-pill {
  position: absolute;
  bottom: 16px;
  left: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  padding: 0.65rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  z-index: 10;
}

.telemetry-stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.telemetry-stat-item strong {
  color: var(--text-main);
  font-weight: 700;
  font-family: var(--font-latin), var(--font-arabic);
}

.telemetry-btn-group {
  display: flex;
  gap: 0.5rem;
}

.telemetry-ctrl-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.telemetry-ctrl-btn:hover, .telemetry-ctrl-btn.active {
  background: var(--gold-accent);
  color: #ffffff;
  border-color: var(--gold-accent);
}

/* 3. Hero Copywriting (No Copper/Minerals Clutter) */
.hero-content-wrap {
  max-width: 720px;
  margin-inline: auto;
}

.hero-title-main {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.45;
  margin-bottom: 1rem;
}

.hero-desc-clean {
  font-size: var(--font-size-base);
  color: var(--text-body);
  line-height: 1.85;
  margin-bottom: 2rem;
}

.hero-cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Stats Counter Row */
.stats-strip-clean {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 740px;
  margin-inline: auto;
  margin-top: 3.5rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--border-light);
}

.stat-cell-clean {
  text-align: center;
}

.stat-num-clean {
  font-size: var(--font-size-lg);
  font-weight: 800;
  color: var(--text-main);
  font-family: var(--font-latin), var(--font-arabic);
}

.stat-lbl-clean {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ==========================================================================
   Section Layouts
   ========================================================================== */
.section-wrapper {
  padding-block: 5rem;
  border-bottom: 1px solid var(--border-light);
}

.section-wrapper.bg-subtle-tint {
  background-color: var(--bg-subtle);
}

.section-head-clean {
  margin-bottom: 3rem;
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.section-kicker {
  font-size: var(--font-size-xs);
  color: var(--gold-accent);
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  display: block;
}

.section-title-clean {
  font-size: var(--font-size-lg);
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 0.65rem;
}

.section-subtitle-clean {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

/* 01. Operational Phases (Side-by-Side Cards) */
.phases-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.phase-box-white {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.phase-box-white:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.phase-status-tag {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--gold-accent);
  margin-bottom: 0.75rem;
}

.phase-card-title {
  font-size: var(--font-size-md);
  font-weight: 800;
  margin-bottom: 0.85rem;
  line-height: 1.4;
}

.phase-card-desc {
  font-size: var(--font-size-sm);
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  flex: 1;
}

.phase-feature-points {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: var(--font-size-xs);
  color: var(--text-body);
  border-top: 1px solid var(--border-light);
  padding-top: 1.25rem;
}

.phase-feature-points li {
  position: relative;
  padding-inline-start: 1.25rem;
}

.phase-feature-points li::before {
  content: '✓';
  position: absolute;
  right: 0;
  color: var(--gold-accent);
  font-weight: bold;
}

body.ltr .phase-feature-points li::before {
  right: auto;
  left: 0;
}

/* 02. European Quality Standards (Clean 4-Card Grid) */
.standards-quad-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.standard-quad-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.standard-quad-card:hover {
  border-color: var(--gold-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.standard-code-pill {
  display: inline-block;
  font-family: var(--font-latin);
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--gold-accent);
  background: var(--bg-accent-soft);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  margin-bottom: 0.85rem;
}

.standard-quad-card h4 {
  font-size: var(--font-size-sm);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.standard-quad-card p {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  line-height: 1.65;
}

/* 03. Scrap Grades Catalog (Pure Ferrous Scrap Focus) */
.catalog-nav-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.cat-tab-btn {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-body);
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.cat-tab-btn:hover, .cat-tab-btn.active {
  background: var(--text-main);
  color: #ffffff;
  border-color: var(--text-main);
}

.grades-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.grade-white-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.65rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.grade-white-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.grade-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.grade-code-badge {
  font-family: var(--font-latin);
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--gold-accent);
}

.grade-purity-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #10b981;
}

.grade-item-title {
  font-size: var(--font-size-sm);
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.grade-item-desc {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex: 1;
}

.grade-footer-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 0.65rem;
}

.grade-footer-row strong {
  color: var(--text-main);
}

/* 04. Brand Semiotics (Clean Light Showcase) */
.brand-semiotics-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  align-items: center;
}

.semiotics-logo-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.semiotics-logo-box img {
  width: 160px;
  height: auto;
  object-fit: contain;
}

.semiotics-points-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.semiotic-cell h5 {
  font-size: var(--font-size-sm);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.semiotic-cell p {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  line-height: 1.7;
}

/* 05. Export Logistics & Estimator (Clean White Card) */
.estimator-layout-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.form-field-unit {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.15rem;
}

.field-label-clean {
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--text-body);
}

.field-input-clean {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 0.65rem 0.95rem;
  border-radius: 8px;
  font-size: var(--font-size-sm);
  outline: none;
  transition: var(--transition);
}

.field-input-clean:focus {
  border-color: var(--gold-accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px var(--bg-accent-soft);
}

.estimator-output-panel {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-row-clean {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-light);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.calc-row-clean strong {
  color: var(--text-main);
  font-family: var(--font-latin);
}

/* ==========================================================================
   Clean Site Footer
   ========================================================================== */
.site-footer-white {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding-top: 4rem;
  padding-bottom: 2.5rem;
}

.footer-top-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-desc-col {
  max-width: 420px;
}

.footer-desc-col p {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 0.85rem;
}

.footer-contact-cols {
  display: flex;
  gap: 3rem;
  font-size: var(--font-size-xs);
  color: var(--text-body);
}

.footer-contact-cols h6 {
  color: var(--text-main);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.footer-legal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 1.75rem;
}

/* Modal Window */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-white-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  width: 100%;
  max-width: 490px;
  padding: 2.25rem;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

body.ltr .modal-close-btn {
  left: auto;
  right: 1.25rem;
}

.modal-close-btn:hover {
  color: var(--text-main);
}

/* Responsive Rules */
@media (max-width: 860px) {
  .ocean-panoramic-window {
    height: 300px;
  }

  .phases-two-col,
  .brand-semiotics-container,
  .estimator-layout-box {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .nav-links-clean {
    display: none;
  }

  .footer-contact-cols {
    flex-direction: column;
    gap: 1.25rem;
  }
}
