/*
Theme Name: EFP Exterior Finish Plastering
Theme URI: https://efpflorida.com
Author: BESUAL
Author URI: https://besual.com
Description: Professional theme for Exterior Finish Plastering — Certified Commercial Stucco & EIFS Contractors in Ocala, FL.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
Text Domain: efp
*/

/* ============================================================
   DESIGN TOKENS — EFP Brand Colors (from logo)
   Blue #2E7FC1 · Charcoal #1B2A38 · Silver #6E7E8C
   ============================================================ */
:root {
  /* Brand colors — extracted from EFP logo */
  --blue:         #2E7FC1;   /* EFP letters steel blue */
  --blue-light:   #4A97D6;   /* hover / lighter tint   */
  --blue-dark:    #1D5F99;   /* pressed / dark tint    */
  --charcoal:     #1B2A38;   /* building icon dark     */
  --charcoal-dark:#0E1B28;   /* deepest bg             */
  --silver:       #6E7E8C;   /* logo text gray         */

  /* UI Neutrals */
  --white:        #FFFFFF;
  --offwhite:     #F4F7FA;   /* slightly cool bg       */
  --gray-100:     #EEF2F6;
  --gray-200:     #DDE4EC;
  --gray-500:     #8A99A8;
  --gray-800:     #2E3A46;
  --text:         #1A2530;

  /* Typography */
  --font-head: 'Oswald', sans-serif;
  --font-body: 'Nunito Sans', sans-serif;

  /* Misc */
  --radius:     4px;
  --shadow:     0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.15);
  --transition: all 0.28s ease;
  --container:  1240px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--charcoal);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h4 { font-size: 1rem; }
p  { font-size: 1rem; color: var(--gray-800); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 0.5rem;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 2rem; }
section { padding: 90px 0; }
section.tight { padding: 60px 0; }

.section-header { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section-header p { margin-top: 1rem; font-size: 1.05rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }

/* Services page alternating layout — image flips to right on odd rows */
/* Using order instead of direction:rtl so mobile stays correct */
.grid-2--reverse .svc-img-col  { order: 2; }
.grid-2--reverse .svc-text-col { order: 1; padding-right: 2rem; padding-left: 0; }
.grid-2:not(.grid-2--reverse) .svc-text-col { padding-left: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(46,127,193,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--charcoal);
  border-color: var(--white);
}
.btn-outline-dark {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-outline-dark:hover {
  background: var(--charcoal);
  color: var(--white);
}
.btn-blue-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-blue-outline:hover {
  background: var(--blue);
  color: var(--white);
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,0.09);
  transition: var(--transition);
}
#site-header.scrolled { box-shadow: 0 4px 28px rgba(0,0,0,0.14); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  gap: 1rem;
}

/* Logo */
.site-logo { flex-shrink: 0; line-height: 1; }
.site-logo a { display: block; line-height: 1; }
.site-logo img,
.site-logo .custom-logo,
.custom-logo-link img {
  height: 50px !important;
  width: auto !important;
  max-width: 200px !important;
  display: block !important;
  background: var(--white);
  padding: 4px 8px;
  border-radius: 3px;
}
.site-logo .logo-text {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
  white-space: nowrap;
}
.site-logo .logo-text span {
  display: block;
  font-size: 0.58rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.16em;
}

/* Navigation */
#primary-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: flex-end;
}
#primary-nav > ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0; padding: 0;
}
#primary-nav > ul > li { position: relative; }
#primary-nav > ul > li > a {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  padding: 8px 13px;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
  display: block;
}
#primary-nav > ul > li > a:hover { color: var(--blue); }
#primary-nav > ul > li.current-menu-item > a {
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
}

/* Header phone */
.header-phone {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.header-phone:hover { color: var(--blue); }

.nav-cta { margin-left: 0.75rem; flex-shrink: 0; }
.nav-cta.btn { padding: 11px 22px; font-size: 0.76rem; }

/* Mobile toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.menu-toggle span {
  display: block; width: 26px; height: 2px;
  background: var(--charcoal);
  transition: var(--transition);
}

/* ============================================================
   HERO SLIDER — Ken Burns + Crossfade
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--charcoal-dark);
  overflow: hidden;
  padding-top: 78px;
}

.hero-slider { position: absolute; inset: 0; z-index: 0; }

.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
  will-change: transform, opacity;
}
.hero-slide.active { opacity: 1; }

@keyframes kenburns-in    { from{transform:scale(1.00)} to{transform:scale(1.12)} }
@keyframes kenburns-zoom-tl { from{transform:scale(1.00) translate(0%,0%)} to{transform:scale(1.12) translate(-2%,-1.5%)} }
@keyframes kenburns-zoom-tr { from{transform:scale(1.00) translate(0%,0%)} to{transform:scale(1.12) translate(2%,-1.5%)} }
@keyframes kenburns-zoom-bl { from{transform:scale(1.00) translate(0%,0%)} to{transform:scale(1.12) translate(-2%,1.5%)} }
@keyframes kenburns-zoom-br { from{transform:scale(1.00) translate(0%,0%)} to{transform:scale(1.12) translate(2%,1.5%)} }

.hero-slide.active { animation: kenburns-in 22s ease-out forwards; }

/* Dark overlay — gradient left → right (text on left) */
.hero-slide::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    105deg,
    rgba(14,27,40,0.92) 0%,
    rgba(14,27,40,0.72) 45%,
    rgba(14,27,40,0.28) 100%
  );
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 740px;
  padding-bottom: 5rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--blue);
  color: var(--white);
  padding: 7px 18px;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
}
#hero h1 {
  color: var(--white);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1.4rem;
}
#hero h1 em {
  font-style: normal;
  color: var(--blue-light);
}
#hero p.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  display: flex; gap: 3rem;
  margin-top: 4rem; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.hero-stat-item .num {
  font-family: var(--font-head);
  font-size: 2rem; font-weight: 700;
  color: var(--blue-light);
}
.hero-stat-item .label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-top: 0.2rem;
}

