/*
Theme Name: JGC Home Builder
Theme URI: https://jgcconstruction.ca
Author: JGC Construction
Author URI: https://jgcconstruction.ca
Description: A premium custom home building WordPress theme for JGC Construction. Focused on new home construction, framing, and whole-house builds across Canada.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jgc-homebuilder
Tags: construction, home-builder, custom-homes, responsive, one-column, two-columns, full-width-template
*/

/* =========================================================
   DESIGN TOKENS & CSS VARIABLES
   ========================================================= */
:root {
  /* Brand Colors — JGC Construction: Black/Orange/White palette */
  --navy:        #333333;   /* Primary dark — JGC brand black         */
  --navy-light:  #2A2A2A;   /* Slightly deeper black for sections      */
  --navy-mid:    #3D3D3D;   /* Mid dark for hover states               */
  --gold:        #DD5C24;   /* JGC brand orange                        */
  --gold-light:  #F06B2F;   /* Lighter orange for hover                */
  --gold-pale:   #FDDDD1;   /* Very pale orange tint for backgrounds   */
  --ivory:       #F7F7F7;   /* Near-white section background           */
  --white:       #FFFFFF;
  --slate:       #555555;
  --slate-light: #888888;
  --slate-pale:  #F0F0F0;
  --charcoal:    #222222;
  --red-accent:  #C53030;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', 'Helvetica Neue', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --font-accent:  'Raleway', sans-serif;

  /* Spacing Scale */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;
  --space-3xl: 9rem;

  /* Container */
  --container-max: 1280px;
  --container-pad: 1.5rem;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.3s var(--ease-out);

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.15);
  --shadow-lg:  0 10px 40px rgba(0,0,0,0.20);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.25);

  /* Border radius */
  --radius-sm:  2px;
  --radius-md:  6px;
  --radius-lg:  12px;
}

/* =========================================================
   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(--charcoal);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover { color: var(--gold-light); }

ul, ol { list-style: none; }

/* =========================================================
   TYPOGRAPHY SYSTEM
   ========================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.25rem; font-family: var(--font-accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

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

.lead {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--slate);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

/* =========================================================
   LAYOUT UTILITIES
   ========================================================= */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.container--narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

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

.section--sm { padding: var(--space-xl) 0; }
.section--dark { background: var(--navy); }
.section--navy-light { background: var(--navy-light); }
.section--ivory { background: var(--ivory); }
.section--gold { background: var(--gold); }

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

.flex { display: flex; }
.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-white { color: var(--white) !important; }
.text-gold { color: var(--gold) !important; }
.text-navy { color: var(--navy) !important; }

.section-header {
  max-width: 640px;
  margin-bottom: var(--space-xl);
}

.section-header--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 1rem 0 1.5rem;
}

.divider--center {
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.btn--primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.btn--primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--outline:hover {
  background: var(--white);
  color: var(--navy);
}

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

.btn--outline-gold:hover {
  background: var(--gold);
  color: var(--navy);
}

.btn--outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn--outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}

.btn--lg {
  padding: 1.1rem 2.5rem;
  font-size: 0.9rem;
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

/* =========================================================
   FIXED HEADER WRAPPER — single fixed container for top bar + nav
   ========================================================= */
#site-header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

#site-header-wrapper.header-solid {
  background: #ffffff;
  box-shadow: none;
  border-bottom: 3px solid var(--gold);
}

/* Spacer pushes page content below the 36px top-bar + 72px header = 108px */
.header-spacer { height: 108px; }

@media (max-width: 768px) {
  .top-bar { display: none; }
  .header-spacer { height: 72px; }
}

/* =========================================================
   TOP CONTACT BAR
   ========================================================= */
.top-bar {
  background: var(--navy);
  padding: 0.48rem 0;
  font-size: 0.8rem;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: nowrap;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color var(--transition);
  white-space: nowrap;
  font-size: 0.78rem;
}

.top-bar-item:hover { color: var(--gold); }

.top-bar-item svg {
  width: 13px;
  height: 13px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
}

.top-bar-divider {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.18);
}

/* =========================================================
   MAIN HEADER BAR
   ========================================================= */
#site-header {
  background: transparent; /* wrapper handles bg */
}

#site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem var(--container-pad);
  max-width: var(--container-max);
  margin: 0 auto;
  min-height: 72px;
  gap: 1rem;
}

/* =========================================================
   LOGO — inline SVG, no image files needed
   ========================================================= */
.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  gap: 0;
}

.site-logo svg {
  display: block;
  height: 58px;
  width: auto;
}

