/*
Theme Name: Base Moderne
Theme URI: https://basemoderne.com
Author: Base Moderne IT Consulting
Author URI: https://basemoderne.com
Description: A dark, cinematic WordPress theme for Base Moderne IT Consulting — WCAG 2.1 AA accessible, mobile-optimized for iOS and Android.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: base-moderne
Tags: dark, minimal, business, accessible, wcag, mobile-friendly, custom-logo
*/

/* ============================================================
   CSS VARIABLES
   ============================================================
   All foreground/background color pairs meet WCAG 2.1 AA
   minimum contrast ratio of 4.5:1 for normal text.

   Verified contrast ratios (on darkest relevant bg):
   --color-primary  #f5f0e8 on #000 = 18.51:1  ✓
   --color-accent   #c8b89a on #000 = 10.78:1  ✓
   --color-secondary #9c9c9c on #000 = 7.65:1  ✓
   --color-muted    #888888 on #000 =  5.92:1  ✓  (FIX: was #4a4a4a = 2.37:1 FAIL)
   --color-muted    #888888 on #0a0a0a = 5.58:1 ✓
   --color-muted    #888888 on #111 =  5.33:1  ✓
   ============================================================ */
:root {
  --color-bg:        #000000;
  --color-surface:   #0a0a0a;
  --color-surface2:  #111111;
  --color-border:    #2a2a2a;
  --color-muted:     #888888;  /* WCAG FIX: was #4a4a4a (2.37:1 FAIL) */
  --color-secondary: #9c9c9c;
  --color-primary:   #f5f0e8;
  --color-accent:    #c8b89a;
  --color-white:     #ffffff;
  --color-focus:     #c8b89a;  /* focus ring color — visible on all dark surfaces */
  --color-error:     #ff9b9b;  /* error state — sufficient contrast on dark */

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', 'Helvetica Neue', sans-serif;
  --font-mono:    'Space Mono', monospace;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition:    0.4s var(--ease-out-expo);

  /* WCAG 2.5.5 minimum touch target */
  --touch-target: 44px;

  --max-width: 1280px;
  --gutter: clamp(1.25rem, 5vw, 5rem);
}

/* ============================================================
   REDUCED MOTION — WCAG 2.3.3 / prefers-reduced-motion
   All animations disabled for users who request it
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__eyebrow,
  .hero__heading,
  .hero__sub,
  .hero__cta,
  .hero__scroll { opacity: 1 !important; transform: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  #parallax-logo { transform: none !important; }
  .scroll-line { animation: none !important; }
}

/* ============================================================
   HIGH CONTRAST MODE — WCAG 1.4.11
   ============================================================ */
@media (forced-colors: active) {
  .btn, .nav-contact-btn, .focus-card, .service-card {
    border: 2px solid ButtonText;
  }
  :focus-visible { outline: 3px solid Highlight !important; }
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Prevent text size change on device rotation — WCAG 1.3.4 */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  touch-action: pan-x pan-y;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   SKIP LINK — WCAG 2.4.1
   First focusable element. Visually hidden until focused.
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  background: var(--color-primary);
  color: var(--color-bg);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--color-bg);
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

/* ============================================================
   FOCUS STYLES — WCAG 2.4.7 / 2.4.11
   All interactive elements must have a visible focus indicator.
   3px gold ring with offset — visible on dark and light surfaces.
   ============================================================ */
:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
  border-radius: 2px;
}

button:focus-visible,
.btn:focus-visible,
.menu-toggle:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 4px;
  box-shadow: 0 0 0 5px rgba(200, 184, 154, 0.2);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-focus) !important;
  outline-offset: 0;
  border-color: var(--color-accent) !important;
  box-shadow: 0 0 0 3px rgba(200, 184, 154, 0.18);
}

