:root {
  --red: #7d1311;
  --silver: #c4c4c4;
  --black: #000000;
  --bg-dark: #050505;
  --bg-section: #111111;
  --text-main: #f5f5f5;
  --text-muted: #b5b5b5;
  --accent: #7d1311;
  --border-soft: #2a2a2a;
}

/* Enable smooth scrolling between anchors */
html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
}

body {
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-wrapper {
  min-height: 100vh;
  background: radial-gradient(circle at top, #1c1c1c 0, #050505 60%);
}

/* AUTH / LOGIN PAGE */
body.auth-page {
  position: relative;
  min-height: 100vh;
  background: radial-gradient(circle at top, #151515 0, #020202 70%);
  overflow: hidden;
}

/* soft animated glow behind the card */
body.auth-page::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125,19,17,0.65), transparent 70%);
  top: -120px;
  right: -80px;
  filter: blur(10px);
  opacity: 0.9;
  animation: authGlow 16s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: -1; /* put glow behind page content */
}

body.auth-page .page-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.auth-main {
  width: min(420px, 100%);
}

.auth-card {
  position: relative;
  padding: 2.4rem 2.2rem 2rem;
  border-radius: 18px;
  background: radial-gradient(circle at top left, rgba(125,19,17,0.55), rgba(0,0,0,0.94));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 26px 70px rgba(0,0,0,0.9);
  backdrop-filter: blur(20px);
  overflow: hidden; /* allow inner sheen and glow */
}

/* Animated border glow + inner sheen for login card */
.auth-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    conic-gradient(
      from 0deg,
      rgba(255,255,255,0.12),
      rgba(125,19,17,0.6),
      rgba(0,0,0,0.4),
      rgba(125,19,17,0.9),
      rgba(255,255,255,0.08)
    );
  opacity: 0.25;
  mix-blend-mode: screen;
  animation: authBorderGlow 18s linear infinite;
  pointer-events: none;
}

.auth-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 16px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.08), transparent 55%),
    radial-gradient(circle at bottom right, rgba(0,0,0,0.9), rgba(0,0,0,0.98));
  pointer-events: none;
  z-index: -1;
}

/* Subtle float / entrance for auth card */
@keyframes authBorderGlow {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes authCardFloat {
  0%   { transform: translateY(0) scale(1); box-shadow: 0 26px 70px rgba(0,0,0,0.9); }
  50%  { transform: translateY(-6px) scale(1.01); box-shadow: 0 32px 90px rgba(0,0,0,1); }
  100% { transform: translateY(0) scale(1); box-shadow: 0 26px 70px rgba(0,0,0,0.9); }
}

body.auth-page .auth-card {
  animation: authCardFloat 18s ease-in-out infinite alternate;
}

/* Secure badge + meta text on login */
.auth-secure-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  background: radial-gradient(circle at top left, rgba(125,19,17,0.5), rgba(0,0,0,0.7));
  border: 1px solid rgba(255,255,255,0.28);
  margin: 0 auto 0.85rem;
  text-align: center;
}

.auth-secure-tag::before {
  content: "●";
  font-size: 0.5rem;
  color: #4ade80; /* soft green online indicator */
}

.auth-meta {
  margin: 1rem 0 1.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-radius: 10px;
  padding: 0.75rem 0.8rem;
  background: linear-gradient(135deg, rgba(0,0,0,0.75), rgba(12,12,12,0.95));
  border: 1px solid rgba(255,255,255,0.06);
}

.auth-meta p {
  margin: 0.1rem 0;
}

