/* ============================================================
   iWoman Digital — Brand-Aligned Stylesheet
   Brand Palette (matching iWoman.tv):
     Deep Black:    #0a0a0a
     Rich Charcoal: #141414
     Dark Navy:     #0d1117
     iWoman Pink:   #f05c75  (primary accent — rgb 240,92,117)
     Pink Light:    #f47f93  (hover/light variant)
     Pink Dark:     #c0446b  (dark/pressed variant)
     White:         #f5f5f5
     Muted Grey:    #9a9a9a
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* ─── CSS Variables ─────────────────────────────────────── */
:root {
  --black:        #0a0a0a;
  --charcoal:     #141414;
  --dark-navy:    #0d1117;
  --dark-section: #111111;
  --gold:         #f05c75;
  --gold-light:   #f47f93;
  --gold-dark:    #c0446b;
  --rose:         #f05c75;
  --rose-light:   #f47f93;
  --white:        #f5f5f5;
  --grey:         #9a9a9a;
  --grey-light:   #cccccc;
  --border:       rgba(240,92,117,0.25);
  --card-bg:      rgba(255,255,255,0.04);
  --transition:   0.3s ease;
}

/* ─── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--black);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

img { max-width: 100%; display: block; }

ul { list-style: none; }

/* ─── Typography ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }

.eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--grey-light);
  max-width: 600px;
  line-height: 1.8;
}

/* ─── Gold Gradient Text ────────────────────────────────── */
.gold-text {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Layout ─────────────────────────────────────────────  */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section-dark {
  background-color: var(--dark-section);
}

.section-navy {
  background-color: var(--dark-navy);
}

.section-center {
  text-align: center;
}

.section-center .section-subtitle {
  margin: 0 auto;
}

/* ─── Gold Divider ──────────────────────────────────────── */
.gold-rule {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 1.25rem 0 2rem;
  border: none;
}

.gold-rule.center { margin-left: auto; margin-right: auto; }

/* ─── Buttons ────────────────────────────────────────────  */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border-radius: 2px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  color: var(--white);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold));
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240,92,117,0.45);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240,92,117,0.35);
}

.btn-rose {
  background: linear-gradient(135deg, var(--rose), var(--rose-light));
  color: var(--white);
}

.btn-rose:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240,92,117,0.45);
  color: var(--white);
}

/* ─── Navigation ─────────────────────────────────────────  */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

#navbar.scrolled {
  background: rgba(10,10,10,0.97);
  padding: 0.75rem 0;
  box-shadow: 0 2px 30px rgba(0,0,0,0.6);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav-logo .logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.05em;
  flex-shrink: 0;
}

.nav-logo .logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--white);
  line-height: 1.1;
}

.nav-logo .logo-text span {
  color: var(--gold);
}

.nav-logo .logo-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
  display: block;
  margin-top: 0.1rem;
}

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

.nav-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-light);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  margin-left: 1rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  outline: none;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background var(--transition);
}

.hamburger:hover { background: rgba(255,255,255,0.06); }

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  border-radius: 2px;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Hero ───────────────────────────────────────────────  */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--black);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(240,92,117,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(240,92,117,0.05) 0%, transparent 60%),
    linear-gradient(135deg, #0a0a0a 0%, #0d1117 60%, #0a0a0a 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(240,92,117,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,92,117,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 8rem 0 6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(240,92,117,0.1);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  margin-bottom: 1.5rem;
}

.hero-badge span {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--grey-light);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.hero-stat .num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.hero-stat .label {
  font-size: 0.75rem;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.08em;
  color: var(--grey);
  margin-top: 0.3rem;
  text-transform: uppercase;
}

/* Hero Visual */
.hero-visual {
  position: relative;
}

.hero-card-stack {
  position: relative;
  padding: 2rem;
}

.hero-card-stack::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(240,92,117,0.15), transparent 60%);
  border: 1px solid var(--border);
}

.hero-main-card {
  background: var(--charcoal);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.hero-main-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.service-tag {
  background: rgba(240,92,117,0.1);
  border: 1px solid rgba(240,92,117,0.2);
  border-radius: 100px;
  padding: 0.3rem 0.8rem;
  font-size: 0.72rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gold);
}

