/* ============================================
   Gulf Coast Fabricators — Site Stylesheet
   Matched to live-site brand: navy + crimson,
   Poppins headings, Oswald hero display, Inter body
   ============================================ */

:root {
  --navy: #012148;
  --navy-deep: #002146;
  --blue-brand: #1e70bf;
  --steel: #4d5c68;
  --steel-light: #7c8a95;
  --fog: #f2f4f6;
  --white: #ffffff;
  --crimson: #bf0d3e;
  --crimson-dark: #97092f;
  --text-dark: #1c2a35;
  --border: #dfe4e8;
  --radius: 4px;
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

::selection { background: var(--crimson); color: var(--white); }
::-moz-selection { background: var(--crimson); color: var(--white); }

body {
  margin: 0;
  font-family: 'Work Sans', 'Segoe UI', Arial, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: 'Sora', Arial, sans-serif;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.4em;
  line-height: 1.2;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: #d7e0e8;
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar-serving {
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.topbar-contact {
  display: flex;
  gap: 24px;
}
.topbar-contact a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #d7e0e8;
}
.topbar-contact a:hover { color: var(--white); }
.topbar-contact .icon { font-size: 0.9em; }
.topbar-social {
  display: flex;
  gap: 8px;
}
.topbar-social a {
  width: 26px;
  height: 26px;
  background: var(--white);
  color: var(--navy);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
}
.topbar-social a:hover { background: var(--crimson); color: var(--white); }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--white);
  box-shadow: 0 1px 0 rgba(13,43,78,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 74px; width: auto; }
.main-nav {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-family: 'Sora', Arial, sans-serif;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-dark);
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--crimson);
  border-bottom-color: var(--crimson);
}

/* ---------- Nav dropdown ("More") ---------- */
.has-dropdown { position: relative; }
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.dropdown-caret { font-size: 0.65em; position: relative; top: 1px; }
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(13,43,78,0.14);
  padding: 8px 0;
  margin: 10px 0 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 200;
}
.dropdown-menu li { margin: 0; }
.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  font-size: 0.92rem;
  white-space: nowrap;
  border-bottom: none;
}
.dropdown-menu a:hover,
.dropdown-menu a.active {
  background: var(--fog);
  color: var(--crimson);
  border-bottom: none;
}
@media (min-width: 1181px) {
  .has-dropdown:hover .dropdown-menu,
  .has-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}
.header-actions { display: flex; align-items: center; gap: 18px; }
.btn.nav-cta {
  background: var(--crimson);
  padding: 12px 22px;
  font-size: 0.9rem;
}
.btn.nav-cta .icon-arrow { font-size: 1rem; line-height: 1; }
.btn.nav-cta:hover { background: var(--navy); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: var(--crimson);
  color: var(--white);
  font-family: 'Sora', Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.btn:hover { background: var(--crimson-dark); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--navy); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--navy);
}

/* ---------- Hero carousel ---------- */
.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: var(--white);
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,33,64,0.05) 0%, rgba(10,33,64,0.05) 55%, rgba(10,33,64,0.55) 100%);
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  z-index: 1;
}
.hero-slide:not(.active) { position: absolute; }
.hero-slide-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-slide-content { max-width: 640px; padding: 90px 0; }
.hero-slide h1 {
  color: var(--white);
  font-family: 'Sora', Arial, sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 3rem;
  line-height: 1.05;
  margin-bottom: 18px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.65), 0 1px 3px rgba(0,0,0,0.8);
}
.hero-slide p {
  font-size: 1.1rem;
  color: #f4f7f9;
  margin-bottom: 28px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7), 0 1px 2px rgba(0,0,0,0.8);
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  padding: 10px 16px;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}
.hero-arrow:hover { opacity: 1; }
.hero-arrow.prev { left: 6px; }
.hero-arrow.next { right: 6px; }
.hero-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.hero-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
}
.hero-dots span.active { background: var(--white); }