/* ============================================================
   TYPOGRAPHY — WCAG 1.4.4 / 1.4.12
   All sizes in rem/clamp. No px-locked sizes that block resize.
   Minimum 14px (0.875rem) for secondary/label text.
   Body text minimum 16px.
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.375rem, 8vw, 6.5rem); }
h2 { font-size: clamp(1.875rem, 5vw, 4rem); }
h3 { font-size: clamp(1.3rem, 3vw, 2.2rem); }
h4 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Body text: 1.05rem = 16.8px on 16px root — above minimum */
p { color: var(--color-secondary); font-size: 1.05rem; line-height: 1.7; }

/* Label: 0.875rem = 14px — WCAG minimum for secondary/label text */
.label {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section       { padding-block: clamp(4rem, 12vw, 10rem); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 5rem); }
.divider       { width: 100%; height: 1px; background: var(--color-border); }

/* ============================================================
   BUTTONS — WCAG 2.5.5 (Touch Target: 44×44px minimum)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: var(--touch-target);
  padding: 0 2.2rem;
  border: 2px solid var(--color-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  -webkit-tap-highlight-color: rgba(200, 184, 154, 0.15);
  tap-highlight-color: rgba(200, 184, 154, 0.15);
  -webkit-user-select: none;
  user-select: none;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-primary);
  transform: translateX(-105%);
  transition: transform var(--transition);
  z-index: -1;
}

.btn:hover { color: var(--color-bg); }
.btn:hover::after { transform: translateX(0); }

.btn--solid { background: var(--color-primary); color: var(--color-bg); }
.btn--solid:hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-bg); }
.btn--solid::after { display: none; }

/* ============================================================
   NAVIGATION — WCAG 4.1.2, 2.4.3, 2.4.4, 2.5.5
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem var(--gutter);
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.5s ease, backdrop-filter 0.5s ease;
  isolation: auto;
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-height: var(--touch-target);
}

.site-logo > a:first-child {
  display: flex;
  align-items: center;
  min-width: var(--touch-target);
  min-height: var(--touch-target);
  -webkit-tap-highlight-color: transparent;
}

.site-logo img {
  width: 55px;
  height: auto;
  /*
   * Symbol file has black bg + cream mark.
   * mix-blend-mode: screen makes black transparent on dark backgrounds,
   * showing only the cream symbol strokes — matches the page bg perfectly.
   */
  mix-blend-mode: screen;
  -webkit-mix-blend-mode: screen;
  opacity: 0.92;
}

.site-logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1;
}

.site-logo-text span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-top: 3px;
}

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

.main-nav a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-secondary);
  transition: color var(--transition);
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-target);
  padding-inline: 0.25rem;
  -webkit-tap-highlight-color: rgba(200, 184, 154, 0.15);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 0.25rem;
  right: 0.25rem;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.main-nav a:hover,
.main-nav a.active,
.main-nav a[aria-current="page"] {
  color: var(--color-primary);
}

.main-nav a:hover::after,
.main-nav a.active::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* Contact nav button — border meets 3:1 WCAG 1.4.11 UI component */
.nav-contact-btn {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-target);
  padding-inline: 1.25rem;
  border: 2px solid var(--color-secondary) !important;
  font-family: var(--font-mono);
  font-size: 0.78rem !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary) !important;
  transition: border-color var(--transition), background var(--transition), color var(--transition) !important;
  -webkit-tap-highlight-color: rgba(200, 184, 154, 0.15);
}

.nav-contact-btn:hover,
.nav-contact-btn:focus-visible {
  background: var(--color-primary);
  color: var(--color-bg) !important;
  border-color: var(--color-primary) !important;
}
.nav-contact-btn::after { display: none !important; }

/* Mobile hamburger — WCAG 2.5.5: exactly 44×44px */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: none;
  border: 2px solid transparent;
  cursor: pointer;
  width: var(--touch-target);
  height: var(--touch-target);
  padding: 0;
  -webkit-tap-highlight-color: rgba(200, 184, 154, 0.15);
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-primary);
  transition: var(--transition);
  pointer-events: none;
}

/* ============================================================
   HERO — HOME PAGE
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: -webkit-fill-available; /* iOS Safari height fix */
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg-logo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 0;
}