/* Sharper, more “console-like” inputs on login */
body.auth-page .field-group input {
  background: radial-gradient(circle at top left, rgba(255,255,255,0.05), rgba(0,0,0,0.98));
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 10px 26px rgba(0,0,0,0.9);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

body.auth-page .field-group input:focus-visible {
  outline: none;
  border-color: rgba(125,19,17,0.9);
  box-shadow:
    0 0 0 1px rgba(125,19,17,0.7),
    0 18px 40px rgba(0,0,0,1);
  background: radial-gradient(circle at top left, rgba(125,19,17,0.35), rgba(0,0,0,0.98));
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.auth-logo img {
  height: 70px;
  width: auto;
}

.auth-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  text-align: center;
}

.auth-subtitle {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  text-align: center;
  color: var(--text-muted);
}

.auth-error {
  margin: 0 0 1rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  background: rgba(189,36,32,0.15);
  border: 1px solid rgba(189,36,32,0.4);
  color: #ffd7d4;
  font-size: 0.88rem;
}

.auth-footnote {
  margin-top: 1.4rem;
  font-size: 0.8rem;
  text-align: center;
  color: var(--text-muted);
}

.auth-footnote a {
  color: var(--silver);
  text-decoration: underline;
}

/* animated glow for auth background */
@keyframes authGlow {
  0%   { transform: translate3d(0,0,0) scale(1);    opacity: 0.9; }
  50%  { transform: translate3d(-30px,20px,0) scale(1.05); opacity: 0.75; }
  100% { transform: translate3d(10px,-10px,0) scale(1.02); opacity: 0.85; }
}

/* Ensure login content is always visible (no JS animations needed) */
body.auth-page .animate-up,
body.auth-page .animate-fade {
  opacity: 1;
  transform: none;
}

/* Layout */
.container {
  width: min(1200px, 100% - 3rem);
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.section-dark {
  background: radial-gradient(circle at top, #151515 0, #050505 65%);
}

.section-alt {
  background: #080808;
}

.section-accent {
  background: linear-gradient(135deg, #7d1311, #a91c19);
}

.section-accent .section-header h2,
.section-accent p {
  color: #fff;
}

.center {
  text-align: center;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
}

.logo img {
  height: 100px;
  object-fit: contain;
}

.site-license {
  margin-top: 0.1rem;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.flex {
  display: flex;
}

.between {
  justify-content: space-between;
}

.align-center {
  align-items: center;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--silver);
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #fff, var(--accent));
  transition: width 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after,
.main-nav a.active::after {
  width: 100%;
}

/* Nav toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #b02320);
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 15px 35px rgba(0,0,0,0.75);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  transform-origin: center;
  cursor: pointer; /* NEW: always show pointer on buttons */
}

.btn:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.9);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(196,196,196,0.5);
  color: var(--silver);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.06);
}

.btn-small {
  padding: 0.55rem 1.3rem;
  font-size: 0.75rem;
}

.btn-full {
  width: 100%;
}

.btn-light {
  background: #fff;
  color: #000;
  box-shadow: 0 12px 30px rgba(0,0,0,0.7);
}

/* Hero */
.hero {
  position: relative;
  padding-top: 6rem;
  padding-bottom: 4rem;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background-image: url('../img/Banner_2.png');
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(125,19,17,0.55), transparent 60%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 3rem;
  z-index: 1;
  perspective: 1200px; /* add depth for tilt */
}

.hero-text h1 {
  font-size: clamp(2.4rem, 3.2vw, 3.3rem);
  margin-bottom: 1rem;
}

.lead {
  color: var(--text-muted);
  max-width: 32rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: var(--silver);
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.75rem;
  margin-bottom: 1.75rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.hero-stats div {
  min-width: 120px;
}

.stat-number {
  font-size: 1.9rem;
  font-weight: 700;
}

.stat-suffix {
  font-size: 1.4rem;
  margin-left: 2px;
}

.hero-card {
  background: radial-gradient(circle at top left, rgba(125,19,17,0.55), rgba(0,0,0,0.9));
  border-radius: 18px;
  padding: 2.1rem 2.2rem;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 25px 70px rgba(0,0,0,0.85);
  backdrop-filter: blur(18px);
}

.hero-card h2 {
  font-size: 1.35rem;
}

.onboarding-steps {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 1.8rem;
}

.onboarding-steps li {
  padding-left: 0.2rem;
  margin-bottom: 0.9rem;
}

.onboarding-steps h3 {
  font-size: 1rem;
  margin: 0 0 0.2rem;
}

.onboarding-steps p {
  margin: 0;
  color: var(--text-muted);
}

/* Section headers */
.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--text-muted);
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1.8rem;
  perspective: 1200px; /* add depth for tilt */
}

