/* ============================================
   CGA Garments Trading Ã¢â‚¬â€ Premium Landing Page
   ============================================ */

:root {
  --navy: #0F3D56;
  --navy-deep: #0A2A3B;
  --navy-soft: #164A66;
  --teal: #00A8A8;
  --teal-dark: #008B8B;
  --teal-soft: rgba(0, 168, 168, 0.12);
  --orange: #FF8C00;
  --orange-hover: #E67E00;
  --bg: #F7F9FC;
  --white: #FFFFFF;
  --text: #243B4A;
  --text-muted: #5A7184;
  --border: rgba(15, 61, 86, 0.1);
  --shadow: 0 10px 40px rgba(15, 61, 86, 0.08);
  --shadow-lg: 0 20px 60px rgba(15, 61, 86, 0.12);
  --radius: 16px;
  --radius-sm: 12px;
  --nav-h: 80px;
  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 9999;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  position: relative;
  overflow: visible;
}

.section-alt {
  background: var(--white);
}

.section-head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  max-width: 640px;
}

.section-head.center {
  text-align: center;
  margin-inline: auto;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.65rem, 3.2vw, 2.4rem);
  margin-bottom: 0.85rem;
}

.section-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s, border-color 0.25s, color 0.25s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.btn-cta {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(255, 140, 0, 0.3);
}

.btn-cta:hover {
  background: var(--orange-hover);
  box-shadow: 0 12px 28px rgba(255, 140, 0, 0.4);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.btn-lg {
  padding: 0.95rem 1.85rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* ---------- Glass ---------- */
.glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow);
}

/* ---------- Reveal (progressive: only hide when JS is ready) ---------- */
.reveal {
  opacity: 1;
  transform: none;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  will-change: opacity, transform;
}

html.js .reveal.is-visible,
html.js .reveal.visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 4px 24px rgba(15, 61, 86, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
  position: relative;
  z-index: 1002;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.logo-img {
  height: 56px;
  width: auto;
  max-width: min(200px, 42vw);
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

/* Soft white plate so navy logo stays readable on dark hero */
.navbar:not(.scrolled) .logo-img {
  background: rgba(255, 255, 255, 0.96);
  padding: 0.3rem 0.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.navbar.scrolled .logo-img {
  height: 50px;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: nowrap;
}

.nav-link {
  padding: 0.45rem 0.7rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  transition: color 0.25s, background 0.25s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.navbar.scrolled .nav-link {
  color: var(--text);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  color: var(--navy);
  background: var(--teal-soft);
}

.nav-cta {
  margin-left: 0.4rem;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1003;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, background 0.3s;
}

.navbar.scrolled .nav-toggle span {
  background: var(--navy);
}

.nav-toggle[aria-expanded="true"] span {
  background: var(--navy);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 28, 40, 0.45);
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    url("https://images.unsplash.com/photo-1578574577315-b8f4971f1f5e?auto=format&fit=crop&w=2000&q=85")
    center / cover no-repeat;
  transform: scale(1.03);
  animation: heroZoom 30s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(8, 28, 40, 0.92) 0%,
    rgba(10, 42, 59, 0.84) 50%,
    rgba(15, 61, 86, 0.72) 100%
  );
  pointer-events: none;
}

.hero-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 3.75rem);
  align-items: center;
  padding:
    calc(var(--nav-h) + 100px)
    clamp(80px, 8vw, 120px)
    110px;
  box-sizing: border-box;
}

.hero-copy {
  min-width: 0;
  max-width: 560px;
}

.hero-eyebrow {
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #5fd4d4;
  margin-bottom: 0.9rem;
}

