/* =========================================================
   CATP — Calvisio Antoine Travaux Publics — Design System
   Dark / industrial theme
   ========================================================= */

/* === Variables === */
:root {
  --gold:       #C9932A;
  --gold-light: #E5B04A;
  --gold-dim:   #9A7020;
  --dark:       #111111;
  --dark2:      #1A1A1A;
  --dark3:      #222222;
  --dark4:      #2D2D2D;
  --dark5:      #383838;
  --white:      #F5F2ED;
  --grey:       #888888;
  --grey-light: #BBBBBB;
  --danger:     #C0392B;
  --success:    #27AE60;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;

  --wrap: 1200px;
  --header-h: 72px;
  --radius: 2px;
  --transition: .2s ease;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul { list-style: none; }
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
}

/* === Wrap === */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* === Typography === */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }

/* === Section tag === */
.section-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-tag::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 14px 32px;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transition: background var(--transition), color var(--transition), transform var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: none;
}
.btn:active { transform: scale(.98); }

.btn-primary { background: var(--gold); color: var(--dark); }
.btn-primary:hover { background: var(--gold-light); }

.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
  clip-path: none;
  padding: 12px 28px;
}
.btn-outline:hover { background: var(--gold); color: var(--dark); }

/* compat: admin still uses btn-gold */
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: var(--gold-light); }

.btn-ghost { background: rgba(255,255,255,.08); color: var(--white); border: 1px solid rgba(255,255,255,.2); clip-path: none; padding: 13px 28px; }
.btn-ghost:hover { background: rgba(255,255,255,.15); }
.btn-ghost-dark { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,.35); clip-path: none; padding: 8px 18px; font-size: .8rem; }
.btn-ghost-dark:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); }

/* === Header === */
#siteHeader {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  transition: background var(--transition), box-shadow var(--transition);
  background: transparent;
}
#siteHeader.scrolled {
  background: rgba(17,17,17,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,.4);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-logo-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.8rem;
  letter-spacing: .04em;
  color: var(--white);
  line-height: 1;
}
.brand-logo-text em {
  color: var(--gold);
  font-style: normal;
}
.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.2;
}
.brand-text span {
  font-weight: 400;
  font-size: .7rem;
  color: var(--grey-light);
  text-transform: none;
  letter-spacing: .04em;
}

/* Desktop nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey-light);
  transition: color var(--transition);
}
.main-nav a:hover { color: var(--gold); }
.main-nav .nav-cta,
.mobile-nav .nav-cta {
  background: var(--gold);
  color: var(--dark) !important;
  padding: 7px 20px;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  letter-spacing: .12em;
  transition: background var(--transition) !important;
}
.main-nav .nav-cta:hover,
.mobile-nav .nav-cta:hover { background: var(--gold-light) !important; color: var(--dark) !important; }

/* Inline actions (header right) */
.inline-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pro-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey);
  border: 1px solid var(--dark5);
  padding: 6px 14px;
  transition: color var(--transition), border-color var(--transition);
}
.pro-btn:hover { color: var(--gold); border-color: var(--gold-dim); }

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  padding: 6px;
  cursor: pointer;
}

/* Mobile nav */
.nav-scrim {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 98;
  opacity: 0;
  transition: opacity var(--transition);
}
.nav-scrim.open { opacity: 1; }
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 85vw);
  background: var(--dark2);
  z-index: 99;
  padding: calc(var(--header-h) + 24px) 32px 32px;
  flex-direction: column;
  gap: 4px;
  transform: translateX(100%);
  transition: transform .3s ease;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey-light);
  padding: 12px 0;
  border-bottom: 1px solid var(--dark3);
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--gold); }

@media (max-width: 768px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .nav-scrim, .mobile-nav { display: flex; }
}

