/*
Theme Name: JCM Morais Construction
Theme URI: https://jcmmoraisconstruction.com
Author: JCM Morais Construction LLC
Description: Custom theme for JCM Morais Construction LLC — custom decks, remodeling, framing and exterior work in Pittsburgh, PA. Includes a filterable project gallery by service.
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: jcm
*/

/* ---------- Tokens ---------- */
:root {
  --navy-950: #071322;
  --navy-900: #0c182c;
  --navy-800: #0c2038;
  --navy-700: #13304f;
  --slate: #465260;
  --muted: #6b7684;
  --line: rgba(12, 32, 56, 0.12);
  --line-dark: rgba(255, 255, 255, 0.12);
  --paper: #f5f6f2;
  --white: #ffffff;
  --ink: #0c182c;
  --lime: #83d916;
  --lime-600: #6fbd10;
  --green: #4a950b;
  --radius: 4px;
  --radius-lg: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --container: 1280px;
  --gutter: 24px;
  --section: 96px;
}
@media (min-width: 768px) {
  :root { --gutter: 40px; --section: 128px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 16px; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.04;
  text-transform: uppercase;
}
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.screen-reader-text, .sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
  clip: auto; width: auto; height: auto; z-index: 999; top: 8px; left: 8px;
  background: var(--lime); color: var(--navy-900); padding: 8px 16px;
}

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--navy-800); color: rgba(255,255,255,.72); }
.section--dark h2, .section--dark h3 { color: var(--white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--green); margin-bottom: 24px;
}
.eyebrow::before { content: ""; width: 32px; height: 2px; background: currentColor; }
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .cta-band .eyebrow { color: var(--lime); }

.h-xl { font-size: clamp(40px, 7.2vw, 96px); }
.h-lg { font-size: clamp(34px, 4.6vw, 64px); }
.h-md { font-size: clamp(26px, 3vw, 40px); }
.h-sm { font-size: 20px; letter-spacing: 0; }
.h-lg .accent, .h-xl .accent, .h-md .accent { color: var(--lime); }
.section:not(.section--dark) .h-lg .accent, .section:not(.section--dark) .h-md .accent { color: var(--green); }
.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; max-width: 62ch; }

.section-head { display: grid; gap: 24px; margin-bottom: 64px; }
@media (min-width: 960px) {
  .section-head--split { grid-template-columns: 1.1fr 1fr; align-items: end; gap: 64px; }
  .section-head--split .lead { margin: 0; justify-self: end; }
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--lime); --fg: var(--navy-900);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 28px;
  font-family: var(--font-body); font-size: 15px; font-weight: 700; letter-spacing: 0.02em;
  background: var(--bg); color: var(--fg);
  border: 1.5px solid var(--bg); border-radius: var(--radius);
  cursor: pointer; transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); background: #96ec2a; border-color: #96ec2a; }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: var(--white); border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { background: var(--white); color: var(--navy-900); border-color: var(--white); }