.hero__bg-logo img {
  /*
   * The symbol file has a black background with a cream mark.
   * mix-blend-mode: screen makes pure black (#000) fully transparent,
   * revealing only the luminous symbol strokes — no filter inversion needed.
   * The symbol's native cream color (#f5f0e8) matches our --color-primary.
   * Opacity 0.38 keeps it atmospheric without competing with text.
   */
  width: min(72vw, 560px);
  height: auto;
  opacity: 0.2;
  mix-blend-mode: screen;
  -webkit-mix-blend-mode: screen;
  will-change: transform;
  /* No filter — preserve the original warm cream tone of the mark */
}

/* ============================================================
   HERO VIDEO — left side with right-edge fade
   ============================================================ */
.hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;           /* how much of the hero width the video occupies */
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;    /* fills the container, crops if needed */
  object-position: center;
  display: block;
  opacity: 0.4;  
  /*
   * Fade effect — starts fully opaque on the far left,
   * fades to transparent on the right edge where text begins.
   * The mask-image creates the gradient fade.
   */
	
  -webkit-mask-image: linear-gradient(
    to right,
	black 0%,           /* fully visible on left */
    black 40%,          /* holds full opacity through middle */
    transparent 100%    /* fully faded by right edge */
  );
  mask-image: linear-gradient(
    to right,
    black 0%,
    black 40%,
    transparent 100%
  );
}

/*
 * Radial gradient overlay centered on the symbol.
 * Creates a subtle dark vignette directly behind the text column
 * so heading/body text stays at full WCAG contrast even over the symbol.
 * The symbol bleeds through at the edges where no text sits.
 */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    ellipse 55% 60% at 38% 52%,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.45) 45%,
    transparent 100%
  );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 8rem;
  padding-bottom: 6rem;
  width: 100%;
}

.hero__eyebrow {
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 0.2s forwards;
}

.hero__heading {
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 0.4s forwards;
}

.hero__heading {
  font-size: clamp(2rem, 5.5vw, 4.5rem);  /* adjust these three values */
}
.hero__heading em { font-style: italic; color: var(--color-accent); }

.hero__sub {
  max-width: 540px;
  margin-bottom: 3rem;
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 0.6s forwards;
  /*color: var(--color-primary);  /* #f5f0e8 warm cream — brightest option */

}

.hero__cta {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 0.8s forwards;
}

/* Decorative scroll indicator — aria-hidden="true" in HTML */
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
  opacity: 0;
  animation: fadeIn 1s ease 1.2s forwards;
}

.hero__scroll span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--color-muted), transparent);
  animation: scrollPulse 2s ease infinite;
}

/* ============================================================
   HOME — INTRO STRIP
   ============================================================ */
.intro-strip {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding-block: 3.5rem;
}
/***
  /* Background image 
  background-image: url('https://basemoderneconsulting.com/wp-content/uploads/2026/04/stats-bg.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
	
/* Dark overlay — sits between image and text, keeps text legible 
.intro-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);  /* adjust this number for more/less opacity 
  z-index: 0;
}

/* Lift content above the overlay 
.intro-strip .container {
  position: relative;
  z-index: 1;
}
**/
.intro-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}

.intro-stat {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--color-border);
}
.intro-stat:last-child { border-right: none; }

.intro-stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.intro-stat__num2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1vw, .5rem);
  font-weight: 300;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.intro-stat__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ============================================================
   HOME — FOCUS SECTION
   ============================================================ */
.focus-section {
  position: relative;
  background-color: var(--color-bg); /* fallback if image fails */
  background-image: url('https://basemoderneconsulting.com/wp-content/uploads/2023/06/pexels-photo-6755144.jpeg'); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* optional — creates parallax scroll effect */
}

/* Dark overlay — keeps text fully legible over the image */
.focus-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88); /* adjust this number for more/less image visibility */
  z-index: 0;
  pointer-events: none;
}

/* Lift all content above the overlay */
.focus-section .container {
  position: relative;
  z-index: 1;
}

.focus-section__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 4rem;
}

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

.focus-card {
  background: var(--color-bg);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
}