/* Slider controls */
.hero-dots {
  position: absolute; bottom: 2rem; right: 2rem;
  z-index: 3; display: flex; gap: 0.5rem; align-items: center;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none; cursor: pointer; padding: 0;
  transition: all 0.3s ease;
}
.hero-dot.active { background: var(--blue-light); width: 28px; border-radius: 4px; }
.hero-dot:hover  { background: rgba(255,255,255,0.65); }

.hero-counter {
  position: absolute; bottom: 1.9rem; left: 2rem;
  z-index: 3;
  font-family: var(--font-head); font-size: 0.72rem;
  letter-spacing: 0.18em; color: rgba(255,255,255,0.4);
  text-transform: uppercase;
}
.hero-counter .current { color: var(--blue-light); font-size: 1rem; }

.hero-arrows {
  position: absolute; inset: 0; z-index: 3;
  pointer-events: none;
  display: flex; align-items: center;
  justify-content: space-between; padding: 0 1.5rem;
}
.hero-arrow {
  pointer-events: all;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.25s ease;
  opacity: 0; backdrop-filter: blur(4px);
}
#hero:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: var(--blue); border-color: var(--blue); }
.hero-arrow svg { width: 18px; height: 18px; }

/* ============================================================
   TRUST BAR
   ============================================================ */
#trust-bar { background: var(--charcoal); padding: 20px 0; }
.trust-bar-inner {
  display: flex; align-items: center;
  justify-content: center; gap: 2.5rem; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.75);
  font-family: var(--font-head); font-size: 0.78rem;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.trust-item .trust-icon { color: var(--blue-light); }

/* ============================================================
   ABOUT / OWNER
   ============================================================ */
#about { background: var(--white); }
.about-img-wrap { position: relative; }
.about-img-wrap img {
  width: 100%; height: 520px;
  object-fit: cover; border-radius: var(--radius);
}
.about-img-badge {
  position: absolute; bottom: -24px; right: -24px;
  background: var(--blue);
  color: var(--white);
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-head); text-align: center;
}
.about-img-badge .years { font-size: 3rem; font-weight: 700; line-height: 1; }
.about-img-badge .years-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.88; }
.about-text { padding-left: 2rem; }
.about-text h2 { margin-bottom: 1.2rem; }
.about-text p { margin-bottom: 1.2rem; }
.owner-card {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 2.5rem; padding-top: 2rem;
  border-top: 2px solid var(--gray-100);
}
.owner-card img {
  width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover; border: 3px solid var(--blue);
}
.owner-card .owner-info strong {
  display: block;
  font-family: var(--font-head); font-size: 1rem;
  color: var(--charcoal); text-transform: uppercase; letter-spacing: 0.05em;
}
.owner-card .owner-info span { font-size: 0.85rem; color: var(--blue); }

/* ============================================================
   SERVICES
   ============================================================ */
#services { background: var(--offwhite); }
.service-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  border-top: 4px solid transparent;
  transition: var(--transition);
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
}
.service-card:hover {
  border-top-color: var(--blue);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(46,127,193,0.15);
}
.service-icon {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--offwhite);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.4rem;
}
.service-icon svg { width: 26px; height: 26px; color: var(--blue); }
.service-card h3 { margin-bottom: 0.8rem; color: var(--charcoal); }
.service-card p { font-size: 0.93rem; margin-bottom: 1.4rem; }
.service-link {
  font-family: var(--font-head); font-size: 0.78rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--blue); display: flex; align-items: center; gap: 0.4rem;
}
.service-link:hover { gap: 0.8rem; }

/* ============================================================
   PORTFOLIO
   ============================================================ */
#portfolio { background: var(--white); }

/* Category card grid — Cullison Wright style */
.portfolio-cats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.portfolio-cat-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  border-right: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.portfolio-cat-card:nth-child(3n) { border-right: none; }
.portfolio-cat-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.portfolio-cat-card:hover img { transform: scale(1.06); }
.portfolio-cat-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,27,40,0.88) 0%, rgba(14,27,40,0.2) 60%, transparent 100%);
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 1.5rem;
  transition: var(--transition);
}
.portfolio-cat-card:hover .portfolio-cat-overlay {
  background: linear-gradient(to top, rgba(46,127,193,0.88) 0%, rgba(46,127,193,0.4) 60%, transparent 100%);
}
.portfolio-cat-overlay h3 {
  color: var(--white); font-size: 1.1rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin: 0;
}
.portfolio-cat-overlay .cat-count {
  color: rgba(255,255,255,0.65); font-size: 0.78rem;
  font-family: var(--font-body); letter-spacing: 0.1em;
  text-transform: uppercase; margin-top: 0.3rem;
}
.portfolio-cat-overlay .cat-arrow {
  position: absolute; top: 1rem; right: 1rem;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--blue); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0.7);
  transition: all 0.3s ease;
}
.portfolio-cat-card:hover .cat-arrow { opacity: 1; transform: scale(1); }

