/* =========================================================
   KelvinHome â Design Tokens
   Centralized custom properties (colors, spacing, radii,
   shadows, typography, layout). Adjust here to retheme.
   ========================================================= */
:root {
  /* Brand palette */
  --red:        #E50914;
  --red-dark:   #B70710;
  --black:      #0A0A0A;
  --black-2:    #1A1A1A;
  --gray-900:   #2C2C2C;
  --gray-700:   #4A4A4A;
  --gray-500:   #7A7A7A;
  --gray-300:   #D9D9D9;
  --gray-100:   #F4F4F4;
  --white:      #FFFFFF;
  /* Spacing scale (8px base) */
  --s-1:  8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 48px;
  --s-6: 64px;
  --s-7: 96px;
  /* Radii */
  --r-sm:  4px;
  --r-md:  8px;
  --r-lg: 12px;
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.10);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.15);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.25);
  /* Layout */
  --container: 1200px;
  --header-h:  100px;
  /* Type stacks */
  --font-display: 'Oswald', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body:    'Inter',   -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
/* =========================================================
   Reset / 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: 16px;
  line-height: 1.5;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a { color: inherit; text-decoration: none; }
button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin: 0 0 var(--s-3);
  text-transform: uppercase;
  font-weight: 700;
}
/* Container helper â caps width and adds horizontal padding */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-3);
}
/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  padding: 14px 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(229,9,20,0.35);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(229,9,20,0.45);
}
.btn-large {
  padding: 18px 38px;
  font-size: 17px;
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
/* =========================================================
   Header (fixed, dark with red underline)
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--red);
  height: var(--header-h);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  width: 100%;
}
/* Logo chip â white pad around the JPEG so it sits well on the dark header */
.logo-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  flex-shrink: 0;
}
.logo-chip {
  /* Transparent chip â logo sits directly on the navbar. */
  background: transparent;
  padding: 6px 10px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  transition: opacity .2s ease;
}
.logo-chip:hover {
  opacity: .85;
}
.logo-chip img {
  height: 105px;
  width: auto;
  display: block;
}
/* Primary nav */
.main-nav { display: flex; align-items: center; }
.nav-list {
  display: flex;
  gap: var(--s-4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 4px;
  position: relative;
  transition: color .2s ease;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px; bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.nav-list a:hover { color: var(--red); }
.nav-list a:hover::after,
.nav-list a.is-active::after { transform: scaleX(1); }
.nav-list a.is-active { color: var(--red); }
.header-cta { display: flex; align-items: center; gap: var(--s-2); }
/* Hamburger (mobile only) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--black);
  border: 1px solid rgba(0,0,0,.2);
  border-radius: var(--r-sm);
}
.nav-toggle:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.nav-toggle svg { width: 24px; height: 24px; }
/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  padding-top: var(--header-h);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.25) 100%),
    url('assets/roofing.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.4) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: var(--s-6) 0;
}
.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.3);
  border-left: 3px solid var(--red);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: var(--s-3);
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  margin-bottom: var(--s-3);
}
.hero h1 .red-accent { color: var(--red); }
.hero p.lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  margin: 0 0 var(--s-4);
}
.hero-actions {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  margin-top: var(--s-3);
}
.hero-meta {
  position: absolute;
  bottom: var(--s-4);
  right: var(--s-4);
  z-index: 2;
  display: flex;
  gap: var(--s-4);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--font-display);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .dot {
  width: 6px; height: 6px;
  background: var(--red);
  border-radius: 50%;
  display: inline-block;
}
/* =========================================================
   Section helpers (title / subtitle / intro)
   ========================================================= */
section { padding: var(--s-7) 0; }
.section-title {
  text-align: center;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--black);
  margin-bottom: var(--s-1);
}
.section-sub {
  text-align: center;
  color: var(--red);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  margin-bottom: var(--s-5);
}
.section-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--s-5);
  color: var(--gray-700);
  font-size: 17px;
}
/* =========================================================
   Services
   ========================================================= */