.hero-title {
  font-size: clamp(1.65rem, 3.4vw, 2.85rem);
  color: var(--white);
  font-weight: 800;
  margin-bottom: 1.1rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-sub {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.6rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.35rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-tags li {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  backdrop-filter: blur(6px);
}

/* Right collage panel */
.hero-visual {
  min-width: 0;
  width: 100%;
  max-width: 560px;
  justify-self: end;
}

.hero-collage-card {
  width: 100%;
  padding: 16px;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-mosaic {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  height: clamp(380px, 48vh, 480px);
}

.mosaic-item {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(10, 42, 59, 0.55);
  min-height: 0;
  min-width: 0;
}

.mosaic-item img {
  width: 100%;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s var(--ease);
}

.mosaic-item:hover img {
  transform: scale(1.05);
}

.mosaic-a {
  grid-column: 1;
  grid-row: 1 / 3;
}

.mosaic-b {
  grid-column: 2;
  grid-row: 1;
}

.mosaic-c {
  grid-column: 2;
  grid-row: 2;
}

.mosaic-d {
  grid-column: 1;
  grid-row: 3;
}

.mosaic-e {
  grid-column: 2;
  grid-row: 3;
}

.scroll-hint {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255, 255, 255, 0.7);
  animation: bounce 2s infinite;
}

.scroll-hint svg {
  width: 28px;
  height: 28px;
}

@keyframes heroZoom {
  from { transform: scale(1.03); }
  to { transform: scale(1.08); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.about-img-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #e8eef3;
}

.about-img-wrap img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  max-width: 240px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius-sm);
  z-index: 2;
}

.about-badge svg {
  width: 28px;
  height: 28px;
  color: var(--teal);
  flex-shrink: 0;
}

.about-badge strong {
  display: block;
  font-family: var(--font-head);
  color: var(--navy);
  font-size: 1rem;
}

.about-badge span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.about-copy p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.about-stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  color: var(--teal);
  margin-bottom: 0.25rem;
}

.about-stat span {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ---------- Products ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef2f6;
  flex-shrink: 0;
}

.product-media img {
  width: 100%;
  height: 100% !important;
  max-width: none;
  object-fit: contain;
  object-position: center;
  padding: 0.65rem;
  transition: transform 0.5s var(--ease);
}

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

.product-body {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
  min-height: 0;
}

.product-body h3 {
  font-size: 1.02rem;
  line-height: 1.3;
}

.product-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  flex: 1;
  line-height: 1.55;
}

.product-body .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* ---------- Product Gallery ---------- */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  grid-auto-rows: 10px;
  grid-auto-flow: dense;
}

.gallery-item {
  grid-row: span 22;
  position: relative;
  border: none;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: zoom-in;
  background: #e8eef3;
  box-shadow: var(--shadow);
  display: block;
  width: 100%;
  min-width: 0;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.gallery-item.gallery-tall {
  grid-row: span 28;
}

.gallery-item.gallery-wide {
  grid-column: span 2;
  grid-row: span 18;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  outline: none;
}

.gallery-item img {
  width: 100%;
  height: 100% !important;
  max-width: none;
  object-fit: contain;
  object-position: center;
  padding: 0.5rem;
  display: block;
  background: #eef2f6;
  transition: transform 0.5s var(--ease), filter 0.35s;
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.9);
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.75rem 1rem 0.9rem;
  background: linear-gradient(to top, rgba(10, 42, 59, 0.88), transparent);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}

.gallery-item:hover .gallery-caption,
.gallery-item:focus-visible .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 28, 40, 0.85);
  backdrop-filter: blur(6px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: 90vh;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.lightbox-dialog img {
  width: 100%;
  max-height: 75vh;
  height: auto !important;
  object-fit: contain;
  background: #0a2a3b;
}

.lightbox-caption {
  padding: 1rem 1.25rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  flex-shrink: 0;
}

.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.lightbox-close:hover {
  background: var(--orange);
  color: var(--white);
}

.lightbox-close svg {
  width: 20px;
  height: 20px;
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.feature-card {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  height: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}

.feature-card.glass {
  background: rgba(255, 255, 255, 0.92);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--navy);
  color: var(--white);
  margin-bottom: 1.15rem;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ---------- Industries ---------- */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.industry-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.1rem;
  text-align: center;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s var(--ease), background 0.35s, border-color 0.35s;
}

.section-alt .industry-card {
  background: var(--bg);
}

.industry-card svg {
  width: 36px;
  height: 36px;
  color: var(--teal);
  margin-bottom: 0.85rem;
  transition: color 0.3s;
}

.industry-card h3 {
  font-size: 0.98rem;
  transition: color 0.3s;
}

.industry-card:hover {
  background: var(--navy);
  border-color: var(--navy);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.industry-card:hover svg,
.industry-card:hover h3 {
  color: var(--white);
}

/* ---------- Global Map ---------- */
.map-wrap {
  position: relative;
}

.map-canvas {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  aspect-ratio: 2 / 1;
  min-height: 280px;
}

.world-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.map-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
  padding: 8px;
}

.pin-dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.5);
  animation: pulse 2s infinite;
  transition: transform 0.25s, background 0.25s;
}

.map-pin:hover .pin-dot,
.map-pin:focus-visible .pin-dot,
.map-pin.active .pin-dot {
  transform: scale(1.35);
  background: var(--teal);
  box-shadow: 0 0 0 8px rgba(0, 168, 168, 0.2);
}