.card {
  background: #080808;
  border-radius: 16px;
  padding: 1.7rem 1.8rem;
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 18px 40px rgba(0,0,0,0.85);
  backdrop-filter: blur(16px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  box-shadow: 0 26px 60px rgba(0,0,0,0.9);
  border-color: rgba(255,255,255,0.12);
}

.card h3 {
  margin-top: 0;
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 1.2rem;
  color: var(--text-muted);
}

.card-list li::before {
  content: "• ";
  color: var(--accent);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--silver);
}

/* Gallery preview */
.gallery-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.6rem;
  perspective: 1200px; /* add depth for tilt */
}

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  background: #0b0b0b;
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
}

.gallery-thumb {
  height: 190px;
  background-size: cover;
  background-position: center;
}

.gallery-meta {
  padding: 1rem 1.2rem 1.3rem;
}

/* Testimonials */
.testimonial-slider {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  gap: 1rem;
  align-items: center;
  position: relative;
}

.testimonial-track {
  position: relative;
  overflow: hidden;
}

.testimonial {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: relative;
  display: none; /* hide non-active testimonials */
}

.testimonial.active {
  display: block; /* show only the active testimonial */
  opacity: 1;
  transform: translateX(0);
}

.testimonial .quote {
  font-size: 1.05rem;
}

.testimonial .author {
  margin-top: 0.7rem;
  color: var(--text-muted);
}

.slider-btn {
  background: transparent;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Testimonial dots */
.testimonial-dots {
  margin-top: 1.4rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.testimonial-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.testimonial-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.1);
}

/* CTA */
.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0,1.2fr);
  gap: 2rem;
  align-items: center;
  color: #fff;
}

.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.7rem;
}

/* Page hero */
.page-hero {
  padding: 5rem 0 2.5rem;
  background: radial-gradient(circle at top, rgba(125,19,17,0.6), #050505 70%);
}

.page-hero.small {
  padding: 4.5rem 0 2.2rem;
}

/* Service sections */
.service-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.media-img {
  border-radius: 18px;
  height: 260px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.media-img:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 22px 50px rgba(0,0,0,0.85);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.checklist li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.checklist li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.2rem;
  color: var(--accent);
}

/* Two column general */
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 2.5rem;
}

/* Badges */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.2rem;
}

.badge {
  background: #070707;
  border-radius: 14px;
  padding: 1.3rem 1rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
}

.badge-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}

.badge-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 2rem auto 0;
}

.faq-item {
  width: 100%;
  text-align: left;
  background: #080808;
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 0.7rem;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
}

.faq-item span {
  flex: 1;
}

.faq-item .faq-content {
  display: none;
  width: 100%;
  margin-top: 0.6rem;
  color: var(--text-muted);
}

.faq-item.open .faq-content {
  display: block;
}

.faq-item i {
  flex-shrink: 0;
}

/* Gallery page */
.gallery-filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: transparent;
  color: var(--silver);
  cursor: pointer;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.6rem;
}