.services { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}
.service-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.service-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}
.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.service-card:hover .service-image img { transform: scale(1.06); }
.service-image::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 70px; height: 4px;
  background: var(--red);
}
.service-body {
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.service-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: var(--s-2);
  box-shadow: 0 4px 12px rgba(229,9,20,0.3);
}
.service-body h3 {
  font-size: 22px;
  margin-bottom: var(--s-1);
  color: var(--black);
}
.service-body p {
  color: var(--gray-700);
  margin: 0 0 var(--s-3);
  flex-grow: 1;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding: 12px 22px;
  font-family: var(--font-display, 'Oswald', sans-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  background: #fff;
  border: 2px solid var(--red);
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, gap .2s ease, transform .15s ease;
}
.link-arrow:hover {
  background: var(--red);
  color: #fff;
  gap: 12px;
  transform: translateY(-1px);
}
/* =========================================================
   Why Choose Us
   ========================================================= */
.why {
  background: var(--black-2);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.why::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(229,9,20,0.08), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(229,9,20,0.06), transparent 40%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'><path d='M30 8 L52 24 L52 46 L8 46 L8 24 Z' fill='none' stroke='%23ffffff' stroke-opacity='0.04' stroke-width='1'/><rect x='24' y='30' width='12' height='16' fill='none' stroke='%23ffffff' stroke-opacity='0.04' stroke-width='1'/></svg>");
  background-repeat: repeat;
  opacity: 0.7;
  pointer-events: none;
}
.why .container { position: relative; z-index: 1; }
.why .section-title { color: var(--white); }
.why .section-title .accent { color: var(--red); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
.feature {
  text-align: center;
  padding: var(--s-3);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.02);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(229,9,20,0.5);
  background: rgba(229,9,20,0.05);
}
.feature-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(229,9,20,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-2);
  border: 1px solid rgba(229,9,20,0.3);
}
.feature-icon svg { width: 36px; height: 36px; stroke: var(--red); }
.feature h3 {
  font-size: 18px;
  color: var(--white);
  margin-bottom: var(--s-1);
}
.feature p {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  margin: 0;
}
/* =========================================================
   Project Gallery
   ========================================================= */
.gallery { background: var(--gray-100); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.project {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.project img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.project::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.75) 100%);
  transition: opacity .3s ease;
}
.project-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--s-3);
  z-index: 2;
  color: var(--white);
  transform: translateY(20px);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}
.project-overlay .tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--red);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  margin-bottom: var(--s-1);
}
.project-overlay h3 {
  font-size: 16px;
  color: var(--white);
  margin: 0;
}
.project:hover img { transform: scale(1.08); }
.project:hover .project-overlay { transform: translateY(0); opacity: 1; }
.gallery-cta { text-align: center; }

/* Gallery stagger entrance + cursor hint */
/* Override generic .reveal transitions for projects: stagger animates on load */
.project.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: none;
  animation: projectIn 0.6s ease forwards;
  animation-delay: 0.1s;
}
.project.reveal.is-visible { opacity: 1; transform: translateY(0); }
.project.reveal:nth-child(1)  { animation-delay: 0.10s; }
.project.reveal:nth-child(2)  { animation-delay: 0.20s; }
.project.reveal:nth-child(3)  { animation-delay: 0.30s; }
.project.reveal:nth-child(4)  { animation-delay: 0.40s; }
.project.reveal:nth-child(5)  { animation-delay: 0.50s; }
.project.reveal:nth-child(6)  { animation-delay: 0.60s; }
.project.reveal:nth-child(7)  { animation-delay: 0.70s; }
.project.reveal:nth-child(8)  { animation-delay: 0.80s; }
.project.reveal:nth-child(9)  { animation-delay: 0.90s; }
.project.reveal:nth-child(10) { animation-delay: 1.00s; }
.project.reveal:nth-child(11) { animation-delay: 1.10s; }
.project.reveal:nth-child(12) { animation-delay: 1.20s; }
.project.reveal:nth-child(13) { animation-delay: 1.30s; }
.project.reveal:nth-child(14) { animation-delay: 1.40s; }
.project.reveal:nth-child(15) { animation-delay: 1.50s; }
.project.reveal:nth-child(16) { animation-delay: 1.60s; }

