/* ================================================================
   FENTON ENGINEERING SERVICES LTD — styles.css
   Dark navy + dark brown/bronze | Barlow Condensed + Inter
================================================================ */

/* ----------------------------------------------------------------
   DESIGN TOKENS
---------------------------------------------------------------- */
:root {
  /* Brand palette */
  --navy:         #1C2B4A;
  --navy-deep:    #121e35;
  --navy-mid:     #243459;
  --navy-light:   #2e4070;
  --bronze:       #4A1F0E;
  --bronze-mid:   #6B2D14;
  --bronze-light: #8B4513;
  --bronze-pale:  #a05a30;
  --steel:        #B8C5D6;
  --steel-light:  #D6DFE8;
  --off-white:    #F4F5F7;
  --white:        #FFFFFF;
  --grey-border:  #E2E4E8;
  --grey-mid:     #C8CDD6;
  --grey-dark:    #4A5568;
  --grey-text:    #6B7280;
  --error-red:    #C0392B;

  /* Semantic aliases */
  --border:       var(--grey-border);
  --border-dark:  rgba(255,255,255,0.1);

  /* Spacing */
  --sp-2xs: 0.25rem;
  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  1.5rem;
  --sp-lg:  2rem;
  --sp-xl:  3.5rem;
  --sp-2xl: 6rem;

  /* Type */
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.3rem;
  --fs-xl:   1.625rem;
  --fs-2xl:  2.125rem;
  --fs-3xl:  2.75rem;
  --fs-hero: clamp(2.4rem, 5.5vw, 4.5rem);

  /* Layout */
  --container:     1200px;
  --nav-height:    101px;   /* 12px top + 75px logo + 12px bottom + 2px border */
  --nav-height-sm: 82px;    /* 8px top  + 60px logo + 8px  bottom + 2px border (mobile) */
  --radius:        3px;

  /* Transitions */
  --trans:      0.2s ease;
  --trans-slow: 0.35s ease;
}

/* ----------------------------------------------------------------
   RESET
---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
p    { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ----------------------------------------------------------------
   TYPOGRAPHY
---------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

/* ----------------------------------------------------------------
   LAYOUT
---------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

.section-pad { padding: var(--sp-2xl) 0; }

/* ----------------------------------------------------------------
   SKIP LINK (accessibility)
---------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 1rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 9999;
  font-size: var(--fs-sm);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: top var(--trans);
}
.skip-link:focus { top: 0; }

/* ----------------------------------------------------------------
   BUTTONS
---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: background var(--trans), color var(--trans), border-color var(--trans), box-shadow var(--trans);
  white-space: nowrap;
  cursor: pointer;
  min-height: 48px; /* touch target */
}
.btn:hover  { box-shadow: 0 3px 12px rgba(28,43,74,0.18); }
.btn:active { box-shadow: none; }

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover { background: var(--navy-mid); border-color: var(--navy-mid); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: var(--white); box-shadow: none; }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255,255,255,0.4);
}
.btn-outline-light:hover { text-decoration-color: var(--white); box-shadow: none; }

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-dark:hover { background: var(--off-white); }

.btn-bronze {
  background: var(--bronze-mid);
  color: var(--white);
  border-color: var(--bronze-mid);
}
.btn-bronze:hover { background: var(--bronze-light); border-color: var(--bronze-light); }

.btn-spares-cta {
  background: var(--white);
  color: var(--bronze);
  border-color: var(--white);
  width: 100%;
}
.btn-spares-cta:hover { background: var(--off-white); border-color: var(--off-white); color: var(--bronze); box-shadow: none; }

.btn-full { width: 100%; }

/* ----------------------------------------------------------------
   SECTION HEADERS
---------------------------------------------------------------- */
.section-header        { margin-bottom: var(--sp-xl); }
.section-header--wide  { max-width: 860px; margin-bottom: var(--sp-xl); }

.section-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bronze-mid);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: currentColor;
  flex-shrink: 0;
}
.section-eyebrow--light { color: var(--bronze-pale); }

.section-title          { color: var(--navy); margin-bottom: var(--sp-md); }
.section-title--light   { color: var(--white); }