.btn--dark { --bg: var(--navy-800); --fg: var(--white); }
.btn--dark:hover { background: var(--navy-700); border-color: var(--navy-700); }
.btn--outline { --bg: transparent; --fg: var(--navy-800); border-color: var(--line); border-color: rgba(12,32,56,.25); }
.btn--outline:hover { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px; color: var(--navy-800);
  border-bottom: 1.5px solid var(--lime); padding-bottom: 4px;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, body:not(.has-hero) .site-header {
  background: rgba(12, 24, 44, 0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line-dark);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 88px; gap: 24px; transition: height .4s var(--ease); }
.is-scrolled .header-inner { height: 72px; }
.brand img { height: 64px; width: auto; transition: height .4s var(--ease); }
.is-scrolled .brand img { height: 52px; }

.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.primary-nav a {
  position: relative; color: rgba(255,255,255,.82); font-size: 15px; font-weight: 500;
  padding: 8px 0; transition: color .3s;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { color: var(--white); }
.primary-nav a:hover::after, .primary-nav .current-menu-item > a::after, .primary-nav .current_page_item > a::after { transform: scaleX(1); }
.header-cta { display: flex; align-items: center; gap: 24px; }
.header-phone { color: var(--white); font-weight: 700; font-size: 15px; display: inline-flex; gap: 8px; align-items: center; }
.header-phone svg { width: 16px; height: 16px; color: var(--lime); }
.header-cta .btn { min-height: 44px; padding: 0 20px; font-size: 14px; }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--white); margin: 6px 0; transition: transform .4s var(--ease), opacity .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1080px) {
  .header-phone { display: none; }
}
@media (max-width: 920px) {
  .nav-toggle { display: block; z-index: 2; }
  .header-cta .btn { display: none; }
  .brand img { height: 52px; }
  .primary-nav {
    position: fixed; inset: 0; background: var(--navy-900);
    display: flex; flex-direction: column; justify-content: center; padding: 96px var(--gutter) 48px;
    opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
  }
  .nav-open .primary-nav { opacity: 1; visibility: visible; }
  .primary-nav ul { flex-direction: column; gap: 8px; }
  .primary-nav a { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 36px; letter-spacing: -0.02em; }
  .primary-nav .mobile-only { display: grid; gap: 16px; margin-top: 48px; color: rgba(255,255,255,.7); }
  .nav-open { overflow: hidden; }
}
.primary-nav .mobile-only { display: none; }
@media (max-width: 920px) { .primary-nav .mobile-only { display: grid; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--white); background: var(--navy-900); overflow: hidden; isolation: isolate;
}
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06); transition: opacity 1.6s var(--ease), transform 7s linear;
}
.hero-slides img.is-active { opacity: 1; transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7,19,34,.72) 0%, rgba(7,19,34,.2) 30%, rgba(7,19,34,.55) 62%, rgba(7,19,34,.96) 100%),
    linear-gradient(90deg, rgba(7,19,34,.7) 0%, rgba(7,19,34,0) 70%);
}
.hero-content { padding-top: 160px; padding-bottom: 64px; }
.hero h1 { color: var(--white); max-width: 12ch; }
.hero h1 .accent { color: var(--lime); display: block; }
.hero .lead { color: rgba(255,255,255,.8); margin: 32px 0 40px; max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero-stats {
  border-top: 1px solid var(--line-dark);
  display: grid; grid-template-columns: repeat(2, 1fr);
}
.hero-stats .stat { padding: 24px 0; border-right: 1px solid var(--line-dark); padding-left: 24px; }
.hero-stats .stat:nth-child(2n) { border-right: 0; }
.hero-stats .stat:nth-child(odd) { padding-left: 0; }
@media (min-width: 768px) {
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .hero-stats .stat { padding: 32px 0 40px 32px; border-right: 1px solid var(--line-dark) !important; }
  .hero-stats .stat:first-child { padding-left: 0; }
  .hero-stats .stat:last-child { border-right: 0 !important; }
}
.stat-value { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3vw, 40px); color: var(--white); line-height: 1; text-transform: uppercase; letter-spacing: -0.02em; }
.stat-value em { font-style: normal; color: var(--lime); }
.stat-label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 8px; font-weight: 600; }

.hero-dots { position: absolute; right: var(--gutter); top: 50%; display: none; flex-direction: column; gap: 12px; z-index: 2; }
@media (min-width: 1024px) { .hero-dots { display: flex; } }
.hero-dots button { width: 3px; height: 32px; background: rgba(255,255,255,.3); border: 0; padding: 0; cursor: pointer; transition: background .3s, height .3s; }
.hero-dots button.is-active { background: var(--lime); height: 56px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; color: var(--white); background: var(--navy-900); isolation: isolate; overflow: hidden;
  padding: 200px 0 96px;
}
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(7,19,34,.96) 0%, rgba(7,19,34,.78) 50%, rgba(7,19,34,.45) 100%);
}
.page-hero h1 { color: var(--white); max-width: 16ch; }
.page-hero .lead { color: rgba(255,255,255,.78); margin-top: 32px; }
.page-hero .hero-actions { margin-top: 40px; }
.breadcrumb { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 24px; }
.breadcrumb a:hover { color: var(--lime); }