@keyframes projectIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Add Photo button next to gallery title (admin only) */
.gallery-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-2);
}
.gallery-title-row .gallery-add-btn {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--red);
  color: var(--white);
  border: 0;
  border-radius: var(--r-sm);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.gallery-title-row .gallery-add-btn:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}
.gallery-title-row .gallery-add-btn.is-visible { display: inline-flex; }
.gallery-title-row .gallery-add-btn svg { width: 14px; height: 14px; }

/* Invisible "+" add button at top-right of gallery grid (admin only) */
.gallery-add-corner {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  cursor: pointer;
  z-index: 4;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s, background 0.2s;
}
.gallery-add-corner:hover { transform: scale(1.08); background: var(--red-dark); }
.gallery-add-corner.is-visible { display: inline-flex; }
.gallery-grid-wrap { position: relative; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .project.reveal { animation: none; opacity: 1; transform: none; }
}

/* =========================================================
   CTA Split (info + quote form)
   ========================================================= */
.cta-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 540px;
}
.cta-left {
  background-color: var(--black);
  background-image:
    linear-gradient(135deg, rgba(0,0,0,0.85), rgba(0,0,0,0.6)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'><path d='M40 10 L66 28 L66 60 L14 60 L14 28 Z' fill='none' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1.5'/><rect x='32' y='40' width='16' height='20' fill='none' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1.5'/><path d='M20 28 L40 14 L60 28' fill='none' stroke='%23E50914' stroke-opacity='0.18' stroke-width='1.5'/></svg>");
  background-size: cover, 80px 80px;
  background-position: center, top left;
  color: var(--white);
  padding: var(--s-6) var(--s-5);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cta-left h2 {
  font-size: clamp(30px, 3.5vw, 44px);
  margin-bottom: var(--s-2);
  color: var(--white);
}
.cta-left h2 .accent { color: var(--red); }
.cta-left .accent-bar {
  width: 60px; height: 4px;
  background: var(--red);
  margin-bottom: var(--s-3);
}
.cta-left p {
  color: rgba(255,255,255,0.8);
  font-size: 17px;
  line-height: 1.6;
  max-width: 460px;
  margin: 0 0 var(--s-4);
}
.cta-right {
  background: var(--white);
  padding: var(--s-6) var(--s-5);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.quote-form {
  width: 100%;
  max-width: 480px;
}
.quote-form h2 {
  font-size: 28px;
  color: var(--black);
  margin-bottom: var(--s-1);
}
.quote-form .sub {
  color: var(--gray-700);
  margin-bottom: var(--s-4);
}
.field {
  display: block;
  margin-bottom: var(--s-2);
}
.field > span,
.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-900);
  margin-bottom: 6px;
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: var(--r-sm);
  font: inherit;
  font-size: 15px;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(229,9,20,0.15);
}
.field textarea { min-height: 110px; resize: vertical; }
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(229,9,20,0.18);
}
.field .error-msg {
  display: none;
  color: var(--red);
  font-size: 13px;
  margin-top: 6px;
  font-family: var(--font-body);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
}
.field.has-error .error-msg { display: block; }
.form-success {
  display: none;
  margin-top: var(--s-3);
  padding: var(--s-2) var(--s-3);
  border-left: 3px solid var(--red);
  background: var(--gray-100);
  color: var(--black);
  font-size: 15px;
}
.form-success.is-visible { display: block; }
.form-success.is-success {
  border-left-color: #1f9d55;
  background: rgba(31, 157, 85, .08);
}
.form-success.is-error {
  border-left-color: #c0392b;
  background: rgba(192, 57, 43, .08);
}
/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--white);
  color: var(--black);
  padding: var(--s-6) 0 var(--s-3);
  border-top: 3px solid var(--red);
  box-shadow: 0 -2px 8px rgba(0,0,0,.06);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: var(--s-4);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.footer-brand .logo-chip { background: transparent; }
