/* ============================================
   Asset Security Systems, Inc. (ASSI)
   Coastal Blue + Soft Sand Theme
   ============================================ */

:root {
  /* Primary — Coastal Blue */
  --navy: #4A6B78;
  --navy-light: #7A9CA8;
  --navy-dark: #3A5563;
  /* Accent — Coastal Blue */
  --teal: #7A9CA8;
  --teal-light: #9BB8C2;
  --teal-glow: rgba(122, 156, 168, 0.3);
  /* Light backgrounds — Soft Sand */
  --warm-bg: #E9E2D6;
  --warm-surface: #F5F2EC;
  --warm-border: #D4CBC0;
  /* CTA — Coastal Blue */
  --orange: #5E8491;
  --orange-hover: #4A6B78;
  /* Text */
  --text-primary: #1C2B33;
  --text-secondary: #3A4F5A;
  --text-muted: #6B8490;
  --text-inverse: #E9E2D6;
  /* Glass */
  --glass-bg: rgba(58, 85, 99, 0.92);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: 12px;
  /* Shadows */
  --shadow-card: 0 1px 3px rgba(58, 85, 99, 0.08), 0 1px 2px rgba(58, 85, 99, 0.05);
  --shadow-card-hover: 0 10px 25px rgba(58, 85, 99, 0.12);
  --shadow-glow-teal: 0 0 24px rgba(122, 156, 168, 0.25);
  --shadow-glow-orange: 0 0 24px rgba(122, 156, 168, 0.3);
  /* Radius */
  --radius: 0.375rem;
  --radius-lg: 0.375rem;
  --radius-xl: calc(0.375rem * 1.4);
  --radius-2xl: calc(0.375rem * 1.8);
  --radius-full: 9999px;
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-smooth: 300ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 500ms cubic-bezier(0.16, 1, 0.3, 1);
}


/* ============================================
   Dark Mode — overrides :root variables
   ============================================ */

html.dark {
  --warm-bg: #1A2A34;
  --warm-surface: #1E3240;
  --warm-border: #2A4250;
  --text-primary: #E2E0DC;
  --text-secondary: #B0BEC5;
  --text-muted: #7A9CA8;
  --text-inverse: #1A2A34;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.15);
  --shadow-card-hover: 0 10px 25px rgba(0, 0, 0, 0.3);
}

html.dark body {
  background: #1A2A34;
  color: #D4CEC4;
}

html.dark .site-nav {
  background: #1E3240 !important;
}

html.dark .site-nav.scrolled {
  background: rgba(30, 50, 64, 0.97) !important;
}

html.dark .bg-warm-bg {
  background-color: #1A2A34 !important;
}

/* Cards on light sections in dark mode */
html.dark .service-card {
  background: #1E3240;
  border-color: #2A4250;
  border-left-color: var(--teal);
}

html.dark .service-card h3,
html.dark .area-card h3,
html.dark .team-card h3,
html.dark .testimonial-card h3,
html.dark section.bg-warm-bg h2 {
  color: #E8E4DE !important;
}

html.dark .service-card p,
html.dark .area-card p,
html.dark .team-card p {
  color: #B0BEC5 !important;
}

