/* ------------------------------
   GLOBAL STRUCTURAL FIX
------------------------------ */
html {
    height: 100%;
}

/* ------------------------------
   GLOBAL THEME
------------------------------ */
:root {
  --primary: #0038A8;   
  --secondary: #E0B44B;    
  --text-dark: #1C1C1C;    
  --text-light: #555555;   
  --background-light: #F9F9F9; 
  --header-height: 80px;
  --font: "Inter", Arial, Helvetica, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--background-light); 
  min-height: 100vh; 
  margin: 0; 
  display: flex; 
  flex-direction: column; 
}

main {
    flex-grow: 1; 
}

/* ------------------------------
   HEADER
------------------------------ */
header {
  background-color: white;
  padding: 0 40px;
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); 
}

.left-section img {
  height: 80px;
  width: auto;
}

.right-section {
  display: flex;
  gap: 60px;
}

header a {
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  position: relative;
  color: var(--primary);
}

header a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: -3px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

header a:hover::after {
  width: 100%;
}

header a:hover {
  color: #001f5b;
}

/* ------------------------------
   CONTENT WRAPPER
------------------------------ */
.content-wrapper {
    max-width: 900px;
    margin: 60px auto; 
    padding: 40px; 
    background-color: white;
    border-radius: 12px; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); 
}

/* ------------------------------
   TYPOGRAPHY
------------------------------ */
h1 {
  font-size: 40px;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 25px; 
  padding: 0; 
}

h2 {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary);
    margin: 25px 0 10px;
    padding: 0; 
}

h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    padding: 0;
}

p, ul, form, label {
  font-size: 18px;
  padding: 0; 
  margin-bottom: 25px;
  color: var(--text-light);
}

ul {
    padding-left: 20px;
}

/* ------------------------------
   FORMS
------------------------------ */
form {
  max-width: 700px;
  padding: 0; 
}

input, textarea {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  margin-top: 5px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

input[type="submit"] {
  background: var(--primary);
  color: white;
  font-weight: bold;
  border: none;
  padding: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s ease;
}

input[type="submit"]:hover {
  background: #001f5b;
}

/* ------------------------------
   VIDEO OVERLAY STYLES (BRIGHT & TOP-CENTERED)
------------------------------ */
.video-container {
  position: relative; 
  width: 100%;
  height: calc(100vh - var(--header-height)); 
  min-height: 550px;
  overflow: hidden;
  background-color: #060c18; 
  margin-bottom: 0; 
}

.video-container video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
  opacity: 1.0; /* Full brightness enabled */
  transition: opacity 0.6s ease-in-out; /* Blends playlist track changes smoothly */
}

.video-overlay {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2; 
  display: flex; 
  flex-direction: column;
  justify-content: flex-start; /* Aligns content cleanly toward the top */
  align-items: center; 
  text-align: center;
  padding: 60px 20px 0 20px; /* Pushes content 60px below the header */
  background-color: transparent; 
}

.video-overlay h1 {
  padding: 0; 
  margin: 0 0 20px 0;
  color: white; 
  font-size: 56px; 
  font-weight: 800; 
  /* Deep text shadow preserves legibility against clear/bright skies */
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85); 
  max-width: 950px;
  line-height: 1.2;
}

/* ------------------------------
   CALL TO ACTION BUTTON 
------------------------------ */
.cta-button {
    display: inline-block;
    background-color: var(--secondary);
    color: white;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 8px;
    margin-top: 10px;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #B3862D;
    text-decoration: none;
}

/* ------------------------------
   PRACTICE AREA GRID STYLES
------------------------------ */
.practice-areas-grid {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.practice-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 0;
    transition: all 0.3s ease;
    flex: 1;
}

.practice-item:hover {
    box-shadow: 0 6px 15px rgba(0, 56, 168, 0.1); 
    transform: translateY(-2px);
}

.practice-item h2 {
    color: var(--secondary);
    margin-top: 0;
    margin-bottom: 5px;
    padding: 0;
    font-size: 22px;
}

.practice-item p {
    padding: 0;
    margin-bottom: 10px;
}

/* ------------------------------
   TRUST SIGNALS SECTION
------------------------------ */
.trust-signals-container {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    text-align: center;
}

.trust-signal-card {
    flex: 1;
    padding: 20px;
    border-radius: 8px;
    background-color: var(--background-light);
    border: 1px solid #e9e9e9;
}

/* ------------------------------
   FOOTER
------------------------------ */
.main-footer {
  background-color: var(--primary); 
  color: white;
  padding: 40px 40px;
  margin-top: 0; 
  width: 100%;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px; 
  margin: 0 auto;
}

.footer-section {
  flex-basis: 30%;
}

.main-footer h3 {
  color: white;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  padding: 0; 
}

.main-footer p, .main-footer a, .main-footer ul, .footer-section li {
  color: #c0c0c0;
  font-size: 16px;
  text-decoration: none;
  margin-bottom: 8px;
  padding: 0; 
  list-style-type: none;
}

.main-footer a:hover {
  text-decoration: underline;
  color: white;
}

.footer-section.legal {
  flex-basis: 40%; 
}

.footer-section .disclaimer {
  font-size: 14px;
  line-height: 1.4;
  margin-top: 15px;
  color: #c0c0c0 !important; 
}

/* ------------------------------
   MOBILE RESPONSIVE
------------------------------ */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    height: auto;
    padding: 15px 20px;
    align-items: flex-start;
  }

  .right-section {
    flex-direction: column;
    width: 100%;
    gap: 15px;
    margin-top: 10px;
  }

  .content-wrapper {
    padding: 20px;
    margin-top: 20px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 24px;
    margin-top: 15px;
  }
  
  .video-container {
    height: 55vh;
  }

  .video-overlay {
    padding-top: 30px; 
  }

  .video-overlay h1 {
    font-size: 32px;
  }

  .practice-areas-grid,
  .trust-signals-container {
      flex-direction: column;
  }
  
  .practice-areas-grid .practice-item,
  .trust-signals-container .trust-signal-card {
      flex: none !important;
      width: 100%;
  }

  .footer-content {
    flex-direction: column;
  }
  
  .footer-section {
    flex-basis: 100%;
    margin-bottom: 30px;
  }
  
  .main-footer {
    padding: 30px 20px;
  }
}