/*
Theme Name: QB Construct
Theme URI: https://qbconstruct.com
Author: QB Construct
Author URI: https://qbconstruct.com
Description: A premium construction and building theme for QB Construct, inspired by mountain estate luxury. Features full-width hero sections, project portfolios, team pages, and customizable layouts built for quality craftsmanship brands.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: qbconstruct
Tags: full-width-template, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, post-thumbnails, sticky-post, theme-options, threaded-comments, translation-ready, blog, portfolio, construction
*/

/* ============================
   DESIGN SYSTEM & VARIABLES
   ============================ */
:root {
  /* Core Palette */
  --color-stone:        #1C1A17;
  --color-earth:        #2E2A22;
  --color-bark:         #3D3529;
  --color-warm-mid:     #6B5E4A;
  --color-sand:         #A8906C;
  --color-wheat:        #C9AC80;
  --color-cream:        #F2EDE3;
  --color-white:        #FAFAF8;
  --color-accent:       #B87333; /* copper */
  --color-accent-light: #D4955A;
  --color-sky:          #7BA7B8;
  --color-charcoal:     #28252F;

  /* Functional */
  --bg-primary:         var(--color-stone);
  --bg-secondary:       var(--color-earth);
  --bg-light:           var(--color-cream);
  --text-primary:       var(--color-white);
  --text-dark:          var(--color-stone);
  --text-muted:         var(--color-sand);
  --border-color:       rgba(169,144,108,0.25);

  /* Typography */
  --font-display:  'Cormorant Garamond', 'Georgia', serif;
  --font-heading:  'Raleway', 'Helvetica Neue', sans-serif;
  --font-body:     'Jost', 'Helvetica Neue', sans-serif;
  --font-mono:     'DM Mono', monospace;

  /* Spacing */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   2rem;
  --space-lg:   4rem;
  --space-xl:   7rem;
  --space-2xl:  12rem;

  /* Layout */
  --max-width:      1440px;
  --content-width:  1200px;
  --nav-height:     90px;

  /* Transitions */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.7, 0, 0.84, 0);
  --ease-circ:  cubic-bezier(0.85, 0, 0.15, 1);
  --duration:   0.45s;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-dark);
  background-color: var(--color-white);
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================
   TYPOGRAPHY
   ============================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.375rem; }
h5 { font-family: var(--font-heading); font-size: 0.9rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; }
h6 { font-family: var(--font-heading); font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; }

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

.label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-accent);
}

/* ============================
   LAYOUT UTILITIES
   ============================ */
.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--wide {
  max-width: var(--max-width);
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-xl) 0;
}

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

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

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

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

.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

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

/* ============================
   BUTTONS
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border-radius: 2px;
  transition: all var(--duration) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(184,115,51,0.4);
}

.btn-outline {
  border: 1.5px solid currentColor;
  color: inherit;
}
.btn-outline:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--color-cream);
  padding-left: 0;
}
.btn-ghost .arrow {
  width: 28px;
  height: 1.5px;
  background: currentColor;
  position: relative;
  transition: width 0.3s var(--ease-out);
}
.btn-ghost .arrow::after {
  content: '';
  position: absolute;
  right: 0; top: -4px;
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.btn-ghost:hover .arrow { width: 44px; }

/* ============================
   NAVIGATION
   ============================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  /* Always visible by default — no more invisible/cut-off nav */
  background: rgba(28,26,23,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background var(--duration) var(--ease-out),
              box-shadow var(--duration) var(--ease-out),
              height 0.3s var(--ease-out);
}

#site-header.scrolled {
  background: rgba(28,26,23,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
  height: 68px;
}

/* Only transparent on pages that explicitly opt in via the hero metabox */
#site-header.header-transparent {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Force solid back on scroll, even over hero pages */
#site-header.header-transparent.scrolled {
  background: rgba(28,26,23,0.97) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}

/* WordPress admin bar compensation */
.admin-bar #site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar #site-header { top: 46px; }
}

/* Non-hero pages: offset content below fixed header */
.page-offset { padding-top: var(--nav-height); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.site-logo img {
  height: 42px;
  width: auto;
  transition: opacity 0.3s;
}

.site-logo-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-white);
  line-height: 1;
}

.site-logo-sub {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-top: 2px;
}

/* Primary Nav */
.primary-nav {
  display: flex;
  align-items: center;
}

