/*
Theme Name: The Law Guide
Theme URI: https://thelawguide.com
Author: The Law Guide
Author URI: https://thelawguide.com
Description: A professional legal marketing block theme with the Quiet Authority design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: the-law-guide
*/

/* =========== RESET =========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 75px; }
body { font-family: 'Outfit', sans-serif; color: #333; line-height: 1.6; background: #ffffff; }
.wp-site-blocks > footer { margin-block-start: 0; }
.wp-site-blocks { padding-top: 0 !important; }
.wp-site-blocks > * + * { margin-block-start: 0 !important; }

/* =========== HEADER =========== */
.tlg-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: #1a1a2e; border-bottom: 1px solid rgba(201,168,76,0.15);
  padding: 0 5%; height: 70px;
  display: flex; align-items: center; justify-content: space-between;
  transition: box-shadow 0.3s ease;
}
.tlg-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.4); }
.tlg-header-logo {
  display: flex; align-items: center; text-decoration: none;
}
.tlg-header-logo img {
  height: 32px; width: auto;
}
.tlg-header-cta {
  background: #c9a84c; color: #1a1a2e; font-weight: 600;
  padding: 10px 28px; border-radius: 6px; text-decoration: none; font-size: 0.9rem;
  transition: all 0.3s ease; letter-spacing: 0.5px;
}
.tlg-header-cta:hover { background: #d4b96a; transform: translateY(-1px); box-shadow: 0 4px 15px rgba(201,168,76,0.3); }

/* =========== HERO =========== */
.tlg-hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 120px 5% 60px; overflow: hidden;
}
.tlg-hero-video {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.tlg-hero-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(26,26,46,0.78); z-index: 1;
}
.tlg-hero-content {
  position: relative; z-index: 2; display: grid;
  grid-template-columns: 1fr 420px; gap: 60px; align-items: center;
  max-width: 1200px; margin: 0 auto; width: 100%;
}
.tlg-hero-text h1 {
  font-family: 'DM Serif Display', serif; font-size: 3.2rem; color: #ffffff;
  line-height: 1.15; margin-bottom: 20px;
}
.tlg-hero-subtitle {
  font-size: 1.15rem; color: #e0ddd6; line-height: 1.7;
  margin-bottom: 30px; max-width: 520px; font-weight: 300;
}