.focus-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--color-accent), transparent);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.focus-card:hover { background: var(--color-surface); }
.focus-card:hover::before { transform: scaleX(1); }

.focus-card__icon {
  width: 48px; height: 48px;
  margin-bottom: 1.5rem;
  color: var(--color-accent);
}
.focus-card__icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1; }

.focus-card__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.focus-card h3 { font-size: 1.3rem; margin-bottom: 0.75rem; color: var(--color-primary); }

/* ============================================================
   HOME — CTA BAND
   ============================================================ */
.cta-band {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding-block: 5.5rem;
  text-align: center;
}
.cta-band h2 { margin-bottom: 1rem; }
.cta-band p  { max-width: 520px; margin-inline: auto; margin-bottom: 2.5rem; font-size: 1.1rem; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  padding-top: 9rem;
  padding-bottom: 4.5rem;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: relative;        /* add this */
  overflow: hidden;          /* add this */
}

/* Page hero video — right side, fades left */
.page-hero__video {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.page-hero__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0.6;              /* overall transparency — adjust as needed */

  /*
   * Fade direction is reversed from the home page.
   * Starts fully visible on the right, fades to transparent on the left
   * where the heading and text sit.
   */
  -webkit-mask-image: linear-gradient(
    to left,
    black 0%,                /* fully visible on right */
    black 40%,               /* holds full opacity through middle */
    transparent 100%         /* fully faded by left edge */
  );
  mask-image: linear-gradient(
    to left,
    black 0%,
    black 40%,
    transparent 100%
  );
}

/* Ensure page hero text sits above video */
.page-hero .container {
  position: relative;
  z-index: 1;
}
.page-hero__eyebrow { margin-bottom: 1rem; }
.page-hero__desc { max-width: 580px; margin-top: 1.5rem; font-size: 1.1rem; line-height: 1.8; }

/* ============================================================
   IMAGE STRIP — Home Page
   ============================================================ */
.image-strip {
  background: var(--color-bg);
}

.image-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;                        /* thin dark line between images */
}

.image-strip__item {
  overflow: hidden;
  aspect-ratio: 4 / 3;            /* consistent height across all images */
}

.image-strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;               /* crops to fill without stretching */
  display: block;
  transition: transform 0.6s var(--ease-out-expo);
}

.image-strip__item:hover img {
  transform: scale(1.04);          /* subtle zoom on hover */
}

/* Mobile — stack to single column */
@media (max-width: 768px) {
  .image-strip__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SERVICES GRID
   ============================================================ */
/* Services section background image */
.services-section {
  position: relative;
  background-color: var(--color-bg); /* fallback if image fails */
  background-image: url('https://basemoderneconsulting.com/wp-content/uploads/2026/04/stats-bg.jpeg'); /* update to your filename or full URL */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* optional parallax — remove for normal scroll */
}

/* Dark overlay — keeps service card text legible */
.services-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85); /* adjust for more/less image visibility */
  z-index: 0;
  pointer-events: none;
}

/* Lift all content above the overlay */
.services-section .container {
  position: relative;
  z-index: 1;
}

/* Prevent section stacking contexts from blocking nav overlay */
.services-section,
.about-intro,
.about-values,
.page-hero,
.contact-layout,
.focus-section {
  isolation: auto;
}
/* Keep service cards readable over the background 
.services-section .service-card {
  background: rgba(0, 0, 0, 0.55); /* semi-transparent instead of solid black 
}

.services-section .service-card:hover {
  background: rgba(10, 10, 10, 0.75); /* slightly darker on hover 
}
*/

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  margin-top: 4.5rem;
}

.service-card {
  background: var(--color-bg);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-accent), transparent);
  transform: scaleX(0);
  transition: transform 0.5s var(--ease-out-expo);
}

.service-card:hover { background: var(--color-surface); }
.service-card:hover::after { transform: scaleX(1); }

.service-card__index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.service-card__icon {
  width: 52px; height: 52px;
  margin-bottom: 1.5rem;
  color: var(--color-accent);
}
.service-card__icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.2; }