/* ---------- Services bento ---------- */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) {
  .bento { grid-template-columns: repeat(12, 1fr); grid-auto-rows: 280px; gap: 24px; }
  .bento > :nth-child(1) { grid-column: span 7; grid-row: span 2; }
  .bento > :nth-child(2) { grid-column: span 5; }
  .bento > :nth-child(3) { grid-column: span 5; }
  .bento > :nth-child(4) { grid-column: span 4; }
  .bento > :nth-child(5) { grid-column: span 4; }
  .bento > :nth-child(6) { grid-column: span 4; }
}
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); min-height: 320px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 32px; color: var(--white); isolation: isolate;
  background: var(--navy-800);
}
@media (min-width: 1080px) { .tile { min-height: 0; } }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,19,34,0) 25%, rgba(7,19,34,.92) 100%); transition: background .5s; }
.tile:hover img { transform: scale(1.05); }
.tile-tag { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--lime); margin-bottom: 12px; }
.tile h3 { color: var(--white); font-size: clamp(22px, 2vw, 28px); }
.tile p { color: rgba(255,255,255,.78); margin: 12px 0 0; font-size: 15px; max-width: 46ch;
  max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .5s var(--ease); }
.tile:hover p, .tile:focus-within p, .tile--feature p { max-height: 160px; opacity: 1; }
@media (hover: none) { .tile p { max-height: 160px; opacity: 1; } }
.tile-arrow {
  position: absolute; top: 24px; right: 24px; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); color: var(--white);
  transition: background .4s var(--ease), color .4s, transform .4s var(--ease), border-color .4s;
}
.tile-arrow svg { width: 18px; height: 18px; transform: rotate(-45deg); }
.tile:hover .tile-arrow { background: var(--lime); color: var(--navy-900); border-color: var(--lime); transform: rotate(45deg); }

/* ---------- Split / commitment ---------- */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 96px; } .split--rev > :first-child { order: 2; } }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.split-media .img-secondary {
  position: absolute; width: 46%; aspect-ratio: 1; bottom: -48px; right: -24px;
  border: 8px solid var(--white); border-radius: var(--radius-lg); object-fit: cover;
}
.section--paper .split-media .img-secondary { border-color: var(--paper); }
@media (max-width: 959px) { .split-media .img-secondary { right: 16px; bottom: -32px; } }
.badge-years {
  position: absolute; top: 32px; left: -24px; background: var(--lime); color: var(--navy-900);
  padding: 24px 28px; border-radius: var(--radius-lg); font-family: var(--font-display);
}
@media (max-width: 959px) { .badge-years { left: 16px; top: 16px; } }
.badge-years strong { display: block; font-size: 48px; line-height: 1; font-weight: 800; }
.badge-years span { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-family: var(--font-body); }
.split-copy h2 { margin-bottom: 32px; }
.split-copy p { max-width: 58ch; }
.checklist { list-style: none; padding: 0; margin: 32px 0 40px; display: grid; gap: 16px; }
@media (min-width: 560px) { .checklist { grid-template-columns: 1fr 1fr; } }
.checklist li { display: flex; gap: 12px; align-items: center; font-weight: 600; color: var(--ink); }
.checklist svg { flex: none; width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: rgba(131,217,22,.18); color: var(--green); }

/* ---------- Featured projects strip ---------- */
.showcase { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 960px) {
  .showcase { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 24px; }
  .showcase > :nth-child(1) { grid-column: span 2; grid-row: span 2; }
}
.showcase a { position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 1; }
@media (min-width: 960px) { .showcase a { aspect-ratio: auto; } }
.showcase img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.showcase a:hover img { transform: scale(1.05); }
.showcase span {
  position: absolute; left: 16px; bottom: 16px; background: rgba(7,19,34,.82); color: var(--white);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 8px 12px; border-radius: var(--radius);
}