/* Standard portfolio grid (archive) */
.portfolio-filter {
  display: flex; justify-content: center;
  gap: 0.4rem; margin-bottom: 3rem; flex-wrap: wrap;
}
.filter-btn {
  font-family: var(--font-head); font-size: 0.76rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 8px 18px;
  border: 2px solid var(--gray-200);
  background: transparent; color: var(--gray-800);
  border-radius: 2px; cursor: pointer;
  transition: var(--transition);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--charcoal); border-color: var(--charcoal); color: var(--white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.portfolio-item {
  position: relative; overflow: hidden;
  border-radius: var(--radius); aspect-ratio: 4/3; cursor: pointer;
}
.portfolio-item img {
  width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.5s ease;
}
.portfolio-item:hover img { transform: scale(1.06); }
.portfolio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,27,40,0.92) 0%, transparent 55%);
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 1.5rem;
  opacity: 0; transition: var(--transition);
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-overlay .cat-tag {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue-light); margin-bottom: 0.4rem;
}
.portfolio-overlay h3 { color: var(--white); font-size: 1rem; text-transform: none; letter-spacing: 0; }

.portfolio-footer { text-align: center; margin-top: 3rem; }

/* ============================================================
   STATS SECTION
   ============================================================ */
#stats { background: var(--charcoal); padding: 80px 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 2rem; text-align: center;
}
.stat-number {
  font-family: var(--font-head);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 700; color: var(--blue-light);
  line-height: 1; display: block;
}
.stat-label {
  display: block; font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase; letter-spacing: 0.14em;
  margin-top: 0.6rem;
  font-family: var(--font-body); font-weight: 600;
}
.stat-divider {
  width: 1px; background: rgba(255,255,255,0.1); height: 80px; align-self: center;
}

/* ============================================================
   CLIENTS / LOGOS
   ============================================================ */
#clients { background: var(--gray-100); padding: 60px 0; }
.clients-label {
  text-align: center; font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gray-500); margin-bottom: 2.5rem;
}
.clients-logos {
  display: flex; align-items: center;
  justify-content: center; gap: 3.5rem; flex-wrap: wrap;
}
.client-logo img {
  height: 40px; width: auto;
  filter: grayscale(100%); opacity: 0.5;
  transition: var(--transition);
}
.client-logo:hover img { filter: none; opacity: 1; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
#testimonials { background: var(--white); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.testimonial-card {
  background: var(--offwhite); padding: 2.5rem 2rem;
  border-radius: var(--radius); position: relative;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
}
.testimonial-card:hover { border-bottom-color: var(--blue); }
.testimonial-card::before {
  content: '\201C'; font-family: Georgia, serif;
  font-size: 5rem; color: var(--blue); opacity: 0.18;
  position: absolute; top: 0.5rem; left: 1.5rem; line-height: 1;
}
.testimonial-card p { font-size: 0.95rem; line-height: 1.75; font-style: italic; margin-bottom: 1.8rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-author .author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--charcoal);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-family: var(--font-head);
  font-size: 1rem; font-weight: 700; flex-shrink: 0;
}
.testimonial-author strong {
  display: block; font-family: var(--font-head); font-size: 0.86rem;
  color: var(--charcoal); text-transform: uppercase; letter-spacing: 0.05em;
}
.testimonial-author span { font-size: 0.8rem; color: var(--blue); }
.stars { color: var(--blue); font-size: 0.85rem; margin-bottom: 0.5rem; }

/* ============================================================
   CTA BANNER
   ============================================================ */
#cta-banner { background: var(--charcoal); padding: 90px 0; position: relative; overflow: hidden; }
#cta-banner::before {
  content: '';
  position: absolute; right: -5%; top: -30%;
  width: 50%; height: 160%;
  background: var(--blue); opacity: 0.05;
  transform: skewX(-12deg);
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 3rem; flex-wrap: wrap; }
.cta-text h2 { color: var(--white); margin-bottom: 0.8rem; }
.cta-text p  { color: rgba(255,255,255,0.65); max-width: 480px; }
.cta-actions { display: flex; flex-direction: column; gap: 1rem; align-items: flex-end; }
.cta-phone {
  font-family: var(--font-head); font-size: 1.6rem;
  font-weight: 700; color: var(--blue-light); letter-spacing: 0.04em;
}
.cta-phone:hover { color: var(--white); }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer { background: var(--charcoal-dark); color: rgba(255,255,255,0.72); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.3fr; gap: 3rem; padding-bottom: 3rem; }
.footer-brand .footer-logo {
  font-family: var(--font-head); font-size: 1.2rem;
  font-weight: 700; color: var(--white);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem;
}
.footer-brand .footer-logo span { display: block; font-size: 0.6rem; color: var(--blue-light); letter-spacing: 0.14em; font-weight: 400; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; color: rgba(255,255,255,0.55); }

