/*
Theme Name: FracMAX
Theme URI: https://www.fracmax.net
Author: FracMAX
Author URI: https://www.fracmax.net
Description: A professional, mobile-first B2B theme for FracMAX — a software and service provider for subsurface modeling and completion optimization in unconventional reservoir development. Classic PHP templates, Gutenberg-compatible, no required plugins. English-language, exhibition-ready, with clearly marked, easy-to-replace placeholder content.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fracmax
Tags: business, technology, energy, oil-and-gas, custom-logo, full-width-template, featured-images, threaded-comments, translation-ready
*/

/* =============================================================================
   FRACMAX THEME STYLES
   Table of contents
   1.  Design tokens (:root)
   2.  Reset & base
   3.  Typography
   4.  Layout helpers (container, section, grid)
   5.  Buttons & links
   6.  Header & navigation
   7.  Hero
   8.  Cards & components
   9.  Section patterns (capabilities, solutions, why, applications, etc.)
   10. Forms & contact
   11. Resources / posts
   12. Footer
   13. Decorative SVG / background visuals
   14. Animations & motion
   15. Accessibility helpers
   16. Responsive breakpoints
   ========================================================================== */

/* 1. DESIGN TOKENS ========================================================== */
:root {
  /* Brand palette */
  --navy:         #001F5B; /* deep FracMAX wordmark blue */
  --navy-700:     #063070;
  --navy-600:     #0B4A85;
  --graphite:     #071722;
  --graphite-800: #102636;
  --tech-blue:    #009CA6; /* teal from the VI mark */
  --tech-blue-600:#007D91;
  --tech-blue-100:#E4F8F7;
  --energy-orange:#CDE600; /* bright VI yellow-green accent */
  --strata-gold:  #76C943; /* green accent from the VI mark */

  /* Neutrals */
  --light-grey:   #F3F8F8;
  --grey-100:     #E8F0F2;
  --grey-200:     #D6E2E6;
  --grey-300:     #B9CBD2;
  --mid-grey:     #5A6B76;
  --ink:          #142536; /* body text on light */
  --ink-soft:     #425262;
  --white:        #FFFFFF;

  /* Semantic */
  --bg:           var(--white);
  --bg-alt:       var(--light-grey);
  --bg-dark:      var(--navy);
  --text:         var(--ink);
  --text-soft:    var(--ink-soft);
  --text-invert:  #E8EDF5;
  --accent:       var(--tech-blue);
  --border:       var(--grey-200);

  /* Typography — tuned system font stack for crisp English reading */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;

  /* Fluid type scale */
  --fs-eyebrow: 0.8125rem;
  --fs-small:   0.875rem;
  --fs-body:    1.0625rem;
  --fs-lead:    clamp(1.125rem, 0.9rem + 0.9vw, 1.375rem);
  --fs-h4:      clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --fs-h3:      clamp(1.375rem, 1.15rem + 0.9vw, 1.75rem);
  --fs-h2:      clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem);
  --fs-h1:      clamp(2.25rem, 1.5rem + 3.2vw, 3.75rem);

  --lh-tight: 1.12;
  --lh-snug:  1.25;
  --lh-base:  1.65;

  /* Spacing scale */
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.5rem;
  --space-6:  2rem;
  --space-7:  3rem;
  --space-8:  4rem;
  --space-9:  6rem;
  --space-10: 8rem;

  /* Layout */
  --container:      1200px;
  --container-wide: 1360px;
  --container-narrow: 800px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 76px;

  /* UI */
  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(0, 31, 91, 0.06), 0 1px 3px rgba(0, 31, 91, 0.08);
  --shadow:    0 6px 24px rgba(0, 31, 91, 0.08), 0 2px 6px rgba(0, 31, 91, 0.06);
  --shadow-lg: 0 18px 50px rgba(0, 31, 91, 0.14);
  --ring: 0 0 0 3px rgba(0, 156, 166, 0.34);

  --transition: 180ms ease;
  --transition-slow: 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* 2. RESET & BASE =========================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
svg { fill: currentColor; }

ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

a { color: var(--tech-blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--tech-blue-600); }

button { font-family: inherit; cursor: pointer; }

/* 3. TYPOGRAPHY ============================================================= */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: var(--lh-snug);
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-tight); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tech-blue);
  margin: 0 0 var(--space-4);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--tech-blue), var(--strata-gold));
  border-radius: 2px;
}

.lead { font-size: var(--fs-lead); color: var(--text-soft); line-height: 1.55; }

.text-center { text-align: center; }
.measure { max-width: 62ch; }
.measure-narrow { max-width: 46ch; }

