*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI',sans-serif;
}

html{
    scroll-behavior:smooth;
}

:root{
    --navy:#07132b;
    --blue:#1e3a8a;
    --gold:#d4af37;
    --gold-light:#f7d46b;
    --white:#ffffff;
    --light:#f8fafc;
}

body{
    background:#fff;
    overflow-x:hidden;
}

/* NAVBAR */

header{
    position:fixed;
    width:100%;
    top:0;
    z-index:1000;
    background:rgba(7,19,43,.95);
    backdrop-filter:blur(10px);
}

.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 8%;
}

.logo{
    color:var(--gold);
    font-size:1.7rem;
    font-weight:bold;
}

.nav-links{
    display:flex;
    list-style:none;
    gap:30px;
}

.nav-links a{
    text-decoration:none;
    color:white;
    transition:.3s;
}

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

/* HERO SECTION */

.hero{
    min-height:100vh;
    background:
    linear-gradient(
    rgba(7,19,43,.85),
    rgba(30,58,138,.75)
    ),
    url("https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1500&q=80");

    background-size:cover;
    background-position:center;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    color:white;
    padding:20px;
}

.hero-content{
    max-width:900px;
}

.hero h1{
    font-size:4rem;
    margin-bottom:20px;
    text-transform:uppercase;
}

.hero p{
    font-size:1.2rem;
    margin-bottom:30px;
}

.btn{
    display:inline-block;
    padding:15px 35px;
    background:linear-gradient(
    135deg,
    var(--gold-light),
    var(--gold)
    );

    color:var(--navy);
    text-decoration:none;
    border-radius:50px;
    font-weight:bold;
    transition:.4s;
}

.btn:hover{
    transform:translateY(-5px);
}

/* STATS */

.stats{
    margin-top:50px;
    display:flex;
    justify-content:center;
    gap:50px;
    flex-wrap:wrap;
}

.stats h2{
    color:var(--gold-light);
    font-size:2.5rem;
}

.stats p{
    color:white;
}

/* SECTION STYLING */

section{
    padding:100px 8%;
}

.section-title{
    text-align:center;
    font-size:2.5rem;
    margin-bottom:50px;
    color:var(--navy);
}

/* ABOUT */

.about{
    background:#f8fafc;
}

.about-content{
    max-width:1000px;
    margin:auto;
    text-align:center;
    font-size:1.1rem;
    line-height:1.8;
}

/* SERVICES */

.services{
    background:linear-gradient(
    to bottom,
    #ffffff,
    #edf2f7
    );
}

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

.service-card{
    background:white;
    padding:35px;
    border-radius:20px;
    box-shadow:0 10px 25px rgba(0,0,0,.1);
    transition:.4s;
    border-top:5px solid var(--gold);
}

.service-card:hover{
    transform:translateY(-10px);
    background:var(--navy);
    color:white;
}

.service-card h3{
    margin-bottom:15px;
}

/* ATTORNEYS */

.team{
    background:var(--navy);
}

.team .section-title{
    color:white;
}

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

.team-card{
    background:white;
    border-radius:20px;
    overflow:hidden;
    text-align:center;
}

.team-card img{
    width:100%;
    height:280px;
    object-fit:cover;
}

.team-card h3{
    padding-top:15px;
}

.team-card p{
    color:#666;
    padding-bottom:20px;
}

/* TESTIMONIALS */

.testimonials{
    background:#f4f4f4;
}

.testimonial-box{
    max-width:800px;
    margin:20px auto;
    padding:30px;
    background:white;
    border-left:5px solid var(--gold);
    border-radius:15px;
    box-shadow:0 5px 20px rgba(0,0,0,.1);
}

.testimonial-box h4{
    color:var(--gold);
    margin-top:15px;
}

/* CONTACT */

.contact{
    background:
    linear-gradient(
    135deg,
    var(--navy),
    var(--blue)
    );
}

.contact .section-title{
    color:white;
}

form{
    max-width:700px;
    margin:auto;
}

input,
textarea{
    width:100%;
    padding:15px;
    margin-bottom:15px;
    border:none;
    border-radius:10px;
}

button{
    width:100%;
    padding:15px;
    border:none;
    border-radius:10px;
    background:var(--gold);
    color:white;
    font-size:1rem;
    cursor:pointer;
}