.gallery-card {
  border-radius: 16px;
  overflow: hidden;
  background: #080808;
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.gallery-card:hover {
  box-shadow: 0 24px 55px rgba(0,0,0,0.9);
  border-color: rgba(255,255,255,0.16);
}

.gallery-card figcaption {
  padding: 0.8rem 1rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.contact-card {
  background: #080808;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 50px rgba(0,0,0,0.85);
  position: relative;
  pointer-events: auto;
  z-index: 1; /* NEW: lift card above any background layers */
}

/* NEW: ensure the form & submit button are on top and clickable */
.quote-form {
  position: relative;
  z-index: 2;
}

.quote-form button[type="submit"] {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.field-group {
  margin-bottom: 1rem;
}

.field-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  color: var(--silver);
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: #050505;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1rem;
}

.form-note {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.contact-info {
  padding: 0.5rem 0.5rem 0;
}

.contact-highlight {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 1.2rem 0;
  background: #080808;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255,255,255,0.07);
}

.contact-highlight i {
  color: var(--accent);
}

.map-placeholder {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.9rem 1rem;
  background: #050505;
  margin-top: 0.5rem;
}

.map-placeholder a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--silver);
  font-size: 0.9rem;
}

.map-placeholder i {
  color: var(--accent);
  font-size: 1.1rem;
}

.map-placeholder span {
  display: inline-block;
}

.map-embed {
  margin-top: 0.75rem;
  border-radius: 8px;
  overflow: hidden;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 260px;
  border: 0;
}

/* Back-to-top button */
.back-to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.6rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background 0.2s ease;
  z-index: 60;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
}

/* Lightbox overlay for gallery */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 80;
  /* NEW: do not block clicks when hidden */
  pointer-events: none;
}

.lightbox-overlay.open {
  opacity: 1;
  visibility: visible;
  /* NEW: only catch clicks when open */
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: min(960px, 90vw);
  max-height: 90vh;
  padding: 0.8rem 0.8rem 1.1rem;
  background: #050505;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 30px 80px rgba(0,0,0,0.9);
}

.lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  display: block;
  border-radius: 8px;
}

