/*
Theme Name: PaintCraft Pro
Theme URI: https://easyaccurate.com
Author: Easy Accurate Business Network
Description: A luxury editorial WordPress theme for residential and commercial painting contractors. Features a project gallery CPT, AJAX estimate calculator, customer reviews CPT, Customizer panels, and full local SEO structure. Aesthetic: refined, architectural, Architectural Digest meets skilled trade.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: paintcraft
Tags: painting, contractor, residential, commercial, portfolio, reviews, estimate, luxury
*/

/* ═══════════════════════════════════════════════════════════
   DESIGN SYSTEM  ·  "Atelier Craft"
   Forest Green authority · Warm Gold accent · Ivory canvas
   Display: Playfair Display (editorial serif elegance)
   Body:    Outfit (geometric warmth, highly readable)
   Mood: A painting company that clients brag about to friends
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Palette */
  --forest:        #1C3A2E;
  --forest-mid:    #264D3B;
  --forest-light:  #2E6048;
  --forest-pale:   #EAF2EC;
  --gold:          #C9963A;
  --gold-light:    #E4B55A;
  --gold-pale:     #FDF5E6;
  --gold-glow:     rgba(201,150,58,.15);
  --ivory:         #FAFAF7;
  --warm-white:    #F5F4F0;
  --surface:       #FFFFFF;
  --parchment:     #F0EDE5;
  --border:        #E2DDD5;
  --border-dark:   #C8C0B5;
  --ink:           #1A1714;
  --ink-mid:       #3D3630;
  --ink-soft:      #6B6058;
  --sage:          #7EA88A;
  --sage-pale:     #D4E8D8;
  --rust:          #B85C38;
  --success:       #2E7D52;

  /* Typography */
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body:    'Outfit', 'Helvetica Neue', sans-serif;

  /* Spacing */
  --sp-xs:   4px;   --sp-sm:  8px;   --sp-md: 16px;
  --sp-lg:   28px;  --sp-xl:  48px;  --sp-2xl: 80px;  --sp-3xl: 120px;

  /* Radii */
  --r-sm: 4px;  --r-md: 8px;  --r-lg: 16px;  --r-xl: 28px;  --r-pill: 9999px;

  /* Shadows */
  --sh-xs:    0 1px 4px rgba(28,58,46,.06);
  --sh-sm:    0 3px 14px rgba(28,58,46,.10);
  --sh-md:    0 10px 32px rgba(28,58,46,.13);
  --sh-lg:    0 24px 64px rgba(28,58,46,.17);
  --sh-gold:  0 8px 32px rgba(201,150,58,.28);
  --sh-inset: inset 0 1px 3px rgba(28,58,46,.08);

  /* Layout */
  --max-w:    1200px;
  --header-h: 80px;
  --ease:     cubic-bezier(.4,0,.2,1);
  --dur:      0.3s;
}

/* ─── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--gold); }
ul { list-style: none; }
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  color: var(--forest);
  line-height: 1.2;
  font-weight: 700;
}

/* ─── Layout ──────────────────────────────────────────── */
.wrap          { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--sp-lg); }
.wrap--narrow  { max-width: 780px; }
.wrap--wide    { max-width: 1440px; }
.site-wrapper  { display: flex; flex-direction: column; min-height: 100vh; }
.site-main     { flex: 1; }

