/* =============================================
   Cavers Investigations & Bailiff Services Inc.
   Static HTML Conversion — 2026
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 70px;
}

body {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 16px;
  line-height: 1.6;
  color: #ffffff;
  background-color: #0a0a08;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #c69c6d;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover, a:focus {
  color: #ddb88a;
}

ul {
  list-style: disc;
  margin-left: 20px;
}

/* --- Skip Link (accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 8px 16px;
  background: #c69c6d;
  color: #000;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  border-radius: 0 0 4px 4px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  color: #000;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(10, 10, 8, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(10, 10, 8, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 24px;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo {
  height: 50px;
  width: auto;
}

/* --- Desktop Navigation --- */
.main-nav {
  display: none;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  gap: 8px;
}

.nav-link {
  display: block;
  padding: 8px 20px;
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: #c69c6d;
}

/* --- Mobile Menu Button --- */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
  width: 44px;
  height: 44px;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-btn.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Mobile Navigation Overlay --- */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 70px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 99;
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-list {
  list-style: none;
  margin: 0;
  text-align: center;
}

.mobile-nav-link {
  display: block;
  padding: 16px 40px;
  font-family: 'Lato', sans-serif;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  transition: color 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
  color: #c69c6d;
}

/* --- Vertical Dot Navigation (Desktop) --- */
.dot-nav {
  display: none;
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
}

.dot-nav ul {
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-end;
}

.dot-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-direction: row-reverse;
}

.dot {
  display: block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.dot-link:hover .dot,
.dot-link.active .dot {
  background: #c69c6d;
  border-color: #c69c6d;
  transform: scale(1.2);
}

.dot-label {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0);
  transition: color 0.3s ease;
  white-space: nowrap;
}

.dot-link:hover .dot-label {
  color: rgba(255, 255, 255, 0.9);
}

/* --- Full-Page Sections --- */
.full-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.section-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
}

.section-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.section-home .section-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.section-contact {
  min-height: auto;
  flex-direction: column;
}

.section-content {
  position: relative;
  z-index: 2;
  padding: 100px 24px 80px;
  max-width: 900px;
  width: 100%;
}

.home-content {
  padding-left: 24px;
}

/* --- Section animations on scroll --- */
.section-content {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-content.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Typography --- */
h1 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 16px;
}

h2 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(22px, 4vw, 38px);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.tagline {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(18px, 3vw, 24px);
  font-style: italic;
  font-weight: 400;
  margin-bottom: 24px;
  color: #ffffff;
}

.text-gold {
  color: #c69c6d;
}

.text-md {
  font-size: clamp(14px, 2vw, 18px);
  line-height: 1.6;
  margin-bottom: 16px;
}

/* --- Content Box --- */
.content-box {
  border-left: 2px solid rgba(255, 255, 255, 0.5);
  padding: 12px 0 12px 20px;
  margin-bottom: 16px;
}

.content-box--wide {
  max-width: 100%;
}

.content-box--full {
  border-left: 2px solid rgba(255, 255, 255, 0.5);
  padding: 12px 0 12px 20px;
}

.content-box p {
  font-family: 'Lato', sans-serif;
  font-size: clamp(13px, 1.8vw, 16px);
  line-height: 1.6;
  margin-bottom: 12px;
}

.content-box ul {
  margin-left: 20px;
  margin-bottom: 8px;
}

.content-box li {
  font-family: 'Lato', sans-serif;
  font-size: clamp(13px, 1.8vw, 16px);
  line-height: 1.5;
  margin-bottom: 8px;
}

/* --- Two Column Layout --- */
.two-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.two-col--compact {
  margin-top: 8px;
}

/* --- Scroll Down Arrow --- */
.scroll-down {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  animation: bounceDown 2s infinite;
}

.scroll-down:hover {
  color: #c69c6d;
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-6px); }
  60% { transform: translateX(-50%) translateY(-3px); }
}

/* --- Contact Section --- */
.section-contact {
  display: flex;
  flex-direction: column;
  min-height: auto;
}

.contact-map {
  width: 100%;
  height: 400px;
  background: #1a1a18;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.contact-info {
  background: #1e1e1a;
  padding: 48px 24px;
  width: 100%;
}

.contact-info-inner {
  max-width: 600px;
}

.contact-info h2 {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 20px;
}

.contact-info .content-box p {
  margin-bottom: 16px;
}

.contact-info a {
  color: #c69c6d;
}

.contact-info a:hover {
  color: #ddb88a;
  text-decoration: underline;
}

/* --- Footer --- */
.site-footer {
  background: #000000;
  text-align: center;
  padding: 20px 24px;
}

.site-footer p {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  color: #999;
  margin: 0;
}

.site-footer a {
  color: #c69c6d;
}

.site-footer a:hover {
  color: #ddb88a;
  text-decoration: underline;
}

/* --- Privacy Policy Modal --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
}

.modal-content {
  position: relative;
  background: #ffffff;
  color: #222222;
  max-width: 700px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 40px 32px;
  border-radius: 4px;
  z-index: 1;
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

.modal-content h2 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 24px;
  color: #222;
  margin-bottom: 20px;
}

.modal-content h3 {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 18px;
  color: #333;
  margin: 24px 0 12px;
}

.modal-content p {
  margin-bottom: 14px;
  color: #444;
}

.modal-content ul {
  margin: 0 0 16px 24px;
}

.modal-content li {
  margin-bottom: 6px;
  color: #444;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 32px;
  color: #666;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s ease;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #222;
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

/* Tablets and up (768px+) */
@media (min-width: 768px) {
  .two-col {
    flex-direction: row;
    gap: 24px;
  }

  .col {
    flex: 1;
  }

  .contact-map {
    height: 500px;
  }

  .section-content {
    padding: 120px 40px 80px;
  }

  .home-content {
    padding-left: 40px;
  }
}

/* Desktop (931px+, matching original breakpoint) */
@media (min-width: 931px) {
  .main-nav {
    display: block;
  }

  .mobile-menu-btn {
    display: none;
  }

  .dot-nav {
    display: block;
  }

  .section-content {
    padding: 120px 60px 80px;
    max-width: 1100px;
    margin-left: 10%;
  }

  .home-content {
    padding-left: 60px;
    margin-left: 5%;
  }

  .content-box {
    padding: 20px 40px 12px 40px;
  }

  .content-box--full {
    padding: 20px 0 12px 40px;
  }

  .content-box li {
    margin-bottom: 20px;
  }

  .section-contact {
    flex-direction: row;
    min-height: 550px;
  }

  .contact-map {
    flex: 1;
    height: auto;
    min-height: 550px;
    position: relative;
  }

  .contact-map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .contact-info {
    width: 380px;
    flex-shrink: 0;
    padding: 60px 40px;
    display: flex;
    align-items: center;
  }

  .section-bg {
    background-attachment: fixed;
  }

  /* Reduce section bg fixed on touch/mobile browsers that don't support it well */
  @supports (-webkit-touch-callout: none) {
    .section-bg {
      background-attachment: scroll;
    }
  }
}

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
  .section-content {
    padding: 120px 80px 100px;
    max-width: 1200px;
    margin-left: 12%;
  }

  .home-content {
    margin-left: 8%;
  }

  .contact-map {
    min-height: 550px;
  }

  .contact-info {
    width: 440px;
    padding: 60px 50px;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-down {
    animation: none;
  }

  .section-content {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .mobile-nav-overlay,
  .modal-overlay {
    transition: none;
  }
}