/* ---------- Numbered services (Services page) ---------- */
.num-list { border-top: 1px solid var(--line); }
.num-item {
  display: grid; gap: 24px; padding: 48px 0; border-bottom: 1px solid var(--line); align-items: center;
}
@media (min-width: 960px) { .num-item { grid-template-columns: 120px 1.1fr 1fr; gap: 48px; } }
.num-item .num { font-family: var(--font-display); font-weight: 800; font-size: 14px; color: var(--green); letter-spacing: .12em; }
.num-item .num strong { display: block; font-size: 56px; color: var(--ink); letter-spacing: -0.03em; line-height: 1; margin-bottom: 8px; }
.num-item h3 { font-size: clamp(24px, 2.4vw, 34px); margin-bottom: 16px; }
.num-item .kicker { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: 12px; display: block; }
.num-item p { margin: 0; }
.num-item img { border-radius: var(--radius-lg); aspect-ratio: 16/10; object-fit: cover; width: 100%; }

/* ---------- Tabs ---------- */
.tabs-nav { display: inline-flex; gap: 8px; padding: 6px; border: 1px solid var(--line-dark); border-radius: 999px; margin-bottom: 48px; flex-wrap: wrap; }
.tabs-nav button {
  font: 600 15px var(--font-body); color: rgba(255,255,255,.75); background: none; border: 0; cursor: pointer;
  padding: 12px 24px; border-radius: 999px; transition: background .3s, color .3s;
}
.tabs-nav button[aria-selected="true"] { background: var(--lime); color: var(--navy-900); }
.tab-panel { display: grid; gap: 48px; align-items: center; }
.tab-panel[hidden] { display: none; }
@media (min-width: 960px) { .tab-panel { grid-template-columns: 1.2fr 1fr; gap: 80px; } }
.tab-panel img { border-radius: var(--radius-lg); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.tab-panel h3 { font-size: clamp(28px, 3vw, 44px); margin-bottom: 24px; }
.tab-panel p { font-size: 18px; margin-bottom: 32px; }

/* ---------- Process steps ---------- */
.steps { display: grid; gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding: 40px 32px 40px 0; border-bottom: 1px solid var(--line); position: relative; }
@media (min-width: 1080px) { .step { border-bottom: 0; padding: 48px 32px 0 0; } .step + .step { padding-left: 32px; border-left: 1px solid var(--line); } }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--font-display); font-weight: 800; font-size: 64px; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--green); margin-bottom: 32px;
}
.step h3 { font-size: 20px; letter-spacing: 0; margin-bottom: 16px; }
.step p { font-size: 16px; margin: 0; }