/* ─── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--r-md);
  font-family: var(--font-body); font-weight: 600;
  font-size: .875rem; letter-spacing: .4px;
  cursor: pointer; border: 1.5px solid transparent;
  transition: all var(--dur) var(--ease); white-space: nowrap;
}
.btn-forest {
  background: var(--forest); color: #fff; border-color: var(--forest);
}
.btn-forest:hover {
  background: var(--forest-light); border-color: var(--forest-light);
  color: #fff; box-shadow: var(--sh-md); transform: translateY(-2px);
}
.btn-gold {
  background: var(--gold); color: #fff; border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-light); border-color: var(--gold-light);
  color: #fff; box-shadow: var(--sh-gold); transform: translateY(-2px);
}
.btn-outline-forest {
  background: transparent; color: var(--forest); border-color: var(--forest);
}
.btn-outline-forest:hover {
  background: var(--forest); color: #fff;
}
.btn-outline-ivory {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.5);
}
.btn-outline-ivory:hover {
  background: rgba(255,255,255,.12); border-color: #fff; color: #fff;
}
.btn-lg  { padding: 16px 36px; font-size: .95rem; border-radius: var(--r-lg); }
.btn-xl  { padding: 18px 44px; font-size: 1rem; border-radius: var(--r-lg); }
.btn-sm  { padding: 9px 18px; font-size: .8rem; }
.btn-full { width: 100%; justify-content: center; }

/* ─── Accents & decorative elements ──────────────────── */
.gold-line {
  display: block; width: 48px; height: 3px;
  background: var(--gold);
  margin-bottom: var(--sp-md);
  border-radius: var(--r-pill);
}
.gold-line--center { margin-left: auto; margin-right: auto; }
.section-kicker {
  font-family: var(--font-body); font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 3px; color: var(--gold);
  display: block; margin-bottom: var(--sp-sm);
}
.section-title {
  font-family: var(--font-display); font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  color: var(--forest); margin-bottom: var(--sp-md); font-style: italic;
}
.section-title em { font-style: normal; }
.section--dark .section-title, .section--forest .section-title { color: #fff; }
.section-lead {
  font-size: 1rem; color: var(--ink-soft); line-height: 1.85; max-width: 540px;
}
.section--dark .section-lead, .section--forest .section-lead { color: rgba(255,255,255,.6); }
.section-hdr { margin-bottom: var(--sp-2xl); }
.section-hdr--center { text-align: center; }
.section-hdr--center .section-lead { margin: 0 auto; }
.section-hdr--center .gold-line { margin-left: auto; margin-right: auto; }

/* ─── Section wrappers ────────────────────────────────── */
.section       { padding: var(--sp-3xl) 0; }
.section--ivory  { background: var(--ivory); }
.section--white  { background: var(--surface); }
.section--parch  { background: var(--parchment); }
.section--forest { background: var(--forest); }
.section--dark   { background: var(--ink); }
.section--gold-pale { background: var(--gold-pale); }

/* ─── Top bar ─────────────────────────────────────────── */
.top-bar {
  background: var(--forest); padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.top-bar-inner {
  display: flex; justify-content: space-between; align-items: center;
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--sp-lg);
}
.top-bar-left, .top-bar-right {
  display: flex; align-items: center; gap: 20px; font-size: .78rem;
}
.top-bar a { color: rgba(255,255,255,.65); }
.top-bar a:hover { color: var(--gold-light); }
.top-bar i { margin-right: 5px; color: var(--sage); }
.top-bar-badge {
  background: var(--gold); color: #fff; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; padding: 2px 10px;
  border-radius: var(--r-pill);
}

/* ─── Header ──────────────────────────────────────────── */
.site-header {
  background: #fff; height: var(--header-h);
  position: sticky; top: 0; z-index: 900;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--sh-xs);
  transition: box-shadow var(--dur) var(--ease);
}
.site-header.scrolled { box-shadow: var(--sh-sm); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--sp-lg); gap: var(--sp-xl);
}

/* Logo */
.site-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-emblem {
  width: 48px; height: 48px; background: var(--forest);
  border-radius: var(--r-md); display: flex; align-items: center;
  justify-content: center; position: relative; overflow: hidden;
  flex-shrink: 0;
}
.logo-emblem::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 38%;
  background: var(--gold);
  clip-path: polygon(0 70%, 30% 30%, 55% 55%, 80% 15%, 100% 45%, 100% 100%, 0 100%);
}
.logo-emblem::after {
  content: '✦';
  position: relative; z-index: 1; color: #fff;
  font-size: 20px; line-height: 1;
}
.logo-copy { display: flex; flex-direction: column; line-height: 1.1; }
.logo-copy strong {
  font-family: var(--font-display); font-size: 1.3rem;
  color: var(--forest); font-weight: 700; font-style: italic;
}
.logo-copy span {
  font-size: .6rem; text-transform: uppercase; letter-spacing: 2.5px;
  color: var(--gold); font-weight: 600;
}