/* ─── Cards ──────────────────────────────────────────────  */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(240,92,117,0.5);
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
}

.card:hover::before { opacity: 1; }

.card-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(240,92,117,0.15), rgba(240,92,117,0.05));
  border: 1px solid rgba(240,92,117,0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}

.card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.card p {
  color: var(--grey-light);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ─── Grid Layouts ───────────────────────────────────────  */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

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

/* ─── Intro Strip ────────────────────────────────────────  */
.intro-strip {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--charcoal);
}

.intro-strip-grid {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.intro-strip-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 200px;
}

.intro-strip-icon {
  font-size: 1.8rem;
  color: var(--gold);
  flex-shrink: 0;
}

.intro-strip-item h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.intro-strip-item p {
  font-size: 0.8rem;
  color: var(--grey);
}

/* ─── Services Preview (Homepage) ───────────────────────  */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* ─── Process Section ────────────────────────────────────  */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 2rem;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.process-step {
  text-align: center;
}

.process-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--charcoal);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  position: relative;
  z-index: 1;
  background: var(--black);
}

.process-step h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.process-step p {
  font-size: 0.85rem;
  color: var(--grey);
  line-height: 1.6;
}

/* ─── Testimonials ───────────────────────────────────────  */
.testimonial-card {
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.2;
  position: absolute;
  top: -0.5rem;
  left: 1.5rem;
  line-height: 1;
}

.testimonial-text {
  font-style: italic;
  color: var(--grey-light);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--rose));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--white);
  font-size: 0.9rem;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.testimonial-title {
  font-size: 0.78rem;
  color: var(--grey);
}

/* ─── CTA Banner ─────────────────────────────────────────  */
.cta-banner {
  background: linear-gradient(135deg, var(--dark-navy) 0%, #1a0e2a 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 0 0 2rem;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(240,92,117,0.07) 0%, transparent 70%);
}

.cta-banner h2 { margin-bottom: 1rem; position: relative; }
.cta-banner p {
  color: var(--grey-light);
  max-width: 520px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  position: relative;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ─── Page Hero (inner pages) ────────────────────────────  */
.page-hero {
  padding: 10rem 0 5rem;
  background: linear-gradient(135deg, var(--black) 0%, var(--dark-navy) 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rose), var(--gold), var(--gold-light));
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 60% 50%, rgba(240,92,117,0.07), transparent 70%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.page-hero h1 { margin-bottom: 1rem; }
.page-hero p {
  font-size: 1.1rem;
  color: var(--grey-light);
  line-height: 1.8;
}

/* ─── Breadcrumb ─────────────────────────────────────────  */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.breadcrumb a { color: var(--grey); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--gold); }

/* ─── Service Detail Cards ───────────────────────────────  */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}

.service-detail:last-child { border-bottom: none; }

.service-detail.reverse { direction: rtl; }
.service-detail.reverse > * { direction: ltr; }

.service-detail-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.service-detail h3 { margin-bottom: 1rem; }

.service-detail p {
  color: var(--grey-light);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.feature-list {
  margin-top: 1.25rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--grey-light);
}

.feature-list li::before {
  content: '✦';
  color: var(--gold);
  font-size: 0.6rem;
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.service-visual {
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.service-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
}

/* ─── Service Sub-Navigation ─────────────────────────────  */
.service-subnav {
  background: var(--charcoal);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 70px;
  z-index: 100;
}

.service-subnav-links {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px; /* avoid clipping scroll shadows */
  -ms-overflow-style: none;
}

.service-subnav-links::-webkit-scrollbar { display: none; }

.service-subnav-links .capability-badge {
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─── Capability Badges ──────────────────────────────────  */
.capability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(240,92,117,0.08);
  border: 1px solid rgba(240,92,117,0.2);
  border-radius: 4px;
  padding: 0.4rem 0.9rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--gold-light);
  margin: 0.25rem;
}

/* ─── Team Cards ─────────────────────────────────────────  */
.team-card {
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  transition: transform var(--transition);
}

.team-card:hover { transform: translateY(-4px); }

.team-avatar {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--dark-navy), var(--charcoal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  color: var(--gold);
  border-bottom: 1px solid var(--border);
}

