/*
Theme Name:  GRAD Consulting
Theme URI:   https://gradconsulting.com.au
Author:      Anthony Bruzzese
Author URI:  https://gradconsulting.com.au
Description: Custom WordPress theme for GRAD Consulting — Business Intelligence & Organisational Transformation.
Version:     2.6.5
License:     Private
Text Domain: grad-consulting
Tags:        consulting, business, one-page, custom-menu, featured-images, full-width-template
*/

/* ============================================================
   DESIGN TOKENS — calibrated from official logo
   ============================================================ */
:root {
  /* Brand navy: sampled directly from logo background */
  --navy:        #273f65;
  --navy-dark:   #1a2e4a;
  --navy-mid:    #2d4a73;
  --navy-light:  #3a5f8a;

  /* Brand gold: logo circle icon colour */
  --gold:        #c9a84c;
  --gold-light:  #e2c47a;
  --gold-pale:   #faf6ea;
  --gold-dark:   #a8882e;

  /* Neutrals */
  --cream:       #fdfaf5;
  --slate:       #4a5568;
  --slate-light: #718096;
  --border:      #ddd4c0;
  --white:       #ffffff;

  /* Typography */
  --serif: 'DM Serif Display', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--navy);
  background: var(--cream);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* WP alignment helpers */
.alignleft  { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }
.alignwide  { margin-left: -2rem; margin-right: -2rem; }
.alignfull  { margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); width: 100vw; }
.wp-caption-text { font-size: 0.8rem; color: var(--slate-light); text-align: center; margin-top: 0.5rem; }

/* Skip link */
.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 9999;
  background: var(--gold); color: var(--navy); padding: 0.5rem 1rem;
  border-radius: 4px; font-weight: 600; text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(27, 46, 74, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201,168,76,0.25);
  transition: box-shadow 0.3s;
}
.header-inner {
  width: 100%;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-sizing: border-box;
}

/* Logo image in nav */
.site-branding { flex-shrink: 0; }
.site-branding a { display: flex; align-items: center; text-decoration: none; }
.site-branding .nav-logo-img {
  height: 44px; width: auto; max-width: 220px;
  filter: brightness(1.0);
  aspect-ratio: 640/161;
}
/* Fallback text logo if no image */
.site-branding .nav-logo-text {
  font-family: var(--serif); font-size: 1.35rem; color: var(--white);
  letter-spacing: 0.02em;
}
.site-branding .nav-logo-text span { color: var(--gold); }

/* Primary nav */
#primary-nav { flex: 1; display: flex; justify-content: center; align-items: center; }

#primary-nav ul { display: flex; gap: 0; list-style: none; align-items: center; width: 100%; justify-content: space-evenly; margin: 0; padding: 0; }
#primary-nav ul li {
  flex: 1;
  text-align: center;
  white-space: nowrap;
}
#primary-nav ul li a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.80rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.25rem 0.4rem;
  position: relative;
  transition: color 0.2s;
  display: inline-block;
}
#primary-nav ul li a:hover { color: var(--gold-light); }
#primary-nav ul li.menu-cta a,
#primary-nav ul li.current-menu-item > a {
  background: var(--gold); color: var(--navy) !important;
  padding: 0.5rem 1.25rem; border-radius: 4px; font-weight: 600;
}
#primary-nav ul li.menu-cta a:hover { background: var(--gold-light); }

.nav-toggle {
  display: none !important; background: none; border: 1px solid rgba(255,255,255,0.3);
  color: white; padding: 0.4rem 0.75rem; border-radius: 4px;
  cursor: pointer; font-size: 1.2rem; line-height: 1;
}

/* ============================================================
   HERO — uses hero-bg.jpg as decorative panel + logo banner
   ============================================================ */
#hero {
  min-height: 100vh;
  background: var(--navy-dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  position: relative;
  padding-top: 70px;
}

/* Subtle grid pattern overlay */
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(201,168,76,0.05) 80px),
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(201,168,76,0.05) 80px);
  pointer-events: none;
  z-index: 1;           /* above image layer, below content */
}

.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 5rem 4rem 5rem 5rem; position: relative; z-index: 2;
}

/* Hero eyebrow */
.hero-eyebrow { display: inline-flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; opacity: 0; animation: grad-fadeUp 0.8s 0.2s forwards; }
.hero-eyebrow-line { width: 40px; height: 1px; background: var(--gold); }
.hero-eyebrow-text { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); }

.hero-h1 {
  font-family: var(--serif); font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.1; color: var(--white); margin-bottom: 1.5rem;
  opacity: 0; animation: grad-fadeUp 0.8s 0.35s forwards;
}
.hero-h1 em { font-style: italic; color: var(--gold-light); }

.hero-sub {
  font-size: 1.05rem; line-height: 1.75; color: rgba(255,255,255,0.65);
  max-width: 480px; margin-bottom: 2.5rem;
  opacity: 0; animation: grad-fadeUp 0.8s 0.5s forwards;
}

.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0; animation: grad-fadeUp 0.8s 0.65s forwards;
}

/* Hero right: AI image + overlay cards */
.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 3rem;
  z-index: 2;           /* above the image layer */
  opacity: 0;
  animation: grad-fadeIn 1.2s 0.7s forwards;
}

/* Full-bleed hero background image — covers entire #hero section */
.hero-image-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;           /* behind both hero-left and hero-right */
  overflow: hidden;
}

.hero-image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% center;     /* centres the running figure in viewport */
  opacity: 0.60;                    /* visible but text stays readable */
}

/* Gradient overlay — left half darker for text legibility,
   right half lighter so the image globe reads clearly */
.hero-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to right,
      rgba(26,46,74,0.92) 0%,     /* solid behind text */
      rgba(26,46,74,0.70) 30%,    /* soft transition */
      rgba(26,46,74,0.25) 55%,    /* image clearly visible in centre */
      rgba(26,46,74,0.15) 75%,    /* almost no overlay on right */
      rgba(26,46,74,0.35) 100%    /* slight darken at right edge */
    ),
    linear-gradient(
      to bottom,
      rgba(26,46,74,0.50) 0%,
      transparent 15%,
      transparent 85%,
      rgba(26,46,74,0.60) 100%
    );
}

/* Cards floating over hero image */
.hero-card-stack { position: relative; z-index: 3; width: 320px; }
.hero-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 12px; padding: 1.5rem 1.75rem;
  backdrop-filter: blur(12px); color: white;
}
.hero-card + .hero-card { margin-top: 1rem; }
.hero-card-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
.hero-card-value { font-family: var(--serif); font-size: 1.2rem; color: white; line-height: 1.3; }
.hero-card-sub { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-top: 0.4rem; }
.hero-divider { width: 40px; height: 2px; background: var(--gold); margin: 0.6rem 0; }

/* ============================================================
   TICKER
   ============================================================ */