html.dark .service-card:hover {
  border-color: var(--teal);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Section labels */
html.dark .section-label {
  color: #7A9CA8;
}

/* Text colors in light sections */
html.dark .text-gray-800 { color: #E2E0DC !important; }
html.dark .text-gray-700 { color: #D0CBC2 !important; }
html.dark .text-gray-600 { color: #B0BEC5 !important; }
html.dark .text-gray-500 { color: #8A9BA5 !important; }

/* Highlight bar */
html.dark .highlights-bar {
  background: #1E3240;
  border-bottom-color: #2A4250;
}

html.dark .highlight-item p {
  color: #B0BEC5 !important;
}

/* Footer */
html.dark .site-footer {
  background: #162430;
  border-top-color: #2A4250;
  color: #8A9BA5;
}

html.dark .site-footer h4 {
  color: #D4CEC4 !important;
}

html.dark .site-footer a {
  color: #7A9CA8;
}

html.dark .site-footer a:hover {
  color: #9BB8C2;
}

/* Divider */
html.dark .divider {
  background: linear-gradient(90deg, transparent, #2A4250, transparent);
}

/* Contact form */
html.dark .contact-form input,
html.dark .contact-form select,
html.dark .contact-form textarea {
  background: #1E3240;
  border-color: #2A4250;
  color: #D4CEC4;
}

html.dark .contact-form label {
  color: #B0BEC5;
}

/* Team cards */
html.dark .team-card {
  background: #1E3240;
  border-color: #2A4250;
}

html.dark .team-card:hover {
  border-color: var(--teal);
}

/* Area cards */
html.dark .area-card {
  background: #1E3240;
  border-color: #2A4250;
}

/* Floating service ticket widget */
html.dark .fixed .bg-white {
  background: #1E3240 !important;
  border-color: #2A4250 !important;
}

html.dark .fixed .text-gray-700 {
  color: #B0BEC5 !important;
}

/* Payment section & warm-surface sections */
html.dark [style*="--warm-surface"] {
  background: #1E3240 !important;
  border-color: #2A4250 !important;
}

/* White bg cards in dark mode */
html.dark .bg-white {
  background-color: #1E3240 !important;
}

html.dark .border-warm-border {
  border-color: #2A4250 !important;
}

/* Icon backgrounds */
html.dark .highlight-icon {
  background: rgba(122, 156, 168, 0.2);
  color: #9BB8C2;
}

/* Theme toggle button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast);
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon { display: none; }

html:not(.dark) .theme-toggle .icon-moon { display: block; }
html.dark .theme-toggle .icon-sun { display: block; }


/* ============================================
   Reset & Base
   ============================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Prevent horizontal overflow on mobile */
main, section, footer, header {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1C1917;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  background: var(--warm-bg);
}

h1, h2, h3, h4, h5, h6, .font-display {
  font-family: 'Syne', -apple-system, sans-serif;
  letter-spacing: -0.025em;
}

/* Headings on light backgrounds need dark text */
.service-card h3,
.area-card h3,
.team-card h3,
.testimonial-card h3,
section.bg-warm-bg h2 {
  color: #1C1917 !important;
}

/* Allow white text on dark sections */
section.section-padding .text-white {
  color: #ffffff !important;
}

/* Body text on light backgrounds */
.service-card p,
.area-card p,
.team-card p {
  color: #2C2520 !important;
}


/* ============================================
   Scroll Animations
   ============================================ */

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--transition-spring), transform 0.6s var(--transition-spring);
  will-change: opacity, transform;
}
.fade-up.visible { opacity: 1; transform: translateY(0); will-change: auto; }

.fade-in {
  opacity: 0;
  transition: opacity 0.6s var(--transition-spring);
  will-change: opacity;
}
.fade-in.visible { opacity: 1; will-change: auto; }

.scale-in {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s var(--transition-spring), transform 0.6s var(--transition-spring);
  will-change: opacity, transform;
}
.scale-in.visible { opacity: 1; transform: scale(1); will-change: auto; }

.stagger > *:nth-child(1) { transition-delay: 0ms; }
.stagger > *:nth-child(2) { transition-delay: 70ms; }
.stagger > *:nth-child(3) { transition-delay: 140ms; }
.stagger > *:nth-child(4) { transition-delay: 210ms; }
.stagger > *:nth-child(5) { transition-delay: 280ms; }
.stagger > *:nth-child(6) { transition-delay: 350ms; }


/* ============================================
   Header — Minimal, backdrop blur on scroll
   ============================================ */

.site-nav {
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  width: 100% !important;
  background: #4A6B78 !important;
  border-bottom: none !important;
  transition: all var(--transition-smooth);
}

.site-nav.scrolled {
  background: rgba(74, 107, 120, 0.97) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: none !important;
}

/* Logo bar — sits below header, scrolls with page */
.site-logo-bar {
  position: absolute;
  top: 92px;
  left: 30px;
  z-index: 40;
  pointer-events: none;
}

.site-logo-bar img {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)) brightness(1.3);
}

@media (max-width: 767px) {
  .site-logo-bar {
    display: none;
  }
}


/* ============================================
   Nav Links — ghost button style
   ============================================ */

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.6) !important;
  text-decoration: none !important;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-lg);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: #ffffff !important;
}


/* ============================================
   Mobile Menu — fullscreen overlay
   ============================================ */

.mobile-menu {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: rgba(58, 85, 99, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  display: none;
}

.mobile-menu.open {
  display: flex;
  flex-direction: column;
  animation: mobileMenuIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mobileMenuIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

/* Animated menu toggle icon */
.menu-toggle-svg {
  color: rgba(255, 255, 255, 0.8);
  transition: transform 500ms ease-in-out;
}

.menu-toggle-svg.open {
  transform: rotate(-45deg);
}

.menu-toggle-path {
  stroke-dasharray: 12 63;
  transition: stroke-dasharray 500ms ease-in-out, stroke-dashoffset 500ms ease-in-out;
}

.menu-toggle-svg.open .menu-toggle-path {
  stroke-dasharray: 20 300;
  stroke-dashoffset: -32.42px;
}


/* ============================================
   Hero Section — Falling Pattern Background
   ============================================ */

.retro-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-dark);
}