/* ---------- Gallery ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 48px; }
.filters button {
  font: 600 14px var(--font-body); color: var(--navy-800); background: var(--white);
  border: 1px solid rgba(12,32,56,.18); border-radius: 999px; padding: 12px 20px; cursor: pointer;
  display: inline-flex; gap: 8px; align-items: center; transition: all .3s var(--ease);
}
.filters button sup { font-size: 11px; color: var(--muted); font-weight: 700; }
.filters button:hover { border-color: var(--navy-800); }
.filters button[aria-pressed="true"] { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); }
.filters button[aria-pressed="true"] sup { color: var(--lime); }
.gallery-cat-intro { margin: -16px 0 40px; max-width: 70ch; min-height: 1em; }
.masonry { columns: 2; column-gap: 12px; }
@media (min-width: 768px) { .masonry { columns: 3; column-gap: 16px; } }
@media (min-width: 1200px) { .masonry { columns: 4; column-gap: 20px; } }
.masonry .g-item { break-inside: avoid; margin: 0 0 12px; }
@media (min-width: 768px) { .masonry .g-item { margin-bottom: 16px; } }
@media (min-width: 1200px) { .masonry .g-item { margin-bottom: 20px; } }
.g-item[hidden] { display: none; }
.g-item button {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: var(--paper);
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
}
.g-item img { width: 100%; height: auto; transition: transform .9s var(--ease), filter .5s; }
.g-item button::after {
  content: attr(data-cat); position: absolute; left: 12px; bottom: 12px;
  background: rgba(7,19,34,.85); color: #fff; font: 700 11px var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 10px; border-radius: var(--radius); opacity: 0; transform: translateY(8px); transition: all .4s var(--ease);
}
.g-item button:hover img { transform: scale(1.04); }
.g-item button:hover::after { opacity: 1; transform: none; }
.g-item.is-in { animation: gIn .6s var(--ease) both; }
@keyframes gIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(7,19,34,.96);
  display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--gutter); color: rgba(255,255,255,.7); font-size: 14px; }
.lb-stage { position: relative; display: grid; place-items: center; padding: 0 64px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: calc(100svh - 160px); object-fit: contain; border-radius: var(--radius); }
.lb-caption { text-align: center; color: rgba(255,255,255,.8); padding: 16px var(--gutter) 24px; font-size: 15px; }
.lb-btn {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; width: 48px; height: 48px;
  border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: background .3s, color .3s;
}
.lb-btn:hover { background: var(--lime); color: var(--navy-900); border-color: var(--lime); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
@media (max-width: 640px) { .lb-stage { padding: 0 8px; } .lb-prev, .lb-next { top: auto; bottom: -56px; transform: none; } .lb-prev { left: 30%; } .lb-next { right: 30%; } }

/* ---------- Areas ---------- */
.area-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 640px) { .area-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .area-grid { grid-template-columns: repeat(3, 1fr); } }
.area-grid > div { background: var(--white); padding: 32px; display: flex; gap: 16px; align-items: flex-start; }
.area-grid svg { flex: none; width: 24px; height: 24px; color: var(--green); margin-top: 2px; }
.area-grid h3 { font-size: 18px; letter-spacing: 0; margin-bottom: 8px; }
.area-grid p { margin: 0; font-size: 15px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1.25fr; gap: 96px; } }
.contact-cards { display: grid; gap: 16px; margin-top: 40px; }
.contact-card {
  display: flex; gap: 16px; align-items: center; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color .3s, transform .3s var(--ease);
}
a.contact-card:hover { border-color: var(--green); transform: translateY(-2px); }
.contact-card .ic { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--navy-800); color: var(--lime); display: grid; place-items: center; }
.contact-card .ic svg { width: 20px; height: 20px; }
.contact-card small { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.contact-card strong { color: var(--ink); font-size: 18px; word-break: break-word; }

.form-card { background: var(--paper); border-radius: var(--radius-lg); padding: 40px 24px; }
@media (min-width: 640px) { .form-card { padding: 48px; } }
.form-card h2 { margin-bottom: 16px; }
.form-grid { display: grid; gap: 24px; margin-top: 32px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; font: 400 16px var(--font-body); color: var(--ink); background: var(--white);
  border: 1px solid rgba(12,32,56,.16); border-radius: var(--radius); padding: 14px 16px; transition: border-color .3s, box-shadow .3s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px rgba(131,217,22,.25); }
.hp { position: absolute; left: -9999px; }
.notice { padding: 16px 20px; border-radius: var(--radius); margin-top: 24px; font-weight: 600; }
.notice--ok { background: rgba(131,217,22,.18); color: #2f6a05; }
.notice--err { background: #fde8e8; color: #9b1c1c; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--navy-900); color: rgba(255,255,255,.75); overflow: hidden; isolation: isolate; padding: var(--section) 0; }
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .18; z-index: -1; filter: grayscale(.3); }
.cta-band .inner { display: grid; gap: 40px; }
@media (min-width: 960px) { .cta-band .inner { grid-template-columns: 1.4fr 1fr; align-items: end; gap: 96px; } }
.cta-band h2 { color: var(--white); }
.cta-band p { max-width: 56ch; margin: 24px 0 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; }
@media (min-width: 960px) { .cta-actions { justify-content: flex-end; } }

/* ---------- Values row ---------- */
.values { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
@media (min-width: 720px) { .values { grid-template-columns: repeat(3, 1fr); } }
.values > div { background: var(--white); padding: 40px 32px 40px 0; }
@media (min-width: 720px) { .values > div + div { padding-left: 32px; } }
.values strong { font-family: var(--font-display); font-weight: 800; font-size: 48px; color: var(--ink); display: block; line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; }
.values strong em { font-style: normal; color: var(--green); }
.values span { font-size: 13px; letter-spacing: .14em; font-weight: 700; text-transform: uppercase; color: var(--muted); display: block; margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.6); padding: 96px 0 32px; font-size: 15px; }
.footer-top { display: grid; gap: 48px; padding-bottom: 64px; border-bottom: 1px solid var(--line-dark); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.4fr 0.8fr 1.2fr; gap: 64px; } }
.footer-brand img { height: 80px; width: auto; margin-bottom: 24px; }
.footer-brand p { max-width: 40ch; }
.site-footer h4 { font-family: var(--font-body); font-size: 12px; letter-spacing: .18em; color: var(--lime); margin-bottom: 24px; font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.site-footer a { transition: color .3s; }
.site-footer a:hover { color: var(--white); }
.footer-contact li { display: grid; }
.footer-contact strong { color: var(--white); font-weight: 600; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 32px; font-size: 13px; }
.footer-bottom .tagline { letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,.4); }
.footer-mega {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; line-height: .9;
  font-size: clamp(48px, 11vw, 168px); color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.14);
  margin: 64px 0 0; white-space: nowrap; overflow: hidden; user-select: none;
}