/* =========== HERO FORM =========== */
.tlg-hero-form {
  background: rgba(26,26,46,0.45); border: 2px solid #c9a84c;
  border-radius: 4px; padding: 40px 36px; backdrop-filter: blur(8px);
}
.tlg-form-group { margin-bottom: 20px; }
.tlg-form-label {
  display: block; color: #ffffff; font-size: 0.9rem; font-weight: 600;
  margin-bottom: 8px; letter-spacing: 0.3px;
}
.tlg-form-group input, .tlg-form-group textarea {
  width: 100%; padding: 16px 18px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 4px;
  color: #ffffff; font-family: 'Outfit', sans-serif; font-size: 1rem;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.tlg-form-group input::placeholder, .tlg-form-group textarea::placeholder { color: rgba(255,255,255,0.4); }
.tlg-form-group input:focus, .tlg-form-group textarea:focus {
  outline: none; border-color: #c9a84c; background: rgba(255,255,255,0.12);
}
.tlg-form-group textarea { resize: vertical; min-height: 100px; }
.tlg-btn-gold {
  width: 100%; padding: 18px 32px; background: #c9a84c; color: #1a1a2e;
  border: none; border-radius: 4px; font-family: 'Outfit', sans-serif; font-size: 1.05rem;
  font-weight: 700; cursor: pointer; transition: all 0.3s ease;
  letter-spacing: 0.5px; min-height: 54px; margin-top: 8px;
}
.tlg-btn-gold:hover { background: #d4b96a; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(201,168,76,0.35); }
.tlg-form-disclaimer { color: #9a9a9a; font-size: 0.75rem; margin-top: 12px; text-align: center; }

/* =========== BADGE BAR =========== */
.tlg-badge-bar {
  background: #1a1a2e; padding: 40px 5%;
  border-top: 2px solid #c9a84c; border-bottom: 2px solid #c9a84c;
}
.tlg-badge-bar-inner {
  display: flex; justify-content: center; gap: 24px; flex-wrap: wrap;
  max-width: 1200px; margin: 0 auto;
}
.tlg-badge-item {
  display: flex; align-items: center; gap: 14px;
  background: transparent; border: 2px solid #c9a84c;
  border-radius: 60px; padding: 14px 36px 14px 20px; min-width: 220px;
  transition: all 0.3s ease; backdrop-filter: blur(8px);
}
.tlg-badge-item:hover {
  background: rgba(201,168,76,0.1);
  transform: translateY(-2px); box-shadow: 0 6px 20px rgba(201,168,76,0.15);
}
.tlg-badge-icon {
  width: 48px; height: 48px; background: #c9a84c; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(201,168,76,0.3);
}
.tlg-badge-icon svg { width: 22px; height: 22px; fill: #1a1a2e; }
.tlg-badge-info { display: flex; flex-direction: column; }
.tlg-badge-info strong {
  font-family: 'DM Serif Display', serif; font-size: 1.3rem; color: #c9a84c;
  line-height: 1.2;
}
.tlg-badge-info span { font-size: 0.8rem; color: #e0ddd6; font-weight: 400; }

/* =========== SECTION BASE =========== */
.tlg-section {
  padding: 100px 5%;
}
.tlg-section-inner {
  max-width: 1200px; margin: 0 auto;
}
.tlg-section-heading {
  font-family: 'DM Serif Display', serif; font-size: 2.4rem; color: #1a1a2e;
  margin-bottom: 20px; line-height: 1.2;
}
.tlg-gold-accent span { color: #c9a84c; }
.tlg-section-subtext {
  font-size: 1.05rem; color: #666; line-height: 1.7; margin-bottom: 36px;
  max-width: 600px;
}
.tlg-btn-section {
  display: inline-block; padding: 16px 40px; background: #c9a84c;
  color: #1a1a2e; font-weight: 700; font-size: 1rem; border-radius: 8px;
  text-decoration: none; transition: all 0.3s ease; border: none; cursor: pointer;
  letter-spacing: 0.5px; min-height: 52px;
}
.tlg-btn-section:hover { background: #d4b96a; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(201,168,76,0.3); }
.tlg-btn-section-outline {
  display: inline-block; padding: 16px 40px; background: transparent;
  color: #c9a84c; font-weight: 700; font-size: 1rem; border-radius: 8px;
  text-decoration: none; transition: all 0.3s ease; border: 2px solid #c9a84c;
  cursor: pointer; letter-spacing: 0.5px; min-height: 52px;
}
.tlg-btn-section-outline:hover { background: #c9a84c; color: #1a1a2e; }

/* =========== ACCIDENT SECTION =========== */
.tlg-accident-section { background: #ffffff; }
.tlg-accident-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.tlg-accident-img {
  border-radius: 12px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border: 2px solid rgba(201,168,76,0.2); transition: all 0.3s ease;
}
.tlg-accident-img:hover { border-color: #c9a84c; box-shadow: 0 12px 40px rgba(201,168,76,0.15); }
.tlg-accident-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tlg-accident-text ul {
  list-style: none; margin-bottom: 32px;
}
.tlg-accident-text ul li {
  padding: 8px 0 8px 32px; position: relative; color: #555; font-size: 1rem;
}
.tlg-accident-text ul li::before {
  content: ''; position: absolute; left: 0; top: 14px;
  width: 18px; height: 18px; background: #c9a84c; border-radius: 50%;
}

/* =========== HOW IT WORKS =========== */
.tlg-how-section { background: #f7f7f7; }
.tlg-how-banner {
  position: relative; border-radius: 12px; overflow: hidden; margin-bottom: 50px;
  height: 260px;
}
.tlg-how-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tlg-how-banner-overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(26,26,46,0.7); display: flex; align-items: center; justify-content: center;
}
.tlg-how-banner-overlay h2 {
  font-family: 'DM Serif Display', serif; font-size: 2.6rem; color: #c9a84c;
}
.tlg-steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
  margin-bottom: 40px;
}
.tlg-step-card {
  background: #ffffff; border-radius: 12px; padding: 36px 28px;
  border-top: 4px solid #c9a84c; box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  transition: all 0.3s ease; text-align: center;
}
.tlg-step-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,0.1); }
.tlg-step-number {
  width: 50px; height: 50px; background: #c9a84c; color: #1a1a2e;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: 'DM Serif Display', serif; font-size: 1.4rem; font-weight: 700;
  margin: 0 auto 20px;
}
.tlg-step-card h4 { font-family: 'DM Serif Display', serif; font-size: 1.2rem; margin-bottom: 12px; color: #1a1a2e; }
.tlg-step-card p { color: #666; font-size: 0.95rem; line-height: 1.6; }

/* =========== INSURANCE SECTION =========== */
.tlg-insurance-section { background: #1a1a2e; color: #ffffff; }
.tlg-insurance-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
}
.tlg-insurance-img-stack { display: flex; flex-direction: column; gap: 24px; }
.tlg-insurance-img {
  border-radius: 12px; overflow: hidden; border: 2px solid rgba(201,168,76,0.25);
  transition: all 0.3s ease;
}
.tlg-insurance-img:hover { border-color: #c9a84c; }
.tlg-insurance-img img { width: 100%; display: block; object-fit: cover; }
.tlg-insurance-text h2 {
  font-family: 'DM Serif Display', serif; font-size: 2.2rem; color: #ffffff;
  margin-bottom: 20px; line-height: 1.2;
}
.tlg-insurance-text h2 span { color: #c9a84c; }
.tlg-insurance-text p { color: #e0ddd6; font-size: 1.05rem; line-height: 1.7; margin-bottom: 16px; }
.tlg-insurance-list { list-style: none; margin-bottom: 32px; }
.tlg-insurance-list li {
  padding: 10px 0 10px 36px; position: relative; color: #e0ddd6;
  font-size: 1rem;
}
.tlg-insurance-list li::before {
  content: ''; position: absolute; left: 0; top: 16px;
  width: 20px; height: 2px; background: #c9a84c;
}

/* =========== TESTIMONIALS =========== */
.tlg-testimonials-section { background: #f7f7f7; }
.tlg-testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
  margin-bottom: 40px;
}
.tlg-testimonial-card {
  background: #ffffff; border-radius: 12px; padding: 32px 28px;
  border-left: 4px solid #c9a84c; box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}
.tlg-testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 12px 25px rgba(0,0,0,0.1); }
.tlg-stars { color: #c9a84c; font-size: 1.2rem; margin-bottom: 16px; letter-spacing: 2px; }
.tlg-testimonial-card blockquote {
  font-size: 1rem; color: #555; line-height: 1.7; margin-bottom: 20px; font-style: italic;
}
.tlg-client {
  font-weight: 700; color: #1a1a2e; font-size: 0.9rem;
}
.tlg-client span { color: #9a9a9a; font-weight: 400; }

/* =========== FINAL CTA =========== */
.tlg-final-cta {
  background: #1a1a2e; padding: 100px 5%;
  text-align: center;
}
.tlg-final-cta-inner { max-width: 550px; margin: 0 auto; }
.tlg-final-cta h2 {
  font-family: 'DM Serif Display', serif; font-size: 2.4rem; color: #ffffff;
  margin-bottom: 8px; line-height: 1.2;
}
.tlg-final-cta h2 span { color: #c9a84c; }
.tlg-cta-sub { color: #9a9a9a; margin-bottom: 36px; font-size: 1rem; }
.tlg-final-cta .tlg-form-group input,
.tlg-final-cta .tlg-form-group textarea {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  color: #ffffff;
}

/* =========== FOOTER =========== */
.tlg-footer {
  background: #0f0f1a; padding: 40px 5% 30px;
  text-align: center; border-top: 1px solid rgba(201,168,76,0.15);
}
.tlg-footer-logo {
  margin-bottom: 20px;
}
.tlg-footer-nav { display: flex; justify-content: center; gap: 28px; margin-bottom: 24px; flex-wrap: wrap; }
.tlg-footer-nav a { color: #9a9a9a; text-decoration: none; font-size: 0.85rem; transition: color 0.3s; }
.tlg-footer-nav a:hover { color: #c9a84c; }
.tlg-footer-disclaimer {
  color: #9a9a9a; font-size: 0.75rem; line-height: 1.6;
  max-width: 700px; margin: 0 auto; text-align: center;
}

/* =========== ANIMATIONS =========== */
.tlg-fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.tlg-fade-up.visible { opacity: 1; transform: translateY(0); }
.tlg-fade-up-d1 { transition-delay: 0.1s; }
.tlg-fade-up-d2 { transition-delay: 0.2s; }
.tlg-fade-up-d3 { transition-delay: 0.3s; }

@keyframes heroEntrance {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.tlg-hero-animate { animation: heroEntrance 0.8s ease forwards; }
.tlg-hero-animate-d1 { animation-delay: 0.2s; opacity: 0; }
.tlg-hero-animate-d2 { animation-delay: 0.4s; opacity: 0; }

/* =========== RESPONSIVE =========== */
@media (max-width: 1024px) {
  .tlg-hero-content { grid-template-columns: 1fr; gap: 40px; }
  .tlg-hero-text h1 { font-size: 2.6rem; }
  .tlg-hero-form { max-width: 500px; }
  .tlg-accident-grid, .tlg-insurance-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .tlg-section { padding: 60px 6%; }
  .tlg-header-cta { padding: 8px 16px; font-size: 0.75rem; }
  .tlg-hero { min-height: auto; padding: 100px 6% 40px; }
  .tlg-hero-content { display: flex; flex-direction: column; }
  .tlg-hero-text { display: contents; }
  .tlg-hero-text h1 { font-size: 2rem; order: 1; text-align: center; }
  .tlg-hero-subtitle { font-size: 1rem; order: 3; margin-top: 24px; }
  .tlg-hero-animate.tlg-hero-animate-d2 { order: 2; }
  .tlg-section-heading { font-size: 1.8rem; }
  .tlg-steps-grid { grid-template-columns: 1fr; }
  .tlg-testimonials-grid { grid-template-columns: 1fr; }
  .tlg-badge-bar-inner { gap: 12px; }
  .tlg-badge-item { padding: 14px 20px 14px 100px; flex: 1 1 100%; width: 100%; min-width: 0; max-width: none; box-sizing: border-box; }
  .tlg-badge-icon { width: 40px; height: 40px; }
  .tlg-badge-info strong { font-size: 1.1rem; }
  .tlg-how-banner { height: 180px; }
  .tlg-how-banner-overlay h2 { font-size: 1.8rem; }
  .tlg-insurance-img-stack { flex-direction: row; }
  .tlg-insurance-img { flex: 1; }
  .tlg-final-cta { padding: 60px 6%; }
}
@media (max-width: 480px) {
  .tlg-hero-text h1 { font-size: 1.7rem; }
  .tlg-header-logo img { height: 26px; }
  .tlg-badge-item { flex: 1 1 100%; width: 100%; }
  .tlg-insurance-img-stack { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}