.team-info {
  padding: 1.5rem;
}

.team-name {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.team-title {
  font-size: 0.8rem;
  color: var(--gold);
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.team-bio {
  font-size: 0.85rem;
  color: var(--grey);
  line-height: 1.6;
}

/* ─── Values Grid ────────────────────────────────────────  */
.value-item {
  padding: 1.75rem;
  border-left: 2px solid var(--gold);
  background: rgba(240,92,117,0.04);
  border-radius: 0 8px 8px 0;
}

.value-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: rgba(240,92,117,0.3);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.value-item h4 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.value-item p {
  font-size: 0.85rem;
  color: var(--grey);
  line-height: 1.6;
}

/* ─── Accordion (FAQ) ────────────────────────────────────  */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color var(--transition);
}

.accordion-item.open {
  border-color: rgba(240,92,117,0.5);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  background: var(--charcoal);
  transition: background var(--transition);
}

.accordion-header:hover { background: rgba(255,255,255,0.05); }

.accordion-header h4 {
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.accordion-icon {
  color: var(--gold);
  font-size: 1.2rem;
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 1rem;
}

.accordion-item.open .accordion-icon { transform: rotate(45deg); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding var(--transition);
  background: var(--dark-section);
}

.accordion-body.open {
  max-height: 400px;
  padding: 1.5rem;
}

.accordion-body p {
  color: var(--grey-light);
  font-size: 0.92rem;
  line-height: 1.8;
}

/* ─── Contact Form ───────────────────────────────────────  */
.contact-form {
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--rose), var(--gold), var(--gold-light));
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-light);
  margin-bottom: 0.5rem;
}

input, select, textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 0.85rem 1rem;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: border-color var(--transition);
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  background: rgba(240,92,117,0.05);
}

input::placeholder, textarea::placeholder { color: var(--grey); }

select option { background: var(--charcoal); color: var(--white); }

textarea { resize: vertical; min-height: 120px; }

.form-note {
  font-size: 0.78rem;
  color: var(--grey);
  margin-top: 1rem;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form-success .check-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* ─── Contact Info Cards ─────────────────────────────────  */
.contact-info-card {
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-icon {
  font-size: 1.5rem;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.contact-info-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 0.3rem;
}

.contact-info-value {
  font-size: 0.95rem;
  color: var(--white);
}

/* ─── Certifications / Socials ───────────────────────────  */
.cert-badge {
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: border-color var(--transition);
}

.cert-badge:hover { border-color: var(--gold); }

.cert-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.cert-badge h4 {
  font-size: 0.85rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.cert-badge p {
  font-size: 0.75rem;
  color: var(--grey);
}

/* ─── Partnerships / Differentiators ────────────────────  */
.diff-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.diff-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(240,92,117,0.15), transparent);
  border: 1px solid rgba(240,92,117,0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.diff-body h4 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.diff-body p {
  font-size: 0.87rem;
  color: var(--grey);
  line-height: 1.6;
}

/* ─── Stats Bar ──────────────────────────────────────────  */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.stat-cell {
  padding: 2.5rem 2rem;
  text-align: center;
  border-right: 1px solid var(--border);
  position: relative;
}

.stat-cell:last-child { border-right: none; }

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ─── Footer ─────────────────────────────────────────────  */
footer {
  background: var(--charcoal);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.footer-brand h3 span { color: var(--gold); }

.footer-tagline {
  font-size: 0.8rem;
  color: var(--grey);
  margin-bottom: 1.25rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h5 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--grey);
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--grey);
}

.footer-copy a { color: var(--gold); }

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--grey);
  transition: all var(--transition);
  text-decoration: none;
}