/* Hero Slideshow — crossfade background images */
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  will-change: opacity;
  opacity: 0;
  animation: heroSlideFade 30s ease-in-out infinite;
}

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(58, 85, 99, 0.55);
}

.hero-slide-1 { animation-delay: 0s; }
.hero-slide-2 { animation-delay: 10s; }
.hero-slide-3 { animation-delay: 20s; }

@keyframes heroSlideFade {
  0% { opacity: 0; }
  3% { opacity: 1; }
  33% { opacity: 1; }
  36% { opacity: 0; }
  100% { opacity: 0; }
}

/* Radial glow at top */
.retro-hero-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  background: radial-gradient(ellipse 20% 80% at 50% -20%, rgba(122, 156, 168, 0.25), transparent);
  pointer-events: none;
}

/* Company name above hero */
.hero-company-name {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0;
  text-shadow: 0 0 60px rgba(122, 156, 168, 0.15), 0 0 120px rgba(122, 156, 168, 0.05);
}

/* Pill badge */
.retro-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  padding: 8px 20px;
  background: linear-gradient(to right, rgba(122, 156, 168, 0.08), rgba(255, 255, 255, 0.04), transparent);
  border: 2px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-smooth);
}

.retro-pill:hover {
  border-color: rgba(122, 156, 168, 0.2);
  color: rgba(255, 255, 255, 0.9);
}

.retro-pill-chevron {
  transition: transform var(--transition-fast);
}

.retro-pill:hover .retro-pill-chevron {
  transform: translateX(4px);
}