.footer-col h4 {
  font-family: var(--font-head); font-size: 0.78rem;
  color: var(--white); letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 1.2rem;
}
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { font-size: 0.88rem; color: rgba(255,255,255,0.55); }
.footer-col ul li a:hover { color: var(--blue-light); padding-left: 4px; }

.footer-contact-item { display: flex; gap: 0.75rem; margin-bottom: 1rem; font-size: 0.88rem; color: rgba(255,255,255,0.6); }
.footer-contact-item strong { display: block; color: var(--white); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.2rem; }
.footer-contact-item a { color: rgba(255,255,255,0.6); }
.footer-contact-item a:hover { color: var(--blue-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 1.5rem 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem; color: rgba(255,255,255,0.35); flex-wrap: wrap; gap: 1rem;
}
.footer-bottom a { color: var(--blue-light); }

/* ============================================================
   EFP LOGO TEXTURES — v2 (noticeably stronger)
   Opacities raised from 0.04–0.09 → 0.18–0.35
   Overlay darkened less so textures read through clearly
   ============================================================ */
:root {

  /* ── 1. BRICK — staggered masonry, mortar joints visible */
  --tex-brick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='40'%3E%3Crect x='1' y='1' width='36' height='17' rx='1' fill='%23ffffff' fill-opacity='0.10' stroke='%23ffffff' stroke-opacity='0.22' stroke-width='0.8'/%3E%3Crect x='41' y='1' width='37' height='17' rx='1' fill='%23ffffff' fill-opacity='0.10' stroke='%23ffffff' stroke-opacity='0.22' stroke-width='0.8'/%3E%3Crect x='-19' y='22' width='36' height='17' rx='1' fill='%23ffffff' fill-opacity='0.10' stroke='%23ffffff' stroke-opacity='0.22' stroke-width='0.8'/%3E%3Crect x='21' y='22' width='36' height='17' rx='1' fill='%23ffffff' fill-opacity='0.10' stroke='%23ffffff' stroke-opacity='0.22' stroke-width='0.8'/%3E%3Crect x='61' y='22' width='36' height='17' rx='1' fill='%23ffffff' fill-opacity='0.10' stroke='%23ffffff' stroke-opacity='0.22' stroke-width='0.8'/%3E%3Cline x1='0' y1='20' x2='80' y2='20' stroke='%23ffffff' stroke-opacity='0.28' stroke-width='1.2'/%3E%3Cline x1='0' y1='40' x2='80' y2='40' stroke='%23ffffff' stroke-opacity='0.28' stroke-width='1.2'/%3E%3Cline x1='39' y1='0' x2='39' y2='20' stroke='%23ffffff' stroke-opacity='0.28' stroke-width='1.2'/%3E%3Cline x1='19' y1='20' x2='19' y2='40' stroke='%23ffffff' stroke-opacity='0.28' stroke-width='1.2'/%3E%3Cline x1='59' y1='20' x2='59' y2='40' stroke='%23ffffff' stroke-opacity='0.28' stroke-width='1.2'/%3E%3C/svg%3E");

  /* ── 2. STUCCO — larger dots, much more visible grain */
  --tex-stucco: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50'%3E%3Ccircle cx='5' cy='5' r='2.0' fill='%23ffffff' fill-opacity='0.22'/%3E%3Ccircle cx='16' cy='3' r='1.4' fill='%23ffffff' fill-opacity='0.14'/%3E%3Ccircle cx='27' cy='7' r='1.8' fill='%23ffffff' fill-opacity='0.18'/%3E%3Ccircle cx='38' cy='2' r='2.2' fill='%23ffffff' fill-opacity='0.16'/%3E%3Ccircle cx='47' cy='8' r='1.5' fill='%23ffffff' fill-opacity='0.20'/%3E%3Ccircle cx='2' cy='16' r='1.6' fill='%23ffffff' fill-opacity='0.15'/%3E%3Ccircle cx='11' cy='14' r='2.1' fill='%23ffffff' fill-opacity='0.19'/%3E%3Ccircle cx='22' cy='18' r='1.3' fill='%23ffffff' fill-opacity='0.13'/%3E%3Ccircle cx='33' cy='13' r='2.4' fill='%23ffffff' fill-opacity='0.11'/%3E%3Ccircle cx='44' cy='17' r='1.7' fill='%23ffffff' fill-opacity='0.17'/%3E%3Ccircle cx='7' cy='26' r='2.0' fill='%23ffffff' fill-opacity='0.18'/%3E%3Ccircle cx='18' cy='24' r='1.4' fill='%23ffffff' fill-opacity='0.14'/%3E%3Ccircle cx='29' cy='28' r='1.9' fill='%23ffffff' fill-opacity='0.22'/%3E%3Ccircle cx='40' cy='23' r='1.5' fill='%23ffffff' fill-opacity='0.15'/%3E%3Ccircle cx='48' cy='29' r='2.2' fill='%23ffffff' fill-opacity='0.13'/%3E%3Ccircle cx='3' cy='37' r='1.7' fill='%23ffffff' fill-opacity='0.20'/%3E%3Ccircle cx='14' cy='40' r='2.0' fill='%23ffffff' fill-opacity='0.16'/%3E%3Ccircle cx='25' cy='35' r='1.3' fill='%23ffffff' fill-opacity='0.18'/%3E%3Ccircle cx='36' cy='39' r='1.8' fill='%23ffffff' fill-opacity='0.13'/%3E%3Ccircle cx='46' cy='36' r='2.1' fill='%23ffffff' fill-opacity='0.19'/%3E%3Ccircle cx='8' cy='47' r='2.3' fill='%23ffffff' fill-opacity='0.14'/%3E%3Ccircle cx='20' cy='45' r='1.5' fill='%23ffffff' fill-opacity='0.17'/%3E%3Ccircle cx='31' cy='48' r='1.8' fill='%23ffffff' fill-opacity='0.21'/%3E%3Ccircle cx='43' cy='44' r='2.0' fill='%23ffffff' fill-opacity='0.15'/%3E%3C/svg%3E");

  /* ── 3. PANEL — building curtain wall, thick visible strokes */
  --tex-panel: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='52'%3E%3Crect x='2' y='2' width='28' height='22' rx='2' fill='%23ffffff' fill-opacity='0.06' stroke='%23ffffff' stroke-opacity='0.28' stroke-width='1.2'/%3E%3Crect x='34' y='2' width='28' height='22' rx='2' fill='%23ffffff' fill-opacity='0.06' stroke='%23ffffff' stroke-opacity='0.28' stroke-width='1.2'/%3E%3Crect x='2' y='28' width='28' height='22' rx='2' fill='%23ffffff' fill-opacity='0.06' stroke='%23ffffff' stroke-opacity='0.28' stroke-width='1.2'/%3E%3Crect x='34' y='28' width='28' height='22' rx='2' fill='%23ffffff' fill-opacity='0.06' stroke='%23ffffff' stroke-opacity='0.28' stroke-width='1.2'/%3E%3C/svg%3E");

  /* ── 4. HATCH — thick diagonal mortar lines */
  --tex-hatch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cline x1='0' y1='40' x2='40' y2='0' stroke='%23ffffff' stroke-opacity='0.20' stroke-width='1.5'/%3E%3Cline x1='-20' y1='40' x2='20' y2='0' stroke='%23ffffff' stroke-opacity='0.20' stroke-width='1.5'/%3E%3Cline x1='20' y1='40' x2='60' y2='0' stroke='%23ffffff' stroke-opacity='0.20' stroke-width='1.5'/%3E%3C/svg%3E");
}

/* ============================================================
   PAGE HERO — Internal pages with logo-derived textures
   ============================================================ */
.page-hero {
  background-color: var(--charcoal);
  background-size: cover;
  background-position: center;
  padding: 130px 0 80px;
  position: relative;
  overflow: hidden;
}

/* Texture tile layer */
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--tex-brick);
  background-size: 80px 40px;
  background-repeat: repeat;
  z-index: 0;
}