.lightbox-caption {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  border: none;
  background: rgba(0,0,0,0.7);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-close {
  top: 0.5rem;
  right: 0.5rem;
}

.lightbox-prev {
  top: 50%;
  left: -1.7rem;
  transform: translateY(-50%);
}

.lightbox-next {
  top: 50%;
  right: -1.7rem;
  transform: translateY(-50%);
}

/* Animations */
.animate-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-fade {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* only manage opacity here, so inline transforms (tilt) can win */
.in-view {
  opacity: 1;
}

/* when element is in view, reset its entrance offset */
.animate-up.in-view,
.animate-fade.in-view {
  transform: translateY(0);
}

/* Staggered animations for key layouts */
.hero-text.animate-up {
  transition-delay: 0.05s;
}

.hero-card.animate-fade {
  transition-delay: 0.15s;
}

.cards-grid .card.animate-up:nth-child(1) { transition-delay: 0.05s; }
.cards-grid .card.animate-up:nth-child(2) { transition-delay: 0.12s; }
.cards-grid .card.animate-up:nth-child(3) { transition-delay: 0.19s; }
.cards-grid .card.animate-up:nth-child(4) { transition-delay: 0.26s; }

.gallery-preview .gallery-item.animate-fade:nth-child(1) { transition-delay: 0.05s; }
.gallery-preview .gallery-item.animate-fade:nth-child(2) { transition-delay: 0.12s; }
.gallery-preview .gallery-item.animate-fade:nth-child(3) { transition-delay: 0.19s; }

.feature-grid .feature-card.animate-up:nth-child(1) { transition-delay: 0.05s; }
.feature-grid .feature-card.animate-up:nth-child(2) { transition-delay: 0.12s; }
.feature-grid .feature-card.animate-up:nth-child(3) { transition-delay: 0.19s; }

/* WHY CHOOSE US feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 1.8rem;
  perspective: 1200px; /* add depth for tilt */
}

.feature-card {
  background: #080808;
  border-radius: 18px;
  padding: 1.9rem 1.8rem 1.8rem;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 20px 50px rgba(0,0,0,0.85);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(125,19,17,0.45), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(125,19,17,0.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.feature-icon i {
  font-size: 1rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.feature-list li::before {
  content: "• ";
  color: var(--accent);
}

.rating {
  margin-top: 0.9rem;
}

.rating-stars {
  color: #f5c94a;
  font-size: 1.1rem;
}

.rating-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* Footer */
.site-footer {
  background: radial-gradient(circle at top, #090909 0, #020202 65%);
  margin-top: 4rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3.2rem 0 1.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-col {
  position: relative;
}

.footer-col h3,
.footer-col h4 {
  margin: 0 0 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: var(--silver);
}

.footer-col h3::after,
.footer-col h4::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  margin-top: 0.4rem;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.footer-col p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-col.footer-brand p {
  max-width: 22rem;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
}

.footer-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.footer-list li::before {
  content: "– ";
  color: var(--accent);
}

/* BBB / trust badges in footer */
.footer-badges {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.footer-badges img {
  display: block;
  height: 40px;
  width: auto;
}

/* QR code badge (white background so black code reads clearly) */
.footer-badges .footer-qr {
  height: 56px;
  padding: 4px;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

/* Footer hover depth */
.footer-col {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-col:hover {
  transform: translateY(-4px);
}

/* Glass / 3D tilt base */
.tilt-card {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform, box-shadow;
  transition: box-shadow 0.18s ease, border-color 0.18s ease, background 0.2s ease;
}

/* Light sheen on glass cards */
.tilt-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.12), transparent 55%);
  opacity: 0;
  pointer-events: none; /* ensure sheen never blocks clicks */
  transition: opacity 0.25s ease;
}

/* NEW: also ensure any ::before overlays on tilt cards don't capture clicks */
.tilt-card::before {
  pointer-events: none;
}

/* Hero card / feature / service cards already have nice backgrounds, just improve glass feel */
.hero-card {
  background: radial-gradient(circle at top left, rgba(125,19,17,0.55), rgba(0,0,0,0.9));
  backdrop-filter: blur(18px);
}

.card {
  backdrop-filter: blur(16px);
}

/* remove transform from hover, keep depth; tilt JS will handle rotation/elevation */
.card:hover {
  box-shadow: 0 26px 60px rgba(0,0,0,0.9);
  border-color: rgba(255,255,255,0.12);
}

/* Gallery preview items: let tilt handle transform */
.gallery-item {
  backdrop-filter: blur(12px);
}

/* Gallery cards: let tilt or lightbox hover drive the feel */
.gallery-card:hover {
  box-shadow: 0 24px 55px rgba(0,0,0,0.9);
  border-color: rgba(255,255,255,0.16);
}

/* ADMIN DASHBOARD LAYOUT & PREVIEW */
body.admin-page .page-wrapper {
  background: radial-gradient(circle at top, #161616 0, #050505 65%);
}

/* Make admin use a wider container than the public site */
body.admin-page .container {
  width: min(1800px, 100% - 2rem);
}

/* Small entrance animation for main admin panels */
@keyframes adminFadeUp {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Admin specific sections */
.admin-page .section {
  padding: 3rem 0;
}

.admin-page .admin-container {
  width: 100%;
  max-width: none;
}

.admin-page .admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.admin-page .admin-header h1 {
  margin: 0 0 0.25rem;
}

.admin-page .admin-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.admin-page .admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.8fr); /* give preview more width */
  gap: 1.5rem;
  align-items: flex-start;
}

/* Form pane */
.admin-page .admin-form-pane {
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  padding: 1.6rem 1.8rem;
  border-radius: 18px;
  background: radial-gradient(circle at top left, #111 0, #050505 60%);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 22px 60px rgba(0,0,0,0.9);
  animation: adminFadeUp 0.4s ease-out both;
}

/* custom scrollbar for admin form */
.admin-page .admin-form-pane::-webkit-scrollbar {
  width: 8px;
}
.admin-page .admin-form-pane::-webkit-scrollbar-track {
  background: #050505;
}
.admin-page .admin-form-pane::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
}
.admin-page .admin-form-pane {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.25) #050505;
}

/* COLLAPSIBLE SECTIONS */
.admin-page .admin-form-pane .section {
  padding: 1.4rem 0 1.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.admin-page .admin-form-pane .section:hover {
  background-color: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.08);
}

.admin-page .admin-form-pane .section:last-of-type {
  border-bottom: none;
}

.admin-page .admin-form-pane .section h2 {
  margin: 0 0 0.8rem;
  cursor: pointer;
  position: relative;
  padding-right: 1.4rem;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--silver);
}

/* Chevron indicator */
.admin-page .admin-form-pane .section h2::after {
  content: "▾";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

/* Collapsed state */
.admin-page .admin-form-pane .section.collapsed h2::after {
  transform: translateY(-50%) rotate(-90deg);
}

.admin-page .admin-form-pane .section.collapsed > *:not(h2) {
  display: none;
}

.admin-page .admin-form-pane h3 {
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  color: #fff;
}

/* Slightly brighter inputs in admin vs public forms + focused group glow */
.admin-page .field-group {
  position: relative;
  margin-bottom: 1rem;
  padding: 0.25rem 0.4rem;
  border-radius: 10px;
  transition: background 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.admin-page .field-group:focus-within {
  background: radial-gradient(circle at top left, rgba(125,19,17,0.28), rgba(0,0,0,0.96));
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 12px 32px rgba(0,0,0,0.85);
}

.admin-page .field-group input,
.admin-page .field-group textarea {
  background: #090909;
  border-color: rgba(255,255,255,0.14);
}

/* PREVIEW PANE + TABS */
.admin-page .admin-preview-pane {
  position: sticky;
  top: 90px;
}

.admin-page .admin-preview {
  border-radius: 18px;
  background: radial-gradient(circle at top, #171717 0, #050505 65%);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 24px 70px rgba(0,0,0,0.95);
  overflow: hidden;
  position: relative;
  animation: adminFadeUp 0.45s ease-out both;
  animation-delay: 0.08s;
}

/* New header row that holds tabs + device toggle */
.admin-page .admin-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.3rem 0.5rem 0.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(135deg, rgba(23,23,23,0.96), rgba(0,0,0,0.98));
}

/* Tabs now sit inside header */
.admin-page .admin-preview-tabs {
  display: flex;
  gap: 0.15rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
}

.admin-page .admin-preview-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--silver);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.45rem 0.3rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
  position: relative;
}

.admin-page .admin-preview-tab:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}

.admin-page .admin-preview-tab.active {
  background: #fff;
  color: #000;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.35),
    0 10px 25px rgba(0,0,0,0.7);
}

/* Device toggle: Desktop / Mobile */
.admin-page .admin-preview-device-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
}

.admin-page .device-toggle-btn {
  border: none;
  background: transparent;
  color: var(--silver);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.admin-page .device-toggle-btn.active {
  background: #fff;
  color: #000;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 6px 16px rgba(0,0,0,0.7);
}

/* make preview area tall; let iframe handle scrolling */
.admin-page .admin-preview-frame {
  height: calc(100vh - 180px);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 0.25rem;
}

/* viewport that we resize for desktop vs mobile */
.admin-page .admin-preview-viewport {
  flex: 1;
  max-width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
  transition:
    max-width 0.25s ease,
    border-radius 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

/* Desktop preview: fill the right column at full width */
.admin-page .admin-preview-viewport.device-desktop {
  border-radius: 12px;
}

/* Mobile preview: narrower viewport centered in the column */
.admin-page .admin-preview-viewport.device-mobile {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.1),
    0 18px 50px rgba(0,0,0,0.9);
  transform: translateY(4px);
}

/* live preview iframe fills the viewport */
.admin-page .admin-preview-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #000;
}

/* Highlighting of preview elements that match focused field */
.admin-preview-highlight {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  background-color: rgba(125,19,17,0.15);
  border-radius: 4px;
  transition: outline-color 0.18s ease, background-color 0.18s ease;
}

/* Per-field undo button */
.admin-page .field-undo {
  margin-top: 0.25rem;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
}

.admin-page .field-undo:disabled {
  opacity: 0.4;
  cursor: default;
  text-decoration: none;
}

/* Sticky save bar at bottom of form */
.admin-page .admin-save-bar {
  position: sticky;
  bottom: 0;
  margin-top: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 0.25rem;
  background: linear-gradient(to top, rgba(5,5,5,0.98), rgba(5,5,5,0.35));
  border-top: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(12px);
}

.admin-page .admin-save-bar .btn {
  width: 100%;
}

.admin-page .admin-save-status {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0.9;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.admin-page .admin-save-status::before {
  content: "●";
  font-size: 0.6rem;
  color: var(--text-muted);
}

.admin-page .admin-save-status.is-dirty {
  color: #ffd089;
}

.admin-page .admin-save-status.is-dirty::before {
  color: #ffd089;
}

.admin-page .admin-save-status.is-saved {
  color: #7dd18c;
  opacity: 1;
}

.admin-page .admin-save-status.is-saved::before {
  color: #7dd18c;
}

@media (max-width: 992px) {
  .hero-grid,
  .cards-grid,
  .gallery-preview,
  .service-section,
  .two-col,
  .badge-grid,
  .gallery-grid,
  .contact-grid,
  .footer-grid,
  .cta-grid,
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .testimonial-slider {
    grid-template-columns: 1fr;
  }

  .lightbox-prev {
    left: 0.4rem;
  }

  .lightbox-next {
    right: 0.4rem;
  }
}

@media (max-width: 768px) {
  .hero-grid,
  .cards-grid,
  .gallery-preview,
  .service-section,
  .two-col,
  .badge-grid,
  .gallery-grid,
  .contact-grid,
  .footer-grid,
  .cta-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 5.5rem;
  }

  .hero-card {
    margin-top: 1.5rem;
  }

  .main-nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: 60px;
    background: #050505;
    transform: translateY(-120%);
    transition: transform 0.25s ease;
  }

  .main-nav.open {
    transform: translateY(0);
  }

  .main-nav ul {
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header .container {
    min-height: 60px;
  }

  .lightbox-content {
    max-width: 94vw;
  }

  .lightbox-prev,
  .lightbox-next {
    display: none;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 3.2rem 0;
  }

  .hero-stats {
    gap: 1.6rem;
  }

  .hero-card {
    padding: 1.7rem 1.5rem;
  }

  .footer-badges img {
    height: 32px;
  }
}

/* MAINTENANCE PAGE */
body.maintenance-page {
  position: relative;
  overflow-x: hidden;
}

body.maintenance-page .page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top, #151515 0, #020202 70%);
}

/* Animated background glows */
body.maintenance-page::before,
body.maintenance-page::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(14px);
  opacity: 0.9;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: -1;
}

