/* =========================================================
   Allan Builders — Bold Industrial Theme
   ========================================================= */

:root {
  --dark: #121417;
  --dark-2: #1b1e23;
  --dark-3: #23262c;
  --accent: #ffc600;
  --accent-dark: #e0ad00;
  --accent-contrast: #121417;
  --white: #ffffff;
  --text-light: #f3f4f6;
  --text-muted: #aeb4bd;
  --gray-50: #f6f6f7;
  --gray-100: #eceeef;
  --gray-600: #5b6168;
  --border-dark: rgba(255, 255, 255, 0.09);
  --border-light: rgba(18, 20, 23, 0.1);
  --radius: 6px;
  --shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.35);
  --container-w: 1180px;
  --font-head: 'Oswald', Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--dark);
}
p { margin: 0 0 16px; color: var(--gray-600); }
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}
.accent { color: var(--accent); }
section { position: relative; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-accent { background: var(--accent); color: var(--accent-contrast); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--dark); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--dark-2); }
.btn-lg { padding: 16px 34px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* ---------- Topbar ---------- */
.topbar { background: var(--dark-2); color: var(--text-muted); font-size: 13px; }
.topbar-inner {
  display: flex; align-items: center; gap: 28px;
  padding: 9px 24px; flex-wrap: wrap;
}
.topbar-item i { color: var(--accent); margin-right: 6px; }
.topbar-item a { color: var(--text-muted); }
.topbar-item a:hover { color: var(--white); }
.topbar-social { margin-left: auto; display: flex; gap: 14px; }
.topbar-social a { color: var(--text-muted); }
.topbar-social a:hover { color: var(--accent); }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--dark);
  border-bottom: 1px solid var(--border-dark);
  position: sticky; top: 0; z-index: 500;
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 10px 26px -14px rgba(0,0,0,0.55); }
.header-inner {
  display: flex; align-items: center; gap: 28px;
  padding: 14px 24px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 42px; height: 42px; border-radius: 4px;
  background: var(--accent); color: var(--dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.logo-img {
  width: 52px; height: 52px; object-fit: contain;
  flex-shrink: 0; display: block;
  filter: drop-shadow(0 2px 6px rgba(244, 180, 0, 0.18));
}
.logo-text {
  font-family: var(--font-head); font-weight: 700;
  font-size: 20px; letter-spacing: 0.02em; color: var(--white);
  text-transform: uppercase; white-space: nowrap;
}
.logo-text .accent { color: var(--accent); }
.main-nav { display: flex; gap: 26px; margin-left: 12px; flex: 1; }
.main-nav a {
  font-family: var(--font-head); font-size: 14px; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--text-muted);
  padding: 8px 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active { color: var(--white); border-color: var(--accent); }
.header-cta { flex-shrink: 0; }
.nav-toggle {
  display: none; background: none; border: none; color: var(--white);
  font-size: 22px; cursor: pointer; padding: 6px;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(150deg, var(--dark) 0%, var(--dark-2) 60%, var(--dark-3) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 90px 0 110px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(135deg, rgba(255,198,0,0.06) 0 2px, transparent 2px 26px);
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px;
  align-items: center; position: relative; z-index: 2;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-family: var(--font-head);
  letter-spacing: 0.12em; text-transform: uppercase; font-size: 13px;
  margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--accent); }
.hero h1 { font-size: 52px; color: var(--white); margin-bottom: 20px; }
.hero h1 .accent { color: var(--accent); }
.hero p.lead { color: var(--text-muted); font-size: 17px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.hero-art { position: relative; }
.hero-badge {
  position: absolute; bottom: -20px; left: -20px;
  background: var(--accent); color: var(--dark);
  padding: 18px 22px; border-radius: var(--radius);
  font-family: var(--font-head); text-transform: uppercase;
  box-shadow: var(--shadow);
}
.hero-badge strong { display: block; font-size: 30px; line-height: 1; }
.hero-badge span { font-size: 12px; letter-spacing: 0.05em; }

/* ---------- Animated hero illustration ---------- */
.hero-illustration { width: 100%; height: 100%; display: block; }

.hi-glow {
  fill: var(--accent);
  opacity: 0.08;
  transform-origin: 200px 170px;
  animation: hiPulse 5s ease-in-out infinite;
}

.hi-ground { stroke: rgba(255, 255, 255, 0.15); stroke-width: 2; }

.hi-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hi-house .hi-draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: hiDrawOnce 1.6s ease-out forwards;
}
.hi-house path.hi-draw:nth-child(2) { animation-delay: 0.2s; }
.hi-house path.hi-draw:nth-child(3) { animation-delay: 0.5s; }
.hi-house rect.hi-draw:nth-child(4) { animation-delay: 0.7s; }
.hi-house rect.hi-draw:nth-child(5) { animation-delay: 0.75s; }

.hi-crane {
  transform-box: fill-box;
  transform-origin: bottom center;
  animation: hiSwing 4.5s ease-in-out infinite;
}
.hi-cable { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1.5; }
.hi-hook { fill: rgba(255, 255, 255, 0.5); }

.hi-spark { fill: var(--accent); opacity: 0; animation: hiRise 3.6s ease-in infinite; }
.hi-spark-1 { animation-delay: 0s; }
.hi-spark-2 { animation-delay: 0.9s; }
.hi-spark-3 { animation-delay: 1.8s; }
.hi-spark-4 { animation-delay: 2.6s; }

.cs-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 5 9;
  opacity: 0.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: csRotate 20s linear infinite;
}

.cs-ribbon {
  fill: var(--accent);
  opacity: 0;
  animation: csFadeIn 0.4s ease-out 0.55s forwards;
}

.cs-medal-draw {
  fill: none;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0.6;
  animation: hiDrawOnce 0.7s ease-out forwards;
}
.cs-medal-inner { animation-delay: 0.2s; }
.cs-check { stroke-width: 4.5; animation-delay: 0.45s; animation-duration: 0.45s; }

.cs-medal {
  transform-box: fill-box;
  transform-origin: center;
  animation: csStamp 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s backwards;
}

.cs-tool {
  transform-box: fill-box;
  transform-origin: center;
  animation: csBob 3.2s ease-in-out infinite;
}
.cs-hardhat { animation-delay: 1.6s; }

@keyframes csRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes csBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes csFadeIn {
  from { opacity: 0; }
  to { opacity: 0.85; }
}

@keyframes csStamp {
  0% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes hiDrawOnce {
  from { stroke-dashoffset: 1; opacity: 0.5; }
  to { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes hiSwing {
  0%, 100% { transform: rotate(-1.5deg); }
  50% { transform: rotate(1.5deg); }
}

@keyframes hiPulse {
  0%, 100% { transform: scale(0.92); opacity: 0.06; }
  50% { transform: scale(1.05); opacity: 0.14; }
}

@keyframes hiRise {
  0% { opacity: 0; transform: translateY(0) scale(0.6); }
  15% { opacity: 0.9; }
  80% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-70px) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hi-glow, .hi-house .hi-draw, .hi-crane, .hi-spark,
  .cs-ring, .cs-medal-draw, .cs-medal, .cs-tool, .cs-ribbon {
    animation: none !important;
  }
  .hi-house .hi-draw, .cs-medal-draw { stroke-dashoffset: 0; opacity: 1; }
  .cs-ribbon { opacity: 0.85; }
}

/* ---------- Page header (sub-pages) ---------- */
.page-header {
  background: linear-gradient(150deg, var(--dark) 0%, var(--dark-2) 70%);
  color: var(--white); padding: 64px 0 50px; position: relative; overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,198,0,0.06) 0 2px, transparent 2px 26px);
}
.page-header .container { position: relative; z-index: 2; }
.page-header h1 { color: var(--white); font-size: 38px; margin-bottom: 10px; }
.breadcrumb { color: var(--text-muted); font-size: 14px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 8px; color: var(--accent); }

/* ---------- Sections generic ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--gray-50); }
.section-dark { background: var(--dark); color: var(--text-light); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: var(--text-muted); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.section-head .eyebrow { justify-content: center; }
.section-head h2 { font-size: 34px; }

/* ---------- Stats ---------- */
.stats-bar {
  background: var(--dark); color: var(--white);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 4px solid var(--accent);
}
.stat { text-align: center; padding: 40px 20px; border-right: 1px solid var(--border-dark); }
.stat:last-child { border-right: none; }
.stat .num { font-family: var(--font-head); font-size: 42px; color: var(--accent); display: block; }
.stat .label { text-transform: uppercase; letter-spacing: 0.05em; font-size: 13px; color: var(--text-muted); }

/* ---------- Cards: services ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.service-card {
  background: var(--white); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 34px 28px;
  box-shadow: 0 10px 30px -18px rgba(0,0,0,0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-card .icon {
  width: 56px; height: 56px; border-radius: 4px;
  background: var(--dark); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 20px;
}
.service-card h3 { font-size: 19px; margin-bottom: 10px; }
.service-card ul { margin-top: 14px; }
.service-card ul li { color: var(--gray-600); font-size: 14px; padding: 5px 0; display: flex; gap: 8px; }
.service-card ul li i { color: var(--accent); margin-top: 3px; }
.service-card .link { margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); text-transform: uppercase; font-size: 13px; color: var(--dark); }
.service-card .link i { transition: transform 0.2s; }
.service-card:hover .link i { transform: translateX(4px); }

/* ---------- Process steps ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.process-step { text-align: center; padding: 0 18px; position: relative; }
.process-step .step-num {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--dark); color: var(--accent); border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 22px;
}
.process-step h4 { font-size: 16px; margin-bottom: 8px; }
.process-step p { font-size: 14px; }
.process-grid .process-step:not(:last-child)::after {
  content: ''; position: absolute; top: 32px; left: 100%; width: 100%;
  height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 14px);
  transform: translateX(-50%); z-index: -1;
}

/* ---------- Project / property cards ---------- */
.media-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border-light); box-shadow: 0 10px 30px -20px rgba(0,0,0,0.3);
  transition: transform .2s ease, box-shadow .2s ease;
}
.media-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.media-thumb {
  position: relative; height: 210px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85); font-size: 40px;
}
.media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.media-thumb > a { display: block; width: 100%; height: 100%; background: var(--gray-100); }
.media-card:hover .media-thumb img { transform: scale(1.04); }
.media-thumb .media-tag { z-index: 1; }
.media-desc {
  font-size: 13px; margin: -4px 0 12px; display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line;
}
.media-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--accent); color: var(--dark);
  font-family: var(--font-head); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.05em; padding: 5px 10px; border-radius: 3px;
}
.media-tag.status-sold { background: var(--dark); color: var(--white); }
.media-tag.status-build { background: var(--white); color: var(--dark); }
.media-body { padding: 22px 22px 24px; }
.media-body h3 { font-size: 18px; margin-bottom: 6px; }
.media-meta { display: flex; gap: 16px; color: var(--gray-600); font-size: 13px; margin: 10px 0 14px; flex-wrap: wrap; }
.media-meta span { display: inline-flex; align-items: center; gap: 6px; }
.media-meta i { color: var(--accent); }
.media-price { font-family: var(--font-head); font-size: 20px; color: var(--dark); }
.media-price small { font-family: var(--font-body); font-size: 12px; color: var(--gray-600); font-weight: 400; text-transform: none; }
.media-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }

