/* ════════════════════════════════════════════════════
   MI.NDE — style.css
   Warm industrial dark theme, professional grade
   ════════════════════════════════════════════════════ */

/* Font loaded non-blocking via <link> in HTML */

:root {
  /* Palette */
  --bg:        #111009;
  --bg-2:      #181410;
  --text:      #f0ebe4;
  --muted:     #8c8278;
  --subtle:    #5a524a;
  --primary:   #e87000;
  --primary-2: #f59832;
  --amber:     #c8922a;
  --line:      rgba(255, 160, 60, 0.12);
  --line-dim:  rgba(255, 255, 255, 0.07);

  /* Shadows */
  --shadow-lg: 0 32px 80px rgba(0, 0, 0, 0.55);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.3);

  /* Layout */
  --radius:   18px;
  --radius-sm: 12px;
  --max:      1200px;
  --header-h: 76px;
}

/* ── Reset & base ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

/* ── Background atmosphere ─────────────────────────── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 65% 50% at 70% 5%,  rgba(232,112,0,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 45% 40% at 5%  55%,  rgba(200,80,0,0.10)  0%, transparent 55%),
    radial-gradient(ellipse 80% 50% at 50% 105%, rgba(0,0,0,0.6)       0%, transparent 65%),
    linear-gradient(175deg, #1c1610 0%, #15110d 40%, #0f0d0b 100%);
}

/* Subtle noise grain */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.028;
  background-image:
    linear-gradient(rgba(255,200,80,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,200,80,.08) 1px, transparent 1px);
  background-size: 72px 72px;
}

/* ── Layout helpers ────────────────────────────────── */
.container {
  width: min(calc(100% - 2.5rem), var(--max));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}
.narrow { max-width: 800px; }

/* ── Glassmorphism ─────────────────────────────────── */
.glass {
  background: linear-gradient(
    140deg,
    rgba(255,160,60,0.07) 0%,
    rgba(30,22,14,0.55)   50%,
    rgba(255,120,30,0.05) 100%
  );
  border: 1px solid var(--line);
  box-shadow:
    var(--shadow-lg),
    inset 0 1px 0 rgba(255,200,100,0.10),
    inset 0 0 0 1px rgba(0,0,0,0.08);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}

/* ── HEADER ────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0.75rem;
  z-index: 1000;
  margin: 0.75rem auto 0;
  width: min(calc(100% - 1.5rem), 1260px);
  border-radius: 16px;
  background: rgba(18, 14, 9, 0.90);
  border: 1px solid rgba(232,112,0,0.20);
  box-shadow:
    0 4px 24px rgba(0,0,0,0.5),
    0 1px 0 rgba(255,180,60,0.08) inset;
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 1.5rem;
  min-height: var(--header-h);
}

/* Brand / logo block */
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 0;
  flex-shrink: 0;
}

/* Logo image — crisp, no blend mode artifacts */
.brand-logo {
  width: min(200px, 32vw);
  height: auto;
  /* Screen blend removes dark background of PNG cleanly */
  mix-blend-mode: screen;
  filter: brightness(1.15) saturate(1.1);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.brand-tagline {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--amber);
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.85;
}

/* Nav links */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.main-nav a {
  color: rgba(240,235,228,0.70);
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color .2s ease, background .2s ease;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--text);
  background: rgba(255,160,60,0.08);
}

.nav-cta {
  color: var(--text) !important;
  background: linear-gradient(135deg, rgba(232,112,0,0.28), rgba(200,80,0,0.18)) !important;
  border: 1px solid rgba(232,112,0,0.40) !important;
  font-weight: 600 !important;
}
.nav-cta:hover {
  background: linear-gradient(135deg, rgba(232,112,0,0.42), rgba(200,80,0,0.30)) !important;
  border-color: rgba(232,112,0,0.60) !important;
}

.menu-toggle { display: none; }

/* Scroll anchor offset */
#services, #sectors, #about, #contact {
  scroll-margin-top: calc(var(--header-h) + 2rem);
}

/* ── SECTIONS ──────────────────────────────────────── */
.section {
  position: relative;
  padding: 6.5rem 0;
  z-index: 2;
}

/* ── HERO ──────────────────────────────────────────── */
.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: clip;
  position: relative;
}

.hero-bg, .hero-grid, .service-glow, .about-orb {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg {
  background:
    radial-gradient(ellipse 55% 50% at 65% 22%, rgba(232,112,0,0.26), transparent 60%),
    radial-gradient(ellipse 30% 35% at 78% 18%, rgba(245,152,50,0.14),  transparent 50%),
    radial-gradient(ellipse 22% 28% at 10% 18%, rgba(200,80,0,0.07),    transparent 45%);
}

.hero-grid {
  opacity: 1;
  background-image:
    linear-gradient(rgba(255,180,60,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,180,60,.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 80%);
}

.hero::after {
  content: "";
  position: absolute;
  right: 4%;
  top: 10%;
  width: min(44vw, 580px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,112,0,0.18), rgba(200,80,0,0.06) 55%, transparent 70%);
  filter: blur(28px);
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding-top: 7.5rem;
  padding-bottom: 5rem;
  gap: 0.1rem;
}

/* Hero logo */
.hero-logo-shell {
  margin: 1.5rem 0 1.75rem;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0;
}

.hero-logo {
  width: min(380px, 72vw);
  height: auto;
  display: block;
  mix-blend-mode: screen;
  filter: brightness(1.2) saturate(1.1);
  image-rendering: -webkit-optimize-contrast;
}

/* ── TYPOGRAPHY ────────────────────────────────────── */
.eyebrow, .section-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-2);
}