.pin-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%) translateY(6px);
  white-space: nowrap;
  background: var(--navy);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 3;
}

.map-pin:hover .pin-label,
.map-pin:focus-visible .pin-label,
.map-pin.active .pin-label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.map-legend {
  margin-top: 1.15rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
}

.map-legend p {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.map-legend svg {
  width: 18px;
  height: 18px;
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 2px;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 140, 0, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(255, 140, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 140, 0, 0); }
}

/* ---------- Timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--navy));
  opacity: 0.25;
}

.timeline-item {
  text-align: center;
  position: relative;
  padding: 0.25rem 0.15rem 0;
  min-width: 0;
}

.timeline-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--teal);
  color: var(--teal);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}

.timeline-item:hover .timeline-icon {
  background: var(--teal);
  color: var(--white);
  transform: scale(1.06);
}

.timeline-icon svg {
  width: 26px;
  height: 26px;
}

.timeline-item h3 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.timeline-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ---------- Stats ---------- */
.stats-section {
  position: relative;
  padding: clamp(3.5rem, 6vw, 5rem) 0;
  overflow: hidden;
  color: var(--white);
}

.stats-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(135deg, rgba(10, 42, 59, 0.94), rgba(0, 138, 138, 0.8)),
    url("https://images.unsplash.com/photo-1578574577315-b8f4971f1f5e?auto=format&fit=crop&w=1600&q=80")
    center / cover no-repeat;
}

.stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.stat-card {
  text-align: center;
  padding: 1.35rem 0.75rem;
}

.stat-card svg {
  width: 32px;
  height: 32px;
  color: var(--orange);
  margin: 0 auto 0.85rem;
}

.stat-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  color: var(--white);
  margin-bottom: 0.35rem;
}

.stat-card span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  padding: clamp(3.5rem, 7vw, 5rem) 0;
  background: linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 50%, var(--teal-dark) 100%);
  color: var(--white);
  text-align: center;
}

.cta-inner {
  max-width: 700px;
  margin-inline: auto;
}

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
}

.contact-card {
  display: flex;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-sm);
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--border);
}

.contact-card.glass {
  background: rgba(255, 255, 255, 0.95);
}

.contact-card > svg {
  width: 22px;
  height: 22px;
  color: var(--teal);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.contact-card p,
.contact-card a {
  font-size: 0.9rem;
  color: var(--text-muted);
  word-break: break-word;
}

.contact-card a:hover {
  color: var(--teal);
}

.map-placeholder {
  margin-top: 0.25rem;
  min-height: 180px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 61, 86, 0.06), rgba(0, 168, 168, 0.1)),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 12px,
      rgba(15, 61, 86, 0.03) 12px,
      rgba(15, 61, 86, 0.03) 24px
    );
  border: 1px dashed rgba(15, 61, 86, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.map-placeholder svg {
  width: 36px;
  height: 36px;
  color: var(--teal);
}

.contact-form {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  min-width: 0;
}

.contact-form.glass {
  background: rgba(255, 255, 255, 0.96);
}

.contact-form h3 {
  font-size: 1.2rem;
  margin-bottom: 1.35rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
  min-width: 0;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 168, 168, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  color: var(--teal);
  min-height: 1.4em;
}

/* ---------- Site Footer (slim bar) ---------- */
.site-footer {
  width: 100%;
  background: #000000;
  min-height: 85px;
  display: flex;
  align-items: center;
}

.site-footer-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 18px 60px;
  box-sizing: border-box;
}

.site-footer-copy {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-family: "Poppins", var(--font-body), sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: #ffffff;
  text-align: left;
}

.footer-accent {
  color: #d4a017;
  font-weight: 400;
  text-decoration: none;
}

a.footer-accent:hover {
  text-decoration: underline;
  color: #e6b422;
}

.site-footer-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.ew-logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
}

.ew-logo {
  height: 48px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  display: block;
}

.footer-back-top {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #d4a017;
  background: transparent;
  color: #d4a017;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.25s, color 0.25s, transform 0.25s;
}

.footer-back-top:hover {
  background: #d4a017;
  color: #000000;
  transform: translateY(-2px);
}

.footer-back-top:focus-visible {
  outline: 2px solid #d4a017;
  outline-offset: 3px;
}

.footer-back-top svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 900px) {
  .site-footer-inner {
    padding: 16px 30px;
  }

  .site-footer-copy {
    font-size: 13px;
  }

  .ew-logo {
    height: 40px;
  }
}