/* Primary nav */
.main-nav { flex: 1; }
.main-nav > ul { display: flex; gap: 2px; align-items: center; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block; padding: 9px 14px;
  font-size: .825rem; font-weight: 600; color: var(--ink-mid);
  letter-spacing: .3px; border-radius: var(--r-sm);
  transition: all var(--dur) var(--ease);
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.current-menu-item > a {
  color: var(--forest); background: var(--forest-pale);
}
.main-nav > ul > li.current-menu-item > a { color: var(--forest); font-weight: 700; }

/* Dropdown */
.main-nav .sub-menu {
  position: absolute; top: calc(100% + 10px); left: 0;
  background: #fff; border: 1px solid var(--border);
  border-top: 3px solid var(--gold); border-radius: 0 0 var(--r-lg) var(--r-lg);
  min-width: 230px; padding: var(--sp-sm);
  box-shadow: var(--sh-lg); z-index: 100;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all var(--dur) var(--ease);
}
.main-nav > ul > li:hover .sub-menu {
  opacity: 1; visibility: visible; transform: none;
}
.main-nav .sub-menu li a {
  display: block; padding: 10px 14px; font-size: .825rem;
  font-weight: 500; color: var(--ink-mid); border-radius: var(--r-sm);
  transition: all var(--dur) var(--ease);
}
.main-nav .sub-menu li a:hover {
  background: var(--forest-pale); color: var(--forest);
}

/* Header actions */
.header-actions {
  display: flex; align-items: center; gap: var(--sp-sm); flex-shrink: 0;
}
.header-phone {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .875rem; color: var(--forest);
}
.header-phone i { color: var(--gold); }
.header-phone:hover { color: var(--forest-light); }

/* Mobile toggle */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--forest); border-radius: 2px;
  transition: all var(--dur) var(--ease);
}

/* ─── Hero  (asymmetric diagonal split) ──────────────── */
.hero {
  background: var(--forest);
  position: relative; overflow: hidden;
  min-height: 680px; display: flex; align-items: center;
}

/* Gold diagonal blade */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(108deg, transparent 52%, rgba(201,150,58,.10) 52%);
  pointer-events: none; z-index: 1;
}

/* Subtle linen texture */
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='1' height='4' x='0' fill='%23ffffff'/%3E%3Crect width='4' height='1' y='0' fill='%23ffffff'/%3E%3C/svg%3E");
}

.hero-wrap {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 480px;
  gap: var(--sp-2xl); align-items: center;
  max-width: var(--max-w); margin: 0 auto;
  padding: var(--sp-3xl) var(--sp-lg);
}

.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .7rem; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold-light);
  margin-bottom: var(--sp-lg);
}
.hero-kicker::before {
  content: ''; width: 32px; height: 1.5px;
  background: var(--gold); flex-shrink: 0;
}

.hero-h1 {
  font-family: var(--font-display); font-size: clamp(3rem, 5.5vw, 5rem);
  color: #fff; line-height: 1.05; margin-bottom: var(--sp-lg);
}
.hero-h1 em { display: block; font-style: italic; color: var(--gold-light); }

.hero-sub {
  color: rgba(255,255,255,.68); font-size: 1.05rem;
  line-height: 1.8; max-width: 480px; margin-bottom: var(--sp-xl);
}

.hero-ctas { display: flex; gap: var(--sp-md); flex-wrap: wrap; margin-bottom: var(--sp-xl); }

.hero-trust {
  display: flex; gap: var(--sp-xl); flex-wrap: wrap;
  padding-top: var(--sp-lg); border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stat strong {
  display: block; font-family: var(--font-display);
  font-size: 2rem; color: var(--gold-light); line-height: 1; font-style: italic;
}
.hero-stat span {
  font-size: .72rem; text-transform: uppercase; letter-spacing: 1.5px;
  color: rgba(255,255,255,.5);
}

/* Hero estimate card */
.hero-card {
  background: #fff; border-radius: var(--r-xl);
  padding: var(--sp-lg) var(--sp-xl);
  box-shadow: var(--sh-lg);
  border-top: 4px solid var(--gold);
  position: relative;
}
.hero-card::before {
  content: 'Free Estimate';
  position: absolute; top: -13px; left: 28px;
  background: var(--gold); color: #fff;
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
  padding: 4px 14px; border-radius: var(--r-pill);
}
.hero-card-h { font-family: var(--font-display); font-size: 1.4rem; color: var(--forest); font-style: italic; margin-bottom: 4px; }
.hero-card-sub { font-size: .8rem; color: var(--ink-soft); margin-bottom: var(--sp-lg); }

/* ─── Quote strip ────────────────────────────────────── */
.quote-strip {
  background: var(--gold); padding: var(--sp-lg) 0;
}
.quote-strip-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--sp-md);
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--sp-lg);
}
.quote-strip-text {
  font-family: var(--font-display); font-size: 1.25rem;
  color: #fff; font-style: italic;
}
.quote-strip-detail { font-size: .82rem; color: rgba(255,255,255,.75); }