.ticker-bar { background: var(--gold); padding: 0.6rem 0; overflow: hidden; white-space: nowrap; }
.ticker-inner { display: inline-flex; animation: grad-ticker 25s linear infinite; }
.ticker-item { display: inline-flex; align-items: center; gap: 1.5rem; padding: 0 2rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy-dark); }
.ticker-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--navy-mid); flex-shrink: 0; }

/* ============================================================
   SHARED SECTION UTILITIES
   ============================================================ */
.grad-section { padding: 6rem 2rem; }
.grad-section--dark  { background: var(--navy); }
.grad-section--white { background: var(--white); }
.grad-section--cream { background: var(--cream); }
.grad-section--gold  { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%); }
.grad-container { max-width: 1200px; margin: 0 auto; }

.section-eyebrow { display: inline-flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.section-eyebrow-line { width: 32px; height: 1px; background: var(--gold); }
.section-eyebrow-text { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); }

.section-title { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.15; color: var(--navy); margin-bottom: 1rem; }
.section-title--light  { color: var(--white); }
.section-title--center { text-align: center; }
.section-body { font-size: 1.05rem; color: var(--slate); max-width: 580px; line-height: 1.75; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-block; background: var(--gold); color: var(--navy);
  padding: 0.875rem 2rem; border-radius: 4px; font-weight: 600; font-size: 0.9rem;
  text-decoration: none; letter-spacing: 0.02em; transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); color: var(--navy); }

.btn-outline {
  display: inline-block; border: 1px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.85); padding: 0.875rem 2rem; border-radius: 4px;
  font-weight: 500; font-size: 0.9rem; text-decoration: none; transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }

.btn-dark {
  display: inline-block; background: var(--navy); color: var(--white);
  padding: 0.875rem 2.25rem; border-radius: 4px; font-weight: 600; font-size: 0.9rem;
  text-decoration: none; transition: background 0.2s;
}
.btn-dark:hover { background: var(--navy-mid); color: var(--white); }

.btn-ghost-dark {
  display: inline-block; border: 2px solid var(--navy-dark); color: var(--navy-dark);
  padding: 0.875rem 2.25rem; border-radius: 4px; font-weight: 600; font-size: 0.9rem;
  text-decoration: none; transition: background 0.2s;
}
.btn-ghost-dark:hover { background: rgba(39,63,101,0.1); color: var(--navy-dark); }


/* ============================================================
   ABOUT — clean flow layout, no absolute positioning
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

/* Left column: all elements stack in normal document flow */
.about-visual {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Logo block — wide aspect ratio for horizontal logo */
.about-initials-block {
  width: 100%;
  height: 130px;
  background: var(--navy);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1rem 2rem;
}

.about-initials-block img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.about-initials { font-family: var(--serif); font-size: 5rem; color: var(--gold); line-height: 1; }

/* Gold accent stat card — horizontal layout, in normal flow (no absolute) */
.about-accent-card {
  background: var(--gold);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.about-accent-number {
  font-family: var(--serif);
  font-size: 2.75rem;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
}

.about-accent-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(39,63,101,0.75);
  line-height: 1.4;
}

/* Stats grid — sits directly below accent card, gap controlled by flex parent */
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}

.about-stat {
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--cream);
}

.about-stat-num { font-family: var(--serif); font-size: 1.6rem; color: var(--navy); line-height: 1; }
.about-stat-label { font-size: 0.78rem; color: var(--slate-light); margin-top: 0.3rem; line-height: 1.35; }
.about-quote {
  margin-top: 2rem; padding: 1.5rem; border-left: 3px solid var(--gold);
  background: var(--gold-pale); border-radius: 0 8px 8px 0;
  font-style: italic; color: var(--slate); font-size: 0.95rem;
}
.about-quote cite { display: block; font-style: normal; font-weight: 600; color: var(--navy); font-size: 0.8rem; margin-top: 0.5rem; letter-spacing: 0.05em; text-transform: uppercase; }

/* ============================================================
   PILLARS
   ============================================================ */
.pillars-header { text-align: center; margin-bottom: 3.5rem; }
.pillars-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; border: 1px solid rgba(201,168,76,0.2); border-radius: 12px; overflow: hidden; }
.pillar { padding: 2.5rem 2rem; border-right: 1px solid rgba(201,168,76,0.15); text-align: center; transition: background 0.25s; }
.pillar:last-child { border-right: none; }
.pillar:hover { background: rgba(201,168,76,0.07); }
.pillar-letter { font-family: var(--serif); font-size: 4rem; color: var(--gold); line-height: 1; margin-bottom: 0.75rem; }
.pillar-word   { font-weight: 600; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin-bottom: 0.75rem; }
.pillar-desc   { font-size: 0.825rem; color: rgba(255,255,255,0.5); line-height: 1.6; }

/* ============================================================
   SERVICES
   ============================================================ */
.services-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; margin-bottom: 4rem; }
.services-grid  { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.service-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; transition: border-color 0.25s, transform 0.2s; position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }
.service-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon  { width: 44px; height: 44px; background: var(--gold-pale); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; font-size: 1.25rem; }
.service-title { font-family: var(--serif); font-size: 1.15rem; color: var(--navy); margin-bottom: 0.6rem; line-height: 1.3; }
.service-desc  { font-size: 0.875rem; color: var(--slate); line-height: 1.65; }

/* ============================================================
   BI SECTION
   ============================================================ */
