/*
Theme Name: AgencyCore
Author: OBT Tech Services
Author URI: [ADD COMPANY WEBSITE URL]
Description: A production-ready, lightweight WordPress theme built for OBT Tech Services — a B2B digital marketing and technology services provider. No page builder required. Fully responsive, accessible, and SEO-friendly with custom post types for Services, Case Studies, and Team Members.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: agencycore
Tags: business, blog, e-commerce, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, accessibility-ready, responsive-layout, sticky-post, theme-options, footer-widgets, one-column, two-columns, three-columns, left-sidebar, right-sidebar

AgencyCore is distributed under the terms of the GNU GPL v2 or later.
*/

/* =========================================================
   TABLE OF CONTENTS
   1.0  CSS Custom Properties (Design Tokens)
   2.0  Reset & Base
   3.0  Typography
   4.0  Layout / Containers / Grid
   5.0  Accessibility Helpers
   6.0  Buttons & Links
   7.0  Forms
   8.0  Site Header & Navigation
   9.0  Site Footer
   10.0 Cards (Services / Case Studies / Team / Testimonials)
   11.0 Hero / Page Header
   12.0 Content Sections (CTA, stats-free intro blocks)
   13.0 Blog / Archive / Single Post
   14.0 Comments
   15.0 Widgets / Sidebar
   16.0 WordPress Core Alignment & Media
   17.0 Utilities
   18.0 Responsive Media Queries
   ========================================================= */

/* =========================================================
   1.0 CSS Custom Properties
   ========================================================= */
:root{
  /* Restrained corporate palette — change these to re-theme the entire site. */
  --color-primary: #111827;
  --color-secondary: #374151;
  --color-accent: #2563EB;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8FAFC;
  --color-text: #111827;
  --color-text-muted: #64748B;
  --color-border: #E2E8F0;

  /* Derived interaction states (not part of the core palette above, but
     needed for hover/focus feedback). Keep these in the same family as
     --color-accent if you change it. */
  --color-accent-hover: #1D4ED8;
  --color-focus: var(--color-accent);

  /* Functional colors for form/system feedback — intentionally outside the
     brand palette so success/error states stay recognizable regardless of
     the brand accent color chosen above. */
  --color-success: #15803D;
  --color-error: #B91C1C;

  --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container-width: 1200px;
  --container-pad: 1.25rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(17,24,39,0.06);
  --shadow-md: 0 8px 24px rgba(17,24,39,0.08);
  --transition: 160ms ease-out;
  --header-height: 76px;
}

/* =========================================================
   2.0 Reset & Base
   ========================================================= */
*,
*::before,
*::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 1rem;
}