/* ── Force WP's <ul> and <li> to lay out horizontally ── */
.primary-nav > ul,
.primary-nav > div > ul,
.primary-nav .menu,
.primary-nav .nav-menu {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 2.5rem;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-wrap: nowrap;
}

.primary-nav > ul > li,
.primary-nav > div > ul > li,
.primary-nav .menu > li,
.primary-nav .nav-menu > li {
  display: block !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.primary-nav a {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(250,250,248,0.82);
  transition: color 0.3s;
  position: relative;
}

.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 100%;
  height: 1.5px;
  background: var(--color-accent);
  transition: right 0.35s var(--ease-out);
}

.primary-nav a:hover,
.primary-nav a.current-menu-item { color: var(--color-white); }
.primary-nav a:hover::after,
.primary-nav a.current-menu-item::after { right: 0; }

/* Dropdown */
.primary-nav .menu-item-has-children {
  position: relative;
}

.primary-nav .sub-menu {
  position: absolute;
  top: calc(100% + 20px);
  left: -1.5rem;
  min-width: 200px;
  background: rgba(28,26,23,0.98);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0.75rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s var(--ease-out);
  /* Dropdowns must be vertical, not horizontal */
  display: block !important;
  flex-direction: column !important;
  gap: 0 !important;
}

.primary-nav .sub-menu li {
  display: block !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.primary-nav .menu-item-has-children:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-nav .sub-menu li a {
  display: block;
  padding: 0.6rem 1.5rem;
  font-size: 0.78rem;
  color: rgba(250,250,248,0.75);
}

.primary-nav .sub-menu li a:hover { color: var(--color-wheat); }
.primary-nav .sub-menu li a::after { display: none; }

/* Header CTA */
.header-cta { margin-left: 1rem; }

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 26px; height: 1.5px;
  background: var(--color-white);
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--color-stone);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-out);
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav ul {
  list-style: none;
  text-align: center;
}

.mobile-nav ul li { margin: 1rem 0; }

.mobile-nav ul li a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--color-cream);
  transition: color 0.3s;
}

.mobile-nav ul li a:hover { color: var(--color-accent); }

/* ============================
   HERO SECTIONS
   ============================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-stone);
}

.hero--short {
  min-height: 65vh;
}

.hero--medium {
  min-height: 80vh;
}

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

.hero-bg img,
.hero-bg video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(28,26,23,0.72) 0%,
    rgba(28,26,23,0.35) 60%,
    rgba(28,26,23,0.15) 100%
  );
}

.hero-overlay--center {
  background: linear-gradient(
    to bottom,
    rgba(28,26,23,0.45) 0%,
    rgba(28,26,23,0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-height) + var(--space-lg)) var(--space-lg) var(--space-xl);
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-content--center {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
  font-weight: 700;
}

.hero-title {
  color: var(--color-white);
  margin-bottom: var(--space-md);
  max-width: 14ch;
}

.hero-title--wide { max-width: 22ch; }

.hero-desc {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(250,250,248,0.82);
  max-width: 520px;
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

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

.hero-stats {
  position: absolute;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: 2;
  display: flex;
  gap: 3rem;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--color-white);
  line-height: 1;
  display: block;
}

.hero-stat-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-sand);
  display: block;
  margin-top: 4px;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

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

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ============================
   PROJECT CARDS
   ============================ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
}

.project-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.project-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-earth);
  display: block;
}

.project-card--tall { aspect-ratio: 3/4; }
.project-card--wide { grid-column: span 2; aspect-ratio: 16/7; }

.project-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.85s var(--ease-out);
}

.project-card:hover img { transform: scale(1.05); }

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,26,23,0.88) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.project-card:hover .project-card-overlay { opacity: 1; }

.project-card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.4s var(--ease-out);
}

.project-card:hover .project-card-info {
  transform: translateY(0);
  opacity: 1;
}

.project-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-white);
  margin-bottom: 0.25rem;
}

.project-card-meta {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-sand);
}

/* Featured Project */
.project-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 70vh;
}

.project-featured-image {
  position: relative;
  overflow: hidden;
}

.project-featured-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.85s var(--ease-out);
}

.project-featured:hover .project-featured-image img { transform: scale(1.04); }