/* Title with gradient text */
.retro-title {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  background-image: linear-gradient(180deg, #FFF 0%, rgba(255, 255, 255, 0.4) 100%);
}

.retro-title-gradient {
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  background-image: linear-gradient(to right, #8A7F73, #A69D92);
}

/* Rotating words animation */
.rotating-words-container {
  position: relative;
  display: flex;
  width: 100%;
  justify-content: center;
  overflow: hidden;
  min-height: 1.2em;
}

@media (min-width: 768px) {
  .rotating-words-container {
    padding-bottom: 0.25em;
    padding-top: 0.1em;
  }
}

.rotating-word {
  position: absolute;
  font-weight: 800;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  background-image: linear-gradient(to right, #8A7F73, #A69D92);
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.rotating-word.active {
  opacity: 1;
  transform: translateY(0);
}

.rotating-word.exit-up {
  opacity: 0;
  transform: translateY(-100%);
}

/* Description */
.retro-description {
  max-width: 38rem;
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

/* CTA with spinning gradient border */
.retro-cta-wrapper {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: var(--radius-full);
  padding: 1.5px;
}

.retro-cta-spinner {
  position: absolute;
  inset: -1000%;
  animation: retro-spin 3s linear infinite;
  background: conic-gradient(from 90deg at 50% 50%, #A69D92, #3D3630, #8A7F73, #A69D92);
}

@keyframes retro-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.retro-cta-inner {
  display: inline-flex;
  width: 100%;
  height: 100%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--navy-dark);
  backdrop-filter: blur(12px);
}

.retro-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-full);
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(to right, rgba(122, 156, 168, 0.12), rgba(122, 156, 168, 0.15), transparent);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-fast);
}

.retro-cta-button:hover {
  background: linear-gradient(to right, rgba(122, 156, 168, 0.2), rgba(122, 156, 168, 0.25), transparent);
}

.retro-cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-weight: 500;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.retro-cta-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}


/* ============================================
   Spotlight / Glow Cards — Services
   ============================================ */

.spotlight-grid {
  --x: 0;
  --y: 0;
  --xp: 0;
  --yp: 0;
}

.glow-card {
  --base: 170;
  --spread: 140;
  --radius: 14;
  --border: 2;
  --backdrop: hsla(0, 0%, 60%, 0.08);
  --backup-border: var(--backdrop);
  --size: 200;
  --outer: 1;
  --border-size: calc(var(--border, 2) * 1px);
  --spotlight-size: calc(var(--size, 150) * 1px);
  --hue: calc(var(--base) + (var(--xp, 0) * var(--spread, 0)));

  position: relative;
  background-image: radial-gradient(
    var(--spotlight-size) var(--spotlight-size) at
    calc(var(--x, 0) * 1px)
    calc(var(--y, 0) * 1px),
    hsla(var(--hue, 170), 80%, 60%, 0.1),
    transparent
  );
  background-color: var(--backdrop);
  background-size: calc(100% + (2 * var(--border-size))) calc(100% + (2 * var(--border-size)));
  background-position: 50% 50%;
  background-attachment: fixed;
  border: var(--border-size) solid var(--backup-border);
  border-radius: calc(var(--radius) * 1px);
  overflow: hidden;
  touch-action: none;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.glow-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(122, 156, 168, 0.12);
}

/* Glow border effect */
.glow-card::before,
.glow-card::after {
  pointer-events: none;
  content: "";
  position: absolute;
  inset: calc(var(--border-size) * -1);
  border: var(--border-size) solid transparent;
  border-radius: calc(var(--radius) * 1px);
  background-attachment: fixed;
  background-size: calc(100% + (2 * var(--border-size))) calc(100% + (2 * var(--border-size)));
  background-repeat: no-repeat;
  background-position: 50% 50%;
  mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
  -webkit-mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
  mask-clip: padding-box, border-box;
  -webkit-mask-clip: padding-box, border-box;
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}

.glow-card::before {
  background-image: radial-gradient(
    calc(var(--spotlight-size) * 0.75) calc(var(--spotlight-size) * 0.75) at
    calc(var(--x, 0) * 1px)
    calc(var(--y, 0) * 1px),
    hsla(var(--hue, 170), 80%, 50%, 1),
    transparent 100%
  );
  filter: brightness(2);
}

.glow-card::after {
  background-image: radial-gradient(
    calc(var(--spotlight-size) * 0.5) calc(var(--spotlight-size) * 0.5) at
    calc(var(--x, 0) * 1px)
    calc(var(--y, 0) * 1px),
    hsla(0, 0%, 100%, 0.8),
    transparent 100%
  );
}

/* Outer glow layer */
.glow-card .glow-outer {
  position: absolute;
  inset: 0;
  will-change: filter;
  opacity: var(--outer, 1);
  border-radius: calc(var(--radius) * 1px);
  border-width: calc(var(--border-size) * 20);
  filter: blur(calc(var(--border-size) * 10));
  background: none;
  pointer-events: none;
  border: none;
}

.glow-card-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

/* Teal glow variation */
.glow-card--teal { --base: 170; --spread: 60; }
/* Orange glow variation */
.glow-card--orange { --base: 30; --spread: 40; }
/* Blue glow variation */
.glow-card--blue { --base: 220; --spread: 60; }


/* Blur-in animation keyframes */
@keyframes heroBlurIn {
  from {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0);
  }
}

.hero-animate {
  opacity: 0;
  animation: heroBlurIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-animate-delay-1 { animation-delay: 0.1s; }
.hero-animate-delay-2 { animation-delay: 0.3s; }
.hero-animate-delay-3 { animation-delay: 0.5s; }
.hero-animate-delay-4 { animation-delay: 0.7s; }
.hero-animate-delay-5 { animation-delay: 0.9s; }
.hero-animate-delay-6 { animation-delay: 1.1s; }

/* Legacy hero-gradient kept for sub-pages if needed */
.hero-gradient {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(122, 156, 168, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 156, 168, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-gradient::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(122, 156, 168, 0.3), transparent);
}


/* ============================================
   Page Header Banners (sub-pages)
   ============================================ */

.page-header {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(122, 156, 168, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 156, 168, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}


/* ============================================
   Section Labels
   ============================================ */

.section-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4A6B78;
  margin-bottom: 10px;
}

.section-label-light {
  color: var(--teal-light);
}


/* ============================================
   Section Padding
   ============================================ */

.section-padding { padding: 80px 0; }
@media (max-width: 767px) { .section-padding { padding: 48px 0; } }


/* ============================================
   Cards — ring border + hover lift
   ============================================ */

.service-card {
  background: var(--warm-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--warm-border);
  border-left: 4px solid var(--teal);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--teal);
}

.testimonial-card {
  background: var(--warm-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--warm-border);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--teal);
}

.area-card {
  background: var(--warm-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--warm-border);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.area-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--teal);
}

.team-card {
  background: var(--warm-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--warm-border);
  box-shadow: var(--shadow-card);
  text-align: center;
  overflow: hidden;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.team-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--teal);
}