/* === Hero === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(17,17,17,.78) 0%,
    rgba(17,17,17,.55) 60%,
    rgba(17,17,17,.35) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: calc(var(--header-h) + 60px) 24px 80px;
  max-width: 760px;
}
.hero-content .section-tag { color: var(--gold); }
.hero-content h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  color: var(--white);
  margin: 16px 0 20px;
  text-transform: uppercase;
}
.hero-content h1 em {
  color: var(--gold);
  font-style: normal;
}
.hero-lead {
  font-size: 1.05rem;
  color: var(--grey-light);
  margin-bottom: 36px;
  max-width: 560px;
  line-height: 1.7;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--grey);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-family: var(--font-display);
}
.scroll-cue .line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--grey), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { opacity: .3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(.7); }
}

/* === About === */
.about {
  background: var(--dark2);
  padding: 100px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-text h2 { color: var(--white); margin-bottom: 20px; }
.about-text p { color: var(--grey-light); margin-bottom: 16px; line-height: 1.75; }

.facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 32px;
}
.fact-item {
  background: var(--dark3);
  padding: 22px 20px;
  border-left: 3px solid transparent;
  transition: border-color var(--transition);
}
.fact-item:hover { border-left-color: var(--gold); }
.fact-label {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey);
  display: block;
  margin-bottom: 6px;
}
.fact-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
}

.about-visual {
  position: relative;
}
.about-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: grayscale(15%);
}
.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--gold);
  color: var(--dark);
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.5;
}
.about-badge strong {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-badge { right: 0; bottom: -16px; }
}
@media (max-width: 768px) {
  .facts-grid { grid-template-columns: 1fr 1fr; }
}

/* === Prestations === */
.prestations {
  background: var(--dark);
  padding: 100px 0;
}
.section-head { margin-bottom: 56px; }
.section-head h2 { color: var(--white); margin-bottom: 12px; }
.section-head p { color: var(--grey-light); max-width: 600px; font-size: 1.05rem; }

.prestations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.presta-card {
  background: var(--dark3);
  padding: 36px 28px;
  border-bottom: 3px solid transparent;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
}
.presta-card:hover {
  background: var(--dark4);
  border-bottom-color: var(--gold);
}
.presta-num {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 20px;
}
.presta-icon {
  display: block;
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 8px rgba(201,147,42,.4));
}
.presta-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--white);
  margin-bottom: 10px;
}
.presta-card p {
  color: var(--grey-light);
  font-size: .92rem;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .prestations-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .prestations-grid { grid-template-columns: 1fr; }
}

/* === Gallery === */
.gallery {
  background: var(--dark2);
  padding: 100px 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 50px;
}
.gphoto {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--dark3);
  cursor: pointer;
  border-radius: 4px;
}
.gphoto img, .gphoto video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.gphoto:hover img, .gphoto:hover video { transform: scale(1.06); }
.gcap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.85), transparent);
  color: var(--white);
  font-size: .82rem;
  padding: 16px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s, transform .3s;
}
.gphoto:hover .gcap { opacity: 1; transform: translateY(0); }
.play-badge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,.6);
  color: var(--white);
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  pointer-events: none;
  transition: transform .3s var(--ease), background .3s;
}
.gphoto--video video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.gphoto--video:hover .play-badge { transform: translate(-50%,-50%) scale(1.12); background: rgba(201,147,42,.85); }
.gallery-pagination {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}
.gallery-pagination.active { display: flex; }
.gallery-pg-btn {
  background: var(--dark3);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  width: 44px; height: 44px;
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  cursor: pointer;
}
.gallery-pg-btn:hover:not(:disabled) { background: rgba(201,147,42,.2); border-color: var(--gold); color: var(--gold); }
.gallery-pg-btn:disabled { opacity: .3; cursor: default; }
.gallery-pg-status {
  font-family: var(--font-display);
  font-size: .85rem;
  color: var(--grey);
  letter-spacing: .1em;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; gap: 10px; } }

/* === Testimonials === */
.testimonials {
  background: var(--dark);
  padding: 100px 0;
}
.testi-cta { margin-bottom: 40px; }
.testi-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1.5px solid var(--gold-dim);
  padding: 12px 24px;
  transition: background var(--transition), color var(--transition);
}
.testi-cta-btn:hover { background: var(--gold); color: var(--dark); }

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2px;
}
.testi-card {
  background: var(--dark3);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition);
}
.testi-card:hover { border-bottom-color: var(--gold); }
.testi-quote {
  font-family: Georgia, serif;
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  opacity: .6;
}
.testi-text { color: var(--grey-light); font-size: .95rem; line-height: 1.7; flex: 1; }
.testi-footer { display: flex; flex-direction: column; gap: 4px; }
.testi-stars { color: var(--gold); font-size: 1rem; }
.testi-author {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .04em;
  color: var(--white);
  display: flex; align-items: center; gap: 8px;
}
.testi-loc { color: var(--grey); font-size: .8rem; font-weight: 400; }