.section-intro          { color: var(--grey-dark); font-size: var(--fs-md); line-height: 1.75; max-width: 680px; }
.section-intro--light   { color: var(--steel-light); max-width: none; }
.section-intro + .section-intro { margin-top: 0.75rem; }

.section-cta-row {
  margin-top: var(--sp-xl);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  align-items: center;
}

/* ----------------------------------------------------------------
   NAVIGATION
---------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 2px solid var(--border);
  transition: box-shadow var(--trans);
  padding-top: 12px;
  padding-bottom: 12px;
}
.site-header.scrolled {
  box-shadow: 0 2px 24px rgba(28,43,74,0.1);
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
  min-height: 75px;   /* matches the cropped logo height */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
}

/* ----------------------------------------------------------------
   LOGO — HEADER / NAV
   The full logo PNG (1024×1024) has large whitespace top/bottom.
   We use background-image on the link to crop precisely to the
   logo content area. The <img> tag stays in HTML for alt text/SEO
   but is visually hidden (screen readers still see it).

   At background-size: 240px 240px:
     visible content = 226×75px (logo mark + text, no whitespace)
     background-position: -2px -79px  (crops top/left whitespace)
---------------------------------------------------------------- */
.nav-logo {
  display: block;
  flex-shrink: 0;
  text-decoration: none;
  width: 226px;
  height: 75px;
  background-image: url('logo-full.png');
  background-size: 240px 240px;
  background-position: -2px -79px;
  background-repeat: no-repeat;
}

/* The img tag is kept for SEO/accessibility but hidden visually */
.logo-img {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  transition: color var(--trans);
  position: relative;
  white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0; right: 0;
  height: 2px;
  background: var(--bronze-mid);
  transform: scaleX(0);
  transition: transform var(--trans);
  transform-origin: left;
}
.nav-link:hover          { color: var(--bronze-mid); }
.nav-link:hover::after   { transform: scaleX(1); }
.nav-link.active         { color: var(--bronze-mid); }
.nav-link.active::after  { transform: scaleX(1); }

.nav-link.nav-cta {
  background: var(--navy);
  color: var(--white);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
}
.nav-link.nav-cta::after  { display: none; }
.nav-link.nav-cta:hover   { background: var(--navy-mid); color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: transform var(--trans), opacity var(--trans);
  border-radius: 1px;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------------------------------
   HERO
---------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  background: var(--navy-deep);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 141px 0 4rem;   /* 101px header + 40px breathing room */
}

/* Technical grid background */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(184,197,214,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,197,214,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(184,197,214,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,197,214,0.022) 1px, transparent 1px);
  background-size: 12px 12px;
}
.hero-grid-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(74,31,14,0.2) 0%, transparent 45%, rgba(18,30,53,0.55) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

.hero-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bronze-pale);
  margin-bottom: var(--sp-md);
}

.hero-headline {
  color: var(--white);
  font-size: var(--fs-hero);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin-bottom: var(--sp-md);
}

.hero-sub {
  color: var(--steel-light);
  font-size: var(--fs-md);
  line-height: 1.75;
  max-width: 680px;
  margin-bottom: var(--sp-xl);
}

/* Dual service panels inside hero */
.hero-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(255,255,255,0.1);
  margin-bottom: var(--sp-xl);
}
.hero-dual-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
  padding: var(--sp-md) var(--sp-lg);
  border-right: 1px solid rgba(255,255,255,0.1);
}
.hero-dual-item:last-child { border-right: none; }
.hero-dual-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--bronze-pale);
  flex-shrink: 0;
  margin-top: 4px;
}
.hero-dual-item strong {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.03em;
  margin-bottom: 0.3rem;
}
.hero-dual-item span {
  display: block;
  font-size: var(--fs-sm);
  color: var(--steel);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  align-items: center;
}

.hero-rule {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: var(--sp-xl) auto 0;
  padding: var(--sp-md) var(--sp-lg) 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.rule-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(184,197,214,0.35);
}

/* ----------------------------------------------------------------
   WHY US
---------------------------------------------------------------- */
.why-us { background: var(--white); border-bottom: 1px solid var(--border); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1.5px solid var(--border);
}