.bi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.bi-feature { display: flex; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.bi-feature:first-child { border-top: 1px solid var(--border); }
.bi-feature-num   { font-family: var(--serif); font-size: 1.1rem; color: var(--gold); flex-shrink: 0; width: 28px; padding-top: 1px; }
.bi-feature-title { font-weight: 600; font-size: 0.9rem; color: var(--navy); margin-bottom: 0.2rem; }
.bi-feature-text  { font-size: 0.825rem; color: var(--slate-light); line-height: 1.55; }
.bi-visual        { background: var(--navy); border-radius: 16px; padding: 2.5rem; color: white; }
.bi-visual-title  { font-family: var(--serif); font-size: 1.3rem; color: var(--gold-light); margin-bottom: 1.5rem; }
.bi-bars { display: flex; flex-direction: column; gap: 1rem; }
.bi-bar-row   { display: flex; align-items: center; gap: 1rem; }
.bi-bar-label { font-size: 0.75rem; color: rgba(255,255,255,0.6); width: 120px; flex-shrink: 0; }
.bi-bar-track { flex: 1; height: 8px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; }
.bi-bar-fill  { height: 100%; background: var(--gold); border-radius: 4px; }
.bi-bar-val   { font-size: 0.75rem; font-weight: 600; color: var(--gold-light); width: 36px; text-align: right; }
.bi-badge { display: inline-block; margin-top: 1.5rem; background: rgba(201,168,76,0.15); border: 1px solid rgba(201,168,76,0.3); border-radius: 6px; padding: 0.75rem 1rem; font-size: 0.8rem; color: var(--gold-light); line-height: 1.5; }

/* ============================================================
   INDUSTRIES
   ============================================================ */

.industry-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 2.5rem; position: relative; overflow: hidden; max-width: 100%; box-sizing: border-box; }
.industry-card::after { content: ''; position: absolute; bottom: 0; right: 0; width: 80px; height: 80px; background: var(--gold-pale); border-radius: 80px 0 0 0; }
.industry-num   { font-family: var(--serif); font-size: 4rem; color: var(--border); line-height: 1; margin-bottom: 1rem; }
.industry-title { font-family: var(--serif); font-size: 1.4rem; color: var(--navy); margin-bottom: 0.75rem; }
.industry-text  { font-size: 0.9rem; color: var(--slate); line-height: 1.7; margin-bottom: 1.25rem; }
.industry-tags  { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.industry-tag   { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.3rem 0.75rem; border-radius: 100px; background: var(--gold-pale); color: var(--navy); border: 1px solid var(--border); }
.industry-tag--dark { background: rgba(201,168,76,0.12); border-color: rgba(201,168,76,0.3); color: var(--gold-light); }

/* ============================================================
   PROCESS
   ============================================================ */
.process-steps { display: grid; grid-template-columns: repeat(5,1fr); gap: 0; margin-top: 3.5rem; position: relative; }
.process-steps::before { content: ''; position: absolute; top: 28px; left: 10%; right: 10%; height: 1px; background: rgba(201,168,76,0.25); z-index: 0; }
.process-step  { text-align: center; padding: 0 1rem; position: relative; z-index: 1; }
.process-dot   { width: 56px; height: 56px; border-radius: 50%; background: var(--navy-mid); border: 2px solid rgba(201,168,76,0.4); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; font-family: var(--serif); font-size: 1.3rem; color: var(--gold); transition: border-color 0.2s, background 0.2s; }
.process-step:hover .process-dot { border-color: var(--gold); background: rgba(201,168,76,0.1); }
.process-step-title { font-weight: 600; font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--white); margin-bottom: 0.5rem; }
.process-step-text  { font-size: 0.775rem; color: rgba(255,255,255,0.45); line-height: 1.6; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-inner   { text-align: center; }
.cta-title   { font-family: var(--serif); font-size: clamp(2rem,3.5vw,3.2rem); color: var(--navy-dark); margin-bottom: 1rem; line-height: 1.2; }
.cta-sub     { font-size: 1.1rem; color: rgba(39,63,101,0.7); max-width: 520px; margin: 0 auto 2.5rem; line-height: 1.6; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: start; }
.contact-info-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.contact-icon { width: 40px; height: 40px; border-radius: 8px; background: var(--gold-pale); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.contact-info-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-light); margin-bottom: 0.2rem; }
.contact-info-val   { font-size: 0.9rem; color: var(--navy); font-weight: 500; }
.contact-form-wrap  { background: var(--cream); border: 1px solid var(--border); border-radius: 12px; padding: 2.5rem; }
.contact-form-title { font-family: var(--serif); font-size: 1.15rem; color: var(--navy); margin-bottom: 1.5rem; }

/* Form styles (CF7 + WPForms + fallback) */
.grad-form, .wpcf7-form, .wpforms-form { display: flex; flex-direction: column; gap: 1.25rem; }
.grad-form .form-row, .wpforms-form .wpforms-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grad-form .form-group, .wpforms-form .wpforms-field, .wpcf7-form p { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 0; }
.grad-form label, .wpforms-form label, .wpcf7-form label { font-size: 0.8rem; font-weight: 600; color: var(--navy); letter-spacing: 0.03em; }
.grad-form input, .grad-form select, .grad-form textarea,
.wpforms-form input[type="text"], .wpforms-form input[type="email"], .wpforms-form select, .wpforms-form textarea,
.wpcf7-form input[type="text"], .wpcf7-form input[type="email"], .wpcf7-form select, .wpcf7-form textarea {
  padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: 6px;
  font-family: var(--sans); font-size: 0.9rem; color: var(--navy);
  background: var(--white); transition: border-color 0.2s; outline: none; width: 100%;
}
.grad-form input:focus, .grad-form select:focus, .grad-form textarea:focus,
.wpforms-form input:focus, .wpforms-form select:focus, .wpforms-form textarea:focus,
.wpcf7-form input:focus, .wpcf7-form select:focus, .wpcf7-form textarea:focus { border-color: var(--gold); }
.grad-form textarea, .wpforms-form textarea, .wpcf7-form textarea { min-height: 120px; resize: vertical; }
.grad-form button[type="submit"], .wpforms-form button[type="submit"], .wpcf7-form input[type="submit"] {
  background: var(--navy); color: var(--white); border: none; padding: 0.875rem 2rem;
  border-radius: 4px; font-family: var(--sans); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: background 0.2s; align-self: flex-start;
}
.grad-form button[type="submit"]:hover, .wpforms-form button[type="submit"]:hover, .wpcf7-form input[type="submit"]:hover { background: var(--navy-mid); }
.form-note { font-size: 0.75rem; color: var(--slate-light); }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer { background: var(--navy-dark); padding: 3rem 2rem 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 2rem; }

/* Logo in footer */
.footer-logo-img { height: 50px; width: auto; max-width: 280px; margin-bottom: 1rem; filter: brightness(1.05); }
.footer-logo-text { font-family: var(--serif); font-size: 1.35rem; color: var(--white); margin-bottom: 0.75rem; }
.footer-logo-text span { color: var(--gold); }

.footer-tagline { font-size: 0.85rem; color: rgba(255,255,255,0.45); line-height: 1.65; max-width: 260px; margin-bottom: 1.25rem; }
.footer-abn     { font-size: 0.75rem; color: rgba(255,255,255,0.3); }
.footer-col-title { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.footer-links   { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold-light); }
#footer-services-nav ul, #footer-industries-nav ul, #footer-contact-nav ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
#footer-services-nav a, #footer-industries-nav a, #footer-contact-nav a { font-size: 0.85rem; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
#footer-services-nav a:hover, #footer-industries-nav a:hover, #footer-contact-nav a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.775rem; color: rgba(255,255,255,0.3); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s, transform 0.7s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes grad-fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes grad-fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes grad-ticker { from { transform:translateX(0); } to { transform:translateX(-50%); } }

/* ============================================================
   ENTRY CONTENT (posts/pages)
   ============================================================ */