/* ─── Service cards ───────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-md); }

.svc-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden;
  transition: all var(--dur) var(--ease);
  display: flex; flex-direction: column;
}
.svc-card:hover {
  border-color: var(--gold); box-shadow: var(--sh-md); transform: translateY(-4px);
}
.svc-card-media {
  height: 220px; background: var(--warm-white);
  display: flex; align-items: center; justify-content: center;
  font-size: 52px; position: relative; overflow: hidden;
}
.svc-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.svc-card:hover .svc-card-media img { transform: scale(1.06); }
.svc-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--forest); color: #fff;
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; padding: 4px 12px; border-radius: var(--r-pill);
}
.svc-body { padding: var(--sp-lg) var(--sp-xl); flex: 1; display: flex; flex-direction: column; }
.svc-name { font-family: var(--font-display); font-size: 1.3rem; color: var(--forest); margin-bottom: var(--sp-sm); font-style: italic; }
.svc-desc { font-size: .875rem; color: var(--ink-soft); line-height: 1.75; flex: 1; margin-bottom: var(--sp-lg); }
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--sp-lg); }
.svc-tag {
  font-size: .72rem; color: var(--forest); background: var(--forest-pale);
  border: 1px solid rgba(28,58,46,.15); padding: 3px 10px; border-radius: var(--r-pill);
}
.svc-link {
  font-size: .82rem; font-weight: 700; color: var(--gold);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap var(--dur) var(--ease);
}
.svc-link:hover { color: var(--gold); gap: 10px; }

/* ─── Why choose us (editorial layout) ───────────────── */
.why-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-sm);
}
.why-cell {
  background: var(--surface); padding: var(--sp-xl) var(--sp-lg);
  transition: background var(--dur) var(--ease); position: relative;
}
.why-cell:hover { background: var(--forest-pale); }
.why-cell::after {
  content: attr(data-num);
  position: absolute; top: var(--sp-lg); right: var(--sp-lg);
  font-family: var(--font-display); font-size: 3.5rem; color: var(--border);
  line-height: 1; font-style: italic; font-weight: 700;
  transition: color var(--dur) var(--ease);
}
.why-cell:hover::after { color: var(--gold-pale); }
.why-icon { font-size: 28px; margin-bottom: var(--sp-md); }
.why-title { font-family: var(--font-display); font-size: 1.15rem; color: var(--forest); margin-bottom: var(--sp-sm); font-style: italic; }
.why-desc  { font-size: .875rem; color: var(--ink-soft); line-height: 1.75; }

/* ─── Estimate Calculator ─────────────────────────────── */
.calc-wrap {
  background: var(--forest); border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--sh-lg);
}
.calc-header {
  padding: var(--sp-lg) var(--sp-xl);
  background: linear-gradient(135deg, var(--forest-light), var(--forest));
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: space-between;
}
.calc-header-title {
  font-family: var(--font-display); font-size: 1.5rem;
  color: #fff; font-style: italic;
}
.calc-header-tag {
  background: var(--gold); color: #fff;
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; padding: 4px 14px; border-radius: var(--r-pill);
}
.calc-body { padding: var(--sp-xl); }
.calc-progress { height: 3px; background: rgba(255,255,255,.1); border-radius: var(--r-pill); margin-bottom: var(--sp-xl); overflow: hidden; }
.calc-bar { height: 100%; background: var(--gold); border-radius: var(--r-pill); transition: width .4s var(--ease); }

/* Form elements (dark) */
.c-label { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: rgba(255,255,255,.5); margin-bottom: 7px; }
.c-input, .c-select {
  width: 100%; background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.14);
  border-radius: var(--r-md); padding: 12px 15px;
  color: #fff; font-family: var(--font-body); font-size: .95rem;
  outline: none; transition: border-color var(--dur) var(--ease);
  -webkit-appearance: none;
}
.c-input::placeholder { color: rgba(255,255,255,.3); }
.c-input:focus, .c-select:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,150,58,.2);
}
.c-select option { background: var(--forest-mid); color: #fff; }
.c-group { margin-bottom: var(--sp-md); }
.c-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-md); margin-bottom: var(--sp-md); }

