/* ============================================================
   CEE JAYS & SONS ELECTRICAL CONTRACTORS — site stylesheet
   One file styles every page. Colours and sizes are set once
   here at the top, so changing the look is easy.
   ============================================================ */

:root {
  /* Colours */
  --ink: #101316;          /* near-black background */
  --ink-2: #181c20;        /* slightly lighter panel */
  --ink-3: #22272c;        /* card surface on dark */
  --paper: #f4f1ea;        /* warm off-white background */
  --paper-2: #eae6dc;      /* darker paper for cards */
  --amber: #ffb400;        /* electric amber accent */
  --amber-deep: #e09000;   /* darker amber for hovers */
  --white: #ffffff;
  --text-on-dark: #d8d5cf;
  --text-on-light: #33383d;
  --line-dark: rgba(255, 255, 255, 0.12);
  --line-light: rgba(16, 19, 22, 0.14);

  /* Type — "executive" pairing: Sora for headings (solid,
     structural), Open Sans for body text (clean, professional) */
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Open Sans", "Segoe UI", sans-serif;

  /* Layout */
  --wrap: 1180px;
  --pad: clamp(20px, 4vw, 48px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text-on-light);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

::selection { background: var(--amber); color: var(--ink); }

/* ---------- shared building blocks ---------- */

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--amber);
}
.on-dark .eyebrow { color: var(--amber); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; }

h1 { font-size: clamp(36px, 5.6vw, 72px); line-height: 1.05; }
h2 { font-size: clamp(27px, 3.6vw, 44px); line-height: 1.1; color: var(--ink); }
h3 { font-size: 19px; font-weight: 700; letter-spacing: 0; }

.on-dark h2, .on-dark h3 { color: var(--white); }

.lead { font-size: clamp(18px, 2vw, 21px); max-width: 640px; }

section { padding: clamp(64px, 9vw, 120px) 0; }

.section-head { margin-bottom: clamp(36px, 5vw, 60px); max-width: 760px; }
.section-head p { margin-top: 16px; }

.on-dark { background: var(--ink); color: var(--text-on-dark); }
.on-panel { background: var(--ink-2); color: var(--text-on-dark); }

/* Amber highlight word inside headings */
.hl { color: var(--amber); }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 30px;
  border: 2px solid var(--amber);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.btn-solid { background: var(--amber); color: var(--ink); }
.btn-solid:hover { background: var(--amber-deep); border-color: var(--amber-deep); transform: translateY(-2px); }
.btn-ghost { color: var(--white); background: transparent; }
.btn-ghost:hover { background: var(--amber); color: var(--ink); transform: translateY(-2px); }
.btn-ghost-dark { color: var(--ink); background: transparent; }
.btn-ghost-dark:hover { background: var(--amber); transform: translateY(-2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* Hazard stripe divider — a nod to site-safety tape */
.stripe {
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--amber) 0 16px,
    var(--ink) 16px 32px
  );
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 19, 22, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-dark);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img { height: 46px; width: auto; }
.brand-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--amber);
}

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-on-dark);
  padding: 10px 13px;
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--amber); }
.site-nav a.active { color: var(--amber); }
.site-nav .nav-cta {
  margin-left: 10px;
  border: 2px solid var(--amber);
  color: var(--amber);
}
.site-nav .nav-cta:hover { background: var(--amber); color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--line-dark);
  color: var(--white);
  font-size: 20px;
  line-height: 1;
  padding: 8px 12px;
  cursor: pointer;
}

/* ---------- hero (home) ---------- */

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  animation: hero-zoom 18s ease-out forwards;
}
@keyframes hero-zoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgba(10, 12, 14, 0.94) 0%,
    rgba(10, 12, 14, 0.55) 45%,
    rgba(10, 12, 14, 0.35) 100%
  );
}
.hero-inner { padding-top: 140px; padding-bottom: clamp(56px, 8vw, 96px); width: 100%; }
.hero .eyebrow { color: var(--amber); }
.hero h1 .hl { display: block; }
.hero .lead { color: var(--text-on-dark); margin-top: 22px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-on-dark);
}
.hero-meta b { color: var(--amber); font-weight: 700; }