.why-card {
  background: var(--white);
  padding: var(--sp-lg) var(--sp-lg) var(--sp-xl);
  position: relative;
  transition: background var(--trans);
}
.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--border);
  transition: background var(--trans);
}
.why-card:hover { background: var(--off-white); }
.why-card:hover::before { background: var(--bronze-mid); }

.why-icon {
  width: 44px;
  height: 44px;
  color: var(--bronze-mid);
  margin-bottom: var(--sp-md);
}
.why-icon svg { width: 100%; height: 100%; }

.why-title {
  font-size: var(--fs-lg);
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.why-desc {
  font-size: var(--fs-sm);
  color: var(--grey-dark);
  line-height: 1.7;
  margin: 0;
}

/* ----------------------------------------------------------------
   SERVICES
---------------------------------------------------------------- */
.services { background: var(--off-white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1.5px solid var(--border);
}

.service-card {
  background: var(--white);
  padding: var(--sp-xl) var(--sp-lg);
  position: relative;
  transition: background var(--trans);
}
.service-card:hover { background: var(--off-white); }
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--border);
  transition: background var(--trans);
}
.service-card:hover::before { background: var(--bronze-mid); }

.card-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--bronze-mid);
  margin-bottom: 0.75rem;
  opacity: 0.65;
}
.card-title {
  font-size: var(--fs-lg);
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.card-desc {
  font-size: var(--fs-sm);
  color: var(--grey-dark);
  line-height: 1.7;
  margin: 0;
}

/* ----------------------------------------------------------------
   SPARES
---------------------------------------------------------------- */
.spares {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.spares-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(184,197,214,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,197,214,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.spares-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--sp-xl);
  align-items: start;
}

.spares-categories {
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
}
.spares-cat {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-md);
  padding: var(--sp-md) var(--sp-lg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background var(--trans);
}
.spares-cat:last-child { border-bottom: none; }
.spares-cat:hover { background: rgba(255,255,255,0.04); }

.spares-cat-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: var(--bronze-pale);
  margin-top: 2px;
}
.spares-cat-icon svg { width: 100%; height: 100%; }
.spares-cat h4 {
  font-size: var(--fs-base);
  color: var(--white);
  margin-bottom: 0.3rem;
}
.spares-cat p {
  font-size: var(--fs-sm);
  color: var(--steel);
  margin: 0;
  line-height: 1.6;
}

/* Spares right panel */
.spares-cta-panel {
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.spares-cta-inner {
  background: var(--bronze);
  padding: var(--sp-xl) var(--sp-lg);
  border: 1px solid var(--bronze-mid);
}
.spares-cta-mark {
  width: 48px;
  height: 48px;
  color: rgba(255,255,255,0.28);
  margin-bottom: var(--sp-md);
}
.spares-cta-mark svg { width: 100%; height: 100%; }
.spares-cta-inner h3 {
  font-size: var(--fs-2xl);
  color: var(--white);
  margin-bottom: var(--sp-sm);
}
.spares-cta-inner p {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  margin-bottom: var(--sp-sm);
}

/* Emergency callout */
.emergency-callout {
  background: var(--navy-deep);
  border: 1px solid rgba(184,197,214,0.12);
  border-left: 3px solid var(--bronze-pale);
  padding: var(--sp-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
}
.emergency-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--bronze-pale);
  margin-top: 2px;
}
.emergency-icon svg { width: 100%; height: 100%; }
.emergency-callout h4 {
  font-size: var(--fs-lg);
  color: var(--white);
  margin-bottom: 0.5rem;
}
.emergency-callout p {
  font-size: var(--fs-sm);
  color: var(--steel);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}
.emergency-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bronze-pale);
  transition: color var(--trans);
}
.emergency-link:hover { color: var(--white); }

/* ----------------------------------------------------------------
   MANUFACTURERS
---------------------------------------------------------------- */
.manufacturers { background: var(--off-white); }

.mfr-disclaimer {
  font-size: var(--fs-sm);
  color: var(--grey-text);
  font-style: italic;
  margin-bottom: var(--sp-xl);
  padding: var(--sp-sm) var(--sp-md);
  border-left: 3px solid var(--border);
  line-height: 1.6;
}