/* Toggle chips */
.c-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.c-chip-input { display: none; }
.c-chip-label {
  flex: 1; min-width: 90px; padding: 10px 14px; text-align: center;
  border-radius: var(--r-md); border: 1.5px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.55); font-size: .8rem; font-weight: 600;
  cursor: pointer; transition: all var(--dur) var(--ease);
  text-transform: uppercase; letter-spacing: .5px;
}
.c-chip-input:checked + .c-chip-label {
  border-color: var(--gold); background: rgba(201,150,58,.18); color: var(--gold-light);
}

.c-step { display: none; animation: fadeUp .35s var(--ease) both; }
.c-step.active { display: block; }
.c-nav { display: flex; justify-content: space-between; align-items: center; margin-top: var(--sp-xl); padding-top: var(--sp-lg); border-top: 1px solid rgba(255,255,255,.08); }
.c-step-info { font-size: .75rem; color: rgba(255,255,255,.35); }

/* Result panel */
.calc-result {
  margin-top: var(--sp-lg); padding: var(--sp-xl);
  background: rgba(201,150,58,.1); border: 1px solid rgba(201,150,58,.3);
  border-radius: var(--r-lg); text-align: center; display: none;
}
.calc-result.visible { display: block; animation: fadeUp .4s var(--ease) both; }
.calc-result-lbl { font-size: .7rem; text-transform: uppercase; letter-spacing: 2px; color: rgba(255,255,255,.45); margin-bottom: 8px; }
.calc-result-range {
  font-family: var(--font-display); font-size: 2.8rem; color: var(--gold-light);
  font-style: italic; line-height: 1; letter-spacing: 1px;
}
.calc-result-note { font-size: .78rem; color: rgba(255,255,255,.4); margin-top: 8px; }

/* ─── Project Gallery ──────────────────────────────────── */
.gallery-filters { display: flex; gap: var(--sp-sm); flex-wrap: wrap; margin-bottom: var(--sp-2xl); }
.gf-btn {
  padding: 8px 20px; border-radius: var(--r-pill);
  font-size: .8rem; font-weight: 600; letter-spacing: .3px;
  border: 1.5px solid var(--border); background: transparent;
  color: var(--ink-soft); cursor: pointer; font-family: var(--font-body);
  transition: all var(--dur) var(--ease);
}
.gf-btn:hover { border-color: var(--forest); color: var(--forest); }
.gf-btn.on { background: var(--forest); border-color: var(--forest); color: #fff; }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 240px;
  gap: var(--sp-sm);
}
.portfolio-item {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--warm-white); cursor: pointer;
}
.portfolio-item:nth-child(1)  { grid-column: span 7; grid-row: span 2; }
.portfolio-item:nth-child(2)  { grid-column: span 5; }
.portfolio-item:nth-child(3)  { grid-column: span 5; }
.portfolio-item:nth-child(4)  { grid-column: span 4; }
.portfolio-item:nth-child(5)  { grid-column: span 4; }
.portfolio-item:nth-child(6)  { grid-column: span 4; }
.portfolio-item:nth-child(n+7){ grid-column: span 4; }