/* Fallback text (shown only if SVG fails) */
.site-logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.site-logo .logo-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}
.site-logo .logo-tagline {
  font-family: var(--font-accent);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Footer logo — same SVG, just white text version */
.footer-logo svg .logo-svg-text { fill: #ffffff; }
.footer-logo svg .logo-svg-sub  { fill: #ffffff; }

/* =========================================================
   PRIMARY NAVIGATION
   ========================================================= */
#site-navigation {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

#site-navigation ul {
  display: flex;
  gap: 0;
  align-items: center;
  list-style: none;
}

#site-navigation ul li {
  position: relative;
}

#site-navigation ul li a {
  display: block;
  padding: 0.5rem 0.6rem;
  font-family: var(--font-accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
  transition: color var(--transition);
  white-space: nowrap;
}

#site-navigation ul li a:hover,
#site-navigation ul li.current-menu-item > a { color: var(--gold) !important; }

/* Dropdown */
#site-navigation ul li ul {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 230px;
  background: var(--white);
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow-lg);
  flex-direction: column;
  gap: 0;
  list-style: none;
}

#site-navigation ul li:hover > ul { display: flex; }

#site-navigation ul li ul li a {
  padding: 0.75rem 1.25rem;
  color: var(--navy) !important;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 0.76rem;
}

#site-navigation ul li ul li a:hover {
  color: var(--gold) !important;
  background: rgba(221,92,36,0.05);
}

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

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy);
  transition: all var(--transition);
}

/* =========================================================
   HERO — HOMEPAGE
   ========================================================= */
.hero {
  position: relative;
  min-height: calc(100vh - 114px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('assets/images/hero-home.jpg') center center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(13,27,42,0.92) 0%,
    rgba(13,27,42,0.75) 55%,
    rgba(13,27,42,0.4) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 5rem var(--container-pad) 6rem;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}

.hero-content .eyebrow {
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero-content h1 {
  color: var(--white);
  max-width: 700px;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.4s forwards;
}

.hero-content h1 span { color: var(--gold); }

.hero-content .hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  max-width: 540px;
  margin: 1.5rem 0 2.5rem;
  line-height: 1.8;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.6s forwards;
}

.hero-content .btn-group {
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.8s forwards;
}

/* Hero Stats Bar */
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(13,27,42,0.9);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(200,146,42,0.3);
  z-index: 3;
}

.hero-stats-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 1.5rem var(--space-md);
  border-right: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

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

.stat-item .stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat-item .stat-label {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 0.4rem;
}

/* =========================================================
   INTRO / BRAND STATEMENT
   ========================================================= */
.brand-intro {
  padding: var(--space-3xl) 0;
  background: var(--ivory);
}

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

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

.brand-intro-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}

.brand-intro-image .image-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--gold);
  color: var(--navy);
  padding: 1.5rem;
  text-align: center;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.brand-intro-image .image-badge .badge-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.brand-intro-image .image-badge .badge-text {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

.brand-intro-content { padding-left: var(--space-md); }

/* =========================================================
   SERVICES / WHAT WE BUILD
   ========================================================= */
.services-section {
  background: var(--navy);
  padding: var(--space-3xl) 0;
}

.services-section h2,
.services-section .eyebrow { color: var(--white); }

.services-section .section-header p { color: rgba(255,255,255,0.7); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}

.service-card {
  background: var(--navy);
  padding: var(--space-lg);
  position: relative;
  transition: background var(--transition);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { background: var(--navy-mid); }

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(200,146,42,0.12);
  border: 1px solid rgba(200,146,42,0.3);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: var(--gold);
  border-color: var(--gold);
}

.service-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  transition: stroke var(--transition);
}

.service-card:hover .service-icon svg { stroke: var(--navy); }

.service-card h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* =========================================================
   PROCESS — HOW WE BUILD
   ========================================================= */
.process-section {
  background: var(--ivory);
  padding: var(--space-3xl) 0;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  position: relative;
  counter-reset: step;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 1px);
  right: calc(12.5% + 1px);
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-pale) 100%);
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-step-num {
  width: 56px;
  height: 56px;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--gold);
}

.process-step h4 {
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-accent);
  letter-spacing: 0.04em;
}

.process-step p {
  font-size: 0.9rem;
  color: var(--slate);
  margin: 0;
}

/* =========================================================
   PORTFOLIO / GALLERY
   ========================================================= */
.portfolio-section {
  padding: var(--space-3xl) 0;
}