.service-card h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); margin-bottom: 1rem; color: var(--color-primary); }
.service-card p  { line-height: 1.8; max-width: 440px; }

.service-card__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.75rem; }

.tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--color-border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: border-color var(--transition), color var(--transition);
}
.service-card:hover .tag { border-color: var(--color-muted); color: var(--color-secondary); }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-intro {
  padding-top: 9rem;
  padding-bottom: 5.5rem;
  position: relative;
  overflow: hidden;
  background: transparent;
}

/* Dark overlay — keeps text legible over the image */
.about-intro::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.60);           /* adjust for more/less visibility */
  z-index: 0;
  pointer-events: none;
}

/* Lift content above overlay */
.about-intro .container {
  position: relative;
  z-index: 1;
}

.about-intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-placeholder2 {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  padding: 2.5rem;
  margin-top: 2rem;
}

.about-placeholder {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  padding: 2.5rem;
  margin-top: 2rem;
}
.about-placeholder2 .label { color: var(--color-accent); margin-bottom: 0.75rem; display: block; }
.about-placeholder2 p { font-style: italic; color: var(--color-muted); font-size: 1rem; }

.about-placeholder .label { color: var(--color-accent); margin-bottom: 0.75rem; display: block; }
.about-placeholder p { font-style: italic; color: var(--color-muted); font-size: 1rem; }

.about-values {
  border-top: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  background: transparent;
}

.about-values::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);              /* slightly darker than intro */
  z-index: 0;
  pointer-events: none;
}

.about-values .container {
  position: relative;
  z-index: 1;
}

/* Shared background wrapper — about intro + values */
.about-bg-wrapper {
  position: relative;
  background-color: var(--color-bg);
  background-image: url('https://basemoderneconsulting.com/wp-content/uploads/2026/04/BM-Photo2.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.about-values__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; margin-top: 3.5rem; }

.value-item h4 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}
.value-item p { font-size: 1rem; line-height: 1.8; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout { padding-top: 9rem; padding-bottom: 7rem; }

.contact-layout__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 2rem; }

.contact-info__desc { font-size: 1.05rem; line-height: 1.8; margin-bottom: 2.75rem; }

.contact-detail { display: flex; flex-direction: column; margin-bottom: 2.25rem; }

.contact-detail__label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.4rem;
}

.contact-detail__value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-primary);
  line-height: 1.3;
}

.contact-detail__value a {
  color: var(--color-primary);
  /* Underline required: color alone insufficient per WCAG 1.4.1 */
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(245, 240, 232, 0.35);
  transition: color var(--transition), text-decoration-color var(--transition);
}
.contact-detail__value a:hover {
  color: var(--color-accent);
  text-decoration-color: var(--color-accent);
}

.service-area {
  margin-top: 2.75rem;
  padding: 2.25rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.service-area h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.county-list { display: flex; flex-direction: column; gap: 0.75rem; }

.county-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--color-border);
  gap: 1rem;
}
.county-item:last-child { border-bottom: none; padding-bottom: 0; }
.county-name { font-family: var(--font-display); font-size: 1.15rem; color: var(--color-primary); }
.county-type {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  white-space: nowrap;
}

/* Contact Form */
.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 3rem;
}
.contact-form h3 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.contact-form > p { margin-bottom: 2.25rem; font-size: 1rem; }

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

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 0.6rem;
}

/* Required field marker — supplemental visual + text hint in HTML */
.required-marker {
  color: var(--color-accent);
  margin-left: 3px;
}

/* Input font-size: 1rem = 16px — prevents iOS auto-zoom on focus */
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--color-bg);
  border: 1px solid var(--color-secondary); /* 7.65:1 on #0a0a0a ✓ WCAG 1.4.11 */
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 1rem; /* 16px minimum — CRITICAL for iOS zoom prevention */
  font-weight: 300;
  padding: 0.85rem 1rem;
  outline: none;
  min-height: var(--touch-target);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239c9c9c' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.form-group select option { background: var(--color-bg); color: var(--color-primary); }
.form-group textarea { resize: vertical; min-height: 130px; }