.portfolio-thumb {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s var(--ease);
}
.portfolio-item:hover .portfolio-thumb { transform: scale(1.07); }
.portfolio-face {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px;
  background: linear-gradient(135deg, var(--warm-white) 0%, var(--parchment) 100%);
}
.portfolio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(28,58,46,.88) 0%, rgba(28,58,46,.1) 55%, transparent 100%);
  opacity: 0; transition: opacity var(--dur) var(--ease);
  display: flex; align-items: flex-end; padding: var(--sp-lg);
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-info { color: #fff; }
.portfolio-cat { font-size: .68rem; text-transform: uppercase; letter-spacing: 2px; color: var(--gold-light); margin-bottom: 4px; }
.portfolio-name { font-family: var(--font-display); font-size: 1.1rem; font-style: italic; }

/* Lightbox */
.pp-lightbox {
  position: fixed; inset: 0; background: rgba(10,10,8,.96); z-index: 9999;
  display: none; align-items: center; justify-content: center; padding: var(--sp-xl);
}
.pp-lightbox.open { display: flex; }
.pp-lightbox img { max-height: 88vh; max-width: 90vw; border-radius: var(--r-lg); object-fit: contain; }
.lb-close {
  position: absolute; top: 20px; right: 28px;
  background: none; border: none; color: rgba(255,255,255,.7);
  font-size: 30px; cursor: pointer; line-height: 1;
  transition: color var(--dur) var(--ease);
}
.lb-close:hover { color: var(--gold-light); }
.lb-placeholder { font-size: 60px; }

/* ─── Before / After ──────────────────────────────────── */
.ba-wrap {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  box-shadow: var(--sh-lg); background: var(--warm-white);
  aspect-ratio: 16/8; cursor: ew-resize; user-select: none;
  display: flex; align-items: center; justify-content: center;
}
.ba-face { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 48px; color: var(--border); }
.ba-before, .ba-after-side { position: absolute; inset: 0; overflow: hidden; }
.ba-after-side { clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%); transition: clip-path 0s; }
.ba-before img, .ba-after-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 3px;
  background: #fff; z-index: 10; cursor: ew-resize;
}
.ba-handle-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 44px; height: 44px; background: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.2); font-size: 16px; color: var(--forest);
  pointer-events: none;
}
.ba-pill {
  position: absolute; top: 16px;
  background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(4px);
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; padding: 4px 14px; border-radius: var(--r-pill);
}
.ba-pill.left { left: 16px; }
.ba-pill.right { right: 16px; }

/* ─── Reviews ─────────────────────────────────────────── */
.review-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-lg); }
.review-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: var(--sp-xl);
  transition: all var(--dur) var(--ease); position: relative;
}
.review-card:hover { border-color: var(--gold); box-shadow: var(--sh-sm); }
.review-stars { display: flex; gap: 3px; color: var(--gold); font-size: 13px; margin-bottom: var(--sp-md); }
.review-q {
  font-family: var(--font-display); font-size: 3.5rem; color: var(--forest-pale);
  line-height: 0; vertical-align: -.9rem; margin-right: 4px;
}
.review-body { font-size: .9rem; color: var(--ink-mid); line-height: 1.8; margin-bottom: var(--sp-lg); font-style: italic; }
.review-author { display: flex; align-items: center; gap: var(--sp-md); }
.review-av {
  width: 46px; height: 46px; border-radius: 50%; overflow: hidden;
  background: var(--forest-pale); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.1rem; color: var(--forest);
  font-style: italic; flex-shrink: 0;
}
.review-av img { width: 100%; height: 100%; object-fit: cover; }
.review-name { font-weight: 700; font-size: .875rem; color: var(--forest); }
.review-meta { font-size: .75rem; color: var(--ink-soft); }
.review-verified { font-size: .68rem; color: var(--success); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }

/* ─── Process Steps ───────────────────────────────────── */
.process-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-md); counter-reset: step; }
.p-step {
  padding: var(--sp-xl) var(--sp-lg); background: #fff;
  border: 1px solid var(--border); border-radius: var(--r-xl);
  position: relative; transition: all var(--dur) var(--ease);
  border-top: 3px solid transparent;
}
.p-step:hover { border-top-color: var(--gold); box-shadow: var(--sh-sm); transform: translateY(-3px); }
.p-step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--forest); color: #fff;
  font-family: var(--font-display); font-size: 1.2rem; font-style: italic;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-lg);
}
.p-step-title { font-family: var(--font-display); font-size: 1.1rem; color: var(--forest); font-style: italic; margin-bottom: var(--sp-sm); }
.p-step-desc { font-size: .85rem; color: var(--ink-soft); line-height: 1.7; }

/* ─── CTA Banner ──────────────────────────────────────── */
.cta-banner {
  background: var(--forest); position: relative; overflow: hidden;
  padding: var(--sp-3xl) 0;
}
.cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(201,150,58,.12) 100%);
}
.cta-banner-inner {
  position: relative; z-index: 1; text-align: center;
}
.cta-banner-title {
  font-family: var(--font-display); font-size: clamp(2rem,4vw,3.2rem);
  color: #fff; font-style: italic; margin-bottom: var(--sp-md); line-height: 1.15;
}
.cta-banner-title em { color: var(--gold-light); font-style: italic; }
.cta-banner-sub { color: rgba(255,255,255,.6); font-size: 1rem; max-width: 460px; margin: 0 auto var(--sp-xl); line-height: 1.8; }
.cta-banner-btns { display: flex; gap: var(--sp-md); justify-content: center; flex-wrap: wrap; }