/* generic page hero (subpages) */
.page-hero {
  background: linear-gradient(120deg, rgba(10,33,64,0.82), rgba(10,33,64,0.62)),
              url('../img/giant_pressbrakes.webp') center/cover no-repeat;
  color: var(--white);
  padding: 100px 0;
  text-align: center;
}
.page-hero.hero-about { background-image: linear-gradient(120deg, rgba(10,33,64,0.82), rgba(10,33,64,0.62)), url('../img/20250220_213917411_iOS-scaled.webp'); }
.page-hero.hero-capabilities { background-image: linear-gradient(120deg, rgba(10,33,64,0.82), rgba(10,33,64,0.62)), url('../img/elbow-2.webp'); }
.page-hero.hero-products { background-image: linear-gradient(120deg, rgba(10,33,64,0.82), rgba(10,33,64,0.62)), url('../img/dredging.png'); }
.page-hero.hero-repairs { background-image: linear-gradient(120deg, rgba(10,33,64,0.82), rgba(10,33,64,0.62)), url('../img/ball-joint-machining.webp'); }
.page-hero.hero-field { background-image: linear-gradient(120deg, rgba(10,33,64,0.82), rgba(10,33,64,0.62)), url('../img/vessels.webp'); }
.page-hero.hero-customfab { background-image: linear-gradient(120deg, rgba(10,33,64,0.82), rgba(10,33,64,0.62)), url('../img/oxy-fuel-cutting-Thermacut-768x338.webp'); }
.page-hero.hero-contact { background-image: linear-gradient(120deg, rgba(10,33,64,0.82), rgba(10,33,64,0.62)), url('../img/20250220_212559114_iOS-scaled.webp'); }
.page-hero .eyebrow {
  color: #ffb3bf;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  font-size: 0.9rem;
  text-transform: uppercase;
}
.page-hero h1 {
  color: var(--white);
  font-family: 'Sora', Arial, sans-serif;
  text-transform: uppercase;
  font-size: 2.3rem;
  margin: 0;
}

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-alt { background: var(--fog); }

/* small breathing room between the last content section and the footer */
section:last-of-type {
  margin-bottom: 40px;
}
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }

.eyebrow-label {
  color: var(--crimson);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  margin-bottom: 10px;
  display: block;
  text-transform: uppercase;
}
h2 { font-size: 2rem; position: relative; }
.heading-underline {
  width: 56px;
  height: 4px;
  background: var(--crimson);
  border-radius: 2px;
  margin: 10px 0 22px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.two-col img { border-radius: var(--radius); }

/* About Us intro: smaller image, centered text to match */
.about-intro { grid-template-columns: 0.78fr 1.22fr; }
.about-intro-media img { max-width: 380px; margin: 0 auto; }
.about-intro-text { text-align: center; }
.about-intro-text .heading-underline { margin: 10px auto 22px; }
@media (max-width: 900px) {
  .about-intro-media img { max-width: 320px; }
}

.stats-row {
  display: flex;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.stat-item { min-width: 140px; }
.stat-num {
  font-family: 'Sora', Arial, sans-serif;
  font-size: 2rem;
  color: var(--crimson);
  font-weight: 700;
  line-height: 1;
}
.stat-label { font-size: 0.85rem; color: var(--steel-light); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 4px; }

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.service-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(13,43,78,0.12);
}
.service-card img { height: 190px; width: 100%; object-fit: cover; }
.service-card-body { padding: 20px 22px 26px; }
.service-card-body h3 { font-size: 1.35rem; margin-bottom: 8px; }
.service-card-body p { margin: 0; color: var(--steel); font-size: 1.05rem; }

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.project-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.project-card img { height: 220px; width: 100%; object-fit: cover; }
.project-card-body { padding: 18px 20px 22px; }
.project-card-body h3 { font-size: 1.1rem; margin-bottom: 12px; }
.project-view-link {
  display: inline-block;
  font-family: 'Sora', Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--crimson);
  border-bottom: 1px solid var(--crimson);
  padding-bottom: 2px;
}
.project-view-link:hover { color: var(--crimson-dark); border-color: var(--crimson-dark); }