/* Placeholder — WCAG 1.4.3 contrast */
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-muted); /* #888: 5.92:1 ✓ */
  opacity: 1;                /* Firefox fix */
}

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

.form-submit { margin-top: 1.75rem; }

/* Error state — not color-only: icon + text + border */
.form-field-error {
  border-color: var(--color-error) !important;
}
.form-error-msg {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-error);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-top: 0.35rem;
}
.form-error-msg::before { content: "⚠"; }

/* Success message */
.form-success {
  padding: 1.5rem 2rem;
  border: 1px solid var(--color-accent);
  border-left: 3px solid var(--color-accent);
  background: rgba(200, 184, 154, 0.06);
  margin-bottom: 2rem;
}
.form-success .label { color: var(--color-accent); margin-bottom: 0.5rem; display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding-block: 3.5rem;
  padding-bottom: max(2.25rem, env(safe-area-inset-bottom));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand .site-logo { margin-bottom: 1.25rem; }
.footer-brand .site-logo img { width: 45px; mix-blend-mode: screen; -webkit-mix-blend-mode: screen; opacity: 0.85; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 260px; padding-left: calc(30px + .5rem);}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}

.footer-col ul { display: flex; flex-direction: column; }

.footer-col ul li a {
  font-size: 0.95rem;
  color: var(--color-secondary);
  transition: color var(--transition);
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  /* Underline to distinguish links — WCAG 1.4.1 */
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(156, 156, 156, 0.3);
}
.footer-col ul li a:hover {
  color: var(--color-primary);
  text-decoration-color: var(--color-primary);
}

.footer-bottom {
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--color-muted);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 0.8; }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease-out-expo), transform 0.85s var(--ease-out-expo);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE — Mobile First Breakpoints
   Tested for: iPhone SE (375px), iPhone 14 (390px),
   iPhone 14 Pro Max (430px), Samsung Galaxy S23 (393px),
   iPad (768px), iPad Pro (1024px)
   ============================================================ */

@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 900px) {
  .focus-section__header  { grid-template-columns: 1fr; gap: 2rem; }
  .focus-section__cards   { grid-template-columns: 1fr 1fr; }
  .services-grid          { grid-template-columns: 1fr; }
  .about-intro__grid      { grid-template-columns: 1fr; gap: 3rem; }
  .contact-layout__grid   { grid-template-columns: 1fr; gap: 3.5rem; }
}

@media (max-width: 768px) {
.site-header {
  isolation: auto;       /* creates new stacking context on mobile */
  z-index: 9998;             /* lower than the nav */
}
	
  /* Mobile nav overlay */
  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 50%;
    width: 100vw;
    height: 50vh;
    height: 50dvh;          /* modern mobile browsers */
    padding-top: max(4rem, env(safe-area-inset-top));
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
    background: rgba(0, 0, 0, 0.98);
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    z-index: 9999;           /* above the header */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  }
  .main-nav.open { display: flex; }

  .main-nav a {
    font-size: 1.05rem;
    letter-spacing: 0.1em;
	min-height: 56px; /* generous tap target in full-screen menu */
    padding-inline: 2rem;
    width: 100%;
    justify-content: center;
    border-bottom: 1px solid var(--color-border);
  }
  .main-nav a::after { display: none; }

  .nav-contact-btn {
    margin: 1.5rem auto 0;
    width: calc(100% - 4rem);
    justify-content: center;
    font-size: 0.85rem !important;
    border-width: 2px !important;
  }

  .menu-toggle { display: flex; z-index: 10000; }

  /* Layout */
  .intro-strip__grid     { grid-template-columns: 1fr; }
  .intro-stat            { border-right: none; border-bottom: 1px solid var(--color-border); }
  .intro-stat:last-child { border-bottom: none; }
  .focus-section__cards  { grid-template-columns: 1fr; }
  .footer-grid           { grid-template-columns: 1fr; gap: 2rem; }
  .about-bg-wrapper {
	  background-attachment: scroll;
	  background-image: url('https://basemoderneconsulting.com/wp-content/uploads/2026/04/BM-Photo3.jpg');
	  background-size: 250%;
	  background-position: center center;
}
  .about-values__list    { grid-template-columns: 1fr; }
  .form-row              { grid-template-columns: 1fr; }
  .contact-form          { padding: 1.75rem; }
  .contact-layout        { z-index: auto; }
  .services-section      { z-index: auto; }
  .about-intro           { z-index: auto; }
  .about-values          { z-index: auto; }
  .page-hero             { z-index: auto; }
  .focus-section         { z-index: auto; }
  .focus-section {
	  background-attachment: scroll;  /* fixes iOS fixed background issue */
	  background-size: 500%;          /* reduce this number to zoom out */
	  background-position: center center;
}
	.services-section::before,
	.services-section::after,
	.about-intro::before,
	.about-values::before,
	.focus-section::before,
	.page-hero::before     { z-index: 0; }

  /* Hero */
  .hero {
	  flex-direction: column;    /* stack children vertically */
	  align-items: stretch;      /* full width children */
	  justify-content: flex-start;
	  overflow: visible;
	  height: auto;
	  min-height: 100svh;
  }
  .hero__bg-logo img     { width: 90vw; max-width: 380px; }
  .hero__bg-logo         { display: none; }   
  .hero__content {   
	  flex: 1;                   /* takes up remaining space */
	  display: flex;
	  flex-direction: column;
	  justify-content: center;
	  padding-bottom: 2rem;
	}
  .hero__cta             { flex-direction: column; align-items: flex-start; }
  .hero__cta .btn        { width: 100%; max-width: 320px; justify-content: center; }
  .page-hero__video 		 {display: none;}