.footer-brand .logo-chip img { height: 96px; }
.footer-brand .tagline {
  margin-top: var(--s-2);
  font-family: var(--font-display);
  letter-spacing: 0.2em;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--black);
}
.footer-brand .tagline .dot { color: var(--red); padding: 0 6px; }
.footer-col h4 {
  font-size: 16px;
  color: var(--black);
  margin-bottom: var(--s-2);
  letter-spacing: 0.12em;
}
.footer-col p {
  margin: 6px 0;
  font-size: 15px;
}
.footer-col a:hover { color: var(--red); }
.socials {
  display: flex;
  gap: var(--s-1);
  list-style: none;
  padding: 0;
  margin: 0;
}
.socials a {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.socials a:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}
.socials svg { width: 18px; height: 18px; }
.footer-bottom {
  padding-top: var(--s-3);
  text-align: center;
  font-size: 13px;
  color: rgba(0,0,0,.55);
}
.footer-bottom .bullets { color: var(--red); }
/* =========================================================
   Reveal-on-scroll animation
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
/* =========================================================
   Responsive â tablet (â¤ 968px)
   ========================================================= */
@media (max-width: 968px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-section { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-meta { display: none; }
}
/* =========================================================
   Responsive â small tablet / large phone (â¤ 768px)
   ========================================================= */
@media (max-width: 768px) {
  :root { --header-h: 104px; }
  .logo-chip img { height: 96px; }
  .footer-brand .logo-chip img { height: 84px; }
  section { padding: var(--s-6) 0; }
  .main-nav { display: none; }
  .header-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  /* Mobile drawer */
  .main-nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--black);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: var(--s-3);
    box-shadow: var(--shadow-md);
  }
  .main-nav.is-open .nav-list {
    flex-direction: column;
    gap: 0;
  }
  .main-nav.is-open .nav-list a {
    display: block;
    padding: 14px 8px;
    color: #fff;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .main-nav.is-open .nav-list li:last-child a { border-bottom: 0; }
  .hero { min-height: 80vh; }
  .hero-content { padding: var(--s-5) 0; }
  .hero p.lede { font-size: 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; gap: var(--s-3); }
}
/* =========================================================
   Responsive â mobile (â¤ 480px)
   ========================================================= */
@media (max-width: 480px) {
  .container { padding: 0 var(--s-2); }
  .logo-chip img { height: 96px; }
  .header-phone { font-size: 12px; padding: 5px 7px; gap: 4px; }
  .header-phone span { font-size: 12px; }
  .footer-brand .logo-chip img { height: 84px; }
  .hero h1 { font-size: 36px; }
  .btn { padding: 12px 22px; font-size: 14px; }
  .btn-large { padding: 16px 28px; font-size: 15px; }
  .features-grid { grid-template-columns: 1fr; }
  .cta-left,
  .cta-right { padding: var(--s-4) var(--s-3); }
}
/* =========================================================
   Print
   ========================================================= */