/* ---------- Contact section ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 40px;
}
.contact-info {
  background: var(--navy);
  color: var(--white);
  padding: 44px 40px;
}
.contact-info-item { margin-bottom: 30px; }
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-item h4 {
  color: #bf0d3e;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.contact-info-item p, .contact-info-item a { color: #dbe3e8; font-size: 1rem; margin: 0; }
.contact-map { min-height: 260px; }
.contact-map iframe { width: 100%; height: 100%; min-height: 260px; border: 0; display: block; }

.contact-form-panel { padding: 44px 40px; background: var(--fog); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--steel);
  font-weight: 600;
}
.form-field input,
.form-field textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field.full { grid-column: 1 / -1; }

/* Honeypot spam trap: present in the DOM for bots, invisible to people */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Form alert (contact form success / error) ---------- */
.form-alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.form-alert.success { background: #e6f4ea; color: #1e7a37; border: 1px solid #b7e0c3; }
.form-alert.error { background: #fdeaea; color: var(--crimson-dark); border: 1px solid #f3c0c9; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #b9c6cd;
  padding-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #1c3a5a;
}
.footer-logo a {
  display: inline-flex;
  background: var(--white);
  border-radius: 50%;
  padding: 8px;
  margin-bottom: 14px;
}
.footer-logo img { height: 46px; margin-bottom: 0; display: block; }
.footer-wordmark {
  color: var(--white);
  font-family: 'Sora', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: 0.01em;
  margin: 0 0 12px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a:hover { color: var(--crimson); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 32px; height: 32px;
  background: #16324f;
  border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}
.footer-social a:hover { background: var(--crimson); color: var(--white); }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { text-decoration: underline; }

/* ---------- Announcement banner ---------- */
.announcement {
  background: #eaf6ef;
  border: 1px solid #b9dfc7;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 40px;
  font-size: 0.95rem;
  color: #1f5c39;
}
.announcement strong { color: #17532f; }

/* ---------- Misc content blocks ---------- */
.placeholder-note {
  border: 1px dashed var(--border);
  background: var(--fog);
  padding: 14px 18px;
  font-size: 0.85rem;
  color: var(--steel);
  border-radius: var(--radius);
  margin: 20px 0;
}
.image-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 30px 0;
}
.image-row.three { grid-template-columns: repeat(3, 1fr); }
.image-row img { height: 160px; width: 100%; object-fit: cover; border-radius: var(--radius); }

.center-text { text-align: center; max-width: 720px; margin: 0 auto; }
.center-text .heading-underline { margin-left: auto; margin-right: auto; }

/* ---------- Process steps (About Us) ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
  text-align: left;
}
.process-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.process-step-num {
  font-family: 'Sora', Arial, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--crimson);
  display: block;
  margin-bottom: 10px;
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.process-step p { margin: 0; color: var(--steel); font-size: 0.92rem; }

/* ---------- Icon list (Repairs / Field / Custom Fab pages) ---------- */
.check-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--steel);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--crimson);
}
.check-list.two-column {
  grid-template-columns: repeat(2, 1fr);
  column-gap: 40px;
  margin-top: 28px;
}
@media (max-width: 720px) {
  .check-list.two-column { grid-template-columns: 1fr; }
}

/* ---------- Clickable slab grid (Capabilities / Products jump-to nav) ---------- */
.slab-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.slab-card {
  position: relative;
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 4px 14px rgba(13,43,78,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.slab-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--crimson);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.slab-card:hover::before { transform: scaleX(1); }
.slab-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(13,43,78,0.16);
  border-color: transparent;
}
.slab-card img {
  height: 110px;
  width: 100%;
  object-fit: cover;
}
.slab-card-label {
  padding: 0 14px 28px;
  font-family: 'Sora', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
}
.slab-card:hover .slab-card-label { color: var(--crimson); }
.slab-card-num {
  display: block;
  width: 34px;
  height: 34px;
  line-height: 34px;
  margin: 24px auto 12px;
  border-radius: 50%;
  background: rgba(191,13,62,0.1);
  font-family: 'Sora', Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--crimson);
  transition: background 0.25s ease, color 0.25s ease;
}
.slab-card:hover .slab-card-num {
  background: var(--crimson);
  color: var(--white);
}
.slab-card-gallery { background: var(--navy); }
.slab-card-gallery .slab-card-label { color: var(--white); }
.slab-card-gallery:hover .slab-card-label { color: #ffb3bf; }

/* Anchor offset so sticky header doesn't cover jumped-to sections */
.capability-row, .product-detail { scroll-margin-top: 120px; }
.product-list-item { scroll-margin-top: 120px; }

/* ---------- Flat product list (Products page) ---------- */
.product-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 20px;
}
.product-list-item {
  position: relative;
  padding: 14px 20px 14px 38px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--navy);
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.35;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.product-list-item::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--crimson);
}
.product-list-item:hover {
  border-color: var(--crimson);
  box-shadow: 0 8px 18px rgba(13,43,78,0.08);
  transform: translateY(-2px);
}
@media (max-width: 900px) {
  .product-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .product-list { grid-template-columns: 1fr; }
}

/* ---------- Featured product gallery (Products page) ---------- */
.featured-heading {
  font-family: 'Sora', Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
}
.featured-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(13,43,78,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.featured-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(13,43,78,0.16);
}
.featured-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}
.featured-card-body { padding: 16px 18px 20px; }
.featured-card-body h4 {
  font-family: 'Sora', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
}
.featured-card-body p {
  font-size: 0.88rem;
  color: var(--steel);
  margin: 0;
  line-height: 1.45;
}
@media (max-width: 900px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .featured-grid { grid-template-columns: 1fr; }
}