/* Mobile only — video sits below hero text, fades top to bottom */
  .hero__video {
    display: block;          /* override the display: none set elsewhere */
    position: relative;      /* flows below content instead of absolute */
    width: 100%;             /* full width on mobile */
    height: 60vw;            /* proportional height — adjust as needed */
    top: auto;
    left: auto;
    margin-top: 1rem;        /* space between scroll indicator and video */
  }

  .hero__video video {
    opacity: 0.5;            /* overall video transparency on mobile */
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent 0%,        /* fully faded at top */
      black 35%,             /* fades in by this point */
      black 65%,             /* holds full opacity through middle */
      transparent 100%       /* fades out at bottom before next section */
    );
    mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      black 35%,
      black 75%,
      transparent 100%
    );
  }
	
  .hero__scroll {
	  position: relative;
	  bottom: auto;
	  left: auto;
	  transform: none;
	  margin-top: 1rem;
	  margin-bottom: -3rem;
	  align-items: center;
	  width: 100%;             /* full width so centering works */
	  display: flex;
	  flex-direction: column;
	  align-items: center;
	  z-index: 2; 
}

  /* Service cards */
  .service-card          { padding: 2.25rem 1.75rem; }
  .services-section {
    background-attachment: scroll;
    background-position: center center;
	background-size: 100%;
	background-repeat: repeat;
  }

  .services-section::before {
    background: rgba(0, 0, 0, 0.40);
  }
	
  /* Footer */
  .footer-bottom         { flex-direction: column; align-items: flex-start; }

  /* Counties */
  .county-item           { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
}

/* iPhone SE / small phones */
@media (max-width: 375px) {
  :root          { --gutter: 1rem; }
  h1             { font-size: 2.2rem; }
  h2             { font-size: 1.75rem; }
  .contact-form  { padding: 1.25rem; }
  .service-card  { padding: 1.75rem 1.25rem; }
}

/* ============================================================
   PRINT — WCAG 1.4.4
   ============================================================ */
@media print {
  .site-header, .menu-toggle, .hero__scroll, .hero__bg-logo, .cta-band { display: none; }
  body          { background: #fff; color: #000; font-size: 12pt; }
  a             { color: #000; text-decoration: underline; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #555; }
  h1, h2, h3    { page-break-after: avoid; color: #000; }
  .service-card, .focus-card { break-inside: avoid; border: 1px solid #ccc; }
  p             { color: #333; }
}