.team-card .team-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--warm-surface);
  transition: transform var(--transition-smooth);
}

.team-card:hover .team-photo {
  transform: scale(1.02);
}


/* ============================================
   Highlight Icons & Bar
   ============================================ */

.highlight-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(122, 156, 168, 0.15);
  border-radius: var(--radius-xl);
  color: #4A6B78;
}

.highlights-bar {
  background: var(--warm-surface);
  border-bottom: 1px solid var(--warm-border);
}

.highlight-item {
  text-align: center;
  padding: 28px 16px;
  transition: transform var(--transition-fast);
}

.highlight-item:hover {
  transform: translateY(-2px);
}


/* ============================================
   Buttons — press effect
   ============================================ */

.btn-orange {
  background: var(--orange);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(122, 156, 168, 0.3);
}

.btn-orange:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-orange);
}

.btn-orange:active {
  transform: translateY(1px);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.875rem;
  border: 1.5px solid var(--teal);
  border-radius: var(--radius-lg);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-outline:hover {
  background: var(--teal);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-teal);
}

.btn-outline:active {
  transform: translateY(1px);
}


/* ============================================
   Floating Call Button — teal-glow pulse
   ============================================ */

.call-float {
  position: fixed;
  z-index: 90;
}

@media (min-width: 768px) {
  .call-float {
    bottom: 28px;
    right: 28px;
    border-radius: var(--radius-full);
    padding: 12px 22px;
    font-size: 0.875rem;
    box-shadow: 0 4px 15px rgba(122, 156, 168, 0.3);
    animation: floatGlow 3s ease-in-out infinite;
  }
}

@media (max-width: 767px) {
  .call-float {
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 0;
    padding: 13px 0;
    font-size: 0.9375rem;
    text-align: center;
    justify-content: center;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.08);
  }
  body { padding-bottom: 52px; }
}

@keyframes floatGlow {
  0%, 100% { box-shadow: 0 4px 15px rgba(122, 156, 168, 0.3); }
  50% { box-shadow: 0 4px 25px rgba(122, 156, 168, 0.5); }
}


/* ============================================
   Floating Button Group
   ============================================ */

.float-group {
  position: fixed;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 768px) {
  .float-group { bottom: 28px; right: 28px; align-items: flex-end; }
}

@media (max-width: 767px) {
  .float-group {
    bottom: 0; left: 0; right: 0;
    flex-direction: row;
    gap: 0;
  }
  .float-group .call-float,
  .float-group .ticket-float {
    position: relative;
    bottom: auto; right: auto; left: auto;
    flex: 1;
    border-radius: 0;
    justify-content: center;
  }
}

.ticket-float {
  background: var(--navy);
  color: var(--text-inverse);
  font-weight: 600;
  font-size: 0.8125rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border: none;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

@media (min-width: 768px) {
  .ticket-float {
    padding: 10px 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  }
}

@media (max-width: 767px) {
  .ticket-float {
    padding: 13px 0;
    text-align: center;
    font-size: 0.8125rem;
    box-shadow: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }
}

.ticket-float:hover {
  background: var(--navy-light);
  transform: translateY(-1px);
}


/* ============================================
   Trust Band — glass-morphism dark
   ============================================ */

.trust-band {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  border-top: 1px solid rgba(122, 156, 168, 0.2);
  border-bottom: 1px solid rgba(122, 156, 168, 0.2);
  position: relative;
  overflow: hidden;
}

.trust-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(122, 156, 168, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 156, 168, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}


/* ============================================
   Map Placeholder
   ============================================ */

.map-placeholder {
  background: var(--warm-surface);
  border: 1.5px dashed var(--warm-border);
  border-radius: var(--radius-xl);
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}


/* ============================================
   Contact Form — teal focus ring
   ============================================ */

.contact-form input,
.contact-form select,
.contact-form textarea {
  border: 1px solid var(--warm-border);
  border-radius: var(--radius-xl);
  padding: 13px 16px;
  font-size: 0.9375rem;
  width: 100%;
  font-family: 'Poppins', 'DM Sans', sans-serif;
  color: var(--text-primary);
  background: var(--warm-surface);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(122, 156, 168, 0.15);
}

.contact-form label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
  display: block;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
}


/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: #D4CBC0;
  border-top: 1px solid #C2B8AC;
  color: #3A4F5A;
}

.site-footer h4 {
  color: #1C2B33 !important;
}

.site-footer a {
  color: #4A6B78;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.site-footer a:hover {
  color: #3A5563;
}


