/* ============================================================
   MTS — Midstream & Terminal Services
   Modern commercial-engineering redesign stylesheet
   ============================================================ */

:root {
  /* Palette */
  --navy-900: #0b2140;
  --navy-800: #0f2b52;
  --navy-700: #163a6b;
  --steel-600: #4a5a70;
  --steel-400: #7c8aa0;
  --steel-200: #d6dce5;
  --steel-100: #eef1f5;
  --paper: #ffffff;
  --amber-500: #ef7f2a;
  --amber-600: #d96912;
  --ink: #16202e;
  --success: #1f8a5f;

  /* Type */
  --font-head: 'Sora', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1200px;
  --radius: 10px;
  --shadow-sm: 0 2px 10px rgba(11, 33, 64, 0.08);
  --shadow-md: 0 10px 30px rgba(11, 33, 64, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; color: var(--steel-600); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-tight { padding: 40px 0; }

.bg-navy { background: var(--navy-900); color: #fff; }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }
.bg-navy p { color: rgba(255,255,255,0.78); }
.bg-steel { background: var(--steel-100); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-600);
  font-weight: 700;
  margin-bottom: 12px;
}
.bg-navy .eyebrow { color: var(--amber-500); }

.lead { font-size: 1.15rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-amber { background: var(--amber-500); color: #fff; }
.btn-amber:hover { background: var(--amber-600); }
.btn-outline-light { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }
.btn-outline-navy { border-color: var(--navy-900); color: var(--navy-900); }
.btn-outline-navy:hover { background: var(--navy-900); color: #fff; }
.btn-navy { background: var(--navy-900); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--steel-200);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 44px; width: auto; }
.brand-text { font-family: var(--font-head); font-weight: 700; color: var(--navy-900); font-size: 1.05rem; line-height: 1.1; }
.brand-text span { display: block; font-size: 0.68rem; font-weight: 500; letter-spacing: 0.08em; color: var(--steel-400); text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy-900);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active { color: var(--amber-600); border-bottom-color: var(--amber-500); }

.nav-actions { display: flex; align-items: center; gap: 16px; }
.mobile-only-cta { display: none; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--navy-900); display: block; }

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: 72px;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    z-index: 600;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .main-nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--steel-100); }
  body.nav-open .main-nav { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .nav-actions .btn { display: none; }
  .mobile-only-cta { display: inline-flex; margin-top: 14px; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: #fff;
  overflow: hidden;
}

/* Split hero: text panel on the left (solid), sharp photo slider confined to the right */
.hero-split {
  display: flex;
  align-items: stretch;
  min-height: 620px;
}
.hero-text-panel {
  flex: 0 0 50%;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px 56px 90px max(24px, calc((100vw - var(--container)) / 2 + 24px));
  position: relative;
  z-index: 2;
}
.hero-slider-panel {
  flex: 0 0 50%;
  max-width: 50%;
  position: relative;
  overflow: hidden;
}
.hero-slider-panel::before {
  /* soft fade where the photo meets the text panel, no blur on the photo itself */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, var(--navy-900) 0%, rgba(11,33,64,0.35) 16%, rgba(11,33,64,0) 38%);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.1s ease;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-slider-nav {
  position: absolute;
  z-index: 3;
  bottom: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.hero-arrow {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.08);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.hero-arrow:hover { background: rgba(255,255,255,0.22); }
.hero-dots { display: flex; gap: 8px; }
.hero-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero-dot.is-active { background: var(--amber-500); transform: scale(1.25); }

.hero-text-panel .eyebrow { display: inline-block; }
.hero-text-panel h1 { color: #fff; margin-bottom: 20px; font-size: clamp(1.7rem, 2.6vw, 2.5rem); }
.hero-text-panel p.lead { color: rgba(255,255,255,0.82); max-width: 480px; }
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 56px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--font-head); font-size: 1.8rem; color: var(--amber-500); }
.hero-stats div span { font-size: 0.82rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.06em; }

@media (max-width: 980px) {
  .hero-split { flex-direction: column; min-height: 0; }
  .hero-text-panel {
    flex: none; max-width: 100%; margin-left: 0;
    padding: 64px 24px 48px;
  }
  .hero-slider-panel { flex: 0 0 320px; max-width: 100%; height: 320px; }
  .hero-slider-panel::before {
    background: linear-gradient(0deg, var(--navy-900) 0%, rgba(11,33,64,0.25) 22%, rgba(11,33,64,0) 45%);
  }
}

.page-hero {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: #fff;
  padding: 72px 0;
}
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,0.8); max-width: 640px; margin: 0; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: var(--amber-500); }

/* ---------------- Grids / Cards ---------------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--steel-200);
  border-radius: var(--radius);
  padding: 30px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card .icon-badge { margin-bottom: 16px; }
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; }
.card a.card-link { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--navy-900); font-family: var(--font-head); font-size: 0.88rem; }
.card a.card-link:hover { color: var(--amber-600); }

.icon-badge {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--steel-100);
  color: var(--amber-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.bg-navy .icon-badge { background: rgba(255,255,255,0.1); color: var(--amber-500); }

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin: 0 0 48px; text-align: left; }

/* Market / project tiles with photo */
.tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.tile::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(11,33,64,0.92) 0%, rgba(11,33,64,0.25) 60%, rgba(11,33,64,0.05) 100%);
}
.tile-body { position: relative; z-index: 1; padding: 24px; }
.tile-body h3 { color: #fff; margin-bottom: 6px; }
.tile-body p { color: rgba(255,255,255,0.82); font-size: 0.92rem; margin-bottom: 0; }

/* Process steps */
.steps { counter-reset: step; }
.step {
  display: flex;
  gap: 22px;
  padding: 28px 0;
  border-bottom: 1px solid var(--steel-200);
}
.step:last-child { border-bottom: none; }
.step-num {
  flex: none;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--amber-500);
  font-family: var(--font-head);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

/* Checklist */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--steel-600); }
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--amber-600);
  font-weight: 700;
}

/* Placeholder photo blocks (labelled for client to replace) */
.photo-placeholder {
  background: linear-gradient(135deg, var(--steel-200), var(--steel-100));
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--steel-400);
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  min-height: 220px;
  text-align: center;
  padding: 20px;
  border: 1px dashed var(--steel-400);
}

/* Team */
.team-card { text-align: center; }
.team-card img { border-radius: 50%; width: 120px; height: 120px; object-fit: cover; margin: 0 auto 16px; }

/* CTA band */
.cta-band {
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.78); margin: 0; }

/* Forms */
.form-control-mts {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--steel-200);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
  margin-bottom: 16px;
}
.form-control-mts:focus { outline: none; border-color: var(--amber-500); }
label.form-label { font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; color: var(--navy-900); margin-bottom: 6px; display: block; }

/* Footer */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.75); padding: 64px 0 24px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.site-footer a { color: rgba(255,255,255,0.68); }
.site-footer a:hover { color: var(--amber-500); }
.site-footer .grid { margin-bottom: 40px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; font-size: 0.82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-brand img { height: 40px; margin-bottom: 14px; }

.iframe-container { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.iframe-container iframe { width: 100%; height: 340px; border: 0; display: block; }

@media (max-width: 780px) {
  .cta-band { padding: 32px; flex-direction: column; text-align: center; }
  .section { padding: 60px 0; }
}