.portfolio-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.filter-btn {
  font-family: var(--font-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--slate-pale);
  background: none;
  cursor: pointer;
  transition: all var(--transition);
  border-radius: var(--radius-sm);
  color: var(--slate);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

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

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--navy-light);
  aspect-ratio: 4/3;
  cursor: pointer;
}

.portfolio-item.featured {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

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

.portfolio-item:hover img { transform: scale(1.06); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,27,42,0.9) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.portfolio-info h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.portfolio-info span {
  color: var(--gold);
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =========================================================
   WHY CHOOSE US
   ========================================================= */
.why-section {
  background: var(--navy);
  padding: var(--space-3xl) 0;
}

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

.why-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.why-content .eyebrow { color: var(--gold); }

.why-content h2 { color: var(--white); }

.why-content > p { color: rgba(255,255,255,0.72); margin: 1rem 0 2rem; }

.why-points {
  display: grid;
  gap: 1.25rem;
}

.why-point {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.why-point-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(200,146,42,0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-point-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
}

.why-point-body h5 {
  color: var(--white);
  font-family: var(--font-accent);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}

.why-point-body p {
  color: rgba(255,255,255,0.62);
  font-size: 0.9rem;
  margin: 0;
}

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials-section {
  background: var(--ivory);
  padding: var(--space-3xl) 0;
}

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

.testimonial-card {
  background: var(--white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--gold);
  transition: box-shadow var(--transition), transform var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1rem;
}

.testimonial-stars span {
  color: var(--gold);
  font-size: 1rem;
}

.testimonial-quote {
  font-size: 0.95rem;
  color: var(--charcoal);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-quote::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--gold);
  position: absolute;
  top: -0.5rem;
  left: -0.25rem;
  line-height: 1;
  opacity: 0.4;
}

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

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
}

.author-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
}

.author-location {
  font-size: 0.8rem;
  color: var(--slate-light);
}

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band {
  background: var(--gold);
  padding: var(--space-xl) 0;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.cta-band h2 {
  color: var(--navy);
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.cta-band p {
  color: rgba(13,27,42,0.75);
  margin-top: 0.5rem;
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.page-hero {
  background: var(--navy);
  padding: 9rem 0 4rem;
  text-align: center;
}

.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.7); margin-top: 1rem; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--space-xl);
  align-items: start;
  padding: var(--space-3xl) 0;
}

.contact-info h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.contact-info > p {
  color: var(--slate);
  margin-bottom: 2rem;
}

.contact-details {
  display: grid;
  gap: 1.25rem;
}

.contact-detail {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--navy);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-detail-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
}

.contact-detail-body strong {
  display: block;
  color: var(--navy);
  font-family: var(--font-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.contact-detail-body span {
  color: var(--slate);
  font-size: 0.95rem;
}

/* Contact Form */
.contact-form {
  background: var(--ivory);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
}

.contact-form h3 { margin-bottom: 1.5rem; }

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

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

.form-group label {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid rgba(0,0,0,0.1);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
  outline: none;
}

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

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

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  padding: var(--space-3xl) 0;
}

.about-image-stack {
  position: relative;
}

.about-image-stack .img-main {
  width: 80%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}

.about-image-stack .img-secondary {
  position: absolute;
  bottom: -2rem;
  right: 0;
  width: 50%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 4px solid var(--white);
  box-shadow: var(--shadow-lg);
}

.team-section {
  background: var(--ivory);
  padding: var(--space-3xl) 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

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

.team-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-md);
}