body.maintenance-page::before {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(125,19,17,0.8), transparent 70%);
  top: -140px;
  right: -120px;
  animation: maintenanceGlowA 22s ease-in-out infinite alternate;
}

body.maintenance-page::after {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 65%);
  bottom: -180px;
  left: -120px;
  animation: maintenanceGlowB 26s ease-in-out infinite alternate;
}

body.maintenance-page main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem 3rem;
}

/* Floating, glowing maintenance card */
.maintenance-card {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  padding: 2.4rem 2.2rem 2.1rem;
  border-radius: 18px;
  text-align: center;
  background: radial-gradient(
      circle at top left,
      rgba(125,19,17,0.8),
      rgba(0,0,0,0.98)
    );
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 30px 80px rgba(0,0,0,0.95);
  backdrop-filter: blur(20px);
  overflow: hidden;
  animation: maintenanceFloat 18s ease-in-out infinite alternate;
}

/* Animated border / sheen around card */
.maintenance-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background:
    conic-gradient(
      from 0deg,
      rgba(255,255,255,0.15),
      rgba(125,19,17,0.9),
      rgba(0,0,0,0.6),
      rgba(125,19,17,1),
      rgba(255,255,255,0.08)
    );
  mix-blend-mode: screen;
  opacity: 0.35;
  animation: maintenanceBorderSpin 26s linear infinite;
  pointer-events: none;
}