h1, h2, h3 { margin: 0 0 1rem; font-weight: 700; }

h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: var(--text);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.9rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}

h3 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text);
}

p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
  margin: 0 0 1rem;
}

.hero-copy {
  max-width: 54ch;
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(240,235,228,0.72);
  text-align: center;
}

/* Hero note */
.hero-wave-note {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--primary-2);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 0.6rem 0 0.2rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(232,112,0,0.6);
  animation: pulse 2.6s infinite;
  flex-shrink: 0;
}

/* ── BUTTONS ───────────────────────────────────────── */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.5rem 0 2.5rem;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #0e0c0a;
  box-shadow: 0 4px 20px rgba(232,112,0,0.40);
}
.btn-primary:hover { box-shadow: 0 8px 30px rgba(232,112,0,0.55); }

.btn-secondary {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.14);
  color: var(--text);
}
.btn-secondary:hover { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.22); }

.full-width { width: 100%; }

/* ── HERO METRICS ──────────────────────────────────── */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
  width: 100%;
  position: relative;
  z-index: 2;
}

.metric-card {
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius);
  text-align: left;
}
.metric-card strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.metric-card span { font-size: 0.88rem; color: var(--muted); line-height: 1.55; }

/* ── SECTION HEAD ──────────────────────────────────── */
.section-head {
  margin-bottom: 3rem;
  max-width: 680px;
}
.section-head .section-tag { margin-bottom: 0.6rem; display: block; }
.section-head h2 { margin-bottom: 0.65rem; }
.section-head p { color: var(--muted); font-size: 1rem; }

/* ── SERVICE CARDS ─────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.service-card {
  padding: 2rem;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 36px 80px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,200,80,0.14);
}

/* Decorative corner glow */
.service-card::after {
  content: "";
  position: absolute;
  bottom: -30%;
  right: -15%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,112,0,0.14), transparent 65%);
  pointer-events: none;
}

.service-card h3 { margin-bottom: 0.65rem; }

/* Intro paragraph — no flex-grow, sits naturally */
.service-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
  flex-grow: 0;
}

.service-card ul {
  padding-left: 1rem;
  list-style: disc;
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 2;
  width: 100%;
}

/* Spacer element that grows to fill remaining height before the link */
.service-card .service-link {
  margin-top: auto;
  padding-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-2);
  letter-spacing: 0.02em;
  transition: color .2s, gap .2s;
  gap: 0.3rem;
}
.service-card .service-link:hover { color: var(--primary); gap: 0.55rem; }

/* NDT technique sub-labels */
.ndt-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-2);
  margin: 0.9rem 0 0.1rem;
  flex-grow: 0;
}

/* Rope access equipment note */
.rope-note {
  font-size: 0.82rem;
  color: var(--subtle);
  font-style: italic;
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  padding-top: 0.85rem;
  line-height: 1.6;
  flex-grow: 0;
}

.service-glow {
  background: radial-gradient(ellipse 45% 35% at 12% 22%, rgba(232,112,0,0.08), transparent 55%);
}

/* ── SECTOR STRIP ──────────────────────────────────── */
.sector-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,140,40,0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.sector-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 2.25rem 1rem 2rem;
  text-align: center;
  border-right: 1px solid var(--line);
  transition: background .25s ease;
  cursor: default;
}
.sector-item:last-child { border-right: none; }
.sector-item:hover { background: rgba(232,112,0,0.07); }
.sector-item:hover .sector-icon-wrap { color: var(--primary); transform: translateY(-3px); opacity: 1; }
.sector-item:hover span { color: var(--text); }

.sector-icon-wrap {
  width: 46px;
  height: 46px;
  color: rgba(240,235,228,0.65);
  opacity: 1;
  transition: color .25s ease, transform .25s ease;
}
.sector-icon-wrap svg { width: 100%; height: 100%; }

.sector-item span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  line-height: 1.35;
  transition: color .25s;
}

/* ── ABOUT ─────────────────────────────────────────── */
.split-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}
.align-start { align-items: start; }

.feature-panel { padding: 2rem; border-radius: var(--radius); }

.feature-list {
  padding-left: 1rem;
  list-style: disc;
  margin: 0.85rem 0 0;
  color: var(--muted);
  line-height: 2;
  font-size: 0.95rem;
}

