/* ==========================================================================
   F B Group - Clean Modular Stylesheet
   Website Template: Stone & Aggregate Trading
   ========================================================================== */

/* ---------- CSS VARIABLES / DESIGN TOKENS ---------- */
:root {
  --bg:           #f5f8fc;   /* soft white-blue */
  --bg-alt:       #e9f0f8;   /* light blue-grey */
  --paper:        #ffffff;   /* white card surface */
  --ink:          #0d1a33;   /* deep navy text */
  --muted:        #5b6780;   /* slate muted text */
  --accent:       #0a1a3f;   /* navy (primary) */
  --accent-2:     #17703f;   /* green */
  --accent-light: #38a8f0;   /* light blue */
  --blue:         #1f4fd6;   /* logo blue */
  --line:         #dde3ec;   /* subtle divider line */
  --shadow:       0 10px 30px rgba(10, 26, 63, 0.08);
  --shadow-lg:    0 20px 60px rgba(10, 26, 63, 0.16);
  --transition:   all 0.25s ease;
  --font-serif:   'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- RESET & BASE STYLES ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  background: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: #fff;
}

.btn.outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 12px 26px;
}

.btn.outline:hover {
  background: var(--accent);
  color: #fff;
}

/* ---------- HEADER & NAVIGATION ---------- */
header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

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

/* .container.nav so the .container side-padding rules can't reset it */
.container.nav {
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
  user-select: none;
  flex-shrink: 0;
}

.logo-text h1 {
  font-size: 1.25rem;
  line-height: 1;
  margin-bottom: 2px;
  color: var(--ink);
}

.logo-text p {
  white-space: nowrap;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}

nav ul a {
  white-space: nowrap;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}

nav ul a:hover {
  color: var(--accent);
}

nav ul a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s;
}

nav ul a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 22px;
  font-size: 0.88rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--ink);
  cursor: pointer;
  padding: 6px;
  line-height: 1;
}

/* ---------- HERO SECTION ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

/* Banner slider (images managed from /admin) */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0a1a3f;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.2s ease, transform 7s linear;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 4px 10px;
  border-radius: 999px;
  background: rgba(6, 18, 46, 0.45);
  backdrop-filter: blur(6px);
}

.hero-controls[hidden] { display: none; }

.hero-dots { display: flex; }

.hero-dot {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.hero-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.3s ease, background-color 0.3s ease;
}

.hero-dot:hover::before { background: #fff; }
.hero-dot[aria-current="true"]::before { width: 22px; background: var(--accent-light); }

.hero-pause {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.hero-pause:hover { background: rgba(255, 255, 255, 0.15); }
.hero-pause svg { width: 14px; height: 14px; fill: currentColor; }

.hero-dot:focus-visible, .hero-pause:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
  border-radius: 999px;
}

/* Dark Overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 26, 63, 0.78) 0%, rgba(10, 26, 63, 0.65) 100%);
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(56, 168, 240, 0.2), transparent 60%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero-tag {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 22px;
  padding-left: 38px;
  position: relative;
  font-weight: 600;
}

.hero-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 28px;
  height: 1px;
  background: var(--accent-light);
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-light);
}

.hero p {
  font-size: 1.15rem;
  color: #e6edf6;
  margin-bottom: 36px;
  max-width: 600px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero .btn {
  background: var(--accent-2);
}

.hero .btn:hover {
  background: #fff;
  color: var(--ink);
}

.hero .btn.outline {
  color: #fff;
  border-color: #fff;
}

.hero .btn.outline:hover {
  background: #fff;
  color: var(--ink);
}

.hero-stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 900px;
}

.hero-stat .num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--accent-light);
  line-height: 1;
}

.hero-stat .label {
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #dde3ec;
  margin-top: 8px;
}

/* ---------- GENERAL SECTION STYLES ---------- */
section {
  padding: 100px 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 70px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  margin-bottom: 18px;
}

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

/* ---------- ABOUT SECTION ---------- */
.about {
  background: var(--paper);
}

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

.about-img {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--accent), var(--ink)) center/cover;
}

.about-img img,
.about-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content .eyebrow {
  display: block;
  margin-bottom: 14px;
}

.about-content h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin-bottom: 24px;
}

.about-content > p {
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 1.02rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 32px;
}