/* Testi flash */
.testi-flash-wrap { margin-bottom: 16px; }
.flash--inline { display: inline-block; }

/* Testi form */
.testi-form-public {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
  margin-top: 0;
}
.testi-form-public.open {
  max-height: 800px;
  margin-top: 28px;
}
.testi-form-public form {
  background: var(--dark3);
  padding: 32px;
  display: grid;
  gap: 20px;
}
.testi-public-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.testi-public-field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 6px;
}
.testi-public-field--full { grid-column: 1 / -1; }
.testi-public-field input,
.testi-public-field textarea {
  width: 100%;
  background: var(--dark4);
  border: 1px solid var(--dark5);
  color: var(--white);
  padding: 12px 14px;
  outline: none;
  transition: border-color var(--transition);
}
.testi-public-field input:focus,
.testi-public-field textarea:focus { border-color: var(--gold); }
.testi-public-field textarea { resize: vertical; min-height: 80px; }
.testi-min-chars { font-size: .7rem; color: var(--grey); font-weight: 400; text-transform: none; }
.testi-form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.testi-form-note { font-size: .78rem; color: var(--grey); }
.star-rating-field > label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 8px;
}
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  gap: 4px;
  width: fit-content;
}
.star-rating input { display: none; }
.star-rating label {
  font-size: 1.6rem;
  color: var(--dark5);
  cursor: pointer;
  transition: color var(--transition);
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: var(--gold); }

@media (max-width: 560px) {
  .testi-public-fields { grid-template-columns: 1fr; }
}

