/* =========================================================
   ABSOLUTE LAW P.C. — Landing Page Stylesheet
   Common classes are used across sections on purpose so the
   same rules can be reused on other pages/sections.
   ========================================================= */

:root{
  --gold: rgb(198, 145, 40);
  --gold-soft: rgba(198, 145, 40, 0.12);
  --gold-soft-2: rgba(198, 145, 40, 0.28);
  --black: #000;
  --near-black: #141414;
  --white: #fff;
  --grey-bg: #f7f5f1;
  --grey-line: #e7e2d8;
  --text-muted: #5b5b5b;

  --font-head: 'Muli', 'Mulish', sans-serif;
  --font-body: 'Quicksand', sans-serif;

  --radius-sm: 15px;
  --radius-md: 25px;
  --shadow-soft: 0 15px 40px rgba(0,0,0,0.08);
  --header-h: 86px;
}

*{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}
 
body{
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: var(--font-body);
  color: var(--near-black);
  font-size: 16px;
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}


h1,h2,h3,h4,h5,h6{
  font-family: var(--font-head);
  color: var(--black);
  font-weight: 800;
  margin: 0;
}

p{ margin: 0 0 1rem; }
a{ text-decoration: none; color: inherit; }
img{ max-width: 100%; display: block; }
ul{ margin: 0; padding: 0; list-style: none; }

section{ scroll-margin-top: var(--header-h); }

/* ---------- Reusable layout helpers ---------- */
.section-pad{ padding: 90px 0; }
.section-pad-sm{ padding: 60px 0; }
.bg-grey{ background: var(--grey-bg); }
.bg-black{ background: var(--black); color: var(--white); }
.bg-black h1, .bg-black h2, .bg-black h3, .bg-black h4{ color: var(--white); }

.eyebrow{
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title{
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 18px;
}

.section-lead{
  color: var(--text-muted);
  /* max-width: 640px; */
  font-size: 1.05rem;
}
.bg-black .section-lead{ color: rgba(255,255,255,0.75); }

.gold-underline{
  width: 60px;
  height: 3px;
  background: var(--gold);
  border-radius: 3px;
  margin: 14px 0 22px;
}

/* ---------- Buttons (shared everywhere) ---------- */
.btn-gold{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-head);
  font-weight: 700;
  border: 2px solid var(--gold);
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .2s ease;
  white-space: nowrap;
}
.btn-gold:hover, .btn-gold:focus{
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
  transform: translateY(-2px);
}

.header-button svg{
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  flex-shrink: 0;
  transform: translateY(2px) !important;
}

.btn-outline-dark-gold{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--black);
  font-family: var(--font-head);
  font-weight: 700;
  border: 2px solid var(--black);
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  transition: background .25s ease, color .25s ease, transform .2s ease;
}
.btn-outline-dark-gold:hover{
  background: var(--black);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-light-gold{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  border: 2px solid var(--gold);
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  transition: background .25s ease, color .25s ease, transform .2s ease;
}
.btn-outline-light-gold:hover{
  background: var(--gold);
  color: var(--black);
  transform: translateY(-2px);
}

.call-text{
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--near-black);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size:20px;
  color:red;
}
.bg-black .call-text{ color: var(--white); }
.call-text .icon-circle{ color: var(--gold); }

.cta-row{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 26px;
}

/* small round icon wrapper reused for phone/marker icons */
.icon-circle{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-soft);
  color: var(--gold);
  flex-shrink: 0;
}
.icon-circle svg{ width: 20px; height: 20px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  min-height: var(--header-h);
  border-bottom: 1px solid var(--grey-line);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled{ box-shadow: 0 6px 24px rgba(0,0,0,0.08); }

.navbar-brand img{ height: 80px; }

.site-header .nav-link{
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--near-black);
  padding: 10px 16px !important;
  position: relative;
}
.site-header .nav-link::after{
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.site-header .nav-link:hover::after,
.site-header .nav-link.active::after{ transform: scaleX(1); }

.header-call{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
}
.header-call small{
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.72rem;
}
.header-call strong{ font-size: 1rem; color: var(--black); }

/* ============================================================
   HERO / BANNER
   ============================================================ */
.hero{
  position: relative;
  background: #000 url('images/banner1.jpg') center center / cover no-repeat;
  color: var(--white);
  padding: 90px 0 100px;
}
.hero::before{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0,0,0,0.86) 20%, rgba(0,0,0,0.55) 100%);
}
.hero .container{ position: relative; z-index: 2; }