.about-feat {
  padding: 20px;
  background: var(--bg);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
}

.about-feat h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--ink);
}

.about-feat p {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- PRODUCTS SECTION ---------- */
.products {
  background: var(--bg);
}

.product-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 32px 0;
}

.products--sand {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}

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

.product-img {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  position: relative;
}

.product-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10, 26, 63, 0.4));
}

.product-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 30px;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 2;
}

.product-body {
  padding: 24px 26px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-body h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.product-body p {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 18px;
  flex: 1;
}

.product-spec {
  list-style: none;
  margin: 0 0 22px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.product-spec li {
  font-size: 0.85rem;
  color: var(--ink);
  padding: 4px 0;
  display: flex;
  justify-content: space-between;
}

.product-spec li span {
  color: var(--muted);
}

.product-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.product-link:hover {
  gap: 12px;
}

/* ---------- GALLERY SECTION & LIGHTBOX ---------- */
.gallery {
  background: var(--bg);
  padding: 80px 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 3/2;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  background: #0a1a3f;
}

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

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

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 10, 10, 0.94);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.lightbox.open {
  display: flex;
}

.lightbox-stage {
  max-width: min(88vw, 1000px);
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lightbox-stage img,
.lightbox-stage video {
  max-width: 100%;
  max-height: 74vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  object-fit: contain;
}

.lightbox-caption {
  color: #e5e7eb;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  min-height: 1.2em;
  letter-spacing: 0.5px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2010;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

.lightbox-nav {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
  margin: 0 20px;
  z-index: 2010;
  user-select: none;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}


/* ---------- TRADE ROUTE & LOGISTICS ---------- */
.route {
  background: var(--ink);
  color: #e6edf6;
  position: relative;
  overflow: hidden;
}

.route::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(10, 26, 63, 0.3), transparent 60%);
}

.route .section-head h2 {
  color: #fff;
}

.route .section-head p {
  color: #b8c3d6;
}

.route .eyebrow {
  color: var(--accent-light);
}

.route-map {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(56, 168, 240, 0.15);
  border-radius: 12px;
  padding: 50px;
  margin-top: 30px;
  position: relative;
  z-index: 2;
}

.route-points {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
}

.route-point {
  text-align: center;
}

.route-point .pin {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--accent-2);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}

.route-point h4 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.route-point p {
  color: #38a8f0;
  font-size: 0.92rem;
  margin: 0;
}

.route-line {
  position: relative;
  width: 100%;
  min-width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
}

.route-line::before {
  content: '⛴';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--ink);
  padding: 0 14px;
  font-size: 1.3rem;
  color: var(--accent-light);
}

.route-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid rgba(56, 168, 240, 0.15);
}

.route-meta div {
  text-align: center;
}

.route-meta .label {
  font-size: 0.78rem;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.route-meta .val {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: #fff;
}

/* ---------- LOGISTICS ADVANTAGE (4 CARDS) ---------- */
.choose {
  background: var(--bg-alt);
}

.choose-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.choose-card {
  background: var(--paper);
  padding: 46px 26px;
  border-radius: 8px;
  border-bottom: 4px solid var(--accent);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.choose-card::before {
  content: attr(data-num);
  position: absolute;
  top: -10px;
  right: 14px;
  font-family: var(--font-serif);
  font-size: 7rem;
  color: rgba(10, 26, 63, 0.06);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.choose-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--accent-2);
}

.choose-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  box-shadow: 0 8px 20px rgba(10, 26, 63, 0.25);
  position: relative;
  z-index: 1;
}

.choose-card h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.choose-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

@media (max-width: 1100px) {
  .choose-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .choose-grid { grid-template-columns: 1fr; }
}

/* ---------- YARDS SECTION ---------- */
.yards {
  background: var(--paper);
}

.yards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}

.yard-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

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

.yard-img {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  position: relative;
}

.yard-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 26, 63, 0.78));
}

.yard-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 22px;
  color: #fff;
  z-index: 2;
}