.project-featured-content {
  background: var(--color-stone);
  color: var(--color-cream);
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ============================
   STATS SECTION
   ============================ */
.stats-bar {
  background: var(--color-accent);
  padding: var(--space-md) 0;
}

.stats-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.stat-item { text-align: center; }

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--color-white);
  font-weight: 400;
  line-height: 1;
  display: block;
}

.stat-suffix {
  color: rgba(255,255,255,0.7);
}

.stat-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  display: block;
  margin-top: 6px;
}

/* ============================
   ABOUT / INTRO SECTION
   ============================ */
.intro-section {
  padding: var(--space-xl) 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-xl);
  align-items: center;
}

.intro-image-wrap {
  position: relative;
}

.intro-image-main {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.intro-image-badge {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  width: 160px; height: 160px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  text-align: center;
  font-family: var(--font-heading);
}

.intro-image-badge strong {
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1;
}

.intro-image-badge span {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 4px;
}

/* ============================
   SERVICES / PILLARS
   ============================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-color);
}

.service-card {
  background: var(--color-white);
  padding: var(--space-lg) var(--space-md);
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 100%;
  height: 2px;
  background: var(--color-accent);
  transition: right 0.5s var(--ease-out);
}

.service-card:hover::before { right: 0; }
.service-card:hover { background: var(--color-cream); }

.service-icon {
  width: 52px; height: 52px;
  margin-bottom: var(--space-md);
  color: var(--color-accent);
}

.service-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--color-warm-mid);
  font-size: 0.975rem;
  line-height: 1.75;
}

/* ============================
   TEAM SECTION
   ============================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.team-card { text-align: center; }

.team-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  margin-bottom: var(--space-sm);
}

.team-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
  filter: grayscale(20%);
}

.team-card:hover .team-photo img {
  transform: scale(1.04);
  filter: grayscale(0%);
}

.team-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
}

.team-role {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-top: 4px;
}

/* ============================
   TESTIMONIALS
   ============================ */
.testimonial-section {
  background: var(--color-stone);
  color: var(--color-cream);
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

.testimonial-section::before {
  content: '"';
  position: absolute;
  top: -0.5rem; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 25rem;
  color: rgba(255,255,255,0.02);
  line-height: 1;
  pointer-events: none;
}

.testimonial-slider { position: relative; }

.testimonial-item {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  display: none;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}

.testimonial-item.active {
  display: block;
  opacity: 1;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.55;
  color: var(--color-cream);
  font-style: italic;
  margin-bottom: var(--space-md);
}

.testimonial-author {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: var(--space-md);
}

.testimonial-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(250,250,248,0.3);
  cursor: pointer;
  transition: all 0.3s;
}

.testimonial-dot.active {
  background: var(--color-accent);
  transform: scale(1.3);
}

/* ============================
   PROCESS / TIMELINE
   ============================ */
.process-steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border-color);
}

.process-step {
  background: var(--color-cream);
  padding: var(--space-lg) var(--space-md);
  position: relative;
  counter-increment: step;
}

.process-step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 5rem;
  color: rgba(184,115,51,0.12);
  position: absolute;
  top: 1rem; right: 1.5rem;
  line-height: 1;
  font-weight: 400;
}

.process-step h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  position: relative;
}

.process-step p {
  font-size: 0.92rem;
  color: var(--color-warm-mid);
  position: relative;
}

/* ============================
   CTA SECTION
   ============================ */
.cta-section {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
}

.cta-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(28,26,23,0.72);
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  padding: var(--space-xl);
  width: 100%;
}

.cta-content h2 {
  margin-bottom: var(--space-sm);
}

.cta-content p {
  font-size: 1.1rem;
  color: rgba(250,250,248,0.8);
  max-width: 520px;
  margin: 0 auto var(--space-md);
}

/* ============================
   BLOG / INSIGHTS
   ============================ */
.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-white);
  border: 1px solid var(--border-color);
  transition: box-shadow 0.4s var(--ease-out);
}

.post-card:hover {
  box-shadow: 0 20px 60px rgba(28,26,23,0.12);
}

.post-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.post-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.post-card:hover .post-card-image img { transform: scale(1.05); }

.post-card-body { padding: var(--space-md); flex: 1; display: flex; flex-direction: column; }

.post-card-cat {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.post-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  flex: 1;
}

.post-card-meta {
  font-size: 0.82rem;
  color: var(--color-warm-mid);
  margin-top: var(--space-sm);
}

/* ============================
   CONTACT SECTION
   ============================ */