.hero-eyebrow{
  font-family: var(--font-head);
  color: var(--gold);
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero h1{
  color: var(--white);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1.18;
  margin-bottom: 20px;
}
.hero h1 span{ color: var(--gold); }

.hero p.lead{
  color: rgba(255,255,255,0.82);
  font-size: 1.1rem;
  max-width: 560px;
}

.hero-points{ margin: 26px 0; }
.hero-points li{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  font-family: var(--font-head);
  font-weight: 700;
}
.hero-points li svg{ width: 20px; height: 20px; color: var(--gold); flex-shrink: 0; }

/* form card reused for hero form + bottom consultation form */
.form-card{
  background: var(--white);
  color: var(--near-black);
  border-radius: var(--radius-md);
  padding: 34px 30px;
  box-shadow: var(--shadow-soft);
  border-top: 5px solid var(--gold);
}
.form-card h3{ font-size: 1.4rem; margin-bottom: 6px; }
.form-card .section-lead{ font-size: 0.95rem; margin-bottom: 20px; }

.form-control, .form-select{
  font-family: var(--font-body);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.95rem;
}
.form-control:focus, .form-select:focus{
  border-color: var(--gold);
  box-shadow: 0 0 0 0.2rem var(--gold-soft);
}
.form-card .btn-gold{ width: 100%; justify-content: center; margin-top: 6px; }
.form-note{ font-size: 0.8rem; color: var(--text-muted); margin-top: 12px; text-align: center; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-media{
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  height: 600px;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

/* ============================================================
   SERVICE CARDS (Family Law Services)
   ============================================================ */
.service-card{
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  height: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: var(--gold-soft-2);
}
.service-icon{
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 30px auto;
  transition: background .25s ease;
}
.service-icon svg{ width: 32px; height: 32px; stroke: var(--gold); }
.service-card:hover .service-icon{ background: var(--gold); }
.service-card:hover .service-icon svg{ stroke: var(--black); }
.service-card h3{ font-size: 1.2rem; margin-bottom: 10px; }
.service-card p{ color: var(--text-muted); font-size: 0.94rem; }
.service-card .call-text{ font-weight: 600; margin-top: 15px; }
.service-card .btn-outline-dark-gold{ padding: 9px 18px; font-size: 0.85rem; margin-top: 6px; }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-card{
  background: var(--near-black);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 34px 26px;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.why-card::before{
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--gold);
}
.why-icon{
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 16px;
}
.why-icon svg{ width: 24px; height: 24px; }

.why-num{
  font-family: var(--font-head);
  color: var(--gold);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.why-card h3{ color: var(--white); font-size: 1.2rem; margin-bottom: 10px; }
.why-card p{ color: rgba(255,255,255,0.7); font-size: 0.93rem; margin-bottom: 0; }

/* ============================================================
   FAQ (accordion)
   ============================================================ */
.faq-accordion .accordion-item{
  border: none;
  border-bottom: 1px solid var(--grey-line);
  background: transparent;
}
.faq-accordion .accordion-button{
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--black);
  background: transparent;
  padding: 22px 6px;
  box-shadow: none !important;
}
.faq-accordion .accordion-button:not(.collapsed){ color: var(--gold); }
.faq-accordion .accordion-button::after{ filter: none; }
.faq-accordion .accordion-body{
  padding: 0 6px 24px;
  color: var(--text-muted);
}

/* ============================================================
   TESTIMONIALS (carousel)
   ============================================================ */
.testimonial-slider{
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-viewport{
  overflow: hidden;
  flex: 1 1 auto;
  width: 100%;
}
.testimonial-track{
  display: flex;
  transition: transform .5s ease;
  will-change: transform;
}
.testimonial-slide{
  flex: 0 0 100%;
  max-width: 100%;
  padding: 6px 12px;
  display: flex;
}
@media (min-width: 768px){
  .testimonial-slide{ flex: 0 0 50%; max-width: 50%; }
}
@media (min-width: 992px){
  .testimonial-slide{ flex: 0 0 33.3333%; max-width: 33.3333%; }
}

.testimonial-card{
  background: var(--white);
  border-radius: var(--radius-md);
  /* box-shadow: var(--shadow-soft); */
  padding: 36px 28px;
  text-align: center;
  width: 100%;
  
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.testimonial-stars{ color: rgb(255 182 38); margin-bottom: 16px; letter-spacing: 3px; flex-shrink: 0; }
.testimonial-quote{
  font-size: 1rem;
  color: var(--near-black);
  margin-bottom: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  /*overflow: hidden;*/
  min-height: 180px;
}
.testimonial-avatar{
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--black);
  color: var(--gold);
  font-family: var(--font-head);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  flex-shrink: 0;
}
.testimonial-name{ font-family: var(--font-head); font-weight: 800; flex-shrink: 0; }
.testimonial-role{ color: var(--text-muted); font-size: 0.85rem; flex-shrink: 0; }

/* nav arrows */
.test-nav{
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--grey-line);
  background: var(--white);
  color: var(--near-black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.test-nav:hover{ background: var(--gold); border-color: var(--gold); color: var(--black); }

/* dots */
.test-dots{
  position: absolute;
  left: 0; right: 0;
  bottom: -38px;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.testimonial-slider{ position: relative; margin-bottom: 38px; }
.test-dots button{
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: var(--gold);
  opacity: 0.35;
  padding: 0;
  transition: opacity .2s ease, transform .2s ease;
}
.test-dots button.active{ opacity: 1; transform: scale(1.2); }

/* ============================================================
   CONSULTATION (bottom form section)
   ============================================================ */
.consultation-section{
  background: var(--white);
  color: var(--near-black);
}
.consultation-contact{
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--grey-line);
}
.consultation-section .consultation-contact.footer-contact li{ color: var(--text-muted); }
.consultation-section .consultation-contact.footer-contact a{ color: var(--near-black); }
.consultation-section .consultation-contact.footer-contact a:hover{ color: var(--gold); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{
  background: var(--black);
  color: rgba(255,255,255,0.75);
  padding: 70px 0 0;
}
.site-footer h4{
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 20px;
}
.site-footer p{ color: rgba(255,255,255,0.6); }
.site-footer .footer-links li{ margin-bottom: 12px; }
.site-footer .footer-links a{ color: rgba(255,255,255,0.7); transition: color .2s ease, padding-left .2s ease; }
.site-footer .footer-links a:hover{ color: var(--gold); padding-left: 4px; }
.footer-contact li{
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.7);
  font-size: 0.94rem;
}
.footer-contact li svg{ width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.footer-map{
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}
.footer-map iframe{ width: 100%; height: 260px; border: 0; display: block; filter: grayscale(0.3); }
.social-row{ display: flex; gap: 12px; margin-top: 18px; }
.social-row a{
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  transition: background .2s ease, border-color .2s ease;
}
.social-row a:hover{ background: var(--gold); border-color: var(--gold); color: var(--black); }
.social-row svg{ width: 16px; height: 16px; }

.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 50px;
  padding: 22px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a{ color: var(--gold); }

/* ============================================================
   Back to top
   ============================================================ */
.back-to-top{
  position: fixed;
  right: 22px;
  bottom: 50px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .3s ease;
  z-index: 999;
}
.back-to-top.show{ opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover{ background: var(--black); color: var(--white); }
.float-call{
  position:fixed;
  right:22px;
  bottom:22px;
  width:56px;
  height:56px;
  border-radius:50%;
  background:#25d366;
  color: var(--black);
  display:flex;
  align-items:center;
  justify-content:center;
  /*box-shadow:0 8px 20px rgba(0,0,0,.35);*/
  z-index:1500;
  transition:background .18s ease, transform .18s ease;
  display:none;
}
.float-call svg{width:20px; height:20px; stroke:#000000;}
.float-call:hover{background:var(--black); transform:scale(1.06);}
.float-call:active{transform:scale(.96);}

/* ============================================================
   Responsive tweaks
   ============================================================ */
@media (max-width: 991.98px){
  .section-pad{ padding: 64px 0; }
  .hero{ padding: 50px 0 70px; }
  .site-header .navbar-collapse{
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius-md);
    margin-top: 10px;
    box-shadow: var(--shadow-soft);
  }
  .header-call{ margin-top: 14px; }
  .hero .form-card{ margin-top: -60px; }
}
@media (max-width: 767px){
  .float-call{
    right:20px;
    bottom:105px;
    width:46px;
    height:46px;
    display:flex;
  }
}
@media (max-width: 575.98px){
  .form-card{ padding: 26px 20px; }
  /*.testimonial-card{ padding: 28px 20px; }*/
}
@media (max-width: 477px){
  #testimonialSlider .test-nav{ display:none; }
  .testimonial-quote{
  min-height: 255px;
}
}
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}
