/*
Theme Name: DSS Security
Theme URI: https://detectorsecurity.com.au
Author: DSS
Description: Detector Security Services - Custom WordPress Theme
Version: 1.0
*/

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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── NAVBAR ── */
.site-header {
  background: #111;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo img {
  height: 52px;
  width: auto;
}

.nav-logo span {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  color: #ccc;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 14px;
  display: block;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links > li > a:hover { color: #10b981; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #1a1a1a;
  min-width: 280px;
  border-top: 2px solid #10b981;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 100;
}

.nav-links > li:hover .dropdown-menu { display: block; }

.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  color: #ccc;
  font-size: 0.85rem;
  transition: background 0.2s, color 0.2s;
  border-bottom: 1px solid #2a2a2a;
}

.dropdown-menu a:hover { background: #10b981; color: #fff; }

.nav-cta {
  background: #10b981;
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: 4px;
  font-weight: 600 !important;
}

.nav-cta:hover { background: #059669 !important; color: #fff !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: #fff;
  display: block;
  transition: 0.3s;
}

.mobile-nav {
  display: none;
  background: #111;
  padding: 16px 24px;
  border-top: 1px solid #222;
}

.mobile-nav a {
  display: block;
  color: #ccc;
  padding: 10px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid #222;
}

.mobile-nav a:hover { color: #10b981; }
.mobile-nav.open { display: block; }

/* ── HERO ── */
.hero {
  position: relative;
  background: #000;
  color: #fff;
  text-align: center;
  padding: 96px 24px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.1rem;
  color: #d1fae5;
  margin-bottom: 12px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.hero-content .hero-sub {
  color: #9ca3af;
  font-size: 1rem;
}

.hero-badge {
  display: inline-block;
  background: #10b981;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-primary { background: #10b981; color: #fff; }
.btn-primary:hover { background: #059669; color: #fff; }
.btn-secondary { background: #fff; color: #111; }
.btn-secondary:hover { background: #f3f4f6; }
.btn-dark { background: #1f2937; color: #fff; }
.btn-dark:hover { background: #111827; }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: #111; }

/* ── SECTIONS ── */
.section { padding: 72px 24px; }
.section-light { background: #f9fafb; }
.section-dark { background: #111; color: #fff; }
.section-white { background: #fff; }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #6b7280;
  max-width: 680px;
  margin: 0 auto 40px;
}

.section-dark .section-subtitle { color: #9ca3af; }
.text-center { text-align: center; }

/* ── CARDS GRID ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.card-dark {
  background: #1a1a1a;
  border-color: #2a2a2a;
  color: #fff;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #111;
}

.card-dark h3 { color: #fff; }

.card p { color: #4b5563; font-size: 0.95rem; line-height: 1.6; }
.card-dark p { color: #9ca3af; }

.card-icon {
  width: 48px;
  height: 48px;
  background: #d1fae5;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #059669;
  font-size: 1.4rem;
}

.card-link {
  display: inline-block;
  margin-top: 16px;
  color: #10b981;
  font-weight: 600;
  font-size: 0.9rem;
}

.card-link:hover { color: #059669; }

/* ── WHY CHOOSE US ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.why-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #10b981;
  border-radius: 10px;
  padding: 20px 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.why-item strong { color: #111; font-size: 0.95rem; }
.why-item p { color: #6b7280; font-size: 0.875rem; margin-top: 4px; }

/* ── TRUST BADGES ── */
.trust-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.trust-badge {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #111;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

/* ── TESTIMONIALS ── */
.testimonial {
  background: #1f2937;
  color: #d1d5db;
  border-left: 4px solid #10b981;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 16px;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.7;
}

/* ── CTA BANNER ── */
.cta-banner {
  background: #065f46;
  color: #fff;
  text-align: center;
  padding: 64px 24px;
}

.cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-banner p {
  font-size: 1.05rem;
  margin-bottom: 32px;
  color: #a7f3d0;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── FOOTER ── */
.site-footer {
  background: #0f0f0f;
  color: #fff;
  padding: 64px 24px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-col h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #9ca3af; font-size: 0.9rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: #10b981; }
.footer-col p { color: #9ca3af; font-size: 0.9rem; line-height: 1.7; }

.footer-bottom {
  text-align: center;
  color: #4b5563;
  font-size: 0.85rem;
  border-top: 1px solid #1f2937;
  padding-top: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 0;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.page-hero-content h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.page-hero-content p { color: #d1d5db; font-size: 1.05rem; }

/* ── SERVICES / SOLUTIONS LIST ── */
.services-intro {
  background: #fff;
  padding: 56px 24px;
  border-top: 4px solid #10b981;
}

.services-intro-inner {
  max-width: 800px;
  margin: 0 auto;
}

.services-intro h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 16px;
}

.services-intro p {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

/* ── CONTACT PAGE ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px;
}

.contact-info h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 28px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item-icon {
  font-size: 1.4rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-item h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.contact-item p, .contact-item a { color: #4b5563; font-size: 0.95rem; }
.contact-item a:hover { color: #10b981; }

.business-hours {
  background: #f9fafb;
  border-radius: 10px;
  padding: 24px;
  margin-top: 32px;
}

.business-hours h3 { font-weight: 700; margin-bottom: 16px; }
.hours-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #e5e7eb; color: #374151; font-size: 0.9rem; }

.contact-form-box {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
  padding: 36px;
}

.contact-form-box h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 24px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; color: #374151; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }

.form-success {
  background: #d1fae5;
  color: #065f46;
  padding: 14px 18px;
  border-radius: 8px;
  font-weight: 600;
  margin-bottom: 20px;
  display: none;
}

/* ── ABOUT PAGE ── */
.team-card {
  background: #f9fafb;
  border-radius: 14px;
  padding: 28px 32px;
  margin-bottom: 24px;
  border-left: 4px solid #10b981;
}

.team-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: #111; }
.team-card p { color: #4b5563; font-size: 0.95rem; line-height: 1.7; margin-bottom: 8px; }

/* ── PREMIUM TABLE ── */
.premium-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.premium-table th {
  text-align: left;
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 2px solid #e5e7eb;
  color: #111;
}

.premium-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  color: #374151;
  vertical-align: top;
}

.premium-table tr:hover td { background: #f9fafb; }
.premium-table th:first-child, .premium-table td:first-child { font-weight: 600; color: #111; }

/* ── BLOG / FAQ ── */
.blog-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  padding: 28px;
  margin-bottom: 20px;
}

.blog-card h2 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.blog-card p { color: #4b5563; font-size: 0.95rem; line-height: 1.6; }

.faq-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #111;
}

.faq-question:hover { color: #10b981; }
.faq-answer { display: none; padding: 0 22px 18px; color: #4b5563; font-size: 0.92rem; line-height: 1.7; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform 0.3s; font-size: 1rem; color: #10b981; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .cards-grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 20px; }
  .two-col-responsive { grid-template-columns: 1fr !important; }
  .page-hero-content h1 { font-size: 1.8rem; }
  .section-title { font-size: 1.5rem; }
  .cta-banner h2 { font-size: 1.4rem; }
  .cta-actions { flex-direction: column; align-items: center; gap: 12px; }
  .hero h1 { font-size: 2rem; }
  .testimonial { font-size: 0.95rem; padding: 16px 20px; }
}

/* ══════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════ */

/* ── 1. SCROLL-REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── 2. HERO ENTRANCE ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  animation: fadeUp 0.5s ease both;
  animation-delay: 0.1s;
}
.hero h1 {
  animation: fadeUp 0.6s ease both;
  animation-delay: 0.25s;
}
.hero p {
  animation: fadeUp 0.6s ease both;
  animation-delay: 0.4s;
}
.hero-sub {
  animation: fadeUp 0.6s ease both;
  animation-delay: 0.5s;
}
.hero-actions {
  animation: fadeUp 0.6s ease both;
  animation-delay: 0.65s;
}

/* ── 3. CARD HOVER ── */
.card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(16, 185, 129, 0.15);
  border-color: #10b981;
}

/* ── 5. NAV UNDERLINE ── */
.nav-links > li > a:not(.nav-cta) {
  position: relative;
}
.nav-links > li > a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: #10b981;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}
.nav-links > li > a:not(.nav-cta):hover::after {
  transform: scaleX(1);
}

/* ── 6. PULSING LIVE DOT ── */
@keyframes pulse-ring {
  0%   { transform: scale(0.85); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70%  { transform: scale(1);    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.85); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.live-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-ring 1.8s ease-in-out infinite;
  vertical-align: middle;
  margin-right: 6px;
  flex-shrink: 0;
}

.live-dot-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