.mfr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1.5px solid var(--border);
}
.mfr-card {
  background: var(--white);
  padding: var(--sp-lg);
  position: relative;
  transition: background var(--trans);
}
.mfr-card:hover { background: var(--off-white); }
.mfr-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--border);
  transition: background var(--trans);
}
.mfr-card:hover::before { background: var(--bronze-mid); }

.mfr-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}
.mfr-card p {
  font-size: var(--fs-sm);
  color: var(--grey-dark);
  line-height: 1.65;
  margin: 0;
}

/* ----------------------------------------------------------------
   EXPERIENCE
---------------------------------------------------------------- */
.experience { background: var(--white); }

.experience-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--sp-2xl);
  align-items: start;
}
.exp-lead {
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: var(--sp-md);
}
.experience-text p {
  font-size: var(--fs-base);
  color: var(--grey-dark);
  line-height: 1.75;
  margin-bottom: var(--sp-md);
}

.experience-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5px;
  background: var(--border);
  border: 1.5px solid var(--border);
  align-self: start;
}
.exp-panel {
  background: var(--off-white);
  padding: var(--sp-lg);
}
.exp-panel h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-sm);
  padding-bottom: var(--sp-xs);
  border-bottom: 2px solid var(--bronze-mid);
}
.exp-panel ul { display: flex; flex-direction: column; gap: 0.45rem; }
.exp-panel li {
  font-size: var(--fs-sm);
  color: var(--grey-dark);
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}
.exp-panel li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 1.5px;
  background: var(--bronze-mid);
}

/* ----------------------------------------------------------------
   ABOUT
---------------------------------------------------------------- */
.about {
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}
.about-bg {
  position: absolute;
  top: 0; right: 0;
  width: 38%;
  height: 100%;
  background: var(--navy-deep);
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
  opacity: 0.035;
  pointer-events: none;
}

.about-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--sp-2xl);
  align-items: start;
}
.about-mark {
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
}

/* ----------------------------------------------------------------
   LOGO — ABOUT SECTION MARK
---------------------------------------------------------------- */
.about-mark-img {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent;
}

.about-content .section-eyebrow { margin-bottom: 0.6rem; }
.about-content p {
  font-size: var(--fs-base);
  color: var(--grey-dark);
  line-height: 1.75;
  margin-bottom: var(--sp-md);
}
.about-content .exp-lead { color: var(--navy); }

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1.5px solid var(--border);
  margin-top: var(--sp-xl);
}
.value-item {
  background: var(--white);
  padding: var(--sp-lg);
}
.value-label {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bronze-mid);
  margin-bottom: 0.5rem;
}
.value-item p {
  font-size: var(--fs-sm);
  color: var(--grey-dark);
  margin: 0;
  line-height: 1.65;
}

/* ----------------------------------------------------------------
   CONTACT — email-led layout, no form
---------------------------------------------------------------- */
.contact {
  background: var(--white);
  border-top: 3px solid var(--navy);
}

.contact-header {
  max-width: 640px;
  margin-bottom: var(--sp-xl);
}
.contact-header .section-title { margin-bottom: var(--sp-md); }
.contact-intro {
  font-size: var(--fs-md);
  color: var(--grey-dark);
  line-height: 1.75;
}

/* Two large CTA cards side by side */
.contact-primary-ctas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md);
  margin-bottom: var(--sp-xl);
}

.contact-cta-card {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  padding: var(--sp-lg) var(--sp-xl);
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform var(--trans), box-shadow var(--trans), background var(--trans);
}
.contact-cta-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(28,43,74,0.15);
}
.contact-cta-card:active { transform: translateY(0); box-shadow: none; }

.contact-cta-card--navy {
  background: var(--navy);
  color: var(--white);
}
.contact-cta-card--navy:hover { background: var(--navy-mid); }

.contact-cta-card--bronze {
  background: var(--bronze-mid);
  color: var(--white);
}
.contact-cta-card--bronze:hover { background: var(--bronze-light); }

.cta-card-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  opacity: 0.75;
}
.cta-card-icon svg { width: 100%; height: 100%; }

.cta-card-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.cta-card-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
}
.cta-card-action {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

/* Contact detail blocks — 4-column horizontal row */
.contact-details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1.5px solid var(--border);
}