.social-link:hover {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

/* ─── Scroll Animations ──────────────────────────────────  */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ─── Utility ────────────────────────────────────────────  */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.text-gold { color: var(--gold); }
.text-grey { color: var(--grey); }
.text-rose { color: var(--rose); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Mobile-First Breakpoints
   ─ 1024px  Tablet landscape
   ─  768px  Tablet portrait / large phone
   ─  480px  Small phone
   ═══════════════════════════════════════════════════════════ */

/* ─── Mobile Menu Overlay ────────────────────────────────  */
.mobile-menu {
  /* Uses visibility + opacity so CSS transition works (display:none can't animate) */
  display: flex;               /* always flex — hidden via visibility/opacity */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(10,10,10,0.97);
  gap: 0;
  padding: 2rem 1.5rem;
  overflow-y: auto;
  /* start off-screen to the right, invisible */
  transform: translateX(100%);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1),
              opacity   0.35s cubic-bezier(0.4,0,0.2,1),
              visibility 0.35s;
  /* Only show the overlay on mobile — on desktop it must stay hidden no matter what */
  /* Visibility on desktop is enforced by the media query below */
}

.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: 1px solid var(--border);
  color: var(--white);
  font-size: 1.2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  line-height: 1;
}

.mobile-menu-close:hover {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

.mobile-menu-logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
  color: var(--white);
  margin-bottom: 2.5rem;
}

.mobile-menu-logo span { color: var(--gold); }

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 320px;
}

.mobile-menu-links a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-light);
  text-decoration: none;
  padding: 1rem 0;
  width: 100%;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color var(--transition);
}

.mobile-menu-links a:first-child { border-top: 1px solid rgba(255,255,255,0.07); }

.mobile-menu-links a:hover,
.mobile-menu-links a.active { color: var(--gold); }

.mobile-menu-cta {
  margin-top: 2rem;
  width: 100%;
  max-width: 320px;
  justify-content: center;
  font-size: 0.82rem;
}

/* ─── Tablet Landscape ── 1024px ─────────────────────────  */
@media (max-width: 1024px) {
  /* Hero */
  .hero-content {
    grid-template-columns: 1fr;
    padding: 7rem 0 5rem;
  }
  .hero-visual { display: none; }
  .hero-desc { max-width: 100%; }

  /* Grids */
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  /* Stats bar  →  2 columns */
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-child(3) { border-top: 1px solid var(--border); }
  .stat-cell:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }

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

  /* Process */
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }

  /* Capabilities table responsiveness */
  .capabilities-table { overflow-x: auto; }
}

/* ─── Ensure mobile-menu never shows on desktop ─────────── */
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ─── Tablet Portrait / Large Phone ── 768px ─────────────  */
@media (max-width: 768px) {
  /* Base spacing */
  .section { padding: 3.5rem 0; }
  .container { padding: 0 1.25rem; }

  /* ── Sticky sub-nav: scroll horizontally on mobile ──── */
  .service-subnav { top: 60px; }
  .service-subnav-links {
    flex-wrap: nowrap;
    white-space: nowrap;
  }
  .service-subnav-links .capability-badge {
    flex-shrink: 0;
  }

  /* ── Navbar ─────────────────────────── */
  .nav-container { padding: 0 1rem; }
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .hamburger { display: flex; }

  /* ── Hero ───────────────────────────── */
  .hero-content {
    padding: 7rem 0 4rem;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 2rem;
    margin-top: 2rem;
  }
  .hero-badge { margin-left: auto; margin-right: auto; }

  /* ── Eyebrow / section headers ──────── */
  .section-center .section-subtitle { font-size: 0.95rem; }

  /* ── Grids ──────────────────────────── */
  .grid-3       { grid-template-columns: 1fr; }
  .grid-2       { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }

  /* ── Service Detail (inner pages) ───── */
  .service-detail {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 0;
  }
  .service-detail.reverse { direction: ltr; }

  /* ── Stats bar ──────────────────────── */
  .stats-bar { grid-template-columns: 1fr 1fr; }

  /* ── Grid 4 → 2 cols at 768 ─────────── */
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

  /* ── Forms ──────────────────────────── */
  .rfp-form { padding: 2rem 1.25rem; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 2rem 1.25rem; }

  /* ── CTA Banner ─────────────────────── */
  .cta-banner { padding: 2.5rem 1.5rem; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 320px; justify-content: center; }

  /* ── Page Hero (inner pages) ────────── */
  .page-hero { padding: 7rem 0 3rem; }
  .page-hero h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); }

  /* ── Footer ─────────────────────────── */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .footer-tagline { max-width: 100%; }

  /* ── Process ─────────────────────────── */
  .process-steps { grid-template-columns: 1fr; }
  .process-steps::before { display: none; }

  /* ── Diff items ─────────────────────── */
  .diff-item { flex-direction: row; }

  /* ── Team ───────────────────────────── */
  .team-avatar { height: 160px; }

  /* ── Intro strip ─────────────────────── */
  .intro-strip-grid { flex-direction: column; gap: 1.5rem; }
  .intro-strip-item { min-width: unset; }

  /* ── Service tags (chips) ─────────────── */
  .service-tags { gap: 0.4rem; }
  .service-tag  { font-size: 0.7rem; padding: 0.3rem 0.6rem; }

  /* ── Service visual box ──────────────── */
  .service-visual { padding: 1.5rem; }

  /* ── Cert badges ─────────────────────── */
  .cert-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 1rem !important; }

  /* ── Values grid ─────────────────────── */
  .values-grid { grid-template-columns: 1fr; }

  /* ── Portfolio filter bar ─────────────── */
  .filter-bar { flex-wrap: wrap; gap: 0.5rem; }
  .filter-btn  { font-size: 0.72rem; padding: 0.3rem 0.75rem; }

  /* ── Testimonials ─────────────────────── */
  .testimonials-grid { grid-template-columns: 1fr; }

  /* ── RFP service-tags checkbox row ─────── */
  .service-tags-selector { gap: 0.4rem; }
  .service-tag-label { font-size: 0.72rem; }
}