/* Gradient placeholder swatches used instead of real photography */
.ph-1 { background: linear-gradient(135deg,#2c3038,#121417); }
.ph-2 { background: linear-gradient(135deg,#3a3f29,#1c1f17); }
.ph-3 { background: linear-gradient(135deg,#2f241a,#14100c); }
.ph-4 { background: linear-gradient(135deg,#1f2a33,#10161b); }
.ph-5 { background: linear-gradient(135deg,#332a1a,#17120a); }
.ph-6 { background: linear-gradient(135deg,#27323a,#11161a); }

/* ---------- Filters ---------- */
.filter-bar { display: flex; gap: 10px; justify-content: center; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn {
  font-family: var(--font-head); text-transform: uppercase; font-size: 13px; letter-spacing: 0.04em;
  padding: 10px 20px; border-radius: 30px; border: 1px solid var(--border-light);
  background: var(--white); cursor: pointer; color: var(--gray-600);
}
.filter-btn:hover { border-color: var(--accent); color: var(--dark); }
.filter-btn.active { background: var(--dark); color: var(--accent); border-color: var(--dark); }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--dark-2); border-radius: var(--radius); padding: 30px;
  border: 1px solid var(--border-dark);
}
.testimonial-card .stars { color: var(--accent); margin-bottom: 14px; }
.testimonial-card p { color: var(--text-muted); font-style: italic; }
.testimonial-person { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--accent);
  color: var(--dark); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700;
}
.testimonial-person strong { color: var(--white); display: block; font-size: 14px; }
.testimonial-person span { color: var(--text-muted); font-size: 12px; }

/* ---------- CTA strip ---------- */
.cta-strip { background: var(--accent); color: var(--dark); padding: 44px 0; }
.cta-strip-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-strip h3 { margin-bottom: 4px; font-size: 24px; }
.cta-strip p { color: rgba(18,20,23,0.75); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--text-muted); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 46px; }
.footer-col h4 { color: var(--white); font-size: 15px; margin-bottom: 18px; }
.footer-col a { display: block; color: var(--text-muted); padding: 6px 0; font-size: 14px; }
.footer-col a:hover { color: var(--accent); }
.footer-col p { font-size: 14px; margin-bottom: 10px; }
.footer-col p i { color: var(--accent); width: 18px; }
.footer-brand p { font-size: 14px; }
.footer-brand .logo { display: inline-flex; padding: 0; margin-bottom: 18px; }
.logo-full { height: 64px; width: auto; display: block; flex-shrink: 0; }
.footer-brand .logo-full { height: 84px; }
@media (max-width: 480px) { .site-header .logo-full { height: 46px; } }
.footer-contact p { display: flex; align-items: flex-start; gap: 10px; line-height: 1.6; margin-bottom: 14px; }
.footer-contact p i { flex-shrink: 0; margin-top: 4px; text-align: center; }
.footer-contact p a { display: inline; padding: 0; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-dark);
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.footer-social a:hover { background: var(--accent); color: var(--dark); border-color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border-dark); padding: 18px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; font-size: 13px; flex-wrap: wrap; gap: 8px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-family: var(--font-head); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--dark); }
.form-group input, .form-group select, .form-group textarea {
  padding: 13px 14px; border: 1px solid #d8dade; border-radius: 4px;
  font-family: var(--font-body); font-size: 14px; background: var(--white); color: var(--dark);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,198,0,0.2);
}
.form-card { background: var(--white); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); border: 1px solid var(--border-light); }
.form-note { font-size: 13px; color: var(--gray-600); margin-top: -6px; }
.form-status { padding: 12px 16px; border-radius: 4px; font-size: 14px; margin-top: 10px; display: none; }
.form-status.ok { background: #e7f6ec; color: #1a7a3c; display: block; }
.form-status.err { background: #fdecec; color: #b3261e; display: block; }

/* ---------- Gallery (view-only — uploads are managed via the separate admin app) ---------- */
.gallery-filter { display: flex; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; justify-content: center; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery-item {
  position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 1/1;
  background: var(--dark-2);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item .overlay {
  position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.85) 100%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 12px;
  opacity: 0; transition: opacity .2s ease;
}
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item .overlay .g-title { color: var(--white); font-size: 13px; font-weight: 600; }
.gallery-item .overlay .g-cat { color: var(--accent); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }
.gallery-empty { text-align: center; padding: 60px 20px; color: var(--gray-600); }
.gallery-empty i { font-size: 40px; color: var(--border-light); margin-bottom: 14px; display: block; }

/* ---------- Pagination ---------- */
.pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.pager[hidden] { display: none; }
.pager-btn {
  min-width: 42px; height: 42px; padding: 0 12px; border-radius: 21px; cursor: pointer;
  border: 1px solid var(--border-light); background: var(--white); color: var(--dark);
  font-family: var(--font-head); font-size: 15px; letter-spacing: 0.03em;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pager-btn:hover:not(:disabled) { border-color: var(--dark); }
.pager-btn.active { background: var(--dark); border-color: var(--dark); color: var(--accent); cursor: default; }
.pager-btn:disabled:not(.active) { opacity: 0.35; cursor: default; }
.pager-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pager-arrow { font-size: 13px; }
.pager-gap { color: var(--gray-600); padding: 0 2px; }
@media (max-width: 480px) { .pager-btn { min-width: 38px; height: 38px; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(10,11,13,0.92); z-index: 1000;
  display: none; align-items: center; justify-content: center; padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 86vh; max-width: 90vw; border-radius: 6px; }
.lightbox-close {
  position: absolute; top: 24px; right: 32px; color: var(--white); font-size: 28px;
  background: none; border: none; cursor: pointer;
}

/* ---------- Card photo carousel ---------- */
.media-track {
  display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.media-track::-webkit-scrollbar { display: none; }
.media-track img { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.media-nav {
  position: absolute; top: 50%; z-index: 2; width: 34px; height: 34px; margin-top: -17px;
  border: 0; border-radius: 50%; cursor: pointer; font-size: 13px;
  background: rgba(10, 11, 13, 0.6); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s, background 0.2s, color 0.2s;
}
.media-nav.prev { left: 10px; }
.media-nav.next { right: 10px; }
.media-card:hover .media-nav, .media-nav:focus-visible { opacity: 1; }
.media-nav:hover, .media-nav:focus-visible { background: var(--accent); color: var(--dark); }
@media (hover: none) { .media-nav { opacity: 0.85; width: 30px; height: 30px; margin-top: -15px; } }
.media-dots {
  position: absolute; left: 50%; bottom: 14px; z-index: 1; transform: translateX(-50%);
  display: flex; gap: 6px; pointer-events: none;
}
.media-dots span {
  width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.4); transition: background 0.2s, transform 0.2s;
}
.media-dots span.active { background: var(--accent); transform: scale(1.25); }

/* ---------- Photo slideshow ---------- */
.media-card.has-photos { cursor: pointer; }
.media-count {
  position: absolute; right: 12px; bottom: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(10, 11, 13, 0.78); color: var(--white); font-size: 12px; font-weight: 600;
  padding: 4px 10px; border-radius: 14px; pointer-events: none;
}
body.slideshow-open { overflow: hidden; }
.slideshow {
  position: fixed; inset: 0; z-index: 1000; background: rgba(10, 11, 13, 0.94);
  display: grid; grid-template-columns: 72px 1fr 72px; grid-template-rows: 1fr auto auto;
  align-items: center; padding: 56px 0 18px;
}
.slideshow[hidden], .slideshow [hidden] { display: none !important; }
.slideshow-stage {
  grid-column: 2; grid-row: 1; margin: 0; height: 100%; min-height: 0;
  display: flex; align-items: center; justify-content: center; position: relative;
}
.slideshow-stage img {
  max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); transition: opacity 0.2s;
}
.slideshow-stage.loading img { opacity: 0.35; }
.slideshow-spinner {
  display: none; position: absolute; width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.25); border-top-color: var(--accent); animation: slideshow-spin 0.8s linear infinite;
}
.slideshow-stage.loading .slideshow-spinner { display: block; }
@keyframes slideshow-spin { to { transform: rotate(360deg); } }
.slideshow-nav {
  grid-row: 1; justify-self: center; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.12); color: var(--white); font-size: 20px; transition: background 0.2s, color 0.2s;
}
.slideshow-nav:hover, .slideshow-nav:focus-visible { background: var(--accent); color: var(--dark); }
.slideshow-nav.prev { grid-column: 1; }
.slideshow-nav.next { grid-column: 3; }
.slideshow-close {
  position: absolute; top: 12px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: none; color: var(--white); font-size: 26px; cursor: pointer;
}
.slideshow-close:hover { color: var(--accent); }
.slideshow-bar {
  grid-column: 1 / -1; grid-row: 2; display: flex; justify-content: center; align-items: baseline; gap: 14px;
  padding: 14px 16px 6px; color: var(--white); text-align: center;
}
.slideshow-title { font-family: var(--font-head); font-size: 18px; text-transform: uppercase; letter-spacing: 0.04em; }
.slideshow-count { color: var(--accent); font-size: 14px; font-weight: 600; }
.slideshow-dots { grid-column: 1 / -1; grid-row: 3; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; padding: 6px 16px 0; }
.slideshow-dots button {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, 0.35); transition: background 0.2s, transform 0.2s;
}
.slideshow-dots button.active { background: var(--accent); transform: scale(1.3); }
@media (max-width: 640px) {
  .slideshow { grid-template-columns: 0 1fr 0; padding-top: 60px; }
  .slideshow-stage { padding: 0 12px; }
  .slideshow-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 42px; height: 42px; font-size: 16px;
    background: rgba(10, 11, 13, 0.6);
  }
  .slideshow-nav.prev { left: 10px; }
  .slideshow-nav.next { right: 10px; }
  .slideshow-title { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .slideshow-spinner { animation-duration: 2s; } }

/* ---------- Misc ---------- */
.badge-pill {
  display: inline-flex; align-items: center; gap: 6px; background: var(--gray-100);
  color: var(--gray-600); font-size: 12px; padding: 5px 12px; border-radius: 20px; margin-bottom: 14px;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.list-check { margin-top: 18px; }
.list-check li { display: flex; gap: 10px; padding: 7px 0; color: var(--gray-600); }
.list-check i { color: var(--accent); margin-top: 4px; }
.timeline { border-left: 2px solid var(--border-light); padding-left: 28px; margin-left: 6px; }
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item::before {
  content: ''; position: absolute; left: -35px; top: 2px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--accent); border: 3px solid var(--white); box-shadow: 0 0 0 2px var(--accent);
}
.timeline-item .year { font-family: var(--font-head); color: var(--accent); font-size: 14px; }

.map-box {
  height: 320px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-light);
}
.map-box iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Scroll reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.65s cubic-bezier(0.2, 0.6, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: none; }

.reveal-left { transform: translateX(-40px); }
.reveal-left.visible { transform: none; }

.reveal-right { transform: translateX(40px); }
.reveal-right.visible { transform: none; }

.reveal-scale { transform: scale(0.9); }
.reveal-scale.visible { transform: scale(1); }

.reveal-zero-delay { transition-delay: 0s !important; }

/* Stagger children inside common grid/list containers */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.08s; }
.stagger > *:nth-child(3) { transition-delay: 0.16s; }
.stagger > *:nth-child(4) { transition-delay: 0.24s; }
.stagger > *:nth-child(5) { transition-delay: 0.32s; }
.stagger > *:nth-child(6) { transition-delay: 0.4s; }
.stagger > *:nth-child(n+7) { transition-delay: 0.46s; }

@keyframes fadeInPop {
  from { opacity: 0; transform: scale(0.92) translateY(6px); }
  to { opacity: 1; transform: none; }
}
.fade-in-pop { animation: fadeInPop 0.45s ease both; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .fade-in-pop { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid-3, .grid-2, .grid-4, .form-grid, .two-col { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .process-grid .process-step::after { display: none; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .topbar-hide-mobile { display: none; }
  .main-nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  body.nav-open .main-nav {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--dark); padding: 14px 24px 20px; gap: 4px; border-top: 1px solid var(--border-dark);
  }
  .hero h1 { font-size: 36px; }
  .hero { padding: 60px 0 70px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-strip-inner { text-align: center; justify-content: center; }
  .section { padding: 56px 0; }
}