/* ─── Stats bar ───────────────────────────────────────── */
.stats-bar {
  background: var(--parchment); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); padding: var(--sp-xl) 0;
}
.stats-inner {
  display: flex; justify-content: space-around; align-items: center;
  flex-wrap: wrap; gap: var(--sp-lg);
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--sp-lg);
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-display); font-size: 2.6rem; color: var(--forest);
  line-height: 1; font-style: italic; display: block;
}
.stat-lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: 2px; color: var(--ink-soft); }

/* ─── Blog cards ──────────────────────────────────────── */
.post-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-lg); }
.post-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden; display: flex;
  flex-direction: column; transition: all var(--dur) var(--ease);
}
.post-card:hover { border-color: var(--gold); box-shadow: var(--sh-md); transform: translateY(-3px); }
.post-thumb {
  height: 200px; background: var(--warm-white);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; overflow: hidden; flex-shrink: 0;
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-body { padding: var(--sp-lg) var(--sp-xl); flex: 1; display: flex; flex-direction: column; }
.post-cat {
  display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--gold); background: var(--gold-pale);
  padding: 3px 10px; border-radius: var(--r-pill); margin-bottom: var(--sp-md);
}
.post-title { font-family: var(--font-display); font-size: 1.15rem; color: var(--forest); font-style: italic; margin-bottom: var(--sp-sm); line-height: 1.35; flex: 1; }
.post-title a { color: inherit; }
.post-title a:hover { color: var(--gold); }
.post-excerpt { font-size: .85rem; color: var(--ink-soft); line-height: 1.7; margin-bottom: var(--sp-md); }
.post-footer { display: flex; gap: var(--sp-md); font-size: .75rem; color: var(--ink-soft); border-top: 1px solid var(--border); padding-top: var(--sp-md); margin-top: auto; }

/* ─── Contact form ────────────────────────────────────── */
.contact-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: var(--sp-2xl); box-shadow: var(--sh-sm);
}
.f-label { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--forest); margin-bottom: 6px; }
.f-label .req { color: var(--gold); margin-left: 2px; }
.f-input, .f-select, .f-textarea {
  width: 100%; border: 1.5px solid var(--border);
  border-radius: var(--r-md); padding: 12px 15px;
  font-size: .925rem; font-family: var(--font-body);
  color: var(--ink); background: var(--ivory); outline: none;
  transition: all var(--dur) var(--ease);
}
.f-input:focus, .f-select:focus, .f-textarea:focus {
  border-color: var(--forest); box-shadow: 0 0 0 3px rgba(28,58,46,.1); background: #fff;
}
.f-textarea { min-height: 130px; resize: vertical; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-md); }
.f-group { margin-bottom: var(--sp-lg); }

/* ─── Widgets & sidebar ───────────────────────────────── */
.widget {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: var(--sp-xl); margin-bottom: var(--sp-lg);
}
.widget-title {
  font-family: var(--font-display); font-size: 1.1rem; color: var(--forest);
  font-style: italic; margin-bottom: var(--sp-lg);
  padding-bottom: var(--sp-md); border-bottom: 2px solid var(--gold);
}

/* ─── Breadcrumb ──────────────────────────────────────── */
.breadcrumb { font-size: .78rem; color: var(--ink-soft); padding: 12px 0; border-bottom: 1px solid var(--border); }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--forest); }
.breadcrumb-sep { margin: 0 8px; color: var(--border-dark); }

/* ─── Page hero (inner pages) ─────────────────────────── */
.page-hero {
  background: var(--forest); padding: var(--sp-2xl) 0;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 55%, rgba(201,150,58,.12) 100%);
}
.ph-inner { position: relative; z-index: 1; }
.ph-title {
  font-family: var(--font-display); font-size: clamp(2rem,4vw,3.2rem);
  color: #fff; font-style: italic; margin-bottom: 8px;
}
.ph-sub { color: rgba(255,255,255,.6); font-size: .95rem; }