/* ─── Small Phone ── 480px ───────────────────────────────  */
@media (max-width: 480px) {
  /* Tighten padding */
  .container { padding: 0 1rem; }
  .section   { padding: 3rem 0; }

  /* Typography scale */
  h1 { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  h2 { font-size: clamp(1.4rem, 6vw, 2rem); }

  /* Nav logo — shorten to just mark + name on small screens */
  .nav-logo .logo-sub { display: none; }

  /* Grid-4 collapses to 1 on tiny screens */
  .grid-4 { grid-template-columns: 1fr; }

  /* Hero */
  .hero-content { padding: 6rem 0 3rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 1rem; }
  .hero-stat .num { font-size: 1.6rem; }

  /* Cards */
  .card { padding: 1.5rem; }
  .cta-banner { padding: 2rem 1rem; }
  .contact-form { padding: 1.5rem 1rem; }
  .service-visual { padding: 1.5rem; }

  /* Stats bar → stack */
  .stats-bar { grid-template-columns: 1fr; border: none; gap: 1px; }
  .stat-cell {
    border-right: none !important;
    border-top: none !important;
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 0.5rem;
  }

  /* Footer */
  .footer-grid { gap: 1.5rem; }
  .footer-bottom { gap: 0.5rem; }

  /* Buttons → full width stacked in hero CTA */
  .hero-actions .btn { text-align: center; }

  /* Capabilities nav bar wrap */
  .capability-badge { font-size: 0.68rem; padding: 0.35rem 0.65rem; }

  /* Page hero */
  .page-hero { padding: 6rem 0 2.5rem; }

  /* Accordion — tighter */
  .accordion-header { padding: 1rem 1.25rem; }
  .accordion-header h4 { font-size: 0.88rem; }
}

/* ─── Case Study Cards (portfolio.html) ─────────────────── */
.case-study-card {
  background: var(--charcoal);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.case-study-header {
  height: 3px;
  width: 100%;
}

.case-study-body {
  padding: 2.5rem 3rem;
  border-bottom: 1px solid var(--border);
}

.case-study-flex {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.case-study-text {
  flex: 1;
  min-width: 280px;
}

.case-study-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.case-study-desc {
  color: var(--grey-light);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 600px;
}

.case-study-stat-box {
  background: rgba(240,92,117,0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  min-width: 200px;
  text-align: center;
  flex-shrink: 0;
}

.case-study-stat-big {
  font-size: 2.5rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--gold);
}

.case-study-stat-med {
  font-size: 2rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--gold-light);
  margin-top: 0.75rem;
}

.case-study-stat-label {
  font-size: 0.72rem;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.08em;
  color: var(--grey);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.case-study-meta {
  padding: 2rem 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
}

.case-study-meta-label {
  font-size: 0.72rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.case-study-meta-value {
  font-size: 0.9rem;
  color: var(--white);
}

/* ═══════════════════════════════════════════════════════════
   COMPREHENSIVE MOBILE FIXES
   Overrides inline styles and layout patterns that break on
   mobile. Covers all 10 pages systematically.
   Target: ≤ 768px (applied on top of breakpoint above)
   ═══════════════════════════════════════════════════════════ */

/* ─── Global: kill any accidental horizontal overflow ──────  */
@media (max-width: 768px) {

  /* ── Force all grid-2 gaps to collapse on mobile ──────── */
  .grid-2 {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* ── All inline flex rows with justify-content:space-between
       (business hours, etc.) should wrap ──────────────────── */
  [style*="justify-content:space-between"],
  [style*="justify-content: space-between"] {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  /* ── All inline style gap:5rem / gap:4rem on grids ─────── */
  [style*="gap:5rem"],
  [style*="gap: 5rem"],
  [style*="gap:4rem"],
  [style*="gap: 4rem"] {
    gap: 2rem !important;
  }

  /* ── Hero visual card (hidden on mobile already via CSS,
       but ensure no overflow) ──────────────────────────────  */
  .hero-visual { display: none !important; }

  /* ─────────────────────────────────────────────────────────
     INDEX.HTML — specific overrides
     ───────────────────────────────────────────────────────── */

  /* Process steps mini-grid inside .service-visual ───────── */
  .service-visual .process-steps,
  [style*="grid-template-columns: repeat(2,1fr)"],
  [style*="grid-template-columns:repeat(2,1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* ─────────────────────────────────────────────────────────
     PORTFOLIO.HTML — case study card overrides
     ───────────────────────────────────────────────────────── */

  /* Case study card body and meta — reduce padding on mobile */
  .case-study-body { padding: 1.25rem 1.25rem; }
  .case-study-meta { padding: 1rem 1.25rem; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

  /* The flex row inside each case study card — stack on mobile */
  .case-study-flex { flex-direction: column; gap: 1rem; }

  /* Remove min-width constraint on mobile */
  .case-study-text { min-width: 0; width: 100%; }

  /* Stat box full width on mobile */
  .case-study-stat-box { min-width: 0; width: 100%; }

  /* Stat number font sizes */
  .case-study-stat-big { font-size: 2rem; }
  .case-study-stat-med { font-size: 1.6rem; }

  /* Case study older inline padding overrides */
  [style*="padding:2.5rem 3rem"],
  [style*="padding: 2.5rem 3rem"] {
    padding: 1.25rem !important;
  }
  [style*="padding:2rem 3rem"],
  [style*="padding: 2rem 3rem"] {
    padding: 1rem !important;
  }

  /* ─────────────────────────────────────────────────────────
     CAPABILITIES.HTML — inline table overflow fix
     ───────────────────────────────────────────────────────── */

  /* The business profile table — make it scroll horizontally if needed */
  table {
    width: 100%;
    display: table;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    word-break: break-word;
  }

  /* Table cell label col — shrink and wrap on tiny screens */
  table td:first-child {
    width: 40% !important;
    padding-right: 0.5rem;
    font-size: 0.7rem !important;
    letter-spacing: 0.04em !important;
  }

  table td {
    font-size: 0.82rem !important;
    padding: 0.65rem 0 !important;
    vertical-align: top;
  }

  /* ─────────────────────────────────────────────────────────
     CAPABILITIES / GOVERNMENT — cert-badge 2-col already set,
     but also fix inline grid-2 cert area
     ───────────────────────────────────────────────────────── */

  /* Certifications 2-col grid that's inside a grid-2 col */
  .cert-badge { padding: 1rem; }
  .cert-icon { font-size: 1.5rem; }

  /* ─────────────────────────────────────────────────────────
     GOVERNMENT.HTML — service visual flex items (contract types
     and state/local items) that use display:flex align:center
     ───────────────────────────────────────────────────────── */

  .service-visual [style*="display:flex; align-items:center; gap:1rem"] {
    gap: 0.75rem !important;
  }

  /* ─────────────────────────────────────────────────────────
     CONTACT.HTML — business hours flex row
     ───────────────────────────────────────────────────────── */

  /* Business hours rows: day vs time should stay side-by-side
     but wrap gracefully */
  [style*="display:flex; justify-content:space-between; margin-bottom"] {
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 0.2rem;
  }

  /* Contact info cards */
  .contact-info-card {
    padding: 0.85rem 1rem;
  }

  /* ─────────────────────────────────────────────────────────
     RFP.HTML — certification mini-grid (1fr 1fr) inline
     ───────────────────────────────────────────────────────── */

  [style*="display:grid; grid-template-columns:1fr 1fr; gap:0.75rem"] {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
  }

  /* RFP side panel process steps box */
  [style*="grid-template-columns:1fr; margin-top:0.5rem"] {
    margin-top: 0 !important;
  }

  /* ─────────────────────────────────────────────────────────
     FAQ.HTML — two column layout to stack
     ───────────────────────────────────────────────────────── */

  /* The faq two-col layout (already handled by .grid-2 override
     above, but the faq uses a plain div.grid-2 so confirm) */
  .accordion-item + .accordion-item { margin-top: 0; }

  /* FAQ category headers */
  .fade-up[style*="margin-bottom:3rem"] { margin-bottom: 2rem !important; }

  /* ─────────────────────────────────────────────────────────
     ABOUT.HTML — iWoman TV service-visual centered padding
     ───────────────────────────────────────────────────────── */

  .service-visual[style*="text-align:center; padding:3rem"] {
    padding: 1.5rem !important;
  }

  /* iWoman TV tag row — already flex-wrap:wrap from service-tags */

  /* ─────────────────────────────────────────────────────────
     SERVICES.HTML — service-detail section page-hero h1 break
     ───────────────────────────────────────────────────────── */

  /* Prevent forced <br> from creating weird whitespace */
  .page-hero h1 br { display: none; }
  .hero-title br { display: none; }

  /* ─────────────────────────────────────────────────────────
     ALL PAGES — page hero CTA buttons in hero
     ───────────────────────────────────────────────────────── */

  .page-hero-content [style*="display:flex; gap:1rem; flex-wrap:wrap"] {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }

  .page-hero-content .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
  }

  /* ─────────────────────────────────────────────────────────
     ALL PAGES — footer
     ───────────────────────────────────────────────────────── */

  .footer-copy { font-size: 0.75rem; }
  .social-links { gap: 0.5rem; }

  /* ─────────────────────────────────────────────────────────
     INTRO STRIP — wrap on small screens
     ───────────────────────────────────────────────────────── */

  .intro-strip-grid { gap: 1rem; }
  .intro-strip-item { padding: 0.75rem 0; }
  .intro-strip-icon { font-size: 1.4rem; }

  /* ─────────────────────────────────────────────────────────
     SECTION TITLES — prevent overflow
     ───────────────────────────────────────────────────────── */

  .section-title { word-break: break-word; }
  h1, h2, h3 { overflow-wrap: break-word; word-break: break-word; }

  /* ─────────────────────────────────────────────────────────
     STATS BAR (portfolio page uses .stats-bar inside .intro-strip)
     ───────────────────────────────────────────────────────── */

  .intro-strip .stats-bar {
    grid-template-columns: 1fr 1fr;
    border: none;
    gap: 0;
  }

  /* ─────────────────────────────────────────────────────────
     BUTTONS — prevent overflow in any context
     ───────────────────────────────────────────────────────── */

  .btn {
    white-space: normal;
    word-break: break-word;
  }
}

/* ─── Extra-small phone 380px ────────────────────────────  */
@media (max-width: 380px) {
  /* Case study metadata: 1 col on very tiny screens */
  [style*="grid-template-columns:repeat(auto-fit,minmax(180px,1fr))"] {
    grid-template-columns: 1fr !important;
  }

  /* Cert mini-grid already 1fr above */

  /* Navigation logo — hide sub even more aggressively */
  .nav-logo .logo-mark { width: 30px; height: 30px; font-size: 0.85rem; }
  .nav-logo .logo-text { font-size: 0.9rem; }

  /* Hero badge */
  .hero-badge span { font-size: 0.68rem; }

  /* Buttons */
  .btn { padding: 0.7rem 1.2rem; font-size: 0.72rem; }
  .btn-gold, .btn-outline { font-size: 0.72rem; }
}