/* 4. LAYOUT HELPERS ========================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(3.5rem, 6vw, 6.5rem); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 4vw, 4rem); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--navy); color: var(--text-invert); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark .lead { color: rgba(232, 237, 245, 0.82); }
.section--dark .eyebrow { color: #66D8D4; }

.section__head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }

.grid { display: grid; gap: var(--space-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
/* Text + media pair: two columns on desktop, single column on tablet/mobile */
.grid--split { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

.stack > * + * { margin-top: var(--space-4); }
.divider { height: 1px; background: var(--border); border: 0; margin-block: var(--space-6); }

/* 5. BUTTONS ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.85em 1.6em;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition),
              color var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--tech-blue);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 156, 166, 0.28);
}
.btn--primary:hover { background: var(--tech-blue-600); color: #fff; box-shadow: 0 10px 24px rgba(0, 156, 166, 0.34); }

.btn--accent {
  background: var(--energy-orange);
  color: var(--navy);
  box-shadow: 0 6px 16px rgba(205, 230, 0, 0.30);
}
.btn--accent:hover { background: #B9D600; color: var(--navy); }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--grey-300);
}
.btn--ghost:hover { border-color: var(--tech-blue); color: var(--tech-blue); }

.btn--on-dark { color: #fff; border-color: rgba(255,255,255,0.4); background: transparent; }
.btn--on-dark:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: #fff; }

.btn--block { display: flex; width: 100%; }
.btn--lg { padding: 1.05em 2em; font-size: 1rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.btn-row--center { justify-content: center; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 600;
  font-size: var(--fs-small);
}
.text-link svg { width: 1em; height: 1em; transition: transform var(--transition); }
.text-link:hover svg { transform: translateX(3px); }

/* 6. HEADER & NAV =========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--grey-100);
  transition: box-shadow var(--transition), background var(--transition);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 0.7em; color: var(--navy); }
.brand:hover { color: var(--navy); }
.brand--image { flex: none; max-width: min(230px, 46vw); }
.brand__logo,
.custom-logo { display: block; width: auto; height: 42px; max-width: 100%; object-fit: contain; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__mark svg { width: 100%; height: 100%; display: block; }
.brand__name { font-size: 1.3rem; font-weight: 800; letter-spacing: 0.02em; line-height: 1; }
.brand__name span { color: var(--tech-blue); }
.brand__tag { display: block; font-size: 0.625rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--mid-grey); font-weight: 600; margin-top: 3px; }

.primary-nav { display: flex; align-items: center; gap: var(--space-5); }
.primary-nav ul { display: flex; align-items: center; gap: clamp(0.75rem, 1.6vw, 1.6rem); }
.primary-nav a {
  position: relative;
  display: inline-block;
  padding: 0.4em 0;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--tech-blue);
  border-radius: 2px;
  transition: width var(--transition);
}
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--tech-blue); }
.primary-nav a:hover::after, .primary-nav .current-menu-item > a::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: var(--space-4); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  margin-inline: auto;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 7. HERO =================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--text-invert);
  min-height: clamp(660px, calc(100vh - var(--header-h)), 880px);
  padding-block: clamp(4rem, 8vw, 7rem);
  display: flex;
  align-items: center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,31,91,0.92) 0%, rgba(0,31,91,0.76) 38%, rgba(0,31,91,0.22) 68%, rgba(7,23,34,0.04) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.18));
}
.hero__banner {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__grid {
  display: block;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero__content {
  max-width: 650px;
  text-shadow: 0 2px 18px rgba(0,0,0,0.26);
}
.hero h1 { color: #fff; margin-bottom: var(--space-5); }
.hero h1 .accent { color: #66D8D4; }
.hero__sub { font-size: var(--fs-lead); color: rgba(232,237,245,0.86); margin-bottom: var(--space-6); max-width: 56ch; }
.hero .eyebrow { color: #9BE36A; }
.hero .reveal { opacity: 1; transform: none; }

.hero__stats { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 4vw, 3rem); margin-top: var(--space-7); }
.hero__stat { }
.hero__stat dt { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(232,237,245,0.62); margin-bottom: 4px; }
.hero__stat dd { margin: 0; font-size: 1.05rem; font-weight: 600; color: #fff; }

/* decorative background layer (shared) */
.bg-deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.5; }
.bg-deco svg { width: 100%; height: 100%; }

