/* ================= styles.css ================= */
:root {
  --accent: #ff003c;
  --bg: #0a0a0a;
  --text: #f5f5f5;
  --card: #1a1a1a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  position: relative;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body.services-page {
  background-image: linear-gradient(rgba(10,10,10,0.55), rgba(10,10,10,0.55)), url('images/Drone-inspection-of-power-line.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
  pointer-events: none;
}

.background-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* Ensure main content sits above the background */
header {
  position: relative;
  z-index: 30;
}

section,
footer {
  position: relative;
  z-index: 2;
}

header {
  background: rgba(0,0,0,0.90);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--accent);
  position: relative;
  z-index: 2100;
}

header h1 {
  text-align: left;
  color: var(--accent);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.25rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 4px 10px rgba(0,0,0,0.6);
}

/* Logo link styling */
.logo-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.logo-link:hover {
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

@media (min-width: 900px) {
  header h1 {
    font-size: 3rem;
  }
}

nav button {
  margin-left: 10px;
  padding: 10px 15px;
  background: var(--accent);
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 5px;
}

/* Style for header links that look like buttons */
.nav-link {
  display: inline-block;
  margin-left: 10px;
  padding: 10px 15px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 5px;
}
.nav-link:hover {
  opacity: 0.95;
}

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 8px;
  margin-left: auto;
  position: relative;
  z-index: 100;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--text);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Full-screen backdrop shown when mobile nav is open.
   z-index: 2050 = above page content (z:2) but below header (z:2100) */
#nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2050;
}
#nav-backdrop.visible {
  display: block;
}

/* Phones and tablets — hamburger mode */
@media (max-width: 1100px) {
  .hamburger {
    display: flex;
  }

  #main-nav {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 84px;
    left: 12px;
    right: 12px;
    max-height: calc(100vh - 108px);
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.95);
    padding: 16px 20px;
    border: 1px solid #333;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    z-index: 2200;
    gap: 10px;
  }

  #main-nav.open {
    display: flex;
  }

  #main-nav .nav-link,
  #main-nav button {
    margin-left: 0;
    width: 100%;
    text-align: left;
  }

  header {
    flex-wrap: wrap;
    position: sticky;
    top: 0;
  }
}

.hero {
  padding: 100px 20px 90px;
  text-align: center;
}

.hero h2 {
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: 0.08em;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 0 8px 30px rgba(0,0,0,0.55);
}

.hero p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.15rem;
  line-height: 1.8;
  color: #f3f3f3;
  text-shadow: 0 3px 12px rgba(0,0,0,0.45);
}

.trust-strip {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.trust-chip {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.9;
  font-size: 1.05rem;
}

.about-content p {
  margin-bottom: 20px;
  color: #e8e8e8;
}

.about-content a {
  color: var(--accent);
  text-decoration: none;
  font-weight: bold;
}

.about-content a:hover {
  text-decoration: underline;
}

.about-content strong {
  color: var(--accent);
  font-weight: bold;
}

.about-content em {
  font-style: italic;
  color: #f5f5f5;
}

.section {
  padding: 50px 20px;
  max-width: 1100px;
  margin: auto;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  background: var(--card);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #333;
}

.cards a.card {
  color: var(--text);
  text-decoration: none;
}

.cards a.card p {
  color: var(--text);
}

.card h3 {
  color: var(--accent);
  margin-bottom: 10px;
}

/* MEDIA */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.slideshow {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #333;
}

.slideshow img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: slideshow 12s infinite;
}

.slideshow img:nth-child(1) { animation-delay: 0s; }
.slideshow img:nth-child(2) { animation-delay: 3s; }
.slideshow img:nth-child(3) { animation-delay: 6s; }
.slideshow img:nth-child(4) { animation-delay: 9s; }

@keyframes slideshow {
  0%, 22% { opacity: 1; }
  25%, 100% { opacity: 0; }
}

video, img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #333;
}

.video-player {
  position: relative;
  width: 100%;
}

.video-player video {
  display: block;
  width: 100%;
}

.video-controls {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  justify-content: center;
}

.video-controls button {
  padding: 10px 20px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
}

.video-controls button:hover {
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

/* Responsive YouTube preview/embed */
.video-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #333;
  background: #000;
}

.video-embed iframe,
.video-embed .video-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-preview img.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-preview {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-btn {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  pointer-events: none;
}

/* Placeholder video container */
.placeholder-video {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  border: 1px dashed #555;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.placeholder-video p {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #888;
  font-size: 18px;
  text-align: center;
}

footer {
  text-align: center;
  padding: 20px;
  border-top: 1px solid #333;
  margin-top: 40px;
}

/* Email link styling */
.email-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dashed var(--accent);
}
.email-link:hover {
  opacity: 0.8;
}

.response-promise {
  margin-top: 8px;
  margin-bottom: 10px;
  color: #ffd27a;
  font-weight: bold;
}

.faq-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.faq-item {
  background: rgba(18, 18, 18, 0.88);
  border: 1px solid #333;
  border-radius: 10px;
  padding: 16px;
}

.faq-item h3 {
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.faq-item p {
  color: #ececec;
  line-height: 1.7;
}

/* Contact form styling */
.contact-form {
  max-width: 500px;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 24px;
  background: rgba(12, 12, 12, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  backdrop-filter: blur(6px);
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 8px;
  color: var(--accent);
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  padding: 12px;
  background: #1a1a1a;
  border: 1px solid #333;
  color: var(--text);
  border-radius: 5px;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 5px rgba(255, 0, 60, 0.3);
}

.form-help {
  color: #ccc;
  margin-bottom: 16px;
  font-size: 14px;
}

.form-status {
  min-height: 24px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.5;
}

.form-status.pending {
  color: #f3c969;
}

.form-status.success {
  color: #7ee081;
}

.form-status.warning {
  color: #ffd27a;
}

.form-status.error {
  color: #ff8e8e;
}

.submit-btn {
  padding: 12px 20px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: opacity 0.3s ease;
}

.submit-btn:hover {
  opacity: 0.9;
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.floating-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff003c, #ff6a00);
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .floating-cta {
    right: 12px;
    bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible,
  .floating-cta,
  .floating-cta:hover {
    transition: none;
    transform: none;
  }
}