.yard-meta h4 {
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.yard-meta .loc {
  font-size: 0.82rem;
  color: var(--accent-light);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.yard-cap {
  padding: 18px 22px;
  background: var(--bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 3px solid var(--accent);
}

.yard-cap .label {
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.yard-cap .val {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 700;
}

.yards-summary {
  margin-top: 50px;
  padding: 30px 40px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.yards-summary div h4 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.yards-summary div p {
  color: #b8c3d6;
  font-size: 0.92rem;
  margin: 0;
}

.yards-summary .total {
  text-align: right;
}

.yards-summary .total .num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--accent-light);
  line-height: 1;
}

.yards-summary .total .label {
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #b8c3d6;
}

/* ---------- STRENGTH & FLEET SECTION ---------- */
.why {
  background: var(--paper);
}

.why-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
}

.why-head {
  max-width: 820px;
}

.why-head p + p {
  margin-top: 12px;
}

.why-subhead {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  margin-bottom: 28px;
  text-align: center;
}

/* Operational capabilities: numbered two-column list */
.cap-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 28px;
}

.cap-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 26px 26px 26px 22px;
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: 10px;
  transition: var(--transition);
}

.cap-item:hover {
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.cap-item .why-icon {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  margin: 0;
  font-size: 1.35rem;
}

.cap-num {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #1f6fb8;
  margin-bottom: 4px;
}

.cap-item h4 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.cap-item p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Our Promise panel */
.commit-panel {
  margin-top: 72px;
  padding: clamp(36px, 5vw, 64px) clamp(24px, 4vw, 56px);
  border-radius: 14px;
  background: linear-gradient(150deg, #06122e 0%, var(--accent) 60%, #12285c 100%);
  color: #c9d4e6;
}

.promise {
  text-align: center;
}

.promise-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 14px;
}

.promise-line {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  max-width: 820px;
  margin: 0 auto;
}

.promise-tag {
  margin-top: 14px;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  color: #c9d4e6;
}

@media (max-width: 900px) {
  .cap-grid { grid-template-columns: 1fr; }
  .commit-panel { margin-top: 56px; }
}

@media (max-width: 560px) {
  .cap-item { padding: 20px 18px; gap: 16px; }
  .cap-item .why-icon { width: 46px; height: 46px; font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cap-item { transition: none; }
}

/* ---------- CTA BAND ---------- */
.cta-band {
  padding: 70px 0;
  background: var(--accent);
  color: #fff;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 14px;
}

.cta-band p {
  color: #d6e2f0;
  max-width: 600px;
  margin: 0 auto 28px;
}

.cta-band .btn {
  background: var(--paper);
  color: var(--ink);
}

.cta-band .btn:hover {
  background: var(--ink);
  color: #fff;
}

/* ---------- CONTACT & QUOTATION FORM ---------- */
.contact {
  background: var(--paper);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
}

.contact-info h3 {
  font-size: 1.6rem;
  margin-bottom: 18px;
}

.contact-info > p {
  color: var(--muted);
  margin-bottom: 30px;
}

.contact-block {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.contact-block:last-child {
  border-bottom: none;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--bg);
  color: var(--accent);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-block h5 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 600;
}

.contact-block p {
  color: var(--ink);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-form {
  background: var(--bg);
  padding: 44px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

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

.form-submit {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
}

/* Built-in Toast Notification */
.form-toast {
  display: none;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 500;
  animation: fadeIn 0.3s ease;
}

.form-toast.success {
  display: block;
  background: #e6f4ea;
  color: #137333;
  border: 1px solid #ceead6;
}

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

/* ---------- FOOTER ---------- */
footer {
  background: #06122e;
  color: #b8c3d6;
  padding: 70px 0 0;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid #12285c;
}

.foot-col h5 {
  color: #fff;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 22px;
  font-family: var(--font-sans);
  font-weight: 600;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.foot-brand .logo-mark {
  height: 56px;
  background: #fff;
  padding: 5px 7px;
  border-radius: 7px;
  box-sizing: content-box;
}

.foot-brand h4 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 2px;
}

.foot-brand p {
  font-size: 0.7rem;
  color: var(--accent-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.foot-col p,
.foot-col li {
  font-size: 0.9rem;
  line-height: 1.7;
}

.foot-col ul {
  list-style: none;
  padding: 0;
}

.foot-col ul a {
  color: #b8c3d6;
  transition: color 0.2s;
}

.foot-col ul a:hover {
  color: var(--accent-light);
}

.foot-meta {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  color: #7a869c;
}

.foot-meta a {
  color: #7a869c;
  margin-left: 18px;
  transition: color 0.2s;
}

.foot-meta a:hover {
  color: #fff;
}

/* ---------- RESPONSIVE MEDIA QUERIES ---------- */
/* Tighter menu on small laptops so links stay on one line */
@media (900px < width <= 1200px) {
  nav ul { gap: 18px; }
  nav ul a { font-size: 0.86rem; }
  .nav-cta { padding: 10px 16px; }
}

@media (900px < width <= 1000px) {
  nav ul { gap: 13px; }
  nav ul a { font-size: 0.82rem; }
}

@media (max-width: 900px) {
  .container {
    padding: 0 20px;
  }
  
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 6px;
  }
  
  .menu-toggle:hover {
    background: var(--bg);
  }
  
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    padding: 10px 20px 20px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--line);
    max-height: calc(100vh - 100%);
    overflow-y: auto;
  }
  
  nav ul.open {
    display: flex;
  }
  
  nav ul li {
    width: 100%;
    padding: 0;
    border-bottom: 1px solid var(--line);
  }
  
  nav ul li:last-child {
    border-bottom: none;
  }
  
  nav ul li a {
    display: block;
    padding: 14px 2px;
  }
  
  .nav-cta {
    display: block !important;
    text-align: center;
    margin: 14px 2px 4px;
    padding: 13px 22px !important;
  }
  
  .nav-cta::after {
    display: none;
  }
  
  section {
    padding: 60px 0;
  }
  
  .section-head {
    margin-bottom: 44px;
  }
  
  .hero {
    min-height: auto;
    padding: 30px 0 64px;
  }
  
  .hero-content {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-actions .btn {
    text-align: center;
  }
  
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 16px;
    margin-top: 40px;
    padding-top: 28px;
  }
  
  .hero-stat .num {
    font-size: 1.9rem;
  }
  
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
  
  .product-grid,
  .gallery-grid,
  .yards-grid {
    grid-template-columns: 1fr;
  }
  
  .route-points {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  /* Vertical line drawn upright (not rotated) so the ship icon stays the right way up */
  .route-line {
    width: 2px;
    min-width: 0;
    height: 80px;
    margin: 0 auto;
    background: linear-gradient(180deg, transparent, var(--accent-light), transparent);
  }

  .route-line::before {
    padding: 6px 0;
    line-height: 1;
  }
  
  .route-meta {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }
  
  .route-map {
    padding: 28px 20px;
  }
  
  .contact-form {
    padding: 28px 20px;
  }
  
  .yards-summary {
    flex-direction: column;
    text-align: center;
    padding: 26px 24px;
  }
  
  .yards-summary .total {
    text-align: center;
  }
  
  .choose-card {
    padding: 38px 26px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
    margin: 0 8px;
  }
  
  .lightbox-close {
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 16px;
  }
  
  .logo {
    gap: 10px;
  }
  
  .logo-mark {
    height: 44px;
  }
  
  .logo-text h1 {
    font-size: 1.05rem;
  }
  
  .logo-text p {
    font-size: 0.62rem;
    letter-spacing: 1px;
  }
  
  .container.nav {
    padding-top: 14px;
    padding-bottom: 14px;
  }
  
  section {
    padding: 48px 0;
  }
  
  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 2px;
  }
  
  .section-head p {
    font-size: 0.96rem;
  }
  
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }
  
  .hero h1 {
    font-size: 2.1rem;
    letter-spacing: -0.5px;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .hero-tag {
    font-size: 0.7rem;
    padding-left: 32px;
  }
  
  .product-body {
    padding: 20px 20px 24px;
  }
  
  .contact-form {
    padding: 24px 16px;
  }
  
  .route-map {
    padding: 24px 16px;
  }
  
  .cta-band {
    padding: 50px 0;
  }
  
  .foot-meta {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .foot-meta a {
    margin: 0 8px;
  }
}

@media (max-width: 380px) {
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
  }
  
  .hero-stat .num {
    font-size: 1.6rem;
  }
  
  .hero-stat .label {
    font-size: 0.7rem;
  }
  
  .btn {
    padding: 13px 22px;
    font-size: 0.9rem;
  }
}


/* ---------- OUR GROUP COMPANIES ---------- */
.group { background: var(--paper); }
.group .section-head { margin-bottom: 28px; }

.group-tree { display: flex; flex-direction: column; align-items: center; }
.group-parent {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 22px 8px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; box-shadow: var(--shadow);
  font-family: var(--font-sans); font-weight: 600; font-size: 0.85rem;
  letter-spacing: 2px; text-transform: uppercase; color: var(--ink);
}
.group-parent img { height: 40px; width: auto; }
.group-lines { width: 100%; height: 44px; display: block; }
.group-lines path { fill: none; stroke: var(--line); stroke-width: 1.5; vector-effect: non-scaling-stroke; }

.group-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.group-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.group-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; z-index: 2; }
.group-card--enterprise::before { background: linear-gradient(90deg, var(--accent-2), #23a35a); }
.group-card--holdings::before { background: linear-gradient(90deg, var(--accent), var(--accent-light)); }
.group-card:hover { box-shadow: var(--shadow-lg); }
.group-card--enterprise:hover { border-color: rgba(23, 112, 63, 0.35); }
.group-card--holdings:hover { border-color: rgba(31, 79, 214, 0.35); }

.group-photo { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-alt); }
.group-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }

.group-body { display: flex; flex-direction: column; gap: 18px; flex: 1; padding: 0 34px 34px; }
.group-id { display: flex; align-items: flex-end; gap: 20px; margin-top: -46px; position: relative; }
.group-logo {
  height: 100px; width: auto; flex-shrink: 0; box-sizing: content-box;
  background: #fff; border-radius: 10px; padding: 8px 10px;
  box-shadow: 0 8px 24px -8px rgba(10, 26, 63, 0.35);
}
.group-index { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 2px; color: var(--muted); }
.group-card h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-top: 2px; }
.group-line { font-size: 1.08rem; font-weight: 500; }
.group-card--enterprise .group-line { color: var(--accent-2); }
.group-card--holdings .group-line { color: var(--accent); }
.group-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.group-tags li { font-size: 0.84rem; padding: 6px 12px; border-radius: 999px; }
.group-card--enterprise .group-tags li { background: #ecf7f0; color: var(--accent-2); }
.group-card--holdings .group-tags li { background: #eef5fd; color: var(--accent); }

@media (max-width: 900px) {
  .group-grid { grid-template-columns: 1fr; }
  .group-lines { display: none; }
  .group-tree { margin-bottom: 24px; }
}
@media (max-width: 560px) {
  .group-body { padding: 0 20px 24px; }
  .group-id { margin-top: -34px; gap: 14px; }
  .group-logo { height: 78px; padding: 6px 8px; }
  .group-id > div { min-width: 0; }
  .group-card h3 { font-size: clamp(1.25rem, 6.4vw, 1.6rem); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; transform: none; }
  .group-card, .group-photo img { transition: none; }
}

/* ---------- LEADERSHIP ---------- */
.leadership { background: var(--bg); }

.leader-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.leader-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 200px;
  padding: 36px 32px 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(10, 26, 63, 0.04);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.leader-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-light));
}

.leader-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 168, 240, 0.55);
  box-shadow: var(--shadow);
}

.leader-name {
  flex: 1;
  font-size: clamp(1.45rem, 2.1vw, 1.75rem);
  line-height: 1.25;
  color: var(--accent);
  overflow-wrap: break-word;
}

.leader-role {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  line-height: 1.5;
  color: #1f6fb8;
  overflow-wrap: break-word;
}

/* Share one name row and one designation row across cards, so dividers line up */
@supports (grid-template-rows: subgrid) {
  .leader-card {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
    row-gap: 20px;
    align-content: start;
  }
  .leader-name { align-self: start; }
}

@media (max-width: 1024px) {
  .leader-grid { grid-template-columns: repeat(2, 1fr); }
  .leader-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .leader-grid { grid-template-columns: 1fr; gap: 16px; }
  .leader-card:last-child { grid-column: auto; }
  .leader-card { min-height: 0; padding: 28px 24px; }
  .leader-name { font-size: 1.4rem; }
  .leader-role { font-size: 0.78rem; letter-spacing: 1px; }
}

@media (prefers-reduced-motion: reduce) {
  .leader-card { transition: none; }
  .leader-card:hover { transform: none; }
}