.entry-content { max-width: 760px; margin: 0 auto; padding: 6rem 2rem; line-height: 1.8; color: var(--slate); }
.entry-content h1,.entry-content h2,.entry-content h3 { font-family: var(--serif); color: var(--navy); margin-top: 2rem; margin-bottom: 0.75rem; line-height: 1.2; }
.entry-content h1 { font-size: 2.2rem; } .entry-content h2 { font-size: 1.7rem; } .entry-content h3 { font-size: 1.3rem; }
.entry-content p { margin-bottom: 1.2rem; }
.entry-content ul,.entry-content ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }
.entry-content a { color: var(--gold); text-decoration: underline; }
.entry-content blockquote { border-left: 3px solid var(--gold); background: var(--gold-pale); padding: 1.25rem 1.5rem; border-radius: 0 8px 8px 0; font-style: italic; color: var(--slate); margin: 1.5rem 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 900px) {
  #hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { padding: 5rem 2rem 4rem; }
  .about-grid, .bi-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .services-intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .pillars-grid  { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-steps::before { display: none; }
  
}
@media (max-width: 900px) {
  /* Hamburger nav for tablet and mobile — 8 items need space */
  #primary-nav ul { display: none; }
  #primary-nav ul.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navy-dark);
    padding: 2rem;
    gap: 0;
    z-index: 201;
    overflow-y: auto;
  }
  #primary-nav ul.open li {
    flex: none;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  #primary-nav ul.open li a {
    display: block;
    padding: 1rem 0.5rem;
    font-size: 1.1rem;
  }
  .nav-toggle { display: flex !important; align-items: center; justify-content: center; }
}

@media (max-width: 600px) {
  .services-grid, .pillars-grid { grid-template-columns: 1fr; }
  .grad-form .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ============================================================
   SERVICE CARD — NEW BADGE
   ============================================================ */
.service-card--new {
  border-color: rgba(201,168,76,0.4);
}
.service-card-badge {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}

/* ============================================================
   TECHNOLOGY SECTION
   ============================================================ */
.tech-header { margin-bottom: 3.5rem; }

.tech-header-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 1rem;
}

.tech-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.tech-pillar {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.18);
  border-radius: 14px;
  padding: 2.25rem 2rem;
  transition: border-color 0.25s;
}
.tech-pillar:hover { border-color: rgba(201,168,76,0.4); }

.tech-pillar-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.tech-pillar-icon {
  width: 52px; height: 52px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.tech-pillar-eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.tech-pillar-title {
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--white);
  line-height: 1.2;
}

.tech-pillar-body {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.tech-features {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1.75rem;
}

.tech-feature {
  display: flex;
  gap: 0.875rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  align-items: flex-start;
}
.tech-feature:first-child { border-top: 1px solid rgba(255,255,255,0.06); }

.tech-feature-icon {
  font-size: 1rem;
  flex-shrink: 0;
  width: 22px;
  padding-top: 1px;
  opacity: 0.85;
}

.tech-feature-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.tech-feature-text {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.55;
}

.tech-stack-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.75rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tech-tag {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.22);
  color: var(--gold-light);
}

/* Technology callout bar */
.tech-callout {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 12px;
  padding: 2rem 2.25rem;
  margin-top: 0.5rem;
}

.tech-callout-icon {
  font-size: 2.25rem;
  flex-shrink: 0;
  width: 56px;
  text-align: center;
}

.tech-callout-content { flex: 1; }

.tech-callout-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.tech-callout-body {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

/* Industries 3-column on wider screens */
.industries-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

/* ============================================================
   RESPONSIVE — TECHNOLOGY & UPDATED INDUSTRIES
   ============================================================ */
@media (max-width: 1024px) {
  .tech-pillars        { grid-template-columns: 1fr; }
  .tech-header-grid    { grid-template-columns: 1fr; gap: 1.5rem; }
  .industries-grid     { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .tech-pillars        { grid-template-columns: 1fr; }
  .tech-callout        { flex-direction: column; text-align: center; }
  .industries-grid     { grid-template-columns: 1fr !important; }
}

@media (max-width: 600px) {
  .industries-grid     { grid-template-columns: 1fr !important; gap: 1rem; }
  .industry-card       { padding: 1.5rem 1.25rem; }
}

/* ============================================================
   SOLUTIONS SECTION
   ============================================================ */
.solutions-intro { margin-bottom: 2.5rem; }

.solutions-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 1rem;
}

/* Tab nav */
.solutions-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.sol-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 0.75rem 1.25rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-light);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: -1px;
  letter-spacing: 0.02em;
}

.sol-tab:hover { color: var(--navy); }
.sol-tab--active { color: var(--navy); border-bottom-color: var(--gold); }

/* Solution panels */
.solutions-panel { display: block; }
.solutions-panel--hidden { display: none; }

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.solution-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  position: relative;
}

.solution-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 24px rgba(201,168,76,0.1);
}

.solution-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.875rem;
}

.solution-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
}

.solution-badge--finance     { background: #e8f0fb; color: #1a4094; }
.solution-badge--manufacturing { background: #fef3e2; color: #7c4a00; }
.solution-badge--health      { background: #e8f8f2; color: #0d6644; }
.solution-badge--startup     { background: #f3e8fb; color: #5c1a94; }

.solution-outcome {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-dark);
  background: var(--gold-pale);
  border: 1px solid rgba(201,168,76,0.3);
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
}

.solution-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.875rem;
  line-height: 1.3;
}

.solution-problem,
.solution-delivery {
  font-size: 0.85rem;
  color: var(--slate);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.solution-problem strong,
.solution-delivery strong {
  color: var(--navy);
  font-weight: 600;
}

.solution-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.solution-tags span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--slate);
}

.solutions-cta {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background: var(--gold-pale);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 12px;
}

.solutions-cta p {
  font-size: 1rem;
  color: var(--slate);
  margin-bottom: 1.25rem;
}

/* ============================================================
   WHY GRAD FOR SMEs SECTION
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

/* Pain point checklist */
.pain-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 2rem;
}

.pain-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.pain-item:first-child { border-top: 1px solid var(--border); }

.pain-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.pain-icon--check { background: rgba(13,102,68,0.12); color: #0d6644; }

.pain-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.pain-text {
  font-size: 0.825rem;
  color: var(--slate-light);
  line-height: 1.55;
}

/* Stats block */
.why-stats-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.why-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.why-stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
}