/* Page banner (inner pages) */
.banner {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
}
.banner .hero-bg { animation: none; }
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(10, 12, 14, 0.92), rgba(10, 12, 14, 0.4));
}
.banner-inner { padding-top: 130px; padding-bottom: 48px; width: 100%; }
.banner h1 { font-size: clamp(32px, 4.6vw, 58px); }
.banner p { margin-top: 12px; color: var(--text-on-dark); max-width: 620px; font-size: 18px; }

/* ---------- stats band ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}
.stat {
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  padding: clamp(26px, 4vw, 48px) clamp(18px, 3vw, 40px);
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1;
  color: var(--amber);
}
.stat span {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- cards & grids ---------- */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.service-card {
  background: var(--ink-3);
  border: 1px solid var(--line-dark);
  padding: 30px 26px 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.25s, border-color 0.25s;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--amber); }
.service-card .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  color: var(--amber);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.service-card h3 { color: var(--white); font-size: 18px; }
.service-card p { font-size: 15.5px; color: var(--text-on-dark); }

/* Light cards (paper sections) */
.value-card {
  background: var(--paper-2);
  border-left: 4px solid var(--amber);
  padding: 24px 22px;
}
.value-card h3 { color: var(--ink); font-size: 18px; margin-bottom: 8px; }
.value-card p { font-size: 15px; }

/* Step list (how we deliver) */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-light);
}
.on-dark .step { border-color: var(--line-dark); }
.step .step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1;
  color: var(--amber);
}
.step h3 { margin-bottom: 6px; color: var(--ink); }
.on-dark .step h3 { color: var(--white); }
.step p { max-width: 620px; }

/* ---------- photo features ---------- */

.photo-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(26px, 4vw, 60px); align-items: center; }
.photo-split img { width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--line-light); }
.photo-frame { position: relative; }
.photo-frame::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 2px solid var(--amber);
  z-index: -1;
}

/* Featured project tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  aspect-ratio: 4 / 3;
  background: var(--ink-3);
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.tile:hover img { transform: scale(1.06); }
.tile figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 18px 16px;
  background: linear-gradient(to top, rgba(10, 12, 14, 0.92), transparent);
  color: var(--white);
}
.tile figcaption b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.tile figcaption span { font-size: 13px; color: var(--amber); letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- partners strip ---------- */

.partners {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(14px, 1.7vw, 19px);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}
.partners span { transition: color 0.2s; }
.partners span:hover { color: var(--amber); }

/* ---------- project tables ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line-light); }
table.projects { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--white); }
table.projects th {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: left;
  background: var(--ink);
  color: var(--amber);
  padding: 12px 16px;
}
table.projects td { padding: 11px 16px; border-bottom: 1px solid var(--line-light); }
table.projects tr:nth-child(even) td { background: var(--paper); }
table.projects td:last-child { white-space: nowrap; color: #6b7076; }

/* ---------- gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery-grid a {
  display: block;
  overflow: hidden;
  background: var(--ink-3);
  aspect-ratio: 3 / 2;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.4s;
}
.gallery-grid a:hover img { transform: scale(1.05); }

/* wide panoramas span two columns for variety */
.gallery-grid a.wide { grid-column: span 2; aspect-ratio: 3.1 / 1; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 10, 12, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 84vh; object-fit: contain; }
.lightbox .lb-bar { display: flex; gap: 12px; align-items: center; color: var(--text-on-dark); font-size: 14px; letter-spacing: 0.1em; }
.lightbox button {
  background: none;
  border: 2px solid var(--line-dark);
  color: var(--white);
  font-size: 18px;
  padding: 8px 16px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.lightbox button:hover { border-color: var(--amber); color: var(--amber); }

/* ---------- contact ---------- */

.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card {
  background: var(--ink-3);
  border: 1px solid var(--line-dark);
  border-top: 4px solid var(--amber);
  padding: 28px 24px;
}
.contact-card h3 { color: var(--white); font-size: 17px; margin-bottom: 12px; }
.contact-card p { font-size: 15.5px; color: var(--text-on-dark); }
.contact-card a { color: var(--amber); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

.detail-list { list-style: none; }
.detail-list li {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 15.5px;
}
.detail-list b { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber-deep); padding-top: 3px; }

/* ---------- CTA band ---------- */

.cta-band { position: relative; isolation: isolate; overflow: hidden; color: var(--white); text-align: center; }
.cta-band .hero-bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 12, 14, 0.82);
}
.cta-band h2 { color: var(--white); }
.cta-band p { max-width: 560px; margin: 16px auto 0; color: var(--text-on-dark); }
.cta-band .btn-row { justify-content: center; }