.contact-section {
  padding: var(--space-xl) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-xl);
  align-items: start;
}

.contact-info h2 { margin-bottom: var(--space-sm); }

.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-color);
}

.contact-detail-icon {
  width: 44px; height: 44px;
  background: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  flex-shrink: 0;
  color: var(--color-accent);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-warm-mid);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--color-cream);
  border: 1.5px solid var(--border-color);
  border-radius: 2px;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-stone);
  transition: border-color 0.3s;
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-accent);
}

.form-group textarea { min-height: 140px; resize: vertical; }

/* ============================
   FOOTER
   ============================ */
#site-footer {
  background: var(--color-stone);
  color: var(--color-sand);
  padding-top: var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand .site-logo-text { color: var(--color-white); }

.footer-brand p {
  margin-top: var(--space-sm);
  font-size: 0.92rem;
  color: rgba(168,144,108,0.75);
  line-height: 1.7;
}

.footer-col h6 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
  letter-spacing: 0.22em;
}

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

.footer-col ul li a {
  color: rgba(168,144,108,0.75);
  font-size: 0.92rem;
  transition: color 0.3s;
}

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

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: var(--space-md);
}

.social-link {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-sand);
  transition: all 0.3s;
}

.social-link:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.footer-bottom {
  padding: 1.75rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(168,144,108,0.55);
}

.footer-bottom a { color: inherit; transition: color 0.3s; }
.footer-bottom a:hover { color: var(--color-sand); }

/* ============================
   PAGE-SPECIFIC STYLES
   ============================ */

/* Single Post */
.post-header { padding: var(--space-xl) 0 var(--space-lg); background: var(--color-cream); }
.post-content { max-width: 760px; margin: 0 auto; padding: var(--space-xl) var(--space-md); }
.post-content h2, .post-content h3 { margin: 2rem 0 1rem; }
.post-content ul, .post-content ol { margin: 1rem 0 1rem 2rem; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: 2rem;
  margin: 2rem 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--color-warm-mid);
}

/* Archive */
.archive-header { padding: var(--space-xl) 0 var(--space-lg); background: var(--color-stone); color: var(--color-cream); }

/* 404 */
.error-404 { min-height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: var(--space-xl); }
.error-404 h1 { font-size: 10rem; color: var(--color-accent); line-height: 1; }

/* ============================
   ANIMATIONS
   ============================ */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

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

.stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.stagger.in-view > * { opacity: 1; transform: none; }
.stagger.in-view > *:nth-child(1) { transition-delay: 0s; }
.stagger.in-view > *:nth-child(2) { transition-delay: 0.12s; }
.stagger.in-view > *:nth-child(3) { transition-delay: 0.24s; }
.stagger.in-view > *:nth-child(4) { transition-delay: 0.36s; }

/* ============================
   WIDGET AREAS
   ============================ */
.widget { margin-bottom: var(--space-lg); }
.widget-title {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  color: var(--color-stone);
  font-weight: 700;
}

/* ============================
   WOOCOMMERCE COMPATIBILITY
   ============================ */
.woocommerce-product-gallery { margin-bottom: var(--space-md); }
.woocommerce .button { @extend .btn; @extend .btn-primary; }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1200px) {
  :root { --space-xl: 5rem; --space-lg: 3rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-md); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-image-wrap { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .project-featured { grid-template-columns: 1fr; }
  .project-featured-image { aspect-ratio: 16/8; }
}

@media (max-width: 768px) {
  :root { --space-xl: 4rem; --space-lg: 2rem; }
  .primary-nav { display: none; }
  .menu-toggle { display: flex; }
  .header-cta { display: none; }
  .header-inner { padding: 0 var(--space-md); }
  .hero-stats { position: static; padding: var(--space-md) var(--space-md) var(--space-md); display: flex; gap: 2rem; }
  .hero-content { padding: calc(var(--nav-height) + 2rem) var(--space-md) var(--space-lg); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card--wide { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .container--wide { padding: 0 var(--space-md); }
  .section { padding: var(--space-lg) 0; }
  .contact-form .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .stats-bar .container { flex-direction: column; gap: 1.5rem; }
}

/* ============================
   PRINT
   ============================ */
@media print {
  #site-header, .hero-actions, .scroll-indicator, #site-footer { display: none; }
  body { font-size: 12pt; }
}