.why-stat-num {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.why-stat-label {
  font-size: 0.82rem;
  color: var(--slate);
  line-height: 1.5;
  margin-bottom: 0.35rem;
}

.why-stat-source {
  font-size: 0.7rem;
  color: var(--slate-light);
  font-style: italic;
}

/* Comparison table */
.why-compare {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.why-compare-title {
  padding: 1rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.compare-table thead tr {
  background: var(--navy-dark);
}

.compare-table thead th {
  padding: 0.6rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  text-align: center;
  white-space: nowrap;
}

.compare-table thead th:first-child {
  text-align: left;
  width: 45%;
}

.compare-table thead th:not(:first-child) {
  width: 18.33%;
}

.compare-col-grad { color: var(--gold-light) !important; }

.compare-table tbody tr { border-bottom: 1px solid var(--border); }
.compare-table tbody tr:last-child { border-bottom: none; }
.compare-table tbody tr:nth-child(even) { background: #fafaf8; }

.compare-label {
  font-size: 0.78rem;
  color: var(--navy);
  padding: 0.6rem 0.75rem 0.6rem 0.75rem;
  text-align: left;
  line-height: 1.3;
}

.compare-cell {
  text-align: center;
  padding: 0.6rem 0.25rem;
}

.compare-cell--grad { background: rgba(201,168,76,0.06); }

.compare-val {
  font-size: 0.95rem;
  font-weight: 700;
  display: block;
  text-align: center;
}

.compare-val--yes     { color: #0d6644; }
.compare-val--partial { color: #7c4a00; }
.compare-val--no      { color: #a32d2d; }

/* Mobile — table stays within screen via fixed layout and small text */
@media (max-width: 600px) {
  .compare-table thead th {
    font-size: 0.6rem;
    padding: 0.5rem 0.25rem;
    letter-spacing: 0.02em;
  }
  .compare-table thead th:first-child { width: 42%; }
  .compare-label { font-size: 0.72rem; padding: 0.5rem; }
  .compare-cell  { padding: 0.5rem 0.2rem; }
  .compare-val   { font-size: 0.85rem; }
}

@media (max-width: 400px) {
  .compare-table thead th { font-size: 0.55rem; padding: 0.4rem 0.15rem; }
  .compare-label { font-size: 0.68rem; padding: 0.4rem 0.4rem; }
  .compare-val   { font-size: 0.8rem; }
}

/* ============================================================
   RESPONSIVE — SOLUTIONS & WHY
   ============================================================ */
@media (max-width: 1024px) {
  .solutions-intro-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .why-grid             { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 900px) {
  .solutions-grid { grid-template-columns: 1fr; }
  .why-stat-row   { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
}

@media (max-width: 700px) {
  /* Comparison table — compact on smaller screens */
  .why-compare { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  .compare-header,
  .compare-row {
    grid-template-columns: 1fr 64px 64px 64px;
    padding: 0.5rem 0.75rem;
    gap: 0;
  }

  .compare-label { font-size: 0.75rem; }
  .compare-val   { font-size: 0.8rem; }

  .why-compare-title { font-size: 0.72rem; padding: 0.75rem 1rem; }
}

@media (max-width: 480px) {
  /* On very small screens — stack the comparison table differently */
  .compare-header,
  .compare-row {
    grid-template-columns: 1fr 52px 52px 52px;
    padding: 0.5rem 0.625rem;
  }

  .compare-label { font-size: 0.7rem; line-height: 1.3; }
  .compare-val   { font-size: 0.75rem; }

  /* Column headers — abbreviate */
  .compare-col-grad::after     { content: ''; }
  .compare-col-large::after    { content: ''; }
  .compare-col-freelance::after{ content: ''; }

  .why-stat-row { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .why-stat     { padding: 1rem 0.875rem; }
  .why-stat-num { font-size: 1.5rem; }
}

@media (max-width: 600px) {
  .compare-header,
  .compare-row { grid-template-columns: 1fr 60px 60px 60px; }
  .solutions-nav { gap: 0.25rem; }
  .sol-tab { font-size: 0.78rem; padding: 0.6rem 0.75rem; }
}

/* ============================================================
   NAV — PHONE + RIGHT SIDE LAYOUT
   ============================================================ */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-phone {
  display: none !important;   /* removed from header per design decision */
}

.nav-phone-icon {
  color: var(--gold);
  flex-shrink: 0;
}

.nav-cta-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}

.nav-cta-btn:hover { background: var(--gold-light); }

/* ============================================================
   STICKY MOBILE CALL BUTTON
   ============================================================ */
.sticky-call-btn {
  display: none;                    /* hidden on desktop */
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 300;
  background: var(--gold);
  color: var(--navy);
  text-decoration: none;
  border-radius: 50px;
  padding: 0.875rem 1.5rem 0.875rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(201,168,76,0.45);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.sticky-call-btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  color: var(--navy);
}

.sticky-call-btn svg { flex-shrink: 0; }

/* On desktop: show phone in nav, hide sticky button */
@media (min-width: 901px) {
  .sticky-call-btn { display: none !important; }
}

/* On mobile: hide nav phone text, show sticky button */
@media (max-width: 900px) {
  .nav-phone span  { display: none; }       /* hide number, keep icon */
  .nav-cta-btn     { display: none; }       /* hide nav CTA on mobile */
  .sticky-call-btn { display: flex; }
}

@media (max-width: 600px) {
  .nav-phone       { display: none; }       /* fully hide on very small */
  .sticky-call-btn { bottom: 1rem; right: 1rem; font-size: 0.85rem; padding: 0.75rem 1.25rem 0.75rem 1rem; }
}

/* ============================================================
   CONTACT — PHONE CARD
   ============================================================ */
.contact-phone-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--navy);
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  text-decoration: none;
  color: var(--white);
  margin-bottom: 1.75rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.contact-phone-card:hover {
  background: var(--navy-mid);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(39,63,101,0.25);
  color: var(--white);
}

.contact-phone-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}

.contact-phone-text { flex: 1; }

.contact-phone-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.contact-phone-number {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.contact-phone-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.25rem;
}

.contact-phone-arrow {
  font-size: 1.25rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.contact-phone-card:hover .contact-phone-arrow { transform: translateX(4px); }

/* Contact info list */
.contact-info-list { display: flex; flex-direction: column; gap: 0; }

/* ============================================================
   FOOTER — PHONE LINK STYLES
   ============================================================ */
.footer-contact-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact-item:hover { color: var(--gold-light); }

.footer-contact-item--phone {
  color: var(--gold-light);
  font-weight: 600;
}

.footer-contact-item--phone:hover { color: var(--white); }

.footer-phone-link {
  color: var(--gold-light) !important;
  font-weight: 600;
}

.footer-phone-link:hover { color: var(--white) !important; }

/* ============================================================
   RESPONSIVE — NAV ADJUSTMENTS FOR PHONE
   ============================================================ */
@media (max-width: 1100px) {
  .nav-phone { font-size: 0.8rem; }
  .header-inner { padding: 0 1.5rem; }
}

@media (max-width: 900px) {
  .nav-right { gap: 0.5rem; }
}

/* ============================================================
   PAGE HERO — used on all individual section pages
   ============================================================ */
.page-hero {
  padding: 7rem 2rem 5rem;
  margin-top: 70px;           /* clear the fixed nav */
}

.page-hero--navy {
  background: var(--navy);
}

.page-hero--dark {
  background: var(--navy-dark);
}

.page-hero--gold-bg {
  background: linear-gradient(135deg, var(--gold) 0%, #b8872e 100%);
}

.page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.page-hero-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.25rem;
  max-width: 800px;
}

.page-hero-sub {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  max-width: 640px;
}

/* ============================================================
   SECTION PAGE — remove top padding on first section
   (since page hero already provides spacing)
   ============================================================ */
.page-hero + section,
.page-hero + .grad-section {
  padding-top: 5rem;
}

/* Remove hero section's own margin-top on section pages
   (they use page-hero instead) */
body.page .grad-section:first-of-type {
  padding-top: 5rem;
}

/* ============================================================
   PROCESS PAGE — engagement models grid responsive
   ============================================================ */
@media (max-width: 900px) {
  [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
  }
}


/* ============================================================
   MOBILE EXPERIENCE — comprehensive overhaul
   Breakpoints: 480px (small phone), 600px (large phone), 900px (tablet)
   ============================================================ */

/* ── Prevent iOS input zoom (inputs must be ≥16px font-size) ── */
input, select, textarea,
.grad-form input, .grad-form select, .grad-form textarea,
.wpcf7-form input, .wpcf7-form select, .wpcf7-form textarea,
.wpforms-form input, .wpforms-form select, .wpforms-form textarea {
  font-size: 16px !important;  /* prevents iOS auto-zoom on focus */
}

/* ── Minimum touch target size (WCAG 2.5.5) ── */
.btn-primary, .btn-outline, .btn-dark, .btn-ghost-dark,
.nav-cta-btn, .sol-tab, .grad-btn,
a.service-card, .contact-phone-card {
  min-height: 44px;
}

/* ── Safe area insets for notched phones (iPhone X+) ── */
#site-footer { padding-bottom: max(2rem, env(safe-area-inset-bottom)); }

.sticky-call-btn {
  bottom: max(1.5rem, calc(env(safe-area-inset-bottom) + 1rem));
  right:  max(1.5rem, env(safe-area-inset-right));
}


/* ==========================================================
   BREAKPOINT: ≤ 900px — tablet & large phone
   ========================================================== */
@media (max-width: 900px) {

  /* Section padding — reduce from 6rem */
  .grad-section { padding: 4rem 1.5rem; }

  /* Hero — single column, image visible as background */
  #hero {
    min-height: 100svh;     /* svh = small viewport height — avoids mobile browser chrome */
    padding-top: 70px;
    grid-template-columns: 1fr;
  }

  .hero-left {
    padding: 3rem 1.5rem 4rem;
    position: relative;
    z-index: 2;
  }

  /* Show image as subtle full-bleed background on mobile too */
  .hero-image-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
  }

  /* Stronger overlay on mobile so text is readable */
  .hero-image-wrap::after {
    background:
      linear-gradient(
        to bottom,
        rgba(26,46,74,0.82) 0%,
        rgba(26,46,74,0.65) 50%,
        rgba(26,46,74,0.80) 100%
      ),
      linear-gradient(
        to right,
        rgba(26,46,74,0.50) 0%,
        transparent 60%
      );
  }

  .hero-h1 {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: 1rem;
  }

  .hero-sub {
    font-size: 1rem;
    max-width: 100%;
    margin-bottom: 2rem;
  }

  .hero-actions { gap: 0.75rem; }

  .hero-actions .btn-primary,
  .hero-actions .btn-outline {
    flex: 1;
    text-align: center;
    justify-content: center;
    padding: 0.875rem 1.25rem;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  /* About section */
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .about-initials-block { height: 100px; }

  .about-accent-card {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }

  .about-accent-number { font-size: 2.25rem; }

  /* About stats — keep 2-col */
  .about-stats { grid-template-columns: 1fr 1fr; gap: 0.75rem; }

  /* Contact grid */
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }

  .contact-phone-card {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
  }

  .contact-phone-number { font-size: 1.35rem; }

  /* BI grid */
  .bi-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  /* Process — 2 col */
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .process-steps::before { display: none; }
  .process-step { padding: 0 0.5rem; }
  .process-dot { width: 48px; height: 48px; font-size: 1.1rem; }

  /* Industries */
  

  /* Services intro */
  .services-intro { grid-template-columns: 1fr; gap: 1rem; }

  /* Services — 2 col on tablet */
  .services-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }

  /* Pillars — 2 col */
  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .pillar { padding: 1.75rem 1.25rem; }
  .pillar-letter { font-size: 3rem; }

  /* Solutions */
  .solutions-grid { grid-template-columns: 1fr; }
  .solutions-nav { flex-wrap: wrap; }

  /* Tech section */
  .tech-pillars { grid-template-columns: 1fr; }
  .tech-callout { flex-direction: column; text-align: center; }

  /* Why-grid */
  .why-grid { grid-template-columns: 1fr; gap: 2rem; }
  .why-stat-row { grid-template-columns: 1fr 1fr; }

  /* Section titles */
  .section-title { font-size: clamp(1.6rem, 5vw, 2.4rem); }

  /* CTA banner */
  .cta-title { font-size: clamp(1.75rem, 6vw, 2.5rem); }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn-dark,
  .cta-actions .btn-ghost-dark { width: 100%; max-width: 320px; text-align: center; }

  /* Page heroes */
  .page-hero { padding: 5.5rem 1.5rem 3.5rem; }
  .page-hero-title { font-size: clamp(1.75rem, 6vw, 3rem); }
  .page-hero-sub { font-size: 1rem; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}


/* ==========================================================
   BREAKPOINT: ≤ 600px — standard phone (iPhone SE → iPhone 16)
   ========================================================== */
@media (max-width: 600px) {

  /* Section padding tighter */
  .grad-section { padding: 3.5rem 1.25rem; }

  /* Nav */
  .header-inner { padding: 0 1rem; height: 60px; max-width: 100%; }
  .nav-toggle   { display: flex; align-items: center; justify-content: center; }

  /* Mobile menu open state */
  #primary-nav ul.open {
    top: 60px;
    padding: 1.25rem 1.5rem;
    gap: 0.75rem;
    border-top: 1px solid rgba(201,168,76,0.2);
  }
  #primary-nav ul.open li a {
    font-size: 1rem;
    padding: 0.5rem 0;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  #primary-nav ul.open li:last-child a { border-bottom: none; }

  /* Hero */
  .hero-left { padding: 2.5rem 1.25rem 3.5rem; }

  .hero-eyebrow { margin-bottom: 1rem; }
  .hero-eyebrow-text { font-size: 0.65rem; letter-spacing: 0.1em; }

  .hero-h1 {
    font-size: clamp(1.9rem, 9vw, 2.8rem);
    margin-bottom: 1rem;
  }

  .hero-sub {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.75rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-outline {
    width: 100%;
    text-align: center;
    justify-content: center;
    font-size: 0.95rem;
    padding: 0.875rem 1.5rem;
  }

  /* About */
  .about-initials-block { height: 88px; padding: 0.75rem 1.25rem; }
  .about-stats { grid-template-columns: 1fr 1fr; gap: 0.625rem; }
  .about-stat  { padding: 0.875rem 1rem; }
  .about-stat-num { font-size: 1.4rem; }
  .about-quote { font-size: 0.875rem; padding: 1.1rem 1.25rem; }

  /* Services — single column */
  .services-grid { grid-template-columns: 1fr; gap: 0.875rem; }
  .service-card  { padding: 1.5rem; }

  /* Pillars — single column */
  .pillars-grid { grid-template-columns: 1fr; gap: 0; }
  .pillar {
    border-right: none;
    border-bottom: 1px solid rgba(201,168,76,0.15);
    padding: 1.5rem 1.25rem;
    display: grid;
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto auto;
    gap: 0 1rem;
    text-align: left;
  }
  .pillar:last-child { border-bottom: none; }
  .pillar-letter { font-size: 2.5rem; grid-row: 1 / 3; align-self: center; }
  .pillar-word   { font-size: 0.9rem; margin-bottom: 0.2rem; }
  .pillar-desc   { font-size: 0.82rem; }

  /* Process — single column */
  .process-steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .process-step {
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
    gap: 0 1rem;
    text-align: left;
    padding: 0;
  }
  .process-dot {
    grid-row: 1 / 3;
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
    margin: 0;
    align-self: center;
  }
  .process-step-title { font-size: 0.9rem; margin-bottom: 0.2rem; }
  .process-step-text  { font-size: 0.82rem; }

  /* Contact phone card */
  .contact-phone-card {
    padding: 1.25rem;
    gap: 1rem;
  }
  .contact-phone-icon { width: 46px; height: 46px; flex-shrink: 0; }
  .contact-phone-number { font-size: 1.25rem; }
  .contact-phone-sub  { font-size: 0.7rem; }
  .contact-phone-arrow { display: none; }

  /* Contact form wrap */
  .contact-form-wrap { padding: 1.5rem 1.25rem; }

  /* Contact info list */
  .contact-info-item { gap: 0.75rem; }
  .contact-icon { width: 34px; height: 34px; font-size: 0.875rem; flex-shrink: 0; }

  /* Solutions tabs */
  .solutions-nav { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 0; }
  .sol-tab { font-size: 0.78rem; padding: 0.6rem 0.875rem; white-space: nowrap; flex-shrink: 0; }

  /* Solution cards */
  .solution-card { padding: 1.25rem; }
  .solution-card-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

  /* Tech section */
  .tech-pillar { padding: 1.5rem 1.25rem; }
  .tech-pillar-title { font-size: 1.15rem; }
  .tech-callout { padding: 1.5rem 1.25rem; gap: 1rem; }
  .tech-tags { gap: 0.3rem; }
  .tech-tag { font-size: 0.68rem; }

  /* BI visual */
  .bi-visual { padding: 1.5rem 1.25rem; }
  .bi-bar-label { width: 90px; font-size: 0.72rem; }

  /* Industries strip on homepage */
  #services-preview .services-grid { grid-template-columns: 1fr; }

  /* Industries compact stats block */
  .why-stat-row { grid-template-columns: 1fr; gap: 0.75rem; }

  /* Comparison table — tighter columns */
  .compare-header,
  .compare-row { grid-template-columns: 1fr 52px 52px 52px; padding: 0.5rem 0.875rem; }
  .compare-label { font-size: 0.78rem; }
  .compare-val   { font-size: 0.85rem; }

  /* Footer single column */
  .footer-top    { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; font-size: 0.72rem; }
  .footer-tagline { font-size: 0.8rem; max-width: 100%; }
  .footer-logo-img { height: 42px; }
  .footer-col-title { margin-top: 0.25rem; }

  /* Page hero */
  .page-hero { padding: 5rem 1.25rem 3rem; margin-top: 60px; }
  .page-hero-title { font-size: clamp(1.6rem, 8vw, 2.5rem); }
  .page-hero-sub { font-size: 0.95rem; }

  /* Sticky call button */
  .sticky-call-btn {
    font-size: 0.85rem;
    padding: 0.8rem 1.25rem 0.8rem 1rem;
    gap: 0.5rem;
  }

  /* SEO dashboard */
  .grad-two-col { grid-template-columns: 1fr; }
  .grad-card-grid { grid-template-columns: 1fr 1fr; }

  /* CTA */
  .cta-sub { font-size: 0.95rem; padding: 0 0.5rem; }
}


/* ==========================================================
   BREAKPOINT: ≤ 480px — compact phones (SE, older Androids)
   ========================================================== */
@media (max-width: 480px) {

  .grad-section { padding: 3rem 1rem; }

  .hero-left { padding: 2rem 1rem 3rem; }

  .hero-h1 { font-size: clamp(1.75rem, 10vw, 2.5rem); }

  .section-title { font-size: clamp(1.5rem, 7vw, 2rem); }

  .about-stats { gap: 0.5rem; }
  .about-stat-num { font-size: 1.3rem; }
  .about-stat-label { font-size: 0.72rem; }

  /* Ticker — faster on small screens */
  .ticker-inner { animation-duration: 18s; }
  .ticker-item  { padding: 0 1.25rem; gap: 1rem; font-size: 0.7rem; }

  .contact-phone-number { font-size: 1.1rem; }

  /* Process single col already handles this, just tighten dot */
  .process-dot { width: 42px; height: 42px; font-size: 1rem; }

  /* Footer links spacing */
  .footer-links { gap: 0.75rem; }
  .footer-links a { font-size: 0.875rem; }
}


/* ==========================================================
   NAVIGATION MOBILE BACKDROP
   ========================================================== */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 200;
  backdrop-filter: blur(2px);
}
.nav-backdrop.open { display: block; }


/* ==========================================================
   SMOOTH SCROLLING & SCROLL MARGIN FOR FIXED NAV
   ========================================================== */
:target { scroll-margin-top: 80px; }

html { scroll-padding-top: 80px; }

@media (max-width: 600px) {
  :target         { scroll-margin-top: 70px; }
  html            { scroll-padding-top: 70px; }
}


/* ── Nav transition for mobile scroll-hide ── */
#site-header {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ── Pulse animation for sticky call button ── */
@keyframes grad-pulse {
  0%   { box-shadow: 0 4px 20px rgba(201,168,76,0.45); }
  50%  { box-shadow: 0 4px 32px rgba(201,168,76,0.85), 0 0 0 8px rgba(201,168,76,0.15); }
  100% { box-shadow: 0 4px 20px rgba(201,168,76,0.45); }
}

/* ── Viewport height fix for mobile browsers (address bar) ── */
#hero { min-height: 100svh; }

@supports not (min-height: 100svh) {
  #hero { min-height: calc(var(--vh, 1vh) * 100); }
}


/* ============================================================
   COOKIEADMIN — Re-consent icon suppression
   The re-consent floating button is hidden by default.
   CookieAdmin stores consent in a cookie named 'cookieadmin'
   or 'cookie_consent'. We hide the icon via CSS as a fallback.
   To fully disable it: WP Admin → CookieAdmin → Settings →
   uncheck "Show Re-consent Button" / "Floating Icon".
   ============================================================ */

/* Hide the re-consent floating icon image entirely */
img[src*="re-consent"],
img[src*="reconsent"],
img[src*="re_consent"] {
  display: none !important;
}

/* Hide CookieAdmin re-consent wrapper elements */
.cookieadmin-reconsent,
.ca-reconsent,
.ca-reconsent-icon,
.ca-reconsent-btn,
#ca-reconsent,
#cookieadmin-reconsent,
[class*="reconsent"],
[id*="reconsent"] {
  display: none !important;
}

/* Hide the bottom-right floating icon that persists after consent */
a[href*="cookieadmin"][style*="position"],
div[style*="position: fixed"][style*="cookieadmin"],
.cookieadmin-floating-btn,
.ca-floating-btn,
#ca-floating-icon,
#cookieadmin-floating {
  display: none !important;
}


/* ============================================================
   BLOG — listing page and single post
   ============================================================ */

/* Blog grid — 3 columns desktop, 2 tablet, 1 mobile */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.blog-card:hover {
  box-shadow: 0 4px 24px rgba(39,63,101,0.1);
  transform: translateY(-2px);
}

.blog-card-image {
  display: block;
  overflow: hidden;
  height: 200px;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.03);
}

.blog-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.625rem;
}

.blog-card-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.blog-card-title a {
  color: var(--navy);
  text-decoration: none;
}

.blog-card-title a:hover { color: var(--gold); }

.blog-card-excerpt {
  font-size: 0.875rem;
  color: var(--slate);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
}

.blog-card-date { color: var(--slate-light); }

.blog-card-link {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.blog-card-link:hover { color: var(--gold); }

/* Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--navy);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.blog-pagination .page-numbers.prev,
.blog-pagination .page-numbers.next {
  width: auto;
  padding: 0 1rem;
}

/* Empty state */
.blog-empty { text-align: center; padding: 4rem 0; }

/* ── Single post layout ── */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: start;
}

.post-featured-image {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.post-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.post-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--slate);
}

.post-body h2 {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--navy);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
}

.post-body h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
}