.team-card h4 {
  color: var(--navy);
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.team-card .team-role {
  color: var(--gold);
  font-family: var(--font-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Values section */
.values-section { padding: var(--space-3xl) 0; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.value-item {
  padding: var(--space-lg);
  border-left: 3px solid var(--gold);
  background: var(--ivory);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.value-item h4 {
  color: var(--navy);
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.value-item p {
  color: var(--slate);
  font-size: 0.95rem;
  margin: 0;
}

/* =========================================================
   PROCESS PAGE (FULL)
   ========================================================= */
.process-full {
  padding: var(--space-3xl) 0;
}

.process-full-steps {
  display: grid;
  gap: var(--space-xl);
}

.process-full-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.process-full-step:nth-child(even) {
  direction: rtl;
}

.process-full-step:nth-child(even) > * {
  direction: ltr;
}

.process-step-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.step-circle {
  width: 72px;
  height: 72px;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--gold);
  flex-shrink: 0;
}

.step-line {
  width: 2px;
  flex: 1;
  min-height: 80px;
  background: linear-gradient(180deg, var(--gold) 0%, transparent 100%);
  margin-top: 0.5rem;
}

.process-step-content {
  padding-top: 0.75rem;
}

.process-step-content .eyebrow { color: var(--gold); }

.process-step-content h3 { margin-bottom: 0.75rem; }

.process-step-content p { color: var(--slate); }

.process-step-content img {
  width: 100%;
  aspect-ratio: 16/7;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
  box-shadow: var(--shadow-md);
}

/* =========================================================
   FLOOR PLANS PAGE
   ========================================================= */
.plans-section { padding: var(--space-3xl) 0; }

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

.plan-card {
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.plan-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.plan-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--slate-pale);
}

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

.plan-card:hover .plan-card-image img { transform: scale(1.04); }

.plan-card-body {
  padding: 1.5rem;
}

.plan-card-meta {
  display: flex;
  gap: 1.5rem;
  margin: 0.75rem 0 1.25rem;
  flex-wrap: wrap;
}

.plan-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--slate);
}

.plan-meta-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
}

/* =========================================================
   FOOTER
   ========================================================= */
#site-footer {
  background: var(--navy);
  padding: var(--space-xl) 0 0;
}

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

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  text-decoration: none;
}

.footer-brand .footer-logo img { height: 48px; }

.footer-brand .logo-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
}

.footer-brand .logo-tagline {
  font-family: var(--font-accent);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
}

.footer-brand p {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

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

.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.footer-social a:hover { background: var(--gold); }

.footer-social a svg {
  width: 18px;
  height: 18px;
  stroke: var(--white);
  fill: none;
  stroke-width: 1.5;
}

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

.footer-col ul { display: grid; gap: 0.6rem; }

.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  margin-top: 3px;
  flex-shrink: 0;
}

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

.footer-bottom p {
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
  margin: 0;
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
  font-size: 0.82rem;
  transition: color var(--transition);
}

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

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

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

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

/* Scroll-triggered fade */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Stagger children */
.stagger-children > * { opacity: 0; transform: translateY(24px); }
.stagger-children.visible > *:nth-child(1) { animation: fadeUp 0.6s var(--ease-out) 0.1s forwards; }
.stagger-children.visible > *:nth-child(2) { animation: fadeUp 0.6s var(--ease-out) 0.2s forwards; }
.stagger-children.visible > *:nth-child(3) { animation: fadeUp 0.6s var(--ease-out) 0.3s forwards; }
.stagger-children.visible > *:nth-child(4) { animation: fadeUp 0.6s var(--ease-out) 0.4s forwards; }
.stagger-children.visible > *:nth-child(5) { animation: fadeUp 0.6s var(--ease-out) 0.5s forwards; }
.stagger-children.visible > *:nth-child(6) { animation: fadeUp 0.6s var(--ease-out) 0.6s forwards; }

/* =========================================================
   WORDPRESS CORE CLASSES
   ========================================================= */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--slate-light); margin-top: 0.5rem; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin: 0 auto 1rem; display: block; }
.alignwide { margin-left: -3rem; margin-right: -3rem; }
.alignfull { margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); max-width: 100vw; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 8px;
  z-index: 9999;
  font-weight: 700;
}
.skip-link:focus { top: 0; }

/* Screen reader text */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .hero-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .plans-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --space-3xl: 5rem; }

  .top-bar { display: none; }
  .header-spacer { height: 78px; }
  body.home .header-spacer { display: none; }

  #site-navigation ul { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }

  #site-navigation.nav-open ul {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navy);
    justify-content: center;
    align-items: center;
    gap: 1rem;
    z-index: 999;
  }

  #site-navigation.nav-open ul li a {
    font-size: 1.2rem;
    color: var(--white) !important;
  }

  #site-navigation.nav-open ul li a:hover {
    color: var(--gold) !important;
  }

  .brand-intro-grid,
  .why-grid,
  .about-intro,
  .contact-layout { grid-template-columns: 1fr; }

  .brand-intro-content { padding-left: 0; }

  .brand-intro-image .image-badge {
    bottom: 1rem;
    right: 1rem;
  }

  .portfolio-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-item.featured { grid-column: span 2; }

  .testimonials-grid { grid-template-columns: 1fr; }

  .hero-stats-inner { grid-template-columns: repeat(2, 1fr); }

  .cta-band-inner { flex-direction: column; text-align: center; }

  .values-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .process-full-step,
  .process-full-step:nth-child(even) {
    grid-template-columns: auto 1fr;
    direction: ltr;
  }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item.featured { grid-column: span 1; }
  .hero-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: 1fr; }
}