@media (max-width: 600px) {
  .site-footer {
    min-height: 72px;
  }

  .site-footer-inner {
    padding: 14px 20px;
    gap: 0.75rem;
  }

  .site-footer-copy {
    font-size: 12px;
    line-height: 1.45;
  }

  .site-footer-right {
    gap: 10px;
  }

  .ew-logo {
    height: 34px;
    max-width: 110px;
  }

  .footer-back-top {
    width: 32px;
    height: 32px;
  }
}

/* ---------- Large tablet / small desktop ---------- */
@media (max-width: 1200px) {
  .nav-link {
    padding: 0.4rem 0.55rem;
    font-size: 0.82rem;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-masonry {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .nav-toggle {
    display: flex;
  }

  .nav-overlay {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(100%, 320px);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: calc(var(--nav-h) + 1rem) 1.5rem 2rem;
    background: #ffffff;
    box-shadow: -10px 0 40px rgba(15, 61, 86, 0.18);
    transform: translateX(110%);
    transition: transform 0.4s var(--ease);
    z-index: 1002;
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-link,
  .navbar.scrolled .nav-link,
  .navbar:not(.scrolled) .nav-link {
    color: var(--navy);
    padding: 0.85rem 1rem;
    background: transparent;
  }

  .nav-link:hover,
  .nav-link.active,
  .navbar.scrolled .nav-link:hover,
  .navbar.scrolled .nav-link.active {
    color: var(--navy);
    background: var(--teal-soft);
  }

  .nav-cta {
    margin: 1rem 0 0;
    width: 100%;
  }

  .timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem 1rem;
  }

  .timeline::before {
    display: none;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    align-items: stretch;
    padding:
      calc(var(--nav-h) + 72px)
      clamp(40px, 6vw, 80px)
      80px;
  }

  .hero-copy {
    max-width: 640px;
  }

  .hero-visual {
    max-width: 560px;
    justify-self: start;
    width: 100%;
  }

  .hero-mosaic {
    height: 380px;
  }
}

@media (max-width: 1024px) {
  .hero-mosaic {
    height: 360px;
  }
}

@media (max-width: 900px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .industry-grid,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .gallery-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 8px;
  }

  .gallery-item {
    grid-row: span 20;
  }

  .gallery-item.gallery-tall {
    grid-row: span 24;
  }

  .gallery-item.gallery-wide {
    grid-column: span 2;
    grid-row: span 16;
  }

  .gallery-caption {
    opacity: 1;
    transform: none;
  }

  .map-canvas {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 600px) {
  :root {
    --nav-h: 68px;
  }

  .container {
    width: min(100% - 1.4rem, var(--container));
  }

  .section {
    padding: 3rem 0;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding:
      calc(var(--nav-h) + 56px)
      20px
      72px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-visual {
    max-width: 100%;
    justify-self: stretch;
  }

  .hero-collage-card {
    padding: 12px;
    border-radius: 20px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-mosaic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 140px 140px 120px;
    gap: 10px;
    height: auto;
  }

  .mosaic-a {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .mosaic-b {
    grid-column: 1;
    grid-row: 2;
  }

  .mosaic-c {
    grid-column: 2;
    grid-row: 2;
  }

  .mosaic-d {
    grid-column: 1;
    grid-row: 3;
  }

  .mosaic-e {
    grid-column: 2;
    grid-row: 3;
  }

  .mosaic-item {
    border-radius: 12px;
  }

  .hero-tags li {
    font-size: 0.68rem;
    padding: 0.35rem 0.7rem;
  }

  .about-stats,
  .product-grid,
  .feature-grid,
  .industry-grid,
  .stats-grid,
  .timeline,
  .form-row {
    grid-template-columns: 1fr;
  }

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

  .gallery-item,
  .gallery-item.gallery-tall,
  .gallery-item.gallery-wide {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .pin-label {
    display: none;
  }

  .contact-form {
    padding: 1.35rem;
  }

  .logo-img {
    height: 46px;
    max-width: min(160px, 48vw);
  }

  .about-badge {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  html.js .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-bg,
  .scroll-hint,
  .pin-dot {
    animation: none !important;
  }

  .btn:hover,
  .product-card:hover,
  .feature-card:hover,
  .industry-card:hover,
  .gallery-item:hover {
    transform: none;
  }

  .product-card:hover .product-media img,
  .gallery-item:hover img,
  .mosaic-item:hover img {
    transform: none;
  }
}