.post-body p { margin-bottom: 1.25rem; }

.post-body ul, .post-body ol {
  margin: 0 0 1.25rem 1.5rem;
}

.post-body li { margin-bottom: 0.5rem; }

.post-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.post-body strong { color: var(--navy); }

.post-body blockquote {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--cream);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--navy);
}

/* Tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.post-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--slate);
}

/* Author bio */
.post-author-bio {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--cream);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.post-author-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}

.post-author-title {
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.post-author-desc {
  font-size: 0.85rem;
  color: var(--slate);
  line-height: 1.6;
  margin: 0;
}

/* Sidebar */
.post-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
}

.sidebar-card-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gold);
}

.sidebar-card-body {
  font-size: 0.875rem;
  color: var(--slate);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.sidebar-phone {
  display: block;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  font-size: 0.95rem;
}

.sidebar-phone:hover { color: var(--gold); }

.sidebar-post-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.sidebar-post-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-post-list li:last-child { border-bottom: none; padding-bottom: 0; }

.sidebar-post-list a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.4;
}

.sidebar-post-list a:hover { color: var(--gold); }

.sidebar-post-date {
  font-size: 0.72rem;
  color: var(--slate-light);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .post-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .post-sidebar { position: static; }
}

@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card-image { height: 160px; }
}