.contact-detail-block {
  background: var(--off-white);
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-detail-link {
  font-size: var(--fs-base);
  color: var(--navy);
  font-weight: 500;
  transition: color var(--trans);
  word-break: break-word;
}
.contact-detail-link:hover { color: var(--bronze-mid); }

.detail-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grey-text);
}
.detail-value {
  font-size: var(--fs-base);
  color: var(--navy);
  font-weight: 500;
  transition: color var(--trans);
}
.detail-value:hover { color: var(--bronze-mid); }
.detail-static {
  font-size: var(--fs-sm);
  color: var(--navy);
  font-weight: 400;
  line-height: 1.7;
}

/* ----------------------------------------------------------------
   FOOTER
---------------------------------------------------------------- */
.site-footer {
  background: var(--navy-deep);
  color: var(--steel);
  border-top: 3px solid var(--bronze);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.1fr;
  gap: var(--sp-xl);
  padding: var(--sp-xl) 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* ----------------------------------------------------------------
   LOGO — FOOTER
   Full-colour logo (logo-full.png) on a white panel.
   The panel floats on the dark navy footer — logo is always readable.
---------------------------------------------------------------- */
.footer-logo-panel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 18px 22px;
  border-radius: var(--radius);
  max-width: 360px;
  margin-bottom: var(--sp-sm);
}

.footer-logo {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.footer-tagline {
  font-size: var(--fs-sm);
  color: var(--steel);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}
.footer-contact-brief {
  font-size: var(--fs-sm);
  color: var(--steel);
  margin: 0;
}
.footer-contact-brief a {
  color: var(--steel);
  transition: color var(--trans);
}
.footer-contact-brief a:hover { color: var(--white); }

.footer-links nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  transition: color var(--trans);
}
.footer-links a:hover { color: var(--white); }

.footer-contact h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-light);
  margin-bottom: var(--sp-sm);
}
.footer-contact p { margin-bottom: 0.45rem; font-size: var(--fs-sm); }
.footer-contact a {
  color: var(--steel);
  transition: color var(--trans);
}
.footer-contact a:hover { color: var(--white); }
.footer-company-reg {
  font-size: var(--fs-xs);
  color: rgba(184,197,214,0.45);
  margin-top: var(--sp-sm);
  line-height: 1.7;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-md) 0;
  gap: var(--sp-md);
}
.footer-legal {
  font-size: var(--fs-xs);
  color: rgba(184,197,214,0.42);
  margin: 0;
}
.footer-credit {
  font-size: var(--fs-xs);
  color: rgba(184,197,214,0.28);
  margin: 0;
  white-space: nowrap;
}

/* Experience section inline CTA */
.exp-cta-btn {
  margin-top: var(--sp-md);
  display: inline-flex;
}

/* ----------------------------------------------------------------
   RESPONSIVE — Tablet  ≤ 1024px
---------------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav-links { gap: 1.25rem; }
  .nav-link  { font-size: 0.85rem; }
}

/* ----------------------------------------------------------------
   RESPONSIVE — Header and logo sizes  ≤ 768px
---------------------------------------------------------------- */
@media (max-width: 768px) {
  .site-header    { padding-top: 8px; padding-bottom: 8px; }
  .nav-container  { min-height: 59px; }
  /* Smaller logo crop for mobile */
  .nav-logo {
    width: 179px;
    height: 59px;
    background-size: 190px 190px;
    background-position: -2px -62px;
  }
  .about-mark-img { width: 160px; }
  .hero           { padding-top: 116px; }   /* 8+59+8+2=77px header + ~40px breathing */
  .footer-logo-panel { padding: 14px 16px; max-width: 300px; }
  .footer-logo    { width: 250px; }
}