/* ---------- Generic content ---------- */
.entry-content { max-width: 760px; }
.entry-content h2 { font-size: 32px; margin: 48px 0 16px; }
.entry-content a { color: var(--green); text-decoration: underline; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slides img { transition: opacity .01s; transform: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Floating call button (mobile) */
.fab-call {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 56px; height: 56px; border-radius: 50%;
  background: var(--lime); color: var(--navy-900); display: none; place-items: center; box-shadow: 0 8px 24px rgba(7,19,34,.3);
}
.fab-call svg { width: 24px; height: 24px; }
@media (max-width: 920px) { .fab-call { display: grid; } }

/* ---------- Refinements ---------- */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.lightbox { z-index: 100000; }
.brand img { height: 76px; }
.is-scrolled .brand img { height: 58px; }
@media (max-width: 920px) { .brand img, .is-scrolled .brand img { height: 56px; } }
.hero h1 { font-size: clamp(40px, 6.2vw, 88px); max-width: 15ch; }
.h-lg { font-size: clamp(32px, 4vw, 56px); }

/* ---------- Floating buttons (WhatsApp + call) ---------- */
.fabs { position: fixed; right: 24px; bottom: 24px; z-index: 45; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fabs .fab-call { position: static; }
.fab-wa {
  display: inline-flex; align-items: center; gap: 0; height: 60px; padding: 0 16px; border-radius: 999px;
  background: #25d366; color: #fff; box-shadow: 0 10px 28px rgba(7,19,34,.28);
  font: 700 15px var(--font-body); white-space: nowrap; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s, gap .4s var(--ease);
}
.fab-wa svg { width: 28px; height: 28px; flex: none; }
.fab-wa span { max-width: 0; opacity: 0; transition: max-width .45s var(--ease), opacity .3s; }
.fab-wa:hover, .fab-wa:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(37,211,102,.4); gap: 10px; }
.fab-wa:hover span, .fab-wa:focus-visible span { max-width: 200px; opacity: 1; }
.fab-wa::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: waPulse 2.6s ease-out 1.5s 3;
}
.fab-wa { position: relative; }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 100% { box-shadow: 0 0 0 18px rgba(37,211,102,0); } }
@media (max-width: 920px) {
  .fabs { right: 16px; bottom: 16px; }
  .fab-wa { height: 56px; width: 56px; padding: 0; justify-content: center; }
  .fab-wa span { display: none; }
}
.nav-open .fabs { display: none; }
.contact-card .ic--wa { background: #25d366; color: #fff; }
.contact-card .ic--wa svg { width: 24px; height: 24px; }
.btn--wa { --bg: #25d366; --fg: #fff; }
.btn--wa svg { width: 22px; height: 22px; }
.btn--wa:hover { background: #1ebe5b; border-color: #1ebe5b; }
.btn--wa:hover svg { transform: none; }

/* ---------- Header: two phone numbers ---------- */
.header-phones { display: flex; flex-direction: column; gap: 4px; padding-right: 24px; border-right: 1px solid var(--line-dark); }
.header-phones .header-phone { font-size: 14px; line-height: 1.2; gap: 8px; transition: color .3s; }
.header-phones .header-phone:hover { color: var(--lime); }
.header-phones .header-phone svg { width: 14px; height: 14px; }
.header-phones .header-phone span { display: inline-flex; align-items: baseline; gap: 6px; }
.header-phones small { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); min-width: 40px; }
.primary-nav ul { gap: 28px; }
@media (max-width: 1240px) { .primary-nav ul { gap: 20px; } .header-phones small { display: none; } .header-phones { padding-right: 16px; } .header-cta { gap: 16px; } }
@media (max-width: 1080px) { .header-phones { display: none; } }

/* ---------- Stats bar: equal spacing in every column ---------- */
@media (min-width: 768px) {
  .hero-stats .stat,
  .hero-stats .stat:nth-child(odd),
  .hero-stats .stat:nth-child(2n) { padding: 32px 24px 40px 32px; border-right: 1px solid var(--line-dark); }
  .hero-stats .stat:first-child { padding-left: 0; }
  .hero-stats .stat:last-child { border-right: 0; }
}

/* ---------- Review fixes (v1.2.0) ---------- */
/* Floating buttons must not cover the footer text */
.site-footer { padding-bottom: 112px; }
@media (max-width: 920px) { .site-footer { padding-bottom: 168px; } .fab-call, .fab-wa { width: 52px; height: 52px; } }

/* Mobile menu: big links only for the page list; contact links normal size; scrollable */
@media (max-width: 920px) {
  .primary-nav { justify-content: flex-start; overflow-y: auto; padding-top: 112px; }
  .primary-nav a { font-family: var(--font-body); font-size: 16px; text-transform: none; letter-spacing: 0; font-weight: 500; }
  .primary-nav ul a { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 32px; letter-spacing: -0.02em; line-height: 1.2; }
  .primary-nav .mobile-only { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line-dark); gap: 12px; }
  .primary-nav .mobile-only .btn { font-size: 15px; font-weight: 700; color: var(--navy-900); justify-content: center; }
  .primary-nav .mobile-only a:not(.btn) { color: rgba(255,255,255,.85); padding: 4px 0; }
  .primary-nav .mobile-only a::after { display: none; }
}

/* Service tiles: stronger shade so labels stay readable on light photos */
.tile::after { background: linear-gradient(180deg, rgba(7,19,34,.05) 0%, rgba(7,19,34,.45) 45%, rgba(7,19,34,.94) 100%); }
.tile-tag { text-shadow: 0 1px 8px rgba(7,19,34,.6); }

/* Services numbered list label */
.num-item .num { line-height: 1.4; }

/* Tabs: one row on phones */
@media (max-width: 640px) {
  .tabs-nav { display: flex; width: 100%; flex-wrap: nowrap; }
  .tabs-nav button { flex: 1; padding: 12px 8px; font-size: 14px; }
}

/* Gallery filters: one swipeable row on phones */
@media (max-width: 767px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; }
}

/* Home project strip on phones: first photo full width (no lonely last photo) */
@media (max-width: 959px) {
  .showcase > :first-child { grid-column: span 2; aspect-ratio: 16 / 10; }
}
@media (max-width: 920px) { .primary-nav ul { gap: 4px; } }
