/* styles.css – Mobile-Optimized Version */
:root {
  --blue: #0055AA;
  --light: #f5f5f5;
  --dark: #333;
  --gold: #FEC100;
}

body { 
  font-family: system-ui, sans-serif; 
  line-height: 1.6; 
  color: var(--dark); 
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

.skip-link { 
  position: absolute; 
  top: -40px; 
  left: 6px; 
  background: var(--dark); 
  color: #fff; 
  padding: 8px; 
  z-index: 1000; 
}
.skip-link:focus { top: 6px; }

.container { 
  max-width: 1200px; 
  margin: 0 auto; 
  padding: 0 1rem; 
}

/* HEADER & NAVIGATION */
header { 
  background: var(--blue); 
  color: #fff; 
  position: sticky; 
  top: 0; 
  z-index: 99; 
}

header nav { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  padding: 1rem; 
  flex-wrap: wrap;
}

.logo { 
  font-size: 1.8rem; 
  font-weight: bold; 
  margin: 0;
  display: flex;
  align-items: center;
}

nav ul { 
  display: flex; 
  gap: 1.5rem; 
  list-style: none; 
  margin: 0;
  padding: 0;
}

nav a { 
  color: #fff; 
  text-decoration: none; 
}

nav a:focus, nav a:hover { 
  text-decoration: underline; 
}

.phone a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

nav a, .cta {
  text-decoration: underline;
  text-underline-offset: 2px;
}

h1 figure { 
  position: absolute; 
  display: block; 
  padding: 0; 
  margin: 0 1rem 0 0; 
  width: 3.6rem; 
  height: 3.6rem; 
  background: transparent url(/assets/images/clientLogo-150x150.png) center no-repeat; 
  background-size: contain; 
}

h1 span { 
  position: relative; 
  display: inline-block; 
  padding-left: 4.333rem; 
  margin: auto; 
  font-family: inherit; 
  font-size: inherit; 
  font-weight: inherit; 
  vertical-align: middle; 
}

/* HERO SECTION */
.hero { 
  background: var(--blue); 
  color: #fff; 
  padding: 3rem 0; 
  text-align: center; 
}

.hero h2 { 
  font-size: 2.5rem; 
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero img { 
  max-width: 450px;
  width: 100%;
  height: auto;
  border-radius: 8px; 
  margin: 1rem 0; 
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 1.5rem auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.cta { 
  background: var(--gold); 
  color: var(--dark); 
  padding: 1rem 2rem; 
  font-weight: bold; 
  border-radius: 4px; 
  text-decoration: none; 
  display: inline-block;
  font-size: 1.1rem;
}

/* SECTIONS */
.section { 
  padding: 3rem 0; 
}

.bg-light { 
  background: var(--light); 
}

.grid { 
  display: grid; 
  gap: 2rem; 
}

article h3 { 
  color: var(--blue); 
}

/* PRACTICE AREAS GRID */
#practice .grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

#practice .grid > article {
  grid-column: span 1;
}

#practice .specialties {
  grid-column: 1 / -1;
  margin-top: 2rem;
}

/* SPECIALTIES */
.specialties[role="list"] {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 2rem 1rem;
  background: #003366;
  border-radius: 12px;
  text-align: center;
  margin: 2rem 0;
}

.specialties-heading {
  grid-column: 1 / -1;
  margin: 0 0 1rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.specialties [role="listitem"] {
  position: relative;
  background: #0055aa;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  height: 120px;
}

.specialties [role="listitem"]::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.7;
  transition: transform 0.3s ease;
}

.specialties [role="listitem"]:nth-child(2)::before { 
  background-image: url('/assets/images/58190-arrest-jbhfgkujyg285366138-1-a4e41d79.jpg'); 
}
.specialties [role="listitem"]:nth-child(3)::before { 
  background-image: url('/assets/images/58191-plea-285366138-1-f639707d.jpg'); 
}
.specialties [role="listitem"]:nth-child(4)::before { 
  background-image: url('/assets/images/58189-stop-28536lkjhl6138-1-0bcd63ba.jpg'); 
}
.specialties [role="listitem"]:nth-child(5)::before { 
  background-image: url('/assets/images/58187-white-collar-2853661jj38-1-e418ce50.jpg'); 
}

.specialties [role="listitem"] span {
  position: relative;
  display: block;
  padding: 0.75rem 1.25rem;
  margin-top: 60px;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  text-align: left;
  text-transform: uppercase;
  line-height: 1.3;
  word-wrap: break-word;
  z-index: 1;
}

.specialties [role="listitem"]:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.3);
}

.specialties [role="listitem"]:hover::before {
  transform: scale(1.05);
}

/* RESULTS */
.results-list { 
  list-style: none;
  padding: 0;
  margin: 0;
}

.results-list li { 
  padding: 1.5rem 0; 
  border-bottom: 1px solid #ddd; 
}

.results-list li:last-child {
  border-bottom: none;
}