/* Coming soon / placeholder badges */
.badge-coming-soon {
  display: inline-block;
  background: var(--crimson);
  color: var(--white);
  font-family: 'Sora', Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-left: 12px;
  vertical-align: middle;
}
.page-hero .badge-coming-soon { display: block; width: max-content; margin: 14px auto 0; }
.img-placeholder-wrap { position: relative; }
.img-placeholder-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(10,33,64,0.85);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius);
}

/* ---------- Capability feature rows (alternating image/text) ---------- */
.capability-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 46px 0;
  border-bottom: 1px solid var(--border);
}
.capability-row:first-child { padding-top: 8px; }
.capability-row:last-child { border-bottom: none; }
.capability-row.reverse .capability-media { order: 2; }
.capability-row.reverse .capability-text { order: 1; }
.capability-media {
  border-radius: var(--radius);
  overflow: hidden;
  height: 380px;
}
.capability-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.capability-num {
  font-family: 'Sora', Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--crimson);
  display: block;
  margin-bottom: 8px;
}
.capability-text h3 { font-size: 1.5rem; margin-bottom: 12px; }
.capability-text p { color: var(--steel); margin: 0; }

/* ---------- Gallery grid (even thumbnails, click to open lightbox) ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--fog);
  border: 1px solid var(--border);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,33,64,0) 50%, rgba(10,33,64,0.6) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item-label {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 1;
  color: var(--white);
  font-family: 'Sora', Arial, sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}
.gallery-item:hover .gallery-item-label { opacity: 1; transform: translateY(0); }

/* ---------- Lightbox ---------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,15,28,0.93);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lightbox-overlay.open { opacity: 1; visibility: visible; }
.lightbox-figure {
  max-width: 88vw;
  max-height: 86vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lightbox-img {
  max-width: 88vw;
  max-height: 76vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-figure figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #dbe3e8;
  font-family: 'Sora', Arial, sans-serif;
  font-size: 0.95rem;
  text-align: center;
}
.lightbox-counter { color: #7c8a95; font-size: 0.8rem; }
.lightbox-close {
  position: absolute;
  top: 22px;
  right: 28px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: none;
  color: var(--white);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 2;
}
.lightbox-arrow:hover { background: rgba(255,255,255,0.18); }
.lightbox-arrow.prev { left: 24px; }
.lightbox-arrow.next { right: 24px; }
@media (max-width: 700px) {
  .lightbox-arrow { width: 42px; height: 42px; font-size: 1.3rem; }
  .lightbox-arrow.prev { left: 10px; }
  .lightbox-arrow.next { right: 10px; }
  .lightbox-close { top: 14px; right: 16px; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
}
@media (max-width: 1180px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    box-shadow: 0 8px 16px rgba(13,43,78,0.10);
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .main-nav a.active, .main-nav a:hover { border-bottom-color: var(--crimson); }
  .site-header .container { position: relative; }
  .nav-toggle { display: flex; }
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--fog);
    margin: 0;
    padding: 0;
    display: none;
  }
  .has-dropdown.open .dropdown-menu { display: block; }
  .dropdown-menu a { padding: 12px 0 12px 20px; border-bottom: 1px solid var(--border); }
  .dropdown-toggle { display: flex; justify-content: space-between; width: 100%; }
}
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .image-row { grid-template-columns: repeat(2, 1fr); }
  .capability-row { grid-template-columns: 1fr; padding: 32px 0; }
  .capability-row.reverse .capability-media { order: 1; }
  .capability-row.reverse .capability-text { order: 2; }
  .capability-media { height: 260px; }
  .slab-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .header-actions .nav-cta { padding: 10px 16px; font-size: 0.82rem; }
  .services-grid, .projects-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-slide h1 { font-size: 2rem; }
  .topbar-contact { display: none; }
  .logo-word { font-size: 1.1rem; }
  .slab-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Back to top button ---------- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;.logo img { height: 36px; max-width: 140px; width: auto; }
  background: var(--crimson);
  color: var(--white);
  border: none;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(13,43,78,0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  z-index: 999;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { background: var(--crimson-dark); }



/* ---------- Mobile header overflow fix (v2 — replaces v1) ---------- */
html, body { overflow-x: hidden; }

@media (max-width: 600px) {
  .logo img { height: 36px; width: auto; }
  .header-actions { gap: 8px; }
  .header-actions .nav-cta { display: none; }
}