/* 8. CARDS & COMPONENTS ===================================================== */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: clamp(1.4rem, 2.5vw, 1.9rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition);
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--grey-300); }
.card__icon {
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--tech-blue-100);
  color: var(--tech-blue);
}
.card__icon svg { width: 26px; height: 26px; }
.card__title { font-size: var(--fs-h4); margin: 0; }
.card__text { color: var(--text-soft); font-size: var(--fs-small); line-height: 1.6; margin: 0; }
.card__link { margin-top: auto; }
.card--num { counter-increment: cardnum; }
.card__num {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em;
  color: var(--strata-gold);
}

/* solution / detail block (with top accent) */
.card--feature { padding-top: clamp(1.6rem, 3vw, 2.1rem); }
.card--feature::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 100%; height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--tech-blue), var(--strata-gold));
  opacity: 0; transition: opacity var(--transition);
}
.card--feature:hover::before { opacity: 1; }

/* small "value" list with check marks */
.value-list { display: grid; gap: var(--space-3); }
.value-list li { display: flex; gap: 0.7em; align-items: flex-start; color: var(--text-soft); }
.value-list .tick {
  flex: none; width: 22px; height: 22px; margin-top: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--tech-blue-100); color: var(--tech-blue);
}
.value-list .tick svg { width: 13px; height: 13px; }

/* numbered workflow steps */
.steps { counter-reset: step; display: grid; gap: var(--space-5); }
.step { position: relative; padding-left: 4.2rem; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -4px;
  font-size: 1.6rem; font-weight: 800;
  color: var(--strata-gold);
  font-variant-numeric: tabular-nums;
}
.step h4 { margin-bottom: 0.3em; }
.step p { color: var(--text-soft); font-size: var(--fs-small); margin: 0; }

/* stat strip */
.statbar { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.statbar__item { text-align: center; }
.statbar__num { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); font-weight: 800; color: #fff; line-height: 1; }
.statbar__label { font-size: var(--fs-small); color: rgba(232,237,245,0.72); margin-top: 0.4em; }

/* pill tags */
.pill { display: inline-block; padding: 0.35em 0.85em; border-radius: 999px; font-size: 0.78rem; font-weight: 600; background: var(--tech-blue-100); color: var(--tech-blue-600); }

/* notice / exhibition banner */
.notice {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5);
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.5rem, 4vw, 2.6rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-600) 100%);
  color: #fff; position: relative; overflow: hidden;
}
.notice__icon { flex: none; width: 54px; height: 54px; color: var(--strata-gold); }
.notice__body { flex: 1 1 320px; }
.notice__body h3 { color: #fff; margin-bottom: 0.3em; }
.notice__body p { color: rgba(232,237,245,0.84); margin: 0; font-size: var(--fs-small); }
.notice .pill { background: rgba(205,230,0,0.16); color: var(--energy-orange); }

/* page hero (interior pages) */
.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 460px at 85% -20%, rgba(0,156,166,0.26), transparent 60%),
    radial-gradient(520px 320px at 92% 28%, rgba(205,230,0,0.12), transparent 62%),
    linear-gradient(160deg, var(--navy) 0%, var(--graphite) 100%);
  color: var(--text-invert);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.page-hero__inner { position: relative; z-index: 2; max-width: 760px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(232,237,245,0.85); font-size: var(--fs-lead); margin: 0; }
.page-hero .eyebrow { color: #9BE36A; }

/* breadcrumb */
.crumbs { font-size: var(--fs-small); color: rgba(232,237,245,0.7); margin-bottom: var(--space-4); }
.crumbs a { color: rgba(232,237,245,0.9); }
.crumbs span { opacity: 0.6; margin-inline: 0.4em; }

/* 9. CTA BAND =============================================================== */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 360px at 12% 120%, rgba(205,230,0,0.18), transparent 60%),
    radial-gradient(760px 360px at 92% -20%, rgba(0,156,166,0.20), transparent 60%),
    linear-gradient(120deg, var(--navy) 0%, var(--graphite) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2.4rem, 5vw, 4rem);
  text-align: center;
}
.cta-band__inner { position: relative; z-index: 2; max-width: 640px; margin-inline: auto; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(232,237,245,0.86); margin-bottom: var(--space-6); }

/* 10. FORMS & CONTACT ======================================================= */
.form-field { display: grid; gap: 0.45em; margin-bottom: var(--space-4); }
.form-field label { font-size: var(--fs-small); font-weight: 600; color: var(--navy); }
.form-field .req { color: var(--energy-orange); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.8em 0.95em;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--tech-blue);
  box-shadow: var(--ring);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--space-5); }
.form-grid .full { grid-column: 1 / -1; }

/* honeypot — visually & aurally hidden, kept in flow off-screen */
.hp-field { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: 0.8rem; color: var(--mid-grey); margin-top: var(--space-3); }