/* Overlay — lighter now so texture shows (was 0.82 → 0.55 left, 0.35 right) */
.page-hero .hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    110deg,
    rgba(14, 27, 40, 0.78) 0%,
    rgba(14, 27, 40, 0.55) 55%,
    rgba(46, 127, 193, 0.20) 100%
  );
}

/* Bottom accent bar */
.page-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--blue-dark), var(--blue), var(--blue-light));
  z-index: 3;
}

.page-hero .container { position: relative; z-index: 2; }
.page-hero h1        { color: var(--white); margin-bottom: 0.6rem; }
.page-hero .eyebrow  { color: var(--blue-light); margin-bottom: 0.6rem; }
.page-hero .breadcrumb { margin-top: 0.8rem; font-size: 0.85rem; color: rgba(255,255,255,0.45); }
.page-hero .breadcrumb a { color: var(--blue-light); }
.page-hero .breadcrumb a:hover { text-decoration: underline; }

/* ── Per-page variants ─────────────────────────────────────── */

.page-hero.texture-brick::before {
  background-image: var(--tex-brick);
  background-size: 80px 40px;
}

.page-hero.texture-stucco::before {
  background-image: var(--tex-stucco);
  background-size: 50px 50px;
}

.page-hero.texture-panel::before {
  background-image: var(--tex-panel);
  background-size: 64px 52px;
}

.page-hero.texture-hatch::before {
  background-image: var(--tex-hatch);
  background-size: 40px 40px;
}

/* Accent bar color per page */
.page-hero.texture-panel::after {
  background: linear-gradient(to right, var(--charcoal-dark), var(--blue), var(--blue-light));
}
.page-hero.texture-stucco::after {
  background: linear-gradient(to right, var(--blue-dark), var(--blue-light), var(--silver));
}
.page-hero.texture-hatch::after {
  background: linear-gradient(to right, var(--blue), var(--blue-light));
}

.page-hero.page-hero--tall { padding: 160px 0 100px; }
.page-content { padding: 80px 0; }