img{ max-width: 100%; height: auto; display: block; }
svg{ fill: currentColor; }
figure{ margin: 0; }
ul, ol{ padding-left: 1.25rem; }
a{ color: var(--color-accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover{ color: var(--color-accent-hover); }
hr{ border: 0; border-top: 1px solid var(--color-border); margin: 2rem 0; }

/* =========================================================
   3.0 Typography
   ========================================================= */
h1, h2, h3, h4, h5, h6{
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
  margin: 0 0 0.75rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1{ font-size: clamp(2.25rem, 4vw, 3.25rem); font-weight: 800; letter-spacing: -0.02em; }
h2{ font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -0.015em; }
h3{ font-size: clamp(1.2rem, 2vw, 1.4rem); }
h4{ font-size: 1.05rem; }
p{ margin: 0 0 1.25rem; }
.lead{ font-size: 1.15rem; line-height: 1.55; color: var(--color-text-muted); }
.eyebrow{
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

/* =========================================================
   4.0 Layout / Containers / Grid
   ========================================================= */
.container{
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.section{ padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section--alt{ background: var(--color-bg-alt); }
.section-head{ max-width: 760px; margin: 0 0 2.5rem; }
.section-head.center{ margin-inline: auto; text-align: center; }

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

.content-layout{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 3rem;
  align-items: start;
}
.content-layout.no-sidebar{ grid-template-columns: minmax(0,1fr); }

/* =========================================================
   5.0 Accessibility Helpers
   ========================================================= */
.screen-reader-text{
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus{
  background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  clip: auto !important; clip-path: none; color: var(--color-primary);
  display: block; height: auto; left: 5px; line-height: normal;
  padding: 1rem 1.5rem; text-decoration: none; top: 5px; width: auto; z-index: 100000;
}
:focus-visible{ outline: 3px solid var(--color-focus); outline-offset: 2px; }
.skip-link{ z-index: 100000; }

/* =========================================================
   6.0 Buttons & Links
   ========================================================= */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  font-size: 1rem;
  line-height: 1;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{ background: var(--color-accent); color: #fff; }
.btn-primary:hover{ background: var(--color-accent-hover); color: #fff; }
.btn-secondary{ background: transparent; border-color: currentColor; color: var(--color-primary); }
.btn-secondary:hover{ background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.btn-on-dark{ background: #fff; border-color: #fff; color: var(--color-primary); }
.btn-on-dark:hover{ background: rgba(255,255,255,0.9); color: var(--color-primary); }
.btn-block{ width: 100%; justify-content: center; }

/* =========================================================
   7.0 Forms
   ========================================================= */
input, textarea, select, button{ font-family: inherit; font-size: 1rem; }
.form-row{ margin-bottom: 1.25rem; }
.form-row label{ display: block; font-weight: 600; margin-bottom: 0.4rem; }
.form-row .required{ color: var(--color-error); }
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="url"],
.form-row input[type="search"],
.form-row select,
.form-row textarea{
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  appearance: none;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus{
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.18);
}
.form-note{ font-size: 0.875rem; color: var(--color-text-muted); }
.form-status{ padding: 1rem 1.25rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; font-weight: 600; }
.form-status.success{ background: #e7f5ec; color: var(--color-success); }
.form-status.error{ background: #fbe9e7; color: var(--color-error); }
.honeypot-field{ position: absolute; left: -9999px; top: -9999px; }

/* =========================================================
   8.0 Site Header & Navigation
   ========================================================= */
.site-header{
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,0.97);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition);
}
.site-header.is-scrolled{ box-shadow: var(--shadow-sm); }
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-height);
}
.site-branding{ display: flex; align-items: center; gap: 0.75rem; }
.site-branding img{ max-height: 44px; width: auto; }
.site-title{ font-size: 1.35rem; margin: 0; font-weight: 800; }
.site-title a{ color: var(--color-primary); text-decoration: none; }
.site-description{ display: block; font-size: 0.75rem; color: var(--color-text-muted); }
.site-logo-fallback{ height: 40px; width: auto; }
.footer-logo{ display: inline-block; margin-bottom: 1rem; }

.menu-toggle{
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}
.menu-toggle .bar{ display: block; width: 22px; height: 2px; background: var(--color-primary); margin: 5px 0; transition: transform var(--transition), opacity var(--transition); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2){ opacity: 0; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.primary-navigation ul{ list-style: none; margin: 0; padding: 0; display: flex; gap: 1.75rem; align-items: center; }
.primary-navigation li{ position: relative; }
.primary-navigation a{
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 0;
  display: inline-block;
}
.primary-navigation a:hover,
.primary-navigation .current-menu-item > a{ color: var(--color-accent); }

/* Subtle animated underline on top-level links only (not dropdown items). */
.primary-navigation > ul > li > a{ position: relative; }
.primary-navigation > ul > li > a::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.primary-navigation > ul > li > a:hover::after,
.primary-navigation > ul > li.current-menu-item > a::after{ transform: scaleX(1); }

.primary-navigation .sub-menu{
  display: none;
  position: absolute;
  top: 100%; left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 0.5rem;
  z-index: 20;
}
.primary-navigation .menu-item-has-children:hover > .sub-menu,
.primary-navigation .menu-item-has-children:focus-within > .sub-menu{ display: block; }
.primary-navigation .sub-menu a{ padding: 0.5rem 0.75rem; width: 100%; }
.primary-navigation .sub-menu li{ width: 100%; }

.header-cta{ display: flex; align-items: center; gap: 1rem; }

/* =========================================================
   9.0 Site Footer
   ========================================================= */
.site-footer{ background: var(--color-primary); color: rgba(255,255,255,0.85); }
.site-footer a{ color: #fff; }
.footer-top{ padding: 3.5rem 0 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-widgets{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.footer-widgets h2, .footer-widgets h3{ color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.04em; }
.footer-widgets ul{ list-style: none; padding: 0; margin: 0; }
.footer-widgets li{ margin-bottom: 0.5rem; }
.footer-bottom{ padding: 1.5rem 0; }
.footer-bottom .container{ display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom-nav ul{ list-style: none; display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; margin: 0; padding: 0; }
.footer-bottom-nav a{ text-decoration: none; font-size: 0.875rem; }
.social-links{ list-style: none; display: flex; gap: 0.75rem; margin: 0; padding: 0; }
.social-links a{
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3); text-decoration: none;
}
.social-links a:hover{ background: var(--color-accent); border-color: var(--color-accent); }
.copyright{ font-size: 0.875rem; }
.legal-line{ font-size: 0.8rem; color: rgba(255,255,255,0.55); margin: 0.5rem 0 0; max-width: 760px; }
.footer-widget-area .contact-info-list{ list-style: none; padding: 0; margin: 0 0 1rem; }
.footer-widget-area .contact-info-list li{ margin-bottom: 0.4rem; }

/* =========================================================
   10.0 Cards
   ========================================================= */
.card{
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  height: 100%;
}
.card:hover{ box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: #cbd5e1; }
.card-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  color: var(--color-accent);
  font-size: 1.25rem;
}
.card h3{ margin-bottom: 0.5rem; }
.card p:last-child{ margin-bottom: 0; }
.card-link{ font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.75rem; transition: gap var(--transition); }
.card-link:hover{ gap: 0.55rem; }

.case-study-card{ display: block; text-decoration: none; color: inherit; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); background: #fff; transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition); }
.case-study-card:hover{ box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: #cbd5e1; }
.case-study-card .thumb{ aspect-ratio: 16/10; background: var(--color-bg-alt); overflow: hidden; }
.case-study-card .thumb img{ width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease-out; }
.case-study-card:hover .thumb img{ transform: scale(1.03); }
.case-study-card .body{ padding: 1.5rem; }
.case-study-card .tag{ display: inline-block; font-size: 0.75rem; font-weight: 700; color: var(--color-accent); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.5rem; }

.case-study-card--placeholder{
  cursor: default;
  border-style: dashed;
  background: var(--color-bg-alt);
}
.case-study-card--placeholder:hover{ transform: none; box-shadow: none; border-color: var(--color-border); }
.case-study-card--placeholder .thumb{ background: repeating-linear-gradient(135deg, var(--color-border) 0, var(--color-border) 1px, transparent 1px, transparent 12px); }
.case-study-card--placeholder .tag{ color: #b45309; background: #fff7e6; padding: 0.2rem 0.6rem; border-radius: 999px; }
.case-study-card--placeholder h3,
.case-study-card--placeholder p{ color: var(--color-text-muted); }

.team-card{ text-align: center; }
.team-card .photo{ width: 140px; height: 140px; border-radius: 50%; overflow: hidden; margin: 0 auto 1.25rem; background: var(--color-bg-alt); }
.team-card .photo img{ width: 100%; height: 100%; object-fit: cover; }
.team-card .role{ color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: 0.5rem; }

.testimonial-card{
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 1.75rem;
}
.testimonial-card::before{
  content: "\201C";
  position: absolute;
  top: 0.75rem;
  left: 1.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.15;
}
.testimonial-card blockquote{ position: relative; margin: 0 0 1.25rem; font-size: 1.05rem; color: var(--color-text); }
.testimonial-author{ display: flex; align-items: center; gap: 0.75rem; font-weight: 600; }
.testimonial-author .avatar{ width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--color-bg-alt); flex-shrink: 0; }
.testimonial-author .avatar img{ width: 100%; height: 100%; object-fit: cover; }
.testimonial-author small{ display: block; font-weight: 400; color: var(--color-text-muted); }

.empty-state{
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
}

/* About page "company facts" panel — plain labeled facts, not a stats
   counter, and any field left empty in company-config.php is simply
   omitted rather than shown as zero or a placeholder. */
.facts-panel{
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  margin: 2rem 0 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.fact-item{ margin: 0; }
.fact-label{
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}
.fact-value{ margin: 0; font-weight: 600; color: var(--color-text); }

/* =========================================================
   11.0 Hero / Page Header
   ========================================================= */
.hero{
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.hero h1{ color: var(--color-text); }
.hero .lead{ color: var(--color-text-muted); }
.hero-grid{ display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.hero-grid--single{ grid-template-columns: minmax(0, 720px); justify-content: center; text-align: center; }
.hero-grid--single .hero-actions{ justify-content: center; }
.hero-actions{ display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-media{ border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--color-border); }

.page-header{
  background: var(--color-bg-alt);
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--color-border);
}
.page-header h1{ margin-bottom: 0.5rem; }
.breadcrumbs{ font-size: 0.875rem; color: var(--color-text-muted); }
.breadcrumbs a{ color: var(--color-text-muted); text-decoration: none; }
.breadcrumbs a:hover{ text-decoration: underline; }

/* Service single-page hero: a taller, centered variant of .page-header. */
.service-hero{ padding: 3rem 0 3.5rem; text-align: center; }
.service-hero .breadcrumbs{ display: block; margin-bottom: 1.25rem; }
.service-hero .card-icon{ margin-bottom: 1.25rem; width: 56px; height: 56px; font-size: 1.5rem; }
.service-hero .page-title{ margin-bottom: 0.5rem; }
.service-hero-tagline{ max-width: 620px; margin-inline: auto; }
.service-hero .hero-actions{ justify-content: center; margin-top: 1.5rem; }

/* Checkmark list used for "Problems We Solve", "Our Approach", "Who It's For". */
.check-list{ list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.check-list li{ position: relative; padding-left: 1.85rem; }
.check-list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.12;
}
.check-list li::after{
  content: "";
  position: absolute;
  left: 5px;
  top: 0.55em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  transform: rotate(-45deg);
}

.deliverable-card{ display: flex; align-items: flex-start; gap: 0.85rem; }
.deliverable-card::before{ content: "\2713"; color: var(--color-accent); font-weight: 700; font-size: 1.1rem; flex-shrink: 0; line-height: 1.5; }
.deliverable-card p{ margin-bottom: 0; }

/* =========================================================
   12.0 Content Sections
   ========================================================= */
.cta-band{
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2{ color: #fff; margin-bottom: 0.25rem; }
.cta-band p{ margin-bottom: 0; color: rgba(255,255,255,0.72); }

.value-props .grid--3 > div, .value-props .grid--4 > div{ text-align: left; }

.placeholder-notice{
  background: #fff7e6;
  border: 1px solid #f0d58c;
  color: #7a5b00;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

/* =========================================================
   12.1 Trust / Credentials Strip
   ========================================================= */
.credentials-section{ padding-top: 2.5rem; padding-bottom: 2.5rem; }
.credentials-label{
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 2rem;
}
.credentials-row{ display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2.5rem 3rem; }
.credential-item{ display: flex; align-items: center; justify-content: center; }
.credential-item a{ display: block; }
.credential-item img{
  max-height: 40px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.55;
  transition: filter var(--transition), opacity var(--transition);
}
.credential-item:hover img{ filter: grayscale(0); opacity: 1; }
.credential-name{ font-weight: 600; color: var(--color-text-muted); transition: color var(--transition); }
.credential-item:hover .credential-name{ color: var(--color-text); }

/* =========================================================
   12.2 Process
   ========================================================= */
.process-list{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
}
.process-step{ position: relative; text-align: left; }
.process-step::before{
  content: "";
  position: absolute;
  top: 20px;
  right: calc(50% + 24px);
  width: calc(100% - 24px);
  height: 1px;
  background: var(--color-border);
}
.process-step:first-child::before{ display: none; }
.process-number{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.process-step h3{ font-size: 1.05rem; margin-bottom: 0.4rem; }
.process-step p{ color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: 0; }

/* =========================================================
   12.3 Industries
   ========================================================= */
.industries-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}
.industry-chip{
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--color-border);
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--color-text);
}

/* =========================================================
   12.4 FAQ Accordion
   ========================================================= */
.faq-list{ max-width: 800px; margin-inline: auto; }
.faq-item{ border-bottom: 1px solid var(--color-border); }
.faq-item:first-child{ border-top: 1px solid var(--color-border); }
.faq-question{
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0;
  font-weight: 600;
  color: var(--color-text);
}
.faq-question::-webkit-details-marker{ display: none; }
.faq-question:hover{ color: var(--color-accent); }
.faq-icon{ position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.faq-icon::before,
.faq-icon::after{
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform var(--transition);
}
.faq-icon::before{ top: 8px; left: 1px; right: 1px; height: 2px; }
.faq-icon::after{ left: 8px; top: 1px; bottom: 1px; width: 2px; }
.faq-item[open] .faq-icon::after{ transform: rotate(90deg); }
.faq-item[open] .faq-question{ color: var(--color-accent); }
.faq-answer{ padding: 0 0 1.5rem; color: var(--color-text-muted); max-width: 65ch; }
.faq-answer > *:last-child{ margin-bottom: 0; }

/* =========================================================
   13.0 Blog / Archive / Single Post
   ========================================================= */
.post-list{ display: flex; flex-direction: column; gap: 2.5rem; }
.post-card{ display: grid; grid-template-columns: 260px 1fr; gap: 1.75rem; }
.post-card .thumb{ aspect-ratio: 4/3; border-radius: var(--radius-md); overflow: hidden; background: var(--color-bg-alt); }
.post-card .thumb img{ width: 100%; height: 100%; object-fit: cover; }
.post-meta{ font-size: 0.875rem; color: var(--color-text-muted); margin-bottom: 0.5rem; }
.post-meta a{ color: var(--color-text-muted); text-decoration: none; }
.entry-title a{ text-decoration: none; color: var(--color-primary); }
.entry-title a:hover{ color: var(--color-accent); }
.tag-list{ list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 1.5rem 0; }
.tag-list a{ display: inline-block; padding: 0.35rem 0.85rem; border: 1px solid var(--color-border); border-radius: 999px; font-size: 0.8rem; text-decoration: none; }

.single-content{ max-width: 760px; }
.single-content img{ border-radius: var(--radius-md); }
.entry-header{ margin-bottom: 2rem; }
.post-navigation{ display: flex; justify-content: space-between; gap: 1.5rem; margin: 3rem 0; border-top: 1px solid var(--color-border); padding-top: 1.5rem; }
.post-navigation a{ text-decoration: none; font-weight: 600; }

.pagination{ display: flex; gap: 0.5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.pagination a, .pagination span{
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 0.5rem;
  border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  text-decoration: none; color: var(--color-text);
}
.pagination .current{ background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.pagination a:hover{ border-color: var(--color-accent); color: var(--color-accent); }

/* =========================================================
   14.0 Comments
   ========================================================= */
.comments-area{ margin-top: 3rem; }
.comment-list{ list-style: none; margin: 0; padding: 0; }
.comment-list .children{ list-style: none; padding-left: 2rem; }
.comment-body{ border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.5rem; margin-bottom: 1.25rem; }
.comment-meta{ font-size: 0.875rem; color: var(--color-text-muted); margin-bottom: 0.5rem; }
.comment-reply-link{ font-size: 0.875rem; font-weight: 600; text-decoration: none; }

/* =========================================================
   15.0 Widgets / Sidebar
   ========================================================= */
.widget{ margin-bottom: 2.5rem; }
.widget-title{ font-size: 1rem; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 2px solid var(--color-accent); padding-bottom: 0.5rem; margin-bottom: 1rem; }
.widget ul{ list-style: none; padding: 0; margin: 0; }
.widget li{ margin-bottom: 0.6rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--color-border); }
.widget li:last-child{ border-bottom: none; }

/* =========================================================
   16.0 WordPress Core Alignment & Media
   ========================================================= */
.alignwide{ margin-left: -5%; margin-right: -5%; max-width: 110%; }
.alignfull{ margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.alignleft{ float: left; margin: 0.5rem 1.5rem 1rem 0; }
.alignright{ float: right; margin: 0.5rem 0 1rem 1.5rem; }
.aligncenter{ display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption{ font-size: 0.875rem; color: var(--color-text-muted); margin-top: 0.5rem; }

/* =========================================================
   17.0 Utilities
   ========================================================= */
.text-center{ text-align: center; }
.mt-0{ margin-top: 0; }
.mb-0{ margin-bottom: 0; }
.visually-hidden{ position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Scroll-reveal: JS opts individual elements into this class (only when
   prefers-reduced-motion is off and IntersectionObserver is supported —
   see assets/js/main.js), so content is never dependent on JS to become
   visible. */
.reveal-hidden{ opacity: 0; transform: translateY(16px); transition: opacity 500ms ease-out, transform 500ms ease-out; }
.reveal-hidden.is-visible{ opacity: 1; transform: translateY(0); }

/* =========================================================
   18.0 Responsive
   ========================================================= */
@media (max-width: 960px){
  .footer-widgets{ grid-template-columns: repeat(2, 1fr); }
  .content-layout{ grid-template-columns: 1fr; }
  .hero-grid{ grid-template-columns: 1fr; }
  .grid--4{ grid-template-columns: repeat(2, 1fr); }
  .grid--3{ grid-template-columns: repeat(2, 1fr); }
  .process-list{ grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2rem; }
  .process-step::before{ display: none; }
}

@media (max-width: 782px){
  .menu-toggle{ display: block; }
  .primary-navigation{
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    padding: 1rem var(--container-pad) 1.5rem;
  }
  .primary-navigation.is-open{ display: block; }
  .primary-navigation ul{ flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
  .primary-navigation li{ width: 100%; }
  .primary-navigation .sub-menu{ position: static; display: none; box-shadow: none; border: none; padding-left: 1rem; width: 100%; }
  .primary-navigation .menu-item-has-children.is-open > .sub-menu{ display: block; }
  .header-cta .btn-secondary{ display: none; }
  .post-card{ grid-template-columns: 1fr; }
  .footer-widgets{ grid-template-columns: 1fr; }
  .grid--2, .grid--3, .grid--4{ grid-template-columns: 1fr; }
  .process-list{ grid-template-columns: 1fr; gap: 2rem; }
  .cta-band{ flex-direction: column; text-align: center; }
  .footer-bottom .container{ flex-direction: column; text-align: center; }
}

@media print{
  .site-header, .site-footer, .skip-link, .menu-toggle{ display: none; }
}