.form-alert { padding: 0.9em 1.1em; border-radius: var(--radius-sm); margin-bottom: var(--space-5); font-size: var(--fs-small); }
.form-alert--ok { background: #E9F7EF; color: #1C7C46; border: 1px solid #BBE7CC; }
.form-alert--err { background: #FCEDEC; color: #B23B33; border: 1px solid #F3C9C5; }

/* contact layout */
.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.5rem, 3vw, 2.4rem);
}
.contact-direct { display: grid; gap: var(--space-4); }
.contact-line { display: flex; gap: var(--space-4); align-items: flex-start; }
.contact-line__icon { flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); background: var(--tech-blue-100); color: var(--tech-blue); }
.contact-line__icon svg { width: 20px; height: 20px; }
.contact-line__label { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mid-grey); font-weight: 700; }
.contact-line__value { font-size: 1rem; font-weight: 600; color: var(--navy); word-break: break-word; }
.contact-line__value a { color: var(--navy); }
.contact-line__value a:hover { color: var(--tech-blue); }

/* exhibition module */
.exhibit {
  border: 1.5px dashed var(--grey-300);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--bg-alt);
}
.exhibit .pill { margin-bottom: var(--space-3); }
.exhibit dl { display: grid; grid-template-columns: auto 1fr; gap: 0.5em var(--space-4); margin: var(--space-4) 0 0; }
.exhibit dt { font-weight: 700; color: var(--navy); font-size: var(--fs-small); }
.exhibit dd { margin: 0; color: var(--text-soft); font-size: var(--fs-small); }

/* 11. RESOURCES / POSTS ===================================================== */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--space-6); }
.post-card { display: flex; flex-direction: column; height: 100%; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--transition-slow), box-shadow var(--transition-slow); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card__media { aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy), var(--tech-blue-600)); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__media .bg-deco { opacity: 0.6; }
.post-card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.post-card__meta { font-size: 0.78rem; color: var(--mid-grey); display: flex; gap: 0.6em; align-items: center; flex-wrap: wrap; }
.post-card__title { font-size: var(--fs-h4); margin: 0; }
.post-card__title a { color: var(--navy); }
.post-card__title a:hover { color: var(--tech-blue); }
.post-card__excerpt { color: var(--text-soft); font-size: var(--fs-small); margin: 0; }
.post-card__link { margin-top: auto; }

.cat-filter { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-6); }

/* single post */
.article { max-width: var(--container-narrow); margin-inline: auto; }
.article__header { margin-bottom: var(--space-6); }
.article__meta { font-size: var(--fs-small); color: var(--mid-grey); margin-bottom: var(--space-3); }
.article__content { font-size: 1.0625rem; line-height: 1.75; }
.article__content > * + * { margin-top: 1.1em; }
.article__content h2 { margin-top: 1.6em; }
.article__content h3 { margin-top: 1.4em; }
.article__content img { border-radius: var(--radius); }
.article__content blockquote { margin: 1.4em 0; padding: 0.6em 0 0.6em 1.4em; border-left: 3px solid var(--tech-blue); color: var(--text-soft); font-style: italic; }