.maintenance-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.1), transparent 58%),
    radial-gradient(circle at bottom right, rgba(0,0,0,0.9), rgba(0,0,0,0.98));
  pointer-events: none;
  z-index: -1;
}

.maintenance-icon {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top, rgba(255,255,255,0.3), transparent 70%);
  color: #fff;
  font-size: 1.6rem;
}

/* Pulsing ring around icon */
.maintenance-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 0 0 0 rgba(255,255,255,0.45);
  animation: maintenancePulse 2.8s ease-out infinite;
  pointer-events: none;
}

.maintenance-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.maintenance-card h1 {
  margin: 0 0 0.75rem;
  font-size: 1.9rem;
}

.maintenance-card p {
  margin: 0.2rem 0;
  color: var(--text-muted);
}

.maintenance-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 1.3rem;
  color: rgba(255,255,255,0.9);
  background: radial-gradient(circle at top left, rgba(0,0,0,0.8), rgba(125,19,17,0.8));
  border: 1px solid rgba(255,255,255,0.32);
}

.maintenance-status-pill::before {
  content: "●";
  font-size: 0.55rem;
  color: #facc15; /* amber dot */
  animation: maintenanceDotPulse 1.4s ease-in-out infinite;
}

.maintenance-contact {
  margin-top: 1.4rem;
  font-size: 0.9rem;
}