/* ============================================================
   GOOGLE MOBILE INSIGHTS — Core Web Vitals improvements
   ============================================================ */

/* Prevent Cumulative Layout Shift (CLS) on images */
img { height: auto; }
.hero-bg-img { aspect-ratio: 3/2; }
.blog-card-image img { aspect-ratio: 16/9; object-fit: cover; }
.post-featured-image img { aspect-ratio: 16/9; object-fit: cover; }

/* Improve Largest Contentful Paint (LCP) */
.hero-bg-img {
  content-visibility: visible;   /* always render hero */
}

/* Improve tap target sizes on mobile (Google recommends 48x48px minimum) */
@media (max-width: 900px) {
  a, button, [role="button"] { min-height: 44px; }

  /* Process steps — better mobile layout */
  .process-step {
    padding: 1.25rem;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
  }

  /* Blog cards — better mobile spacing */
  .blog-card-body { padding: 1.25rem; }
  .blog-card-title { font-size: 1.05rem; }
  .blog-card-excerpt { font-size: 0.85rem; }

  /* Contact form — better mobile layout */
  .contact-form-wrap { padding: 1.5rem 1.25rem; }
  .grad-btn { width: 100%; }

  /* Sticky call button — larger on mobile */
  .sticky-call-btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Smooth scrolling for mobile */
@media (max-width: 900px) {
  html { scroll-behavior: smooth; }
}

/* Prevent horizontal scroll on mobile */
body { overflow-x: hidden; max-width: 100vw; }


/* ============================================================
   MOBILE MENU PANEL — full screen overlay
   Triggered by #mobile-menu.open class added via JS
   ============================================================ */

#mobile-menu {
  display: none !important;   /* hidden by default on all screen sizes */
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--navy-dark);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#mobile-menu.open {
  display: flex !important;   /* only shown when JS adds .open class */
  flex-direction: column;
}

#mobile-menu-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.5rem 2rem 3rem;
}

#mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 1.2rem;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

#mobile-menu nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

#mobile-menu nav ul li {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

#mobile-menu nav ul li a {
  display: block;
  padding: 1.1rem 0.5rem;
  color: var(--white);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s, padding-left 0.2s;
}

#mobile-menu nav ul li a:hover,
#mobile-menu nav ul li a:active {
  color: var(--gold);
  padding-left: 1rem;
}

.mobile-menu-cta {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu-phone {
  display: block;
  margin-top: 1rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 1rem;
  text-align: center;
}

.mobile-menu-phone:hover { color: var(--gold); }

/* ── Nav backdrop for mobile menu ── */
#mobile-menu-backdrop {
  display: none !important;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 299;
  backdrop-filter: blur(2px);
}
#mobile-menu-backdrop.open { display: block !important; }


/* ── Homepage industries preview — stack on mobile ── */
#industries-preview-grid {
  grid-template-columns: 1fr auto;
}

@media (max-width: 700px) {
  #industries-preview-grid {
    grid-template-columns: 1fr !important;
  }
  #industries-preview-grid > div:last-child {
    width: 100% !important;
    min-width: 0 !important;
  }
}