/* === Contact === */
.contact {
  background: var(--dark2);
  padding: 100px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info { margin-bottom: 32px; }
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--dark4);
}
.ic {
  width: 36px; height: 36px;
  background: var(--dark3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}
.contact-row strong {
  display: block;
  font-family: var(--font-display);
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 2px;
}
.contact-row a, .contact-row span { color: var(--white); font-size: .95rem; }
.contact-row a:hover { color: var(--gold); }

/* Map */
.map-frame {
  width: 100%;
  height: 300px;
  position: relative;
  background: var(--dark3);
  overflow: hidden;
}
.map-placeholder {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--grey);
  text-align: center;
  padding: 24px;
  font-size: .9rem;
}
.map-placeholder svg { color: var(--gold); opacity: .7; }
.map-consent-given .map-placeholder { display: none; }
.map-iframe {
  width: 100%; height: 100%;
  border: none;
  display: none;
}
.map-consent-given .map-iframe { display: block; }
.btn-map-consent {
  background: var(--dark4);
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 10px 20px;
  font-size: .82rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-map-consent:hover { background: var(--dark3); }

/* Contact form */
.cform {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cform input,
.cform select,
.cform textarea {
  width: 100%;
  background: var(--dark3);
  border: 1px solid var(--dark5);
  color: var(--white);
  padding: 14px 16px;
  outline: none;
  transition: border-color var(--transition);
  font-size: 1rem;
}
.cform input:focus,
.cform select:focus,
.cform textarea:focus { border-color: var(--gold); }
.cform input::placeholder,
.cform textarea::placeholder { color: var(--grey); }
.cform select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.cform select option { background: var(--dark3); color: var(--white); }
.cform textarea { resize: vertical; min-height: 130px; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* === Footer === */
footer {
  background: var(--dark2);
  border-top: 1px solid var(--dark4);
  padding: 40px 0;
  font-size: .85rem;
  color: var(--grey);
}
footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
}
.footer-brand-name {
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--gold);
}
.footer-legal { color: var(--grey); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal:hover { color: var(--white); }

/* === Lightbox === */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
#lightbox.open { display: flex; }
#lightboxImg, #lightboxVideo {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
#lightboxVideo { display: none; background: #000; }
.lightbox-close {
  position: absolute;
  top: 28px; right: 36px;
  font-size: 1.8rem;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
  line-height: 1;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  color: var(--white);
  font-size: 1.8rem;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background .25s, border-color .25s;
}
.lightbox-nav:hover { background: rgba(201,147,42,.25); border-color: var(--gold); }
.lightbox-nav[hidden] { display: none; }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-cap {
  position: absolute;
  bottom: 30px;
  left: 0; right: 0;
  text-align: center;
  color: rgba(255,255,255,.75);
  font-size: .85rem;
}
@media (max-width: 700px) {
  .lightbox-nav { width: 44px; height: 44px; font-size: 1.5rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* === Flash messages (public) === */
.flash {
  padding: 14px 18px;
  border-left: 4px solid;
  font-size: .9rem;
  margin-bottom: 16px;
}
.flash-success { background: rgba(39,174,96,.12); border-color: var(--success); color: #aeffc8; }
.flash-error   { background: rgba(192,57,43,.12); border-color: var(--danger);  color: #ffb8b0; }
.flash-info    { background: rgba(201,147,42,.1);  border-color: var(--gold-dim); color: var(--grey-light); }

/* === Reveal animations === */
.reveal.pre { opacity: 0; transform: translateY(28px); }
.reveal.pre.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }

/* === Legal === */
.legal-main {
  padding: calc(var(--header-h) + 60px) 24px 80px;
  max-width: 860px;
}
.legal-main h1 {
  font-size: 2.4rem;
  color: var(--white);
  margin-bottom: 8px;
}
.legal-updated { color: var(--grey); font-size: .85rem; margin-bottom: 48px; }
.legal-section { margin-bottom: 40px; }
.legal-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}
.legal-section p { color: var(--grey-light); margin-bottom: 8px; line-height: 1.75; }
.legal-section a { color: var(--gold); }

/* === 404 === */
.page-404 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 24px;
}
.page-404-inner { text-align: center; }
.page-404-num {
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 14rem);
  font-weight: 900;
  color: var(--gold);
  opacity: .18;
  line-height: 1;
}
.page-404-inner h1 { color: var(--white); margin-bottom: 12px; }
.page-404-inner p  { color: var(--grey-light); margin-bottom: 32px; }

/* === Honeypot === */
.hp-field { position: absolute; left: -9999px; visibility: hidden; }

/* =========================================================
   LOGIN PAGE (dark theme)
   ========================================================= */
.login-page {
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}
.login-box {
  width: 100%;
  max-width: 420px;
  background: var(--dark2);
  padding: 48px 40px;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  text-decoration: none;
}
.login-brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2rem;
  letter-spacing: .08em;
  color: var(--white);
}
.login-brand-name span { color: var(--gold); }
.login-brand small { color: var(--grey); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.login-box h1 { font-size: 1.6rem; color: var(--white); margin-bottom: 4px; }
.login-box .sub { color: var(--grey); font-size: .85rem; margin-bottom: 28px; }
.login-box label {
  display: block;
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 20px;
}
.login-box label input {
  display: block;
  width: 100%;
  background: var(--dark3);
  border: 1px solid var(--dark5);
  color: var(--white);
  padding: 13px 14px;
  margin-top: 6px;
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition);
}
.login-box label input:focus { border-color: var(--gold); }
.login-box .btn { width: 100%; }
.login-error { color: #ffb8b0; background: rgba(192,57,43,.12); border-left: 4px solid var(--danger); padding: 10px 14px; margin-bottom: 20px; font-size: .88rem; }
.back-link { display: block; text-align: center; margin-top: 20px; color: var(--grey); font-size: .82rem; }
.back-link:hover { color: var(--white); }

/* =========================================================
   ADMIN — LIGHT THEME
   ========================================================= */
body.admin-page {
  background: #f4f5f7;
  color: #222;
  font-family: var(--font-body);
}
body.admin-page * { box-sizing: border-box; }

.admin-header {
  background: var(--dark2);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.admin-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
  max-width: 1200px;
  margin: 0 auto;
}
.admin-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}
.admin-brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: .08em;
  color: var(--white);
}
.admin-brand-name span { color: var(--gold); }
.admin-brand-sub {
  font-size: .7rem;
  color: var(--grey);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-main { padding: 32px 0 60px; }
.admin-main--narrow { max-width: 760px; margin: 0 auto; }
.admin-section {
  background: #fff;
  border-radius: 6px;
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.admin-section h1 { font-size: 1.4rem; font-weight: 800; color: #111; margin-bottom: 6px; }
.admin-section h2 { font-size: 1.1rem; font-weight: 700; color: #333; margin-bottom: 10px; }
.sub { color: #666; font-size: .88rem; margin-bottom: 16px; }

/* Cards on home */
.admin-home-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.admin-home-head h1 { font-size: 1.6rem; color: #111; }
.admin-home-stats { display: flex; gap: 8px; flex-wrap: wrap; }

.admin-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.admin-card {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: #222;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
  border: 1.5px solid transparent;
  transition: border-color .15s, box-shadow .15s;
}
.admin-card:hover { border-color: var(--gold-dim); box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.admin-card--alert { border-color: #e74c3c; }
.admin-card-icon { color: var(--gold-dim); flex-shrink: 0; }
.admin-card-body { flex: 1; }
.admin-card-body h3 { font-size: 1rem; font-weight: 700; color: #111; margin-bottom: 4px; }
.admin-card-body p  { font-size: .82rem; color: #777; }
.admin-card-arrow { color: #ccc; font-size: 1.2rem; }

/* Stat pills */
.stat-pill {
  background: #eee;
  color: #555;
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  font-family: var(--font-display);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.stat-pill--alert { background: #fde8e8; color: #c0392b; }
.msg-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e74c3c;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  padding: 0 5px;
  margin-left: 4px;
}

/* Flash messages (admin) */
.flash {
  padding: 12px 16px;
  border-left: 4px solid;
  font-size: .88rem;
  border-radius: 0 4px 4px 0;
  margin-bottom: 16px;
}
.flash-success { background: #e8f8ee; border-color: #27ae60; color: #1a7a42; }
.flash-error   { background: #fde8e8; border-color: #e74c3c; color: #a93226; }
.flash-info    { background: #fdf6e8; border-color: var(--gold-dim); color: #6b5020; }

/* Gallery grid (admin) */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.admin-photo {
  background: #f9f9f9;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-photo img, .admin-photo video {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: 4px;
}
.admin-photo-order { display: flex; gap: 6px; justify-content: center; }
.admin-photo-date { font-size: .72rem; color: #999; text-align: center; }
.order-btn {
  background: #eee; color: #555; border: none; width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .9rem; border-radius: 4px; cursor: pointer;
  transition: background .15s;
}
.order-btn:hover { background: var(--gold); color: #fff; }
.order-btn--disabled { opacity: .3; cursor: default; }
.media-badge {
  font-size: .65rem; font-weight: 700; text-transform: uppercase;
  padding: 3px 8px; border-radius: 100px; width: fit-content;
}
.media-badge--image { background: #e8f4ff; color: #2980b9; }
.media-badge--video { background: #fde8f7; color: #8e44ad; }

/* Caption form */
.caption-form { display: flex; gap: 4px; }
.caption-form input { flex: 1; border: 1px solid #ddd; padding: 6px 8px; font-size: .78rem; border-radius: 4px; }
.caption-save-btn {
  background: var(--gold); color: #fff; border: none;
  width: 28px; flex-shrink: 0; border-radius: 4px; font-size: .85rem; cursor: pointer;
}

/* Hero video */
.hero-video-current { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 16px; padding: 16px; background: #f9f9f9; border-radius: 6px; }
.hero-video-current video { width: 200px; height: 120px; object-fit: cover; border-radius: 4px; }
.hero-video-actions { display: flex; flex-direction: column; gap: 8px; }
.hero-video-note { margin-bottom: 8px !important; }

/* Upload form */
.upload-form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.upload-form input[type="file"] { font-size: .85rem; }
.upload-form input[type="text"] { border: 1px solid #ddd; padding: 9px 12px; font-size: .85rem; flex: 1; min-width: 180px; border-radius: 4px; }

/* Buttons (delete, approve, reject) */
.btn-delete {
  background: #fde8e8; color: #c0392b; border: 1px solid #f5c6c6;
  padding: 6px 14px; font-size: .78rem; font-weight: 600;
  border-radius: 4px; cursor: pointer; font-family: var(--font-body);
  transition: background .15s;
}
.btn-delete:hover { background: #e74c3c; color: #fff; }
.btn-approve { background: #e8f8ee !important; color: #27ae60 !important; border: 1px solid #b0dfbf !important; }
.btn-approve:hover { background: #27ae60 !important; color: #fff !important; }
.btn-reject { background: #fde8e8; color: #c0392b; border: 1px solid #f5c6c6; padding: 6px 14px; font-size: .85rem; cursor: pointer; border-radius: 4px; }
.btn-reject:hover { background: #e74c3c; color: #fff; }

/* Contacts */
.contacts-list { display: flex; flex-direction: column; gap: 16px; }
.contact-msg { background: #f4f6fa; border: 1.5px solid #d5dce9; border-radius: 8px; padding: 20px 24px; border-left: 4px solid #4a90d9; }
.contact-msg--read { background: #f9f9f9; border-color: #e8e8e8; border-left-color: #ccc; opacity: .8; }
.contact-msg-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; flex-wrap: wrap; gap: 8px; }
.cmsg-name { font-weight: 700; font-size: 1rem; margin-right: 8px; }
.cmsg-new { background: #e74c3c; color: #fff; font-size: .65rem; font-weight: 700; padding: 2px 8px; border-radius: 100px; text-transform: uppercase; margin-right: 8px; }
.cmsg-meta { color: #888; font-size: .82rem; }
.cmsg-date { color: #aaa; font-size: .8rem; }
.contact-msg-body { color: #333; font-size: .92rem; line-height: 1.65; margin-bottom: 14px; }
.contact-msg-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Testimonials admin */
.testi-admin-list { display: flex; flex-direction: column; gap: 8px; }
.testi-admin-card { background: #f9f9f9; border: 1px solid #e8e8e8; border-radius: 8px; padding: 16px 20px; display: flex; gap: 12px; align-items: flex-start; }
.testi-admin-card--hidden { opacity: .55; }
.testi-admin-order { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.testi-admin-body { flex: 1; }
.testi-admin-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.testi-admin-author { font-weight: 700; font-size: .9rem; }
.testi-admin-loc { color: #888; font-size: .78rem; }
.testi-stars { color: #c9a030; font-size: .85rem; }
.testi-source { font-size: .68rem; padding: 2px 8px; border-radius: 100px; font-weight: 600; text-transform: uppercase; }
.testi-source--client { background: #e8f4ff; color: #2980b9; }
.testi-source--admin  { background: #f0f0f0; color: #666; }
.testi-status { font-size: .78rem; color: #888; display: flex; align-items: center; gap: 4px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #ddd; }
.status-dot--on { background: #27ae60; }
.testi-admin-text { color: #444; font-size: .88rem; }
.testi-admin-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.testi-edit-form { display: flex; flex-direction: column; gap: 6px; }
.testi-edit-form input, .testi-edit-form textarea, .testi-edit-form select { border: 1px solid #ddd; padding: 6px 10px; font-size: .82rem; border-radius: 4px; width: 180px; }
.testi-edit-form textarea { width: 260px; min-height: 60px; }

/* Pending */
.pending-head { margin-bottom: 16px; }
.pending-list { display: flex; flex-direction: column; gap: 12px; }
.pending-card { background: #fffbee; border: 1px solid #f0dba0; border-left: 4px solid var(--gold); border-radius: 8px; padding: 20px; }
.pending-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.pending-date { color: #aaa; font-size: .78rem; }
.pending-text { color: #444; font-size: .9rem; line-height: 1.65; margin-bottom: 12px; }
.pending-actions { display: flex; gap: 8px; }

/* Rejected */
.rejected-list { display: flex; flex-direction: column; gap: 10px; }
.rejected-card { background: #fef9f9; border: 1px solid #f5d0d0; border-radius: 6px; padding: 14px 18px; }
.rejected-card-actions { display: flex; gap: 8px; margin-top: 10px; }

/* Testi form (admin add) */
.testi-form { }
.testi-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.testi-form-full { grid-column: 1 / -1; }

/* Account / users */
.account-form { display: flex; flex-direction: column; gap: 16px; max-width: 440px; }
.account-form label { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; color: #444; font-weight: 600; }
.account-form input { border: 1px solid #ddd; padding: 10px 12px; font-size: .95rem; border-radius: 4px; }
.account-form input:focus { border-color: var(--gold); outline: none; }
.hint { font-weight: 400; font-size: .76rem; color: #888; }

.users-list { display: flex; flex-direction: column; gap: 8px; }
.user-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #f9f9f9; border: 1px solid #e8e8e8; border-radius: 6px; padding: 12px 16px; }
.uname { font-weight: 700; font-size: .95rem; }
.user-tag { background: #e8f4ff; color: #2980b9; font-size: .65rem; font-weight: 700; padding: 2px 8px; border-radius: 100px; text-transform: uppercase; margin-left: 8px; }
.udate { font-size: .76rem; color: #aaa; margin-top: 2px; }

/* Content editor */
.content-editor-head { margin-bottom: 24px; }
.content-editor-head h1 { font-size: 1.4rem; color: #111; }
.content-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.content-tab {
  font-size: .8rem;
  font-weight: 600;
  padding: 8px 16px;
  background: #e8e8e8;
  color: #555;
  border-radius: 4px 4px 0 0;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.content-tab:hover, .content-tab.active { background: var(--gold); color: #fff; }
.content-form { }
.content-section { background: #fff; border: 1px solid #e8e8e8; border-radius: 6px; padding: 24px; margin-bottom: 20px; }
.content-section h2 { font-size: 1rem; font-weight: 700; color: #333; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid #eee; }
.content-fields { display: flex; flex-direction: column; gap: 16px; }
.content-field { display: flex; flex-direction: column; gap: 6px; }
.content-field label { font-size: .78rem; font-weight: 700; color: #555; text-transform: uppercase; letter-spacing: .08em; }
.content-hint { font-size: .75rem; color: #999; margin-top: -2px; }
.content-field input, .content-field textarea, .content-field select {
  border: 1px solid #ddd;
  padding: 10px 12px;
  font-size: .9rem;
  border-radius: 4px;
  font-family: var(--font-body);
  transition: border-color .15s;
}
.content-field input:focus, .content-field textarea:focus { border-color: var(--gold); outline: none; }
.content-field textarea { resize: vertical; min-height: 80px; }
.content-actions { display: flex; gap: 12px; align-items: center; margin-top: 24px; padding: 20px; background: #f9f9f9; border-radius: 6px; }

/* SMTP */
.smtp-optional { font-size: .75rem; color: #aaa; font-weight: 400; }
.smtp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio-label { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; cursor: pointer; }
.radio-label input[type="radio"] { margin-top: 3px; accent-color: var(--gold); }

/* OG preview */
.og-preview { max-width: 300px; border-radius: 4px; margin: 12px 0; box-shadow: 0 2px 8px rgba(0,0,0,.1); }

/* Inline form helper */
.inline-form { display: inline; }

/* Admin tab panel */
.flash-info a { color: var(--gold-dim); }

/* ========================================
   Install page
   ======================================== */
.install-page {
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
}
.install-box {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-top: 3px solid var(--gold);
  width: 100%;
  max-width: 440px;
  padding: 40px;
}
.install-brand { text-align: center; margin-bottom: 28px; }
.install-brand img { max-width: 140px; height: auto; filter: brightness(0) invert(1); }
.install-box h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--light);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
  text-align: center;
}
.install-sub { color: #888; font-size: .88rem; text-align: center; margin-bottom: 24px; }
.install-msg {
  padding: 12px 16px;
  border-radius: 4px;
  font-size: .88rem;
  margin-bottom: 16px;
  line-height: 1.5;
}
.install-msg.ok   { background: rgba(201,147,42,.15); border: 1px solid rgba(201,147,42,.4); color: #e8b86d; }
.install-msg.error{ background: rgba(180,60,60,.15);  border: 1px solid rgba(180,60,60,.4);  color: #e88a8a; }
.install-msg code { font-size: .82rem; background: rgba(255,255,255,.1); padding: 1px 5px; border-radius: 3px; }
.install-box form { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.install-box label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .78rem;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.install-hint { font-weight: 400; text-transform: none; color: #666; font-size: .75rem; letter-spacing: 0; }
.install-box input {
  background: #111;
  border: 1px solid #333;
  color: var(--light);
  padding: 11px 14px;
  font-size: .95rem;
  font-family: var(--font-body);
  transition: border-color .15s;
  border-radius: 0;
}
.install-box input:focus { outline: none; border-color: var(--gold); }
.install-box .btn-link {
  display: inline-block;
  margin-top: 8px;
  background: var(--gold);
  color: var(--dark);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: .88rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 14px 24px;
  text-align: center;
  border: none;
  cursor: pointer;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  text-decoration: none;
  transition: background .2s;
  width: 100%;
}
.install-box .btn-link:hover { background: #e0a830; }
a.btn-link { display: block; }

/* Responsive admin */
@media (max-width: 640px) {
  .testi-form-grid { grid-template-columns: 1fr; }
  .smtp-row { grid-template-columns: 1fr; }
  .admin-header-actions { gap: 6px; }
  .admin-section { padding: 20px 16px; }
}
