/* ========================================
   HOME — Sicut Lex Estudio
   Section-specific styles for the home page:
   hero carousel, hero text, about, practice-areas
   ======================================== */

/* ===== HERO CAROUSEL ===== */
.hero-carousel {
  position: relative;
  overflow: hidden;
  display: block;
  padding: 0 !important;
  min-height: auto !important;
}

.hero-carousel-track {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

.hero-carousel-slide {
  position: relative;
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 5rem 3rem;
  min-height: 85vh;
  box-sizing: border-box;
  overflow: hidden;
}

.hero-carousel .hero-pattern,
.hero-carousel .hero-glow {
  pointer-events: none;
}

/* Ensure pattern & glow sit behind image but above bg */
.hero-carousel .hero-pattern { z-index: 0; }
.hero-carousel .hero-glow { z-index: 0; }

.hero-carousel-dots {
  position: absolute;
  bottom: 4rem;
  left: 3rem;
  z-index: 5;
  display: flex;
  gap: 0.6rem;
  pointer-events: auto;
}

.hero-carousel-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.hero-carousel-dots .dot.active {
  background: var(--gold);
  width: 28px;
  border-radius: 5px;
}

.hero-carousel-dots .dot:hover {
  background: var(--gold-light);
}

@media (max-width: 768px) {
  .hero-carousel-slide {
    padding: 2.5rem 1.5rem;
    min-height: auto;
  }
  .hero-carousel-dots {
    bottom: 2rem;
    left: 1.5rem;
  }
  
  /* Hide image on mobile, keep text clean */
  .hero-slide-image {
    opacity: 0.15;
    width: 100%;
  }
  
  .hero-content {
    max-width: 100%;
  }
}

/* ===== HERO TEXT ===== */
.hero h1 {
  font-size: 3.8rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.hero h1 .gold { color: var(--gold); }
.hero .hero-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.5rem;
}
.hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 2.5rem;
}

/* ===== ABOUT ===== */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-left .overline {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
  line-height: 1.2;
}
.about-left h2 {
  font-size: 1rem;
  color: var(--gold);
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-family: var(--font-sans);
}
.about-left p {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.about-left .features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
.about-left .feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--navy);
}
.about-left .feature .check { color: var(--gold); font-size: 1.1rem; }
.about-right {
  background: var(--cream);
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.about-right .placeholder-icon { display: none; }
.about-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== PRACTICE AREAS ===== */
.practice-areas {
  background: var(--cream);
}

/* ===== CASES ===== */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.case-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  border: 1px solid rgba(10,22,40,0.06);
  transition: all 0.3s;
  min-height: 180px;
}
.case-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.case-card .case-img {
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.case-card .case-body { padding: 1.2rem; display: flex; flex-direction: column; justify-content: center; }
.case-card .case-body h4 { font-size: 0.9rem; color: var(--navy); margin-bottom: 0.3rem; }
.case-card .case-body .result {
  font-size: 0.7rem;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.case-card .case-body p { font-size: 0.78rem; color: var(--text-body); line-height: 1.6; margin-top: 0.3rem; }

/* ===== TESTIMONIALS ===== */
.testimonial-section { background: var(--cream); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  padding: 2rem;
  border: 1px solid rgba(10,22,40,0.06);
  text-align: center;
  background: var(--white);
}
.testimonial-card .stars { color: var(--gold); font-size: 1rem; margin-bottom: 1rem; }
.testimonial-card blockquote {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1rem;
}
.testimonial-card .author { font-size: 0.8rem; font-weight: 600; color: var(--navy); }
.testimonial-card .source { font-size: 0.65rem; color: var(--text-body); }

/* ===== FAQ ===== */
.faq-section { background: var(--cream); }
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question .arrow { transition: transform 0.3s; color: var(--gold); }
.faq-item.active .faq-question .arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer-inner {
  padding: 0 1.5rem 1.2rem;
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.7;
}

/* ===== CONTACT INFO FOR HOME ===== */
.contact-info-home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.contact-info-home .info h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.contact-info-home .info p {
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.contact-info-home .info .item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  font-size: 0.82rem;
  color: var(--text);
}
.contact-info-home .info .item i {
  color: var(--gold);
  width: 18px;
  text-align: center;
  margin-top: 3px;
}
.contact-info-home form { width: 100%; }
.contact-info-home .form-group { margin-bottom: 0.8rem; }
.contact-info-home form input,
.contact-info-home form textarea,
.contact-info-home form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(10,22,40,0.08);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  transition: all 0.3s;
  background: var(--white);
}
.contact-info-home form input:focus,
.contact-info-home form textarea:focus,
.contact-info-home form select:focus {
  outline: none;
  border-color: var(--gold);
}
.contact-info-home form select { cursor: pointer; }
.contact-info-home form textarea {
  height: 100px;
  resize: vertical;
}
.contact-info-home form button {
  width: 100%;
  padding: 0.85rem;
  background: var(--navy);
  color: var(--white);
  border: none;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}
.contact-info-home form button:hover {
  background: var(--gold);
  color: var(--navy);
}