/* ---------- footer ---------- */

.site-footer { background: var(--ink); color: var(--text-on-dark); padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 44px; border-bottom: 1px solid var(--line-dark); }
.site-footer h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; font-size: 15px; }
.site-footer a { color: var(--text-on-dark); text-decoration: none; transition: color 0.15s; }
.site-footer a:hover { color: var(--amber); }
.footer-brand img { height: 54px; margin-bottom: 16px; }
.footer-brand p { font-size: 14.5px; max-width: 300px; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 22px;
  font-size: 13px;
  color: rgba(216, 213, 207, 0.55);
}

/* ---------- scroll reveal ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { animation: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .grid-3, .tiles, .contact-cards { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .photo-split { grid-template-columns: 1fr; }
  .photo-frame::after { display: none; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .site-nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--ink);
    border-bottom: 2px solid var(--amber);
    padding: 10px 0 18px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px var(--pad); }
  .site-nav .nav-cta { margin: 10px var(--pad) 0; text-align: center; }
  .nav-toggle { display: block; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3, .tiles, .contact-cards { grid-template-columns: 1fr; }
  .step { grid-template-columns: 56px 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid a.wide { grid-column: span 1; aspect-ratio: 2 / 1; }
  .detail-list li { grid-template-columns: 1fr; gap: 2px; }
  .hero { min-height: 78vh; }
}

/* ============================================================
   PREMIUM EXPERIENCE LAYER
   Loading screen, skeletons, page transitions, scroll extras
   and micro-interactions. Purely additive — the layout and
   branding above stay exactly as they are.
   ============================================================ */

/* ---------- branded loading screen ---------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  transition: opacity 0.45s ease, visibility 0.45s;
  /* safety net: even if scripts fail, the loader removes itself */
  animation: preloader-fallback 0.5s ease 5s forwards;
}
.preloader img {
  height: 72px;
  width: auto;
  animation: preloader-pulse 1.6s ease-in-out infinite;
}
.preloader-bar {
  width: 180px;
  height: 3px;
  background: var(--line-dark);
  overflow: hidden;
}
.preloader-bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--amber);
  animation: preloader-slide 1.1s ease-in-out infinite;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
@keyframes preloader-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.72; transform: scale(0.97); }
}
@keyframes preloader-slide {
  from { transform: translateX(-120%); }
  to { transform: translateX(480%); }
}
@keyframes preloader-fallback {
  to { opacity: 0; visibility: hidden; }
}

/* ---------- smooth page transitions ---------- */

body { animation: page-in 0.45s ease both; transition: opacity 0.22s ease; }
body.page-leave { opacity: 0; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- image skeletons & progressive loading ---------- */

.img-skel { position: relative; overflow: hidden; }
.img-skel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0.07) 50%, rgba(255, 255, 255, 0) 65%)
    #1c2126;
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
img.progressive { opacity: 0; }
img.progressive.loaded { opacity: 1; transition: opacity 0.45s ease; }

/* ---------- scroll progress bar ---------- */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 90;
  background: linear-gradient(90deg, var(--amber), var(--amber-deep));
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

/* ---------- back-to-top button (frosted glass) ---------- */

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 180, 0, 0.55);
  background: rgba(24, 28, 32, 0.55);
  backdrop-filter: blur(10px) saturate(1.3);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  color: var(--amber);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s, color 0.2s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--amber); color: var(--ink); }

/* ---------- smarter sticky header ---------- */