/* TESTIMONIALS */
.testimonials-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.testimonials-list li {
  background: #fff;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-left: 5px solid var(--gold);
}

.testimonials-list blockquote {
  margin: 0 0 0.75rem;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--dark);
  line-height: 1.5;
  border: none;
  padding: 0;
}

.testimonials-list .stars {
  color: var(--gold);
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.testimonials-list cite {
  display: block;
  text-align: right;
  color: var(--blue);
  font-weight: 600;
  font-style: normal;
}

blockquote { 
  font-style: italic; 
  margin: 2rem 0; 
  padding: 1rem; 
  border-left: 4px solid var(--blue); 
}

/* CONTACT FORM */
.phone { 
  font-size: 2rem; 
  font-weight: bold; 
  color: var(--gold); 
  text-align: center; 
  margin: 1rem 0; 
}

form { 
  max-width: 600px; 
  margin: 2rem auto; 
}

label { 
  display: block; 
  margin: 1rem 0; 
}

input, textarea { 
  width: 100%; 
  padding: 0.75rem; 
  border: 1px solid #ccc; 
  border-radius: 4px; 
  box-sizing: border-box;
  font-size: 1rem;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button { 
  background: var(--blue); 
  color: #fff; 
  padding: 1rem 2rem; 
  border: none; 
  border-radius: 4px; 
  cursor: pointer; 
  width: 100%;
  font-size: 1rem;
  font-weight: bold;
}

button:hover {
  background: #003d7a;
}

.disclaimer { 
  font-size: 0.9rem; 
  color: #666; 
  text-align: center; 
  margin-top: 1rem; 
}

/* FOOTER */
footer { 
  background: var(--dark); 
  color: #fff; 
  text-align: center; 
  padding: 1.5rem 0; 
}

.back-top { 
  color: var(--gold); 
  margin-left: 1rem; 
  text-decoration: underline; 
  text-underline-offset: 2px; 
}

/* ============================================
   MOBILE MEDIA QUERIES
   ============================================ */

/* Tablets and smaller (768px and below) */
@media (max-width: 768px) {
  /* Navigation becomes vertical */
  header nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  nav ul {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }
  
  nav li {
    width: 100%;
  }
  
  nav a {
    display: block;
    padding: 0.5rem 0;
  }
  
  /* Logo adjustments */
  .logo {
    font-size: 1.5rem;
  }
  
  h1 figure {
    width: 3rem;
    height: 3rem;
  }
  
  h1 span {
    padding-left: 3.5rem;
    font-size: 1.5rem;
  }
  
  /* Hero section */
  .hero h2 {
    font-size: 1.8rem;
    padding: 0 1rem;
  }
  
  .cta {
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
  }
  
  /* Section padding */
  .section {
    padding: 2rem 0;
  }
  
  /* Practice areas - stack articles */
  #practice .grid {
    grid-template-columns: 1fr;
  }
  
  /* Specialties - 2 columns */
  .specialties[role="list"] {
    grid-template-columns: repeat(2, 1fr);
    padding: 1.5rem 0.75rem;
    gap: 0.75rem;
  }
  
  .specialties-heading {
    font-size: 1.2rem;
  }
  
  .specialties [role="listitem"] {
    height: 100px;
  }
  
  .specialties [role="listitem"] span {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    margin-top: 45px;
  }
  
  /* Contact form */
  .phone {
    font-size: 1.5rem;
  }
  
  form {
    padding: 0 1rem;
  }
}

/* Mobile phones (480px and below) */
@media (max-width: 480px) {
  /* Logo even smaller */
  .logo {
    font-size: 1.2rem;
  }
  
  h1 figure {
    width: 2.5rem;
    height: 2.5rem;
    margin-right: 0.5rem;
  }
  
  h1 span {
    padding-left: 3rem;
    font-size: 1.2rem;
  }
  
  /* Hero */
  .hero {
    padding: 2rem 0;
  }
  
  .hero h2 {
    font-size: 1.5rem;
  }
  
  .hero img {
  max-width: 320px;
}
  
  /* CTA button */
  .cta {
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
  }
  
  /* Specialties - single column on very small screens */
  .specialties[role="list"] {
    grid-template-columns: 1fr;
    padding: 1rem 0.5rem;
  }
  
  .specialties [role="listitem"] {
    height: 90px;
  }
  
  .specialties [role="listitem"] span {
    font-size: 0.85rem;
    padding: 0.5rem;
    margin-top: 40px;
  }
  
  /* Contact */
  .phone {
    font-size: 1.25rem;
  }
  
  /* Footer */
  footer {
    font-size: 0.9rem;
  }
  
  .back-top {
    display: block;
    margin: 0.5rem 0 0 0;
  }
}

/* Desktop optimization (1024px and above) */
@media (min-width: 1024px) {
  #practice .grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .section {
    padding: 4rem 0;
  }
}

/* High contrast mode */
@media (prefers-contrast: more) {
  :root {
    --blue: #003366;
    --gold: #e6a800;
  }
  nav a, .cta { 
    text-decoration: underline; 
  }
}