button:hover{
    background:var(--gold-light);
}

/* FOOTER */

footer{
    background:#020617;
    color:white;
    text-align:center;
    padding:25px;
}

/* MOBILE */

@media(max-width:768px){

.navbar{
    flex-direction:column;
    gap:15px;
}

.nav-links{
    flex-wrap:wrap;
    justify-content:center;
}

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

.stats{
    gap:25px;
}
}
/* SCROLL ANIMATIONS */
.reveal{opacity:0}
.reveal.show{
    opacity:1;
    animation:fadeUp .8s ease backwards;
    animation-delay:var(--delay,0s);
}
@keyframes fadeUp{
    from{opacity:0;transform:translateY(40px)}
    to{opacity:1;transform:translateY(0)}
}

/* ATTORNEY CARD HOVER */
.team-card{transition:transform .4s,box-shadow .4s}
.team-card:hover{
    transform:translateY(-8px);
    box-shadow:0 15px 35px rgba(212,175,55,.35);
}
.team-card img{transition:transform .6s}
.team-card:hover img{transform:scale(1.08)}

/* for people who turn animations off */
@media(prefers-reduced-motion:reduce){
    .reveal,.reveal.show{opacity:1;animation:none}
}
  /* REVIEW CARD HOVER */
.testimonial-box{transition:transform .4s,box-shadow .4s}
.testimonial-box:hover{
    transform:translateY(-6px);
    box-shadow:0 12px 30px rgba(212,175,55,.3);
}
    /* CUSTOM SCROLLBAR */
html{
    scrollbar-width:thin;                      /* Firefox */
    scrollbar-color:var(--gold) var(--navy);   /* thumb, track */
}
::-webkit-scrollbar{width:12px}                /* Chrome, Edge, Safari */
::-webkit-scrollbar-track{background:var(--navy)}
::-webkit-scrollbar-thumb{
    background:linear-gradient(var(--gold-light),var(--gold));
    border-radius:10px;
    border:2px solid var(--navy);              /* gives the thumb a slim gap */
}
::-webkit-scrollbar-thumb:hover{background:var(--gold-light)}
    /* MOBILE POLISH */
section{scroll-margin-top:90px}
.hero{min-height:100svh}
input,textarea{font-size:1rem}

/* only apply hover effects on devices that actually hover */
@media(hover:none){
    .service-card:hover{transform:none;background:white;color:inherit}
    .team-card:hover,.testimonial-box:hover{transform:none;box-shadow:none}
    .team-card:hover img{transform:none}
}

@media(max-width:768px){
    section{padding:70px 6%;scroll-margin-top:130px}
    .section-title{font-size:2rem;margin-bottom:35px}
    .nav-links{gap:10px 20px}
    .stats h2{font-size:2rem}
    .btn{padding:13px 28px}
}
.contact-icon{
    width:56px;
    height:56px;
    margin:0 auto 14px;
    border:2px solid var(--gold);
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    transition:.4s;
}

.contact-icon svg{
    width:26px;
    height:26px;
    fill:none;
    stroke:var(--gold-light);
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
    transition:.4s;
}

.contact-item:hover .contact-icon{
    background:var(--gold);
    transform:translateY(-4px);
}

.contact-item:hover .contact-icon svg{
    stroke:var(--navy);
}
.contact-details{
    margin:40px auto 0;
    padding-top:30px;
    border-top:1px solid rgba(247,212,107,.35);
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));  /* three equal columns */
    gap:20px;
    text-align:center;
}

.contact-item{
    min-width:0;
}
.contact-item p{
    color:white;
    line-height:1.6;
    font-size:.95rem;
    margin-bottom:0;
    overflow-wrap:break-word;
}

.contact-item a{
    color:var(--gold-light);
    text-decoration:none;
    transition:.3s;
}

.contact-item a:hover{
    color:white;
}

/* Phones and small tablets: three items can't fit in a row, so stack them */
@media(max-width:900px){
    .contact-details{
        grid-template-columns:1fr;
        gap:30px;
    }
}
.hero{
    min-height:100svh;
    padding:120px 20px 50px;
}
@media(max-width:768px){
    .hero{padding:150px 20px 50px}
}
.contact-item p.address{
    color:var(--gold-light);
}