.maintenance-contact a {
  color: var(--silver);
  text-decoration: underline;
}

/* Maintenance animations */
@keyframes maintenanceGlowA {
  0%   { transform: translate3d(0,0,0) scale(1);   opacity: 0.85; }
  50%  { transform: translate3d(-40px,30px,0) scale(1.05); opacity: 0.7; }
  100% { transform: translate3d(20px,-20px,0) scale(1.02); opacity: 0.9; }
}

@keyframes maintenanceGlowB {
  0%   { transform: translate3d(0,0,0) scale(1);   opacity: 0.5; }
  50%  { transform: translate3d(35px,-25px,0) scale(1.08); opacity: 0.7; }
  100% { transform: translate3d(-15px,20px,0) scale(1.02); opacity: 0.55; }
}

@keyframes maintenanceFloat {
  0%   { transform: translateY(0) scale(1); }
  50%  { transform: translateY(-8px) scale(1.01); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes maintenanceBorderSpin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes maintenancePulse {
  0%   { transform: scale(1);   opacity: 0.9; box-shadow: 0 0 0 0 rgba(255,255,255,0.5); }
  60%  { transform: scale(1.25); opacity: 0; box-shadow: 0 0 0 18px rgba(255,255,255,0); }
  100% { transform: scale(1.25); opacity: 0; box-shadow: 0 0 0 18px rgba(255,255,255,0); }
}

@keyframes maintenanceDotPulse {
  0%, 100% { transform: scale(1);   opacity: 0.8; }
  50%      { transform: scale(1.4); opacity: 1; }
}

/* NEW: compact footer + animated CDS credit for maintenance page */
.maintenance-footer {
  padding: 0.75rem 1.5rem 1.8rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
}

.maintenance-credit {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

.maintenance-credit a {
  position: relative;
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 2px;
}

.maintenance-credit a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), #ffffff, var(--accent));
  background-size: 200% 100%;
  animation: maintenanceLinkShimmer 3.2s linear infinite;
  border-radius: 999px;
}

/* animated shimmer under CDS link */
@keyframes maintenanceLinkShimmer {
  0%   { background-position: 0% 0;   opacity: 0.4; }
  50%  { background-position: 100% 0; opacity: 1;   }
  100% { background-position: 200% 0; opacity: 0.4; }
}

/* Mobile adjustments for maintenance layout */
@media (max-width: 600px) {
  body.maintenance-page main {
    align-items: flex-start;
    padding: 2.5rem 1.2rem 2rem;
  }

  .maintenance-card {
    margin-top: 1.5rem;
    padding: 1.8rem 1.4rem 1.6rem;
    border-radius: 14px;
  }

  .maintenance-card h1 {
    font-size: 1.45rem;
  }

  .maintenance-card p {
    font-size: 0.9rem;
  }

  .maintenance-icon {
    width: 54px;
    height: 54px;
    font-size: 1.3rem;
  }
}