/* Capabilities panel inside about */
.caps-intro {
  font-size: 0.88rem !important;
  color: var(--muted);
  margin-bottom: 0.75rem !important;
}

.caps-label {
  font-size: 0.68rem !important;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-2);
  margin: 0.85rem 0 0.2rem !important;
  flex-grow: 0;
}

.caps-list {
  padding-left: 1rem;
  list-style: disc;
  margin: 0 !important;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.85;
}

.about-orb {
  background: radial-gradient(ellipse 55% 45% at 88% 12%, rgba(232,112,0,0.09), transparent 52%);
}

/* ── SEO / WHY SECTION ─────────────────────────────── */
.seo-panel { padding: 2.25rem 2.5rem; border-radius: var(--radius); }
.seo-panel h2 { margin-bottom: 0.5rem; }
.seo-panel > p { margin-bottom: 0; }

.seo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.seo-grid h3 { font-size: 1rem; margin-bottom: 0.45rem; }
.seo-grid p  { font-size: 0.9rem; margin: 0; }

/* ── CONTACT ───────────────────────────────────────── */
.contact-points {
  border-radius: var(--radius-sm);
  padding: 1.35rem 1.5rem;
  margin-top: 1.5rem;
}
.contact-points p { margin: 0.3rem 0; font-size: 0.95rem; }

.contact-form {
  padding: 2rem;
  border-radius: var(--radius);
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(240,235,228,0.75);
  letter-spacing: 0.02em;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--subtle); }
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(232,112,0,0.50);
  box-shadow: 0 0 0 3px rgba(232,112,0,0.10);
}
.form-note { margin: 0; font-size: 0.82rem; color: var(--subtle); }

/* ── FOOTER ────────────────────────────────────────── */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}
.footer-logo {
  width: min(180px, 50vw);
  margin-bottom: 0.7rem;
  mix-blend-mode: screen;
  filter: brightness(1.15) saturate(1.1);
}
.site-footer p { max-width: 36ch; font-size: 0.9rem; color: var(--muted); margin: 0; }
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}
.footer-links a { font-size: 0.9rem; color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy {
  font-size: 0.82rem;
  color: var(--subtle);
  margin-top: 0.5rem;
}

@media (max-width: 580px) {
  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
  }
  .footer-links {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.5rem 1.25rem;
    width: 100%;
  }
  .footer-copy {
    width: 100%;
    margin-top: 0.25rem;
  }
}


/* ── REVEAL ANIMATION ──────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .75s ease, transform .75s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ── KEYFRAMES ─────────────────────────────────────── */
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(232,112,0,0.65); transform: scale(1); }
  70%  { box-shadow: 0 0 0 12px rgba(232,112,0,0);  transform: scale(1.1); }
  100% { box-shadow: 0 0 0 0 rgba(232,112,0,0);    transform: scale(1); }
}

/* ── RESPONSIVE — tablet ───────────────────────────── */
@media (max-width: 980px) {
  .hero-metrics,
  .card-grid,
  .seo-grid,
  .split-grid { grid-template-columns: 1fr; }

  .sector-strip { grid-template-columns: repeat(3, 1fr); }
  .sector-item:nth-child(3)  { border-right: none; }
  .sector-item:nth-child(1),
  .sector-item:nth-child(2),
  .sector-item:nth-child(3)  { border-bottom: 1px solid var(--line); }

  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0; right: 0;
    margin: 0 auto;
    width: min(calc(100% - 1rem), 1260px);
    border-radius: 16px;
    background: rgba(16,12,8,0.96);
    border: 1px solid var(--line);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem;
    gap: 0.2rem;
  }
  .main-nav.is-open { display: flex; }

  .menu-toggle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 44px; height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.04);
    color: var(--text);
    font-size: 1.15rem;
    cursor: pointer;
  }
}

/* ── RESPONSIVE — mobile ───────────────────────────── */
@media (max-width: 640px) {
  :root { --header-h: 66px; }
  .section { padding: 4.5rem 0; }
  .hero-content { padding-top: 6rem; }
  .site-header { width: calc(100% - 1rem); top: 0.5rem; }
  .nav-wrap { padding: 0.7rem 1rem; }
  h1 { max-width: 100%; }
  .hero-logo { width: min(320px, 88vw); }
  .split-grid { gap: 2rem; }
  .sector-strip { grid-template-columns: repeat(2, 1fr); }
  .sector-item:nth-child(2) { border-right: none; }
  .sector-item:nth-child(4) { border-right: none; }
  .sector-item:nth-child(3) { border-right: 1px solid var(--line); }
  .sector-item:nth-child(1),
  .sector-item:nth-child(2),
  .sector-item:nth-child(3),
  .sector-item:nth-child(4) { border-bottom: 1px solid var(--line); }
  .brand-tagline { display: none; }
  .seo-panel { padding: 1.5rem; }
  .contact-form { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .btn { transition: none !important; }
  .pulse-dot { animation: none !important; }
}