@media print {
  .site-header,
  .hero-meta,
  .nav-toggle,
  .hero-actions,
  .cta-left,
  .gallery-cta { display: none !important; }
  body { color: #000; background: #fff; }
  section { padding: 16pt 0; }
  a { color: #000; text-decoration: underline; }
}
/* =========================================================
   Accessibility helper â visually hide but keep in flow
   ========================================================= */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
/* =========================================================
   WhatsApp floating button
   Position fixed bottom-right, accessible, animated pulse.
   Configurable: change `data-phone` + href in HTML, then run
   buildWaLink() in script.js to refresh the URL.
   ========================================================= */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;                /* WhatsApp brand green */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.30), 0 2px 6px rgba(0,0,0,.20);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.wa-float:hover,
.wa-float:focus-visible {
  background: #1ebe57;
  transform: scale(1.08);
  box-shadow: 0 10px 24px rgba(0,0,0,.35), 0 4px 10px rgba(0,0,0,.25);
  outline: none;
}
.wa-float:active {
  transform: scale(0.96);
}
.wa-float:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #25D366, 0 8px 22px rgba(0,0,0,.30);
}
.wa-icon {
  width: 30px;
  height: 30px;
  display: block;
  pointer-events: none;
}
/* Pulse ring (decorative, hidden from AT) */
.wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: .55;
  z-index: -1;
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: .55; }
  70%  { transform: scale(1.7); opacity: 0;   }
  100% { transform: scale(1.7); opacity: 0;   }
}
/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .wa-pulse { animation: none; }
  .wa-float { transition: none; }
}
/* Mobile sizing */
@media (max-width: 480px) {
  .wa-float {
    right: 1rem;
    bottom: 1rem;
    width: 52px;
    height: 52px;
  }
  .wa-icon {
    width: 28px;
    height: 28px;
  }
}
/* Header phone link (added by Hermes) */
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  padding: 6px 10px;
  border: 1px solid var(--red);
  border-radius: 6px;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.header-phone:hover { background: var(--red); color: #fff; }
.header-phone svg { flex-shrink: 0; }

/* =========================================================
   Service description modal (Learn More)
   ========================================================= */
.service-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-3);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.service-modal[hidden] {
  display: none;
}
.service-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.service-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(4px);
}
.service-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white, #fff);
  border-radius: 14px;
  border-top: 4px solid var(--red, #E50914);
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  transform: translateY(20px) scale(0.98);
  transition: transform .25s ease;
}
.service-modal.is-open .service-modal-card {
  transform: translateY(0) scale(1);
}
.service-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(10,10,10,.85);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-modal-close:hover {
  background: var(--red, #E50914);
}
.service-modal-media {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #000;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}
.service-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.service-modal-body {
  padding: var(--s-5);
}
.service-modal-tag {
  display: inline-block;
  background: var(--red, #E50914);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.service-modal-body h2 {
  margin: 0 0 12px 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--black, #0A0A0A);
}
.service-modal-body p {
  margin: 0 0 20px 0;
  font-size: 16px;
  line-height: 1.6;
  color: #444;
}
.service-modal-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}
.service-modal-features li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 15px;
  color: #333;
  border-bottom: 1px solid #eee;
}
.service-modal-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  width: 20px;
  height: 20px;
  background: var(--red, #E50914);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-modal-features li:last-child {
  border-bottom: 0;
}
.service-modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.service-modal-actions .btn {
  flex: 1;
  min-width: 200px;
  text-align: center;
}

@media (max-width: 600px) {
  .service-modal {
    padding: 0;
    align-items: flex-end;
  }
  .service-modal-card {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 14px 14px 0 0;
  }
  .service-modal-media {
    height: 200px;
    border-radius: 0;
  }
  .service-modal-body {
    padding: var(--s-4);
  }
  .service-modal-body h2 {
    font-size: 22px;
  }
  .service-modal-body p,
  .service-modal-features li {
    font-size: 15px;
    line-height: 1.6;
  }
  .link-arrow {
    font-size: 15px;
    padding: 10px 4px;
  }
}

/* =========================================================
   Lightbox (photo viewer)
   ========================================================= */
.kh-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.kh-lightbox.is-open { opacity: 1; visibility: visible; }
.kh-lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 6px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  transform: scale(0.94);
  transition: transform 0.35s ease;
  display: block;
}
.kh-lightbox.is-open .kh-lightbox-img { transform: scale(1); }
.kh-lightbox-caption {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 24px;
  text-align: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.08em;
  padding: 0 24px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease 0.1s;
}
.kh-lightbox.is-open .kh-lightbox-caption { opacity: 1; }
.kh-lightbox-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.kh-lightbox-btn:hover { background: rgba(255,255,255,0.22); }
.kh-lightbox-btn:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.kh-lightbox-btn svg { width: 26px; height: 26px; }
.kh-lightbox-prev { left: 24px; }
.kh-lightbox-next { right: 24px; }
.kh-lightbox-close {
  top: 24px;
  right: 24px;
  transform: none;
  width: 44px;
  height: 44px;
}
.kh-lightbox-close:hover { background: rgba(229,9,20,0.35); }
.kh-lightbox-counter {
  position: fixed;
  top: 28px;
  left: 28px;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.15em;
}
@media (max-width: 640px) {
  .kh-lightbox-btn { width: 44px; height: 44px; }
  .kh-lightbox-prev { left: 12px; }
  .kh-lightbox-next { right: 12px; }
  .kh-lightbox-close { top: 12px; right: 12px; }
  .kh-lightbox-counter { top: 18px; left: 16px; }
}

