
/*
Theme Name: Adam Williams Esq. Legal Theme
Description: Professional WordPress theme for Adam Williams, Esq.'s legal website. Features authoritative design with deep navy blue, charcoal gray, white, and metallic gold color scheme.
Author: Custom Legal Theme
Version: 1.0
License: GPL v2 or later
Text Domain: adamwilliams-legal
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700;900&family=Lato:wght@300;400;700;900&display=swap');

/* CSS Variables for Color Palette */
:root {
  --primary-navy: #0A2240;
  --charcoal-gray: #333333;
  --light-gray: #666666;
  --background-gray: #f8f9fa;
  --white: #ffffff;
  --gold: #D4AF37;
  --gold-hover: #B8941F;
  --font-heading: 'Merriweather', serif;
  --font-body: 'Lato', sans-serif;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal-gray);
  background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--primary-navy);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--gold-hover);
}

/* Container and Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section-light {
  background-color: var(--white);
}

.section-dark {
  background-color: var(--background-gray);
}

.section-navy {
  background-color: var(--primary-navy);
  color: var(--white);
}

.section-navy h1,
.section-navy h2,
.section-navy h3,
.section-navy h4,
.section-navy h5,
.section-navy h6 {
  color: var(--white);
}

/* Header Styles */
.site-header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(10, 34, 64, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary-navy);
  text-decoration: none;
}

.main-navigation {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-menu li a {
  color: var(--charcoal-gray);
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
  color: var(--gold);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-navy);
  cursor: pointer;
}

/* Video Header */
.video-header {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 1080px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-navy);
}

.video-background {
  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: -2;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 34, 64, 0.7);
  z-index: -1;
}

.hero-content {
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1 {
  color: var(--white);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Video Header Responsive */
@media (max-width: 768px) {
  .video-header {
    height: 100vh;
    min-height: 500px;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .video-header {
    min-height: 400px;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 30px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
}

.btn-primary {
  background-color: var(--gold);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--gold-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.btn-outline:hover {
  background-color: var(--gold);
  color: var(--white);
}

.btn-large {
  padding: 20px 40px;
  font-size: 1.1rem;
}

/* Interactive Case Evaluator Section */
.case-evaluator {
  background-color: var(--primary-navy);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}

.case-evaluator h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.case-evaluator p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Cards */
.card {
  background-color: var(--white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card h3 {
  margin-bottom: 1rem;
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 1rem;
}

/* Blog Posts Section */
.blog-posts {
  padding: 80px 0;
}

.blog-posts h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.blog-post-card {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.blog-post-card:hover {
  transform: translateY(-5px);
}

.blog-post-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.blog-post-content {
  padding: 1.5rem;
}

.blog-post-meta {
  color: var(--light-gray);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* About Page Styles */
.about-hero {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--charcoal-gray) 100%);
  color: var(--white);
  text-align: center;
  padding: 120px 0 80px;
}

.about-hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.about-content {
  padding: 80px 0;
}

.about-profile {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
}

.profile-image {
  width: 100%;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Shop Page Styles */
.shop-hero {
  background-color: var(--background-gray);
  text-align: center;
  padding: 120px 0 80px;
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce ul.products li.product {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-5px);
}

/* AI Analysis Page */
.ai-analysis-hero {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--gold) 100%);
  color: var(--white);
  text-align: center;
  padding: 120px 0 80px;
}

.ai-analysis-hero h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.ai-analysis-hero h2 {
  color: var(--white);
  font-weight: 300;
  margin-bottom: 2rem;
}

.coming-soon-content {
  text-align: center;
  padding: 80px 0;
}

.telegram-cta {
  background-color: var(--background-gray);
  padding: 60px 0;
  text-align: center;
}

/* Footer */
.site-footer {
  background-color: var(--primary-navy);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    display: flex;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .case-evaluator h2 {
    font-size: 2rem;
  }

  .about-profile {
    grid-template-columns: 1fr;
    text-align: center;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.8rem; }
  h3 { font-size: 1.3rem; }

  .section {
    padding: 40px 0;
  }

  .case-evaluator {
    padding: 60px 0;
  }

  .blog-posts {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .btn {
    padding: 12px 25px;
  }

  .btn-large {
    padding: 15px 30px;
    font-size: 1rem;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* Enhanced Bio Image Styling */
.profile-image-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(10, 34, 64, 0.15);
    transition: all 0.3s ease;
}

.profile-image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(10, 34, 64, 0.25);
}

.profile-image-container .profile-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: all 0.3s ease;
}

.profile-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(10, 34, 64, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.profile-image-container:hover::before {
    opacity: 1;
}

/* Enhanced About Profile Layout */
.about-profile {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}

/* Elementor Pro Compatibility */
.elementor-page .container,
.elementor-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.elementor-widget-heading .elementor-heading-title {
    color: var(--primary-navy);
    font-family: var(--font-heading);
}

.elementor-widget-text-editor {
    color: var(--charcoal-gray);
    font-family: var(--font-body);
}

.elementor-button {
    background: var(--gold) !important;
    color: var(--primary-navy) !important;
    border: none !important;
    padding: 12px 30px !important;
    border-radius: 5px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
}

.elementor-button:hover {
    background: var(--primary-navy) !important;
    color: var(--gold) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(10, 34, 64, 0.3) !important;
}

.elementor-section {
    padding: 60px 0 !important;
}

.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: 1200px !important;
}

/* Elementor Header/Footer Override */
.elementor-location-header,
.elementor-location-footer {
    background: var(--primary-navy);
    color: white;
}

.elementor-location-header .elementor-nav-menu--main .elementor-item {
    color: white !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: color 0.3s ease !important;
}

.elementor-location-header .elementor-nav-menu--main .elementor-item:hover {
    color: var(--gold) !important;
}

/* SEO-Friendly Image Loading */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Enhanced Card Styling for Better SEO Structure */
.card {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card h3 {
    color: var(--primary-navy);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.card p {
    color: var(--charcoal-gray);
    line-height: 1.6;
    flex-grow: 1;
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus States for Better Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* Skip Link for Screen Readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-navy);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 3px;
    z-index: 100000;
}

.skip-link:focus {
    top: 6px;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 992px) {
    .about-profile {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .profile-image-container {
        max-width: 300px;
    }
    
    .elementor-section {
        padding: 40px 0 !important;
    }
}

@media (max-width: 768px) {
    .profile-image-container {
        max-width: 280px;
    }
    
    .card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .profile-image-container {
        max-width: 250px;
    }
    
    .elementor-section {
        padding: 30px 0 !important;
    }
    
    .card {
        padding: 1rem;
    }
}