/* ----------------------------------------------------------------
   RESPONSIVE — Narrow tablet  ≤ 880px
---------------------------------------------------------------- */
@media (max-width: 880px) {
  :root { --sp-2xl: 4.5rem; }

  h2 { font-size: var(--fs-2xl); }

  /* Nav collapses to hamburger */
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-xs) 0 var(--sp-sm);
    box-shadow: 0 8px 24px rgba(28,43,74,0.1);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--trans-slow), opacity var(--trans-slow);
    z-index: 999;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link {
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: block;
    font-size: 1rem;
  }
  .nav-link::after { display: none; }
  .nav-link.nav-cta {
    border-radius: 0;
    margin: 0;
    text-align: center;
    padding: 0.85rem 1.5rem;
  }

  /* Logo: slightly narrower on tablet to leave room for hamburger */
  .logo-img { width: 210px; }
  /* Hero */
  .hero-dual { grid-template-columns: 1fr; }
  .hero-dual-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .hero-dual-item:last-child { border-bottom: none; }

  /* Why us: 2×2 */
  .why-grid { grid-template-columns: repeat(2, 1fr); }

  /* Services: 2 col */
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  /* Spares: single col */
  .spares-layout { grid-template-columns: 1fr; }
  .spares-cta-panel { position: static; }

  /* Manufacturers: 2 col */
  .mfr-grid { grid-template-columns: repeat(2, 1fr); }

  /* Experience */
  .experience-layout { grid-template-columns: 1fr; gap: var(--sp-xl); }
  .experience-panels { grid-template-columns: repeat(2, 1fr); }

  /* About */
  .about-layout { grid-template-columns: 1fr; }
  .about-mark   { display: none; }
  .about-values { grid-template-columns: 1fr; }

  /* Contact — stack CTAs, collapse detail grid to 2 col */
  .contact-primary-ctas  { grid-template-columns: 1fr; }
  .contact-details-grid  { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand { grid-column: 1 / -1; }
}

/* ----------------------------------------------------------------
   RESPONSIVE — Mobile  ≤ 600px
---------------------------------------------------------------- */
@media (max-width: 600px) {
  :root {
    --sp-xl:  2.5rem;
    --sp-2xl: 3.5rem;
    --sp-lg:  1.5rem;
  }

  .container { padding: 0 1.25rem; }

  /* Nav — mobile heights and logo */
  .nav-container { min-height: 59px; height: auto; }
  .nav-links { top: var(--nav-height-sm); }
  /* Mobile logo crop via background-image */
  .nav-logo {
    width: 179px;
    height: 59px;
    background-size: 190px 190px;
    background-position: -2px -62px;
  }
  .logo-img { width: 1px; height: 1px; }   /* keep visually hidden */

  /* Hero — explicit top padding clears the fixed header */
  .hero { padding: 116px 0 3rem; }
  /* Hero headline: ensure it wraps without overflow on small screens */
  .hero-headline { font-size: clamp(2rem, 8vw, 3.5rem); word-break: break-word; }
  .hero-sub { font-size: var(--fs-base); }
  /* Hide dual panels and rule on mobile — not needed */
  .hero-dual { display: none; }
  .hero-rule  { display: none; }
  /* Stack hero buttons full width for easy tapping */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }

  /* About mark on mobile */
  .about-mark-img { width: 160px; }

  /* Footer logo panel on mobile */
  .footer-logo-panel { padding: 12px 14px; max-width: 260px; }
  .footer-logo { width: 210px; }

  /* Why us: single col */
  .why-grid { grid-template-columns: 1fr; }

  /* Services: single col */
  .services-grid { grid-template-columns: 1fr; }

  /* Section CTA row: stack */
  .section-cta-row { flex-direction: column; align-items: stretch; }
  .section-cta-row .btn { justify-content: center; }

  /* Manufacturers: single col */
  .mfr-grid { grid-template-columns: 1fr; }

  /* Experience panels: single col */
  .experience-panels { grid-template-columns: 1fr; }
  .exp-cta-btn { width: 100%; justify-content: center; }

  /* About values: single col */
  .about-values { grid-template-columns: 1fr; }

  /* Contact — full single col on mobile */
  .contact-primary-ctas { grid-template-columns: 1fr; }
  .contact-details-grid { grid-template-columns: 1fr; }
  .contact-cta-card     { padding: var(--sp-md) var(--sp-lg); }
  .cta-card-action      { font-size: var(--fs-lg); }

  /* Footer — single col stack */
  .footer-top    { grid-template-columns: 1fr; }
  .footer-brand  { grid-column: 1; }
  .footer-bottom { flex-direction: column; text-align: center; gap: var(--sp-xs); }
}

/* ----------------------------------------------------------------
   ACCESSIBILITY
---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

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

/* ----------------------------------------------------------------
   SCROLL REVEAL
---------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