/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; }
.contact-info h3 { margin-bottom: 1.5rem; }
.contact-info-item { margin-bottom: 1.8rem; }
.contact-info-item strong {
  display: block; font-family: var(--font-head); font-size: 0.76rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 0.4rem;
}
.wpcf7 input, .wpcf7 textarea, .wpcf7 select,
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 13px 16px;
  border: 2px solid var(--gray-200); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.95rem;
  color: var(--text); background: var(--white);
  transition: var(--transition); margin-bottom: 1rem;
}
.wpcf7 input:focus, .wpcf7 textarea:focus,
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46,127,193,0.12);
}
.wpcf7 textarea, .contact-form textarea { min-height: 150px; resize: vertical; }
.wpcf7-submit, .contact-form .submit-btn {
  width: 100%; background: var(--blue); color: var(--white);
  border: none; padding: 16px;
  font-family: var(--font-head); font-size: 0.9rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; border-radius: var(--radius); transition: var(--transition);
}
.wpcf7-submit:hover, .contact-form .submit-btn:hover { background: var(--blue-dark); }

/* ============================================================
   PROJECT SINGLE
   ============================================================ */
.project-meta { background: var(--offwhite); padding: 2rem; border-radius: var(--radius); margin-bottom: 3rem; border-left: 4px solid var(--blue); }
.project-meta dl { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.project-meta dt { font-family: var(--font-head); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }
.project-meta dd { font-size: 0.95rem; color: var(--charcoal); font-weight: 600; }

/* ============================================================
   UTILITIES
   ============================================================ */
.stretched-link::after { position: absolute; inset: 0; z-index: 1; content: ''; }

/* ============================================================
   ANIMATION SYSTEM
   Full scroll-triggered entrance animations — Cullison-style
   ============================================================ */

/* --- Keyframes --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeLeft {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeRight {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes lineExpand {
  from { transform: scaleX(0); transform-origin: left; }
  to   { transform: scaleX(1); transform-origin: left; }
}
@keyframes wordReveal {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes eyebrowSlide {
  from { opacity: 0; transform: translateX(-20px) translateY(2px); letter-spacing: 0.05em; }
  to   { opacity: 1; transform: translateX(0) translateY(0); letter-spacing: 0.22em; }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes cardPop {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes underlineGrow {
  from { width: 0; }
  to   { width: 60px; }
}

/* Easing presets */
:root {
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Base hidden state — ALL animated elements start invisible --- */
[data-reveal],
[data-anim] {
  opacity: 0;
}

/* --- data-reveal: fade-up IN, fade-up-out OUT --- */
[data-reveal] {
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }
[data-reveal].exiting  { opacity: 0; transform: translateY(-20px); transition: opacity 0.4s ease-in, transform 0.4s ease-in; }

[data-reveal]:nth-child(2) { transition-delay: 0.12s; }
[data-reveal]:nth-child(3) { transition-delay: 0.22s; }
[data-reveal]:nth-child(4) { transition-delay: 0.32s; }
[data-reveal]:nth-child(5) { transition-delay: 0.42s; }
[data-reveal]:nth-child(6) { transition-delay: 0.50s; }

/* --- data-anim types --- */
[data-anim="fade-up"].revealed    { animation: fadeUp    0.75s var(--ease-out-expo) both; }
[data-anim="fade-left"].revealed  { animation: fadeLeft  0.75s var(--ease-out-expo) both; }
[data-anim="fade-right"].revealed { animation: fadeRight 0.75s var(--ease-out-expo) both; }
[data-anim="scale-up"].revealed   { animation: scaleUp   0.65s var(--ease-out-back) both; }
[data-anim="card-pop"].revealed   { animation: cardPop   0.65s var(--ease-out-back) both; }

/* --- Eyebrow label --- */
.eyebrow {
  display: inline-block; opacity: 0; transform: translateX(-16px);
  transition: opacity 0.55s var(--ease-out-expo), transform 0.55s var(--ease-out-expo), letter-spacing 0.55s ease;
}
.eyebrow.revealed { opacity: 1; transform: translateX(0); }
.eyebrow.exiting  { opacity: 0; transform: translateX(16px); transition: opacity 0.32s ease-in, transform 0.32s ease-in; }

/* --- Section heading --- */
.section-title-wrap { overflow: hidden; display: block; }
.section-title {
  display: block; opacity: 0; transform: translateY(105%);
  transition: opacity 0.75s var(--ease-out-expo), transform 0.75s var(--ease-out-expo);
}
.section-title.revealed { opacity: 1; transform: translateY(0); }
.section-title.exiting  { opacity: 0; transform: translateY(-30px); transition: opacity 0.38s ease-in, transform 0.38s ease-in; }

/* --- Accent underline bar --- */
.heading-accent {
  display: block; width: 0; height: 3px; background: var(--blue);
  margin: 0.6rem 0 1.2rem; border-radius: 2px;
  transition: width 0.7s var(--ease-out-expo) 0.3s;
}
.heading-accent.revealed { width: 56px; }
.heading-accent.exiting  { width: 0; transition: width 0.3s ease-in; }
.section-header .heading-accent { margin: 0.6rem auto 1.2rem; }

/* --- Paragraph desc --- */
.section-desc {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.65s var(--ease-out-expo) 0.2s, transform 0.65s var(--ease-out-expo) 0.2s;
}
.section-desc.revealed { opacity: 1; transform: translateY(0); }
.section-desc.exiting  { opacity: 0; transform: translateY(-12px); transition: opacity 0.32s ease-in 0s, transform 0.32s ease-in 0s; }

/* --- Stats --- */
.stat-item {
  opacity: 0; transform: translateY(24px) scale(0.95);
  transition: opacity 0.6s var(--ease-out-back), transform 0.6s var(--ease-out-back);
}
.stat-item.revealed { opacity: 1; transform: translateY(0) scale(1); }
.stat-item.exiting  { opacity: 0; transform: translateY(-16px) scale(0.97); transition: opacity 0.32s ease-in, transform 0.32s ease-in; }
.stat-item:nth-child(2) { transition-delay: 0.1s; }
.stat-item:nth-child(4) { transition-delay: 0.2s; }
.stat-item:nth-child(6) { transition-delay: 0.3s; }

/* --- Service cards --- */
.service-card {
  opacity: 0; transform: translateY(30px) scale(0.97);
  transition: opacity 0.6s var(--ease-out-back), transform 0.6s var(--ease-out-back), border-top-color 0.28s ease, box-shadow 0.28s ease;
}
.service-card.revealed { opacity: 1; transform: translateY(0) scale(1); }
.service-card.exiting  { opacity: 0; transform: translateY(-18px) scale(0.98); transition: opacity 0.32s ease-in, transform 0.32s ease-in; }

/* --- Portfolio category cards --- */
.portfolio-cat-card {
  opacity: 0; transform: scale(0.95);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
.portfolio-cat-card.revealed { opacity: 1; transform: scale(1); }
.portfolio-cat-card.exiting  { opacity: 0; transform: scale(0.97) translateY(-12px); transition: opacity 0.32s ease-in, transform 0.32s ease-in; }
.portfolio-cat-card:nth-child(2) { transition-delay: 0.08s; }
.portfolio-cat-card:nth-child(3) { transition-delay: 0.16s; }
.portfolio-cat-card:nth-child(4) { transition-delay: 0.24s; }
.portfolio-cat-card:nth-child(5) { transition-delay: 0.32s; }
.portfolio-cat-card:nth-child(6) { transition-delay: 0.40s; }

/* --- Portfolio items --- */
.portfolio-item {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.55s var(--ease-out-expo), transform 0.55s var(--ease-out-expo);
}
.portfolio-item.revealed { opacity: 1; transform: translateY(0); }
.portfolio-item.exiting  { opacity: 0; transform: translateY(-14px); transition: opacity 0.28s ease-in, transform 0.28s ease-in; }
.portfolio-item:nth-child(2) { transition-delay: 0.1s; }
.portfolio-item:nth-child(3) { transition-delay: 0.2s; }
.portfolio-item:nth-child(4) { transition-delay: 0.1s; }
.portfolio-item:nth-child(5) { transition-delay: 0.2s; }
.portfolio-item:nth-child(6) { transition-delay: 0.3s; }

/* --- Testimonial cards --- */
.testimonial-card {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s var(--ease-out-expo), transform 0.65s var(--ease-out-expo), border-bottom-color 0.28s ease;
}
.testimonial-card.revealed { opacity: 1; transform: translateY(0); }
.testimonial-card.exiting  { opacity: 0; transform: translateY(-16px); transition: opacity 0.32s ease-in, transform 0.32s ease-in; }
.testimonial-card:nth-child(2) { transition-delay: 0.15s; }
.testimonial-card:nth-child(3) { transition-delay: 0.30s; }

/* --- Trust bar --- */
.trust-item {
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.trust-item.revealed { opacity: 1; transform: translateY(0); }
.trust-item.exiting  { opacity: 0; transform: translateY(-8px); transition: opacity 0.25s ease-in, transform 0.25s ease-in; }
.trust-item:nth-child(1) { transition-delay: 0.00s; }
.trust-item:nth-child(2) { transition-delay: 0.08s; }
.trust-item:nth-child(3) { transition-delay: 0.16s; }
.trust-item:nth-child(4) { transition-delay: 0.24s; }
.trust-item:nth-child(5) { transition-delay: 0.32s; }

/* --- Footer columns --- */
.footer-brand, .footer-col {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}
.footer-brand.revealed, .footer-col.revealed { opacity: 1; transform: translateY(0); }
.footer-brand.exiting,  .footer-col.exiting  { opacity: 0; transform: translateY(-12px); transition: opacity 0.28s ease-in, transform 0.28s ease-in; }
.footer-col:nth-child(2) { transition-delay: 0.10s; }
.footer-col:nth-child(3) { transition-delay: 0.20s; }
.footer-col:nth-child(4) { transition-delay: 0.30s; }

/* --- Hero (CSS keyframe only — no JS observer) --- */
/* ── Hero text — always visible, animations are enhancement only ── */
.animate-up,
.hero-content,
.hero-content * {
  /* Reset any scroll-reveal interference */
  opacity: 1 !important;
  visibility: visible !important;
}

/* Individual children animate in on load — fallback keeps them visible */
.hero-badge {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s 0.30s var(--ease-out-expo) forwards;
}
#hero h1 {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 0.75s 0.55s var(--ease-out-expo) forwards;
}
#hero .hero-sub {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.7s 0.80s var(--ease-out-expo) forwards;
}
.hero-ctas {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.65s 1.00s var(--ease-out-expo) forwards;
}
.hero-stats {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.65s 1.15s var(--ease-out-expo) forwards;
}

/* Hard fallback: if animation doesn't run, show everything after 2s */
@keyframes forceVisible { to { opacity: 1; transform: none; } }
.hero-badge,
#hero h1,
#hero .hero-sub,
.hero-ctas,
.hero-stats {
  animation-fill-mode: both;
}

/* Respect reduced motion — show immediately */
@media (prefers-reduced-motion: reduce) {
  .hero-badge, #hero h1, #hero .hero-sub, .hero-ctas, .hero-stats {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* --- Page hero (CSS only) --- */
.page-hero .eyebrow, .page-hero h1, .page-hero .breadcrumb { opacity: 0; }
.page-hero .eyebrow    { animation: eyebrowSlide 0.65s 0.20s var(--ease-out-expo) forwards; }
.page-hero h1          { animation: fadeUp       0.70s 0.35s var(--ease-out-expo) forwards; }
.page-hero .breadcrumb { animation: fadeUp       0.60s 0.55s var(--ease-out-expo) forwards; }

/* --- About section — directional slide --- */
.about-img-wrap {
  opacity: 0; transform: translateX(-32px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.about-img-wrap.revealed { opacity: 1; transform: translateX(0); }
.about-img-wrap.exiting  { opacity: 0; transform: translateX(-20px); transition: opacity 0.38s ease-in, transform 0.38s ease-in; }

.about-img-badge {
  opacity: 0; transform: translateY(20px) scale(0.9);
  transition: opacity 0.6s var(--ease-out-back) 0.4s, transform 0.6s var(--ease-out-back) 0.4s;
}
.about-img-badge.revealed { opacity: 1; transform: translateY(0) scale(1); }
.about-img-badge.exiting  { opacity: 0; transform: scale(0.92); transition: opacity 0.28s ease-in 0s, transform 0.28s ease-in 0s; }

.about-text {
  opacity: 0; transform: translateX(32px);
  transition: opacity 0.8s var(--ease-out-expo) 0.15s, transform 0.8s var(--ease-out-expo) 0.15s;
}
.about-text.revealed { opacity: 1; transform: translateX(0); }
.about-text.exiting  { opacity: 0; transform: translateX(20px); transition: opacity 0.38s ease-in 0s, transform 0.38s ease-in 0s; }

/* page-hero elements handled by CSS above, skip JS observer */



/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .portfolio-grid { grid-template-columns: repeat(2,1fr); }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-cats-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  section { padding: 60px 0; }
  .header-inner { height: 68px; }

  #primary-nav {
    display: none; position: fixed;
    top: 68px; left: 0; right: 0; bottom: 0;
    background: var(--white);
    flex-direction: column; align-items: center;
    justify-content: flex-start; padding-top: 2.5rem;
    z-index: 999; overflow-y: auto;
  }
  #primary-nav.open { display: flex; }
  #primary-nav > ul { flex-direction: column; text-align: center; width: 100%; }
  #primary-nav > ul > li { width: 100%; }
  #primary-nav > ul > li > a { font-size: 1.2rem; padding: 16px 24px; border-radius: 0; border-bottom: 1px solid var(--gray-100); }
  .header-phone { margin: 1.5rem 0 0.5rem; font-size: 1.1rem; }
  .nav-cta { margin: 1rem 0; }
  .menu-toggle { display: flex; }

  .site-logo img, .site-logo .custom-logo, .custom-logo-link img {
    height: 40px !important;
  }

  .grid-2 { grid-template-columns: 1fr; }
  /* On mobile: always show image first, text below — regardless of desktop order */
  .grid-2--reverse .svc-img-col,
  .svc-img-col  { order: 1 !important; }
  .grid-2--reverse .svc-text-col,
  .svc-text-col { order: 2 !important; padding-left: 0 !important; padding-right: 0 !important; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .portfolio-cats-grid { grid-template-columns: 1fr 1fr; }

  #hero { min-height: 100svh; }
  .hero-content { padding-top: 2rem; padding-bottom: 3rem; }
  #hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  #hero p.hero-sub { font-size: 0.95rem; }
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
  }
  .hero-stat-item .num { font-size: 1.5rem; }
  .hero-badge { font-size: 0.68rem; margin-bottom: 1rem; }
  .hero-ctas { flex-direction: column; gap: 0.75rem; }
  .about-text { padding-left: 0; margin-top: 2rem; }
  .about-img-badge { right: 0; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-actions { align-items: center; }
  .stat-divider { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .grid-3 { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-cats-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
}

/* ============================================================
   WORDPRESS CORE
   ============================================================ */
.alignleft   { float: left; margin: 0 1.5rem 1rem 0; }
.alignright  { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1.5rem auto; }
.entry-content h2, .entry-content h3 { margin: 2rem 0 1rem; }
.entry-content p { margin-bottom: 1.2rem; }
.entry-content ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.2rem; }
.entry-content ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1.2rem; }