/* =========================================================
   Admin floating button + login modal
   ========================================================= */
.kh-admin-fab {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  z-index: 150;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s, background 0.2s;
}
.kh-admin-fab:hover { background: var(--red-dark); transform: scale(1.08); }
.kh-admin-fab.is-visible { display: inline-flex; }

.kh-admin-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: rgba(0,0,0,0.78);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.kh-admin-modal.is-open { display: flex; }
.kh-admin-modal-card {
  background: #fff;
  border-radius: 14px;
  max-width: 420px;
  width: 100%;
  padding: 32px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
  position: relative;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.kh-admin-modal.is-open .kh-admin-modal-card {
  transform: scale(1);
  opacity: 1;
}
.kh-admin-modal-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
}
.kh-admin-modal-sub {
  margin: 0 0 24px;
  color: #555;
  font-size: 14px;
}
.kh-admin-form-field {
  display: block;
  margin-bottom: 16px;
}
.kh-admin-form-field span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.kh-admin-form-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d4d4d4;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: var(--black);
  background: #fafafa;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.kh-admin-form-field input:focus {
  outline: 0;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(229,9,20,0.15);
}
/* Password field with eye toggle */
.kh-pass-wrap {
  display: block;
  position: relative;
}
.kh-pass-wrap input {
  padding-right: 46px;
}
.kh-pass-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #666;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.kh-pass-toggle:hover { color: var(--red); background: rgba(229,9,20,0.06); }
.kh-pass-toggle:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; }
.kh-pass-toggle svg { display: block; }
.kh-admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, opacity 0.2s;
}
.kh-admin-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.kh-admin-btn-primary { background: var(--red); color: #fff; width: 100%; }
.kh-admin-btn-primary:hover:not(:disabled) { background: var(--red-dark); }
.kh-admin-btn-ghost {
  background: transparent;
  color: #555;
  border: 1px solid #d4d4d4;
  width: 100%;
  margin-top: 8px;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-display);
  font-weight: 500;
}
.kh-admin-btn-ghost:hover { background: #f5f5f5; }
.kh-admin-form-error {
  margin-top: 12px;
  color: var(--red);
  font-size: 13px;
  min-height: 18px;
}
.kh-admin-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #555;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.kh-admin-modal-close:hover { background: rgba(0,0,0,0.06); color: var(--black); }

/* =========================================================
   Admin Dashboard overlay
   ========================================================= */
.kh-dashboard {
  position: fixed;
  inset: 0;
  z-index: 230;
  background: #f5f5f5;
  display: none;
  flex-direction: column;
  animation: dashboardIn 0.25s ease;
}
.kh-dashboard.is-open { display: flex; }
@keyframes dashboardIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.kh-dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  background: var(--black);
  color: #fff;
  box-shadow: var(--shadow-md);
  flex-wrap: wrap;
  gap: 12px;
}
.kh-dashboard-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.kh-dashboard-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.kh-dashboard-add-btn {
  background: var(--red);
  color: #fff;
}
.kh-dashboard-add-btn:hover { background: var(--red-dark); }
.kh-dashboard-logout-btn {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}
.kh-dashboard-logout-btn:hover { background: rgba(255,255,255,0.18); }
.kh-dashboard-close-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  font-size: 18px;
}
.kh-dashboard-close-btn:hover { background: rgba(255,255,255,0.12); }