.pagination { display: flex; gap: var(--space-3); justify-content: center; margin-top: var(--space-7); flex-wrap: wrap; }
.pagination .page-numbers { display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center; padding-inline: 0.6em; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--navy); font-weight: 600; }
.pagination .page-numbers.current { background: var(--tech-blue); color: #fff; border-color: var(--tech-blue); }
.pagination a.page-numbers:hover { border-color: var(--tech-blue); color: var(--tech-blue); }

/* 12. FOOTER ================================================================ */
.site-footer { background: linear-gradient(160deg, var(--graphite) 0%, #001A3D 100%); color: rgba(232,237,245,0.72); position: relative; overflow: hidden; }
.site-footer__top { padding-block: clamp(3rem, 5vw, 4.5rem); position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(1.5rem, 4vw, 3rem); }
.footer-brand .brand--image {
  max-width: min(220px, 68vw);
  background: #fff;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 28px rgba(0,0,0,0.20);
}
.footer-brand .brand__logo { height: 38px; }
.footer-brand .brand__name { color: #fff; }
.footer-brand p { font-size: var(--fs-small); max-width: 34ch; margin-top: var(--space-4); }
.footer-col h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--space-4); }
.footer-col ul { display: grid; gap: 0.6em; }
.footer-col a { color: rgba(232,237,245,0.72); font-size: var(--fs-small); }
.footer-col a:hover { color: #fff; }
.footer-contact li { font-size: var(--fs-small); margin-bottom: 0.5em; }
.footer-contact strong { color: #fff; display: block; font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 700; margin-bottom: 2px; }

.social { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.social a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.16); color: rgba(232,237,245,0.8); }
.social a:hover { border-color: var(--tech-blue); color: #fff; background: rgba(0,156,166,0.20); }
.social svg { width: 18px; height: 18px; }

.site-footer__bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-block: var(--space-5); position: relative; z-index: 2; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); align-items: baseline; justify-content: space-between; font-size: 0.82rem; }
.footer-bottom-inner a { color: rgba(232,237,245,0.7); }
.footer-bottom-inner a:hover { color: #fff; }
/* "Powered by Marsidea" — keep phrase + logo together on one line; logo inline & small (overrides the global `img{display:block}` reset) */
.powered-by { display: inline-flex; align-items: center; gap: 0.35em; white-space: nowrap; vertical-align: middle; }
.powered-by__logo { display: block; height: 1.1em; width: auto; }

/* 13. DECORATIVE BACKGROUNDS ================================================ */
.deco-grid-dots {
  background-image: radial-gradient(rgba(0,156,166,0.18) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
}
.section--contours { position: relative; }
.section--contours::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle at 90% 10%, rgba(0,156,166,0.07), transparent 40%);
}
.section > .container { position: relative; z-index: 2; }

/* 14. ANIMATIONS ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22,1,0.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }

@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-10px); } }
.float-slow { animation: drift 6s ease-in-out infinite alternate; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* 15. ACCESSIBILITY ========================================================= */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  z-index: 200; padding: 0.7em 1.2em;
  background: var(--tech-blue); color: #fff; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600; transition: top var(--transition);
}
.skip-link:focus { top: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--tech-blue); outline-offset: 2px; border-radius: 3px; }

/* WordPress core / editor alignment helpers */
.alignwide { width: min(100%, var(--container-wide)); }
.alignfull { width: 100%; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, .gallery-caption { font-size: var(--fs-small); color: var(--mid-grey); }
.sticky, .bypostauthor { display: block; }

/* admin bar offset */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

/* 16. RESPONSIVE ============================================================ */
@media (max-width: 1024px) {
  :root { --header-h: 68px; }

  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; } /* replaced by the in-menu Contact button on mobile */

  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--grey-100);
    box-shadow: var(--shadow-lg);
    padding: var(--space-4) var(--gutter) var(--space-6);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  }
  body.admin-bar .primary-nav { inset: calc(var(--header-h) + 46px) 0 auto 0; }
  .primary-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .primary-nav li { border-bottom: 1px solid var(--grey-100); }
  .primary-nav a { display: block; padding: 0.95em 0; font-size: 1.05rem; }
  .primary-nav a::after { display: none; }
  .primary-nav .menu-cta { margin-top: var(--space-4); border-bottom: 0; }
  .primary-nav .menu-cta .btn { width: 100%; }

  .hero__grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--split, .grid--2 { grid-template-columns: 1fr; gap: var(--space-6); }
  .statbar { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  .hero__stats { gap: var(--space-5); }
  .notice { flex-direction: column; align-items: flex-start; text-align: left; }
  .hero {
    min-height: calc(100vh - var(--header-h));
    padding-block: clamp(3.4rem, 10vw, 5rem);
  }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(0,31,91,0.90) 0%, rgba(0,31,91,0.76) 44%, rgba(0,31,91,0.90) 100%),
      linear-gradient(90deg, rgba(0,31,91,0.82), rgba(0,31,91,0.20));
  }
  .hero__banner img {
    object-position: 67% center;
  }
}

/* Desktop: keep the header Contact button out of the mobile menu position */
@media (min-width: 1025px) {
  .primary-nav .menu-cta { display: none; }
}

/* ── FracMAX additions ───────────────────────────────────────────────────── */

/* Product figure (Solutions): real exported image, or SVG fallback */
.product-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, var(--navy), var(--graphite));
  position: relative;
  display: flex;
  min-height: 300px;
  box-shadow: var(--shadow-sm);
}
.product-figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-figure--svg { aspect-ratio: 4 / 3; }
.product-figure--svg .bg-deco { position: absolute; inset: 0; opacity: .9; }

/* Prominent email on the Contact page */
.email-hero {
  display: inline-block;
  margin-top: var(--space-3);
  font-size: clamp(1.15rem, .9rem + 1vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--tech-blue);
  word-break: break-word;
}
.email-hero:hover { color: var(--tech-blue-600); text-decoration: underline; }