/* ============================================
   Misc Utilities
   ============================================ */

.star-orange {
  color: var(--orange);
  letter-spacing: 2px;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--warm-border), transparent);
  border: none;
}


/* ============================================
   Service Ticket Modal
   ============================================ */

.ticket-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.ticket-overlay.open { display: flex; }

.ticket-modal {
  background: var(--warm-surface);
  border-radius: var(--radius-2xl);
  padding: 32px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.ticket-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition-fast);
}

.ticket-modal-close:hover {
  color: var(--text-primary);
}

.ticket-qr {
  max-width: 180px;
  margin: 16px auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--warm-border);
}


/* ============================================
   Services Page — Premium Card Styles
   ============================================ */

/* Feature card — large, prominent service cards on dark bg */
.feature-card {
  --base: 170;
  --spread: 140;
  --radius: 20;
  --border: 1;
  --backdrop: rgba(255, 255, 255, 0.04);
  --backup-border: rgba(255, 255, 255, 0.08);
  --size: 250;
  --outer: 1;
  --border-size: calc(var(--border, 1) * 1px);
  --spotlight-size: calc(var(--size, 250) * 1px);
  --hue: calc(var(--base) + (var(--xp, 0) * var(--spread, 0)));
  position: relative;
  background-image: radial-gradient(
    var(--spotlight-size) var(--spotlight-size) at
    calc(var(--x, 0) * 1px)
    calc(var(--y, 0) * 1px),
    hsla(var(--hue, 170), 70%, 55%, 0.08),
    transparent
  );
  background-color: var(--backdrop);
  background-size: calc(100% + (2 * var(--border-size))) calc(100% + (2 * var(--border-size)));
  background-position: 50% 50%;
  background-attachment: fixed;
  border: var(--border-size) solid var(--backup-border);
  border-radius: calc(var(--radius) * 1px);
  overflow: hidden;
  touch-action: none;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25), 0 0 40px rgba(122, 156, 168, 0.08);
  border-color: rgba(155, 184, 194, 0.25);
}

.feature-card::before {
  pointer-events: none;
  content: "";
  position: absolute;
  inset: calc(var(--border-size) * -1);
  border: var(--border-size) solid transparent;
  border-radius: calc(var(--radius) * 1px);
  background-attachment: fixed;
  background-size: calc(100% + (2 * var(--border-size))) calc(100% + (2 * var(--border-size)));
  background-repeat: no-repeat;
  background-position: 50% 50%;
  mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
  -webkit-mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
  mask-clip: padding-box, border-box;
  -webkit-mask-clip: padding-box, border-box;
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
  background-image: radial-gradient(
    calc(var(--spotlight-size) * 0.75) calc(var(--spotlight-size) * 0.75) at
    calc(var(--x, 0) * 1px)
    calc(var(--y, 0) * 1px),
    hsla(var(--hue, 170), 80%, 50%, 0.7),
    transparent 100%
  );
  filter: brightness(2);
}

/* Inner gradient overlay for depth */
.feature-card .card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(58, 85, 99, 0.4) 0%,
    transparent 50%,
    rgba(122, 156, 168, 0.05) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.feature-card .card-content {
  position: relative;
  z-index: 1;
}

/* Feature card number badge */
.card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #9BB8C2;
  background: rgba(122, 156, 168, 0.12);
  border: 1px solid rgba(122, 156, 168, 0.15);
  flex-shrink: 0;
}

/* Compact card for additional capabilities */
.compact-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth), background var(--transition-smooth);
}

.compact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(155, 184, 194, 0.2);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Dot accent for compact cards */
.dot-accent {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9BB8C2;
  flex-shrink: 0;
  margin-top: 7px;
}


/* ============================================
   Tailwind Utility Color Overrides
   Remap orange-* classes to new palette
   Loaded AFTER Tailwind CDN so these win
   ============================================ */

.text-orange-400 { color: var(--orange) !important; }
.text-orange-500 { color: var(--orange) !important; }
.text-orange-600 { color: var(--orange-hover) !important; }
.text-orange-700 { color: #c2410c !important; }
.hover\:text-orange-400:hover { color: var(--teal-light) !important; }
.hover\:text-orange-500:hover { color: var(--teal-light) !important; }
.hover\:text-orange-700:hover { color: var(--orange-hover) !important; }
.focus\:ring-orange-400:focus { --tw-ring-color: var(--teal) !important; }

/* ============================================
   Performance — skip rendering off-screen sections
   ============================================ */
section {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}