.kh-dashboard-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
}
.kh-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}
.kh-dash-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.kh-dash-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.kh-dash-card-img {
  aspect-ratio: 4/3;
  background: #eee;
  overflow: hidden;
}
.kh-dash-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.kh-dash-card-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.kh-dash-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  word-break: break-word;
}
.kh-dash-card-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.kh-dash-card-actions button {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  font-size: 11px;
  letter-spacing: 0.05em;
  border: 0;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
  color: #fff;
}
.kh-dash-card-actions button:disabled { opacity: 0.5; cursor: not-allowed; }
.kh-dash-edit-btn { background: #2563eb; }
.kh-dash-edit-btn:hover:not(:disabled) { background: #1d4ed8; }
.kh-dash-replace-btn { background: #6b7280; }
.kh-dash-replace-btn:hover:not(:disabled) { background: #4b5563; }
.kh-dash-delete-btn { background: var(--red); }
.kh-dash-delete-btn:hover:not(:disabled) { background: var(--red-dark); }
.kh-dashboard-empty {
  text-align: center;
  color: #777;
  font-family: var(--font-display);
  padding: 80px 0;
  letter-spacing: 0.08em;
}
.kh-dashboard-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--black);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: var(--shadow-md);
}
.kh-dashboard-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.kh-dashboard-toast.is-error { background: var(--red); }

/* =========================================================
   Generic admin modal (Add / Edit / Replace / Confirm)
   ========================================================= */
.kh-amodal {
  position: fixed;
  inset: 0;
  z-index: 240;
  background: rgba(0,0,0,0.78);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.kh-amodal.is-open { display: flex; }
.kh-amodal-card {
  background: #fff;
  border-radius: 14px;
  max-width: 480px;
  width: 100%;
  padding: 28px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
  position: relative;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.kh-amodal.is-open .kh-amodal-card { transform: scale(1); opacity: 1; }
.kh-amodal-card.is-wide { max-width: 540px; }
.kh-amodal-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
}
.kh-amodal-sub {
  margin: 0 0 18px;
  color: #555;
  font-size: 14px;
}
.kh-amodal-preview {
  margin: 0 0 16px;
  border-radius: 8px;
  overflow: hidden;
  background: #eee;
  aspect-ratio: 4/3;
}
.kh-amodal-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.kh-amodal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.kh-amodal-actions .kh-admin-btn { flex: 1; }
.kh-amodal-actions .kh-admin-btn-primary { width: auto; }
.kh-amodal-actions .kh-admin-btn-ghost {
  margin-top: 0;
  border-color: #d4d4d4;
  color: #555;
}
.kh-amodal-file-label {
  display: block;
  padding: 28px;
  border: 2px dashed #d4d4d4;
  border-radius: 8px;
  text-align: center;
  color: #777;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 16px;
}
.kh-amodal-file-label:hover { border-color: var(--red); background: rgba(229,9,20,0.04); }
.kh-amodal-file-label input { display: none; }
.kh-amodal-file-label strong { color: var(--black); display: block; margin-bottom: 4px; font-family: var(--font-display); }
.kh-amodal-error {
  color: var(--red);
  font-size: 13px;
  min-height: 18px;
  margin-top: 8px;
}
@media (max-width: 640px) {
  .kh-dashboard-header { padding: 14px 16px; }
  .kh-dashboard-body { padding: 16px; }
  .kh-dashboard-grid { grid-template-columns: 1fr; }
  .kh-admin-modal-card,
  .kh-amodal-card { padding: 22px; }
  .kh-amodal-actions { flex-direction: column; }
  .kh-amodal-actions .kh-admin-btn { width: 100%; }
}

/* =========================================================
   Gallery section heading — explicit centering
   ========================================================= */
.gallery .section-sub,
.gallery .section-title,
.gallery .section-intro {
  text-align: center !important;
  margin-left: auto;
  margin-right: auto;
}
.gallery .section-title {
  display: block;
  width: 100%;
}

/* =========================================================
   Toast notifications
   ========================================================= */
.kh-toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--black);
  color: #fff;
  padding: 14px 24px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  border-left: 4px solid var(--red);
}
.kh-toast.is-ok { border-left-color: #25D366; }
.kh-toast.is-err { border-left-color: var(--red); }
.kh-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =========================================================
   Save All button + pending badge
   ========================================================= */
.kh-dashboard-save-btn {
  background: var(--red) !important;
  color: #fff !important;
  font-weight: 700;
  padding: 10px 18px !important;
}
.kh-dashboard-save-btn:hover:not(:disabled) {
  background: var(--red-dark, #b8070a) !important;
  transform: translateY(-1px);
}
.kh-dashboard-save-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.kh-pending-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  margin-left: 8px;
  background: var(--red);
  color: #fff;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-body);
  vertical-align: middle;
}
.kh-pending-badge[hidden] {
  display: none;
}

/* =========================================================
   Service area map (Leaflet)
   ========================================================= */
.map-section { background: var(--gray-100); }
.map-wrap {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,.06);
}
#kelvin-map { height: 420px; width: 100%; background: var(--gray-300); }
.map-note {
  text-align: center;
  margin-top: var(--s-2);
  color: var(--gray-700);
  font-size: 14px;
}
.kh-marker-popup .kh-pop-title {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--black);
}
.kh-marker-popup .kh-pop-sub { margin: 0; color: var(--gray-700); font-size: 13px; }
@media (max-width: 480px) { #kelvin-map { height: 320px; } }

.kh-pin { background: transparent; border: 0; }
.kh-pin svg { display: block; filter: drop-shadow(0 3px 6px rgba(0,0,0,.35)); }

/* =========================================================
   Gallery carrusel — swipe horizontal (mobile-first)
   ========================================================= */
@media (max-width: 768px) {
  .gallery-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 4px 20px 16px;
    scrollbar-width: none;
  }
  .gallery-grid::-webkit-scrollbar { display: none; }
  .gallery-grid .project {
    flex: 0 0 82%;
    max-width: 82%;
    scroll-snap-align: center;
  }
  .gallery-grid .project img { height: 260px; object-fit: cover; }
}
@media (min-width: 769px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

/* Dashboard: hidden (deleted) photos section with Restore */
.kh-dash-hidden-section { margin-top: 18px; padding-top: 14px; border-top: 1px dashed rgba(0,0,0,.14); }
.kh-dash-hidden-title { font-size: 14px; font-weight: 700; color: #444; margin: 0 0 10px; }
.kh-dash-hidden-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.kh-dash-card-hidden { opacity: .55; }
.kh-dash-card-hidden .kh-dash-card-img img { filter: grayscale(.5); }
.kh-dash-restore-btn { background: #dc2626; color: #fff; border: none; border-radius: 6px; padding: 7px 12px; font-size: 12px; font-weight: 700; cursor: pointer; }
.kh-dash-restore-btn:hover { background: #b91c1c; }

/* Save button states: always clickable; ready = has pending changes */
.kh-dashboard-save-btn:disabled { opacity: .5; cursor: not-allowed; }
.kh-dashboard-save-btn.kh-save-ready { background: #dc2626; color: #fff; border-color: #dc2626; }