.site-header { transition: background 0.3s ease, box-shadow 0.3s ease; }
.site-header.scrolled {
  background: rgba(13, 15, 17, 0.86);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.7);
}
.nav-bar { transition: height 0.3s ease; }
.site-header.scrolled .nav-bar { height: 62px; }
.site-header.scrolled .brand img { height: 40px; transition: height 0.3s ease; }

/* animated underline on menu links */
.site-nav a { position: relative; }
.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 5px;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.25s ease;
}
.site-nav a:not(.nav-cta):hover::after,
.site-nav a:not(.nav-cta).active::after { transform: scaleX(1); }

/* ---------- micro-interactions & layered depth ---------- */

/* light sweep across buttons on hover */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -70%;
  width: 50%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  transition: left 0.5s ease;
}
.btn:hover::after { left: 130%; }
.btn:hover { box-shadow: 0 12px 28px -12px rgba(255, 180, 0, 0.45); }
.btn:active { transform: translateY(0) scale(0.98); }

/* soft layered shadows on cards and tiles */
.service-card, .contact-card { transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; }
.service-card:hover, .contact-card:hover {
  box-shadow: 0 22px 44px -20px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 180, 0, 0.12);
}
.contact-card:hover { transform: translateY(-4px); }
.tile { transition: box-shadow 0.3s; }
.tile:hover { box-shadow: 0 26px 50px -22px rgba(0, 0, 0, 0.75); }
.value-card { transition: transform 0.25s, box-shadow 0.25s; }
.value-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -18px rgba(16, 19, 22, 0.35);
}
.stat { transition: background 0.3s; }
.stat:hover { background: rgba(255, 180, 0, 0.05); }

/* staggered fade-ins inside grids */
.grid-3 .reveal:nth-child(3n + 2), .tiles .reveal:nth-child(3n + 2), .contact-cards .reveal:nth-child(3n + 2) { transition-delay: 0.1s; }
.grid-3 .reveal:nth-child(3n + 3), .tiles .reveal:nth-child(3n + 3), .contact-cards .reveal:nth-child(3n + 3) { transition-delay: 0.2s; }
.stats .stat:nth-child(2) { transition-delay: 0.08s; }
.stats .stat:nth-child(3) { transition-delay: 0.16s; }
.stats .stat:nth-child(4) { transition-delay: 0.24s; }

/* frosted-glass photo viewer controls */
.lightbox .lb-bar {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px 14px;
}
.lightbox img { transition: opacity 0.25s ease; }

/* ---------- polished form feedback ---------- */

#quote-form input:focus, #quote-form select:focus, #quote-form textarea:focus {
  outline: 2px solid var(--amber);
  outline-offset: 0;
  box-shadow: 0 0 0 4px rgba(255, 180, 0, 0.16);
}
#quote-form input, #quote-form select, #quote-form textarea { transition: box-shadow 0.2s ease; }
#quote-form .btn-done { background: #2f9e5f; border-color: #2f9e5f; color: #fff; }
#quote-form button:disabled { opacity: 0.7; cursor: wait; }

/* the hidden anti-spam box — visitors must never see it */
.hp-field { display: none !important; }

/* thank-you / error note shown after the form is sent */
.form-note { padding: 12px 16px; font-size: 15px; font-weight: 600; }
.form-note.ok { background: rgba(47, 158, 95, 0.12); border-left: 4px solid #2f9e5f; color: #1d6b40; }
.form-note.err { background: rgba(190, 60, 40, 0.10); border-left: 4px solid #be3c28; color: #8f2b1d; }

/* clear focus outline for keyboard users, everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* ---------- data-saver / slow-connection mode ---------- */

html.lite .hero-bg { animation: none; }
html.lite .img-skel::before { animation: none; }
html.lite .preloader img { animation: none; }
html.lite body { animation: none; }

/* ---------- reduced motion: switch the extras off ---------- */

@media (prefers-reduced-motion: reduce) {
  body { animation: none; transition: none; }
  body.page-leave { opacity: 1; }
  .preloader { transition: none; }
  .preloader img, .preloader-bar span, .img-skel::before { animation: none; }
  .btn::after { display: none; }
  .site-header, .nav-bar, .back-to-top, .tile, .service-card, .contact-card, .value-card { transition: none; }
}