/* ─── Footer ──────────────────────────────────────────── */
.site-footer { background: var(--ink); padding: var(--sp-3xl) 0 0; margin-top: auto; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-2xl); max-width: var(--max-w); margin: 0 auto; padding: 0 var(--sp-lg);
}
.footer-logo-name {
  font-family: var(--font-display); font-size: 1.7rem; color: #fff; font-style: italic; margin-bottom: 12px;
}
.footer-logo-name span { color: var(--gold-light); }
.footer-tagline { font-size: .875rem; color: rgba(255,255,255,.4); line-height: 1.75; max-width: 300px; }
.footer-social { display: flex; gap: 8px; margin-top: var(--sp-lg); }
.f-social-link {
  width: 36px; height: 36px; background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.45); font-size: 13px;
  transition: all var(--dur) var(--ease);
}
.f-social-link:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.footer-col-title {
  font-family: var(--font-display); font-size: 1rem; color: #fff; font-style: italic;
  margin-bottom: var(--sp-lg); padding-bottom: var(--sp-sm);
  border-bottom: 1px solid rgba(201,150,58,.35);
}
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: .85rem; color: rgba(255,255,255,.42); transition: color var(--dur) var(--ease); }
.footer-links a:hover { color: var(--gold-light); }
.f-contact-item { display: flex; gap: 10px; font-size: .85rem; color: rgba(255,255,255,.42); margin-bottom: 11px; }
.f-contact-item i { color: var(--gold); flex-shrink: 0; margin-top: 3px; font-size: 13px; }
.f-contact-item a { color: rgba(255,255,255,.42); }
.f-contact-item a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: var(--sp-2xl); padding: var(--sp-lg) var(--sp-lg);
  display: flex; justify-content: space-between; align-items: center;
  font-size: .76rem; color: rgba(255,255,255,.28);
  max-width: var(--max-w); margin-left: auto; margin-right: auto;
}
.footer-bottom a { color: rgba(255,255,255,.28); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ─── Utilities ───────────────────────────────────────── */
.notice { padding: 13px 18px; border-radius: var(--r-md); font-size: .875rem; margin-bottom: var(--sp-lg); display: flex; align-items: flex-start; gap: 10px; }
.notice-ok   { background: rgba(46,125,82,.1); border: 1px solid rgba(46,125,82,.3); color: #1a5e35; }
.notice-err  { background: rgba(184,92,56,.08); border: 1px solid rgba(184,92,56,.25); color: #7a2e10; }
.notice-info { background: var(--gold-pale); border: 1px solid rgba(201,150,58,.3); color: #7a5010; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: var(--r-pill); font-size: .68rem; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.badge-forest { background: var(--forest-pale); color: var(--forest); border: 1px solid rgba(28,58,46,.2); }
.badge-gold   { background: var(--gold-pale); color: var(--gold); border: 1px solid rgba(201,150,58,.25); }
.badge-sage   { background: var(--sage-pale); color: var(--forest-mid); border: 1px solid rgba(126,168,138,.3); }

/* ─── Animations ──────────────────────────────────────── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.anim { animation: fadeUp .65s var(--ease) both; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .2s; }
.d3 { animation-delay: .3s; } .d4 { animation-delay: .4s; } .d5 { animation-delay: .5s; }

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-wrap { grid-template-columns: 1fr; }
  .hero-card { max-width: 500px; }
  .hero::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-xl); }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .portfolio-grid { grid-template-columns: repeat(6,1fr); grid-auto-rows: 220px; }
  .portfolio-item:nth-child(1) { grid-column: span 6; grid-row: span 1; }
  .portfolio-item:nth-child(n+2) { grid-column: span 3; }
}
@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .main-nav {
    display: none; position: fixed; inset: 0; top: var(--header-h);
    background: #fff; padding: var(--sp-xl); z-index: 800;
    flex-direction: column; overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .main-nav > ul { flex-direction: column; width: 100%; gap: 4px; }
  .main-nav > ul > li > a { font-size: 1rem; padding: 13px; }
  .main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; border-top: none; padding-left: var(--sp-lg); }
  .nav-toggle { display: flex; }
  .services-grid, .review-grid, .post-grid, .why-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--sp-sm); text-align: center; }
  .portfolio-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .portfolio-item { grid-column: span 1 !important; grid-row: span 1 !important; }
  .c-row, .f-row { grid-template-columns: 1fr; }
  .top-bar { display: none; }
  .hero-trust { gap: var(--sp-lg); }
  .stats-inner { gap: var(--sp-lg); }
  .cta-banner-btns { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
  .hero-h1 { font-size: 2.8rem; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-item { grid-row: span 1 !important; }
  .process-steps { grid-template-columns: 1fr; }
}
