/* ==========================================================================
   Jaspal Singh & Associates — Law Firm Website
   Shared stylesheet
   ========================================================================== */

:root {
  --navy: #0e2439;
  --navy-light: #16324f;
  --gold: #c9a24b;
  --gold-dark: #a9853a;
  --cream: #f6f3ed;
  --ink: #1f2933;
  --muted: #5b6671;
  --white: #ffffff;
  --line: #e4ddd0;
  --shadow: 0 18px 45px rgba(14, 36, 57, 0.12);
  --radius: 10px;
  --maxw: 1180px;
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--muted); }

a { color: var(--gold-dark); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--navy); }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 14px;
}

.section { padding: 90px 0; }
.section--tint { background: var(--cream); }
.section--navy { background: var(--navy); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: #c4d0dc; }

.section-head { max-width: 720px; margin: 0 auto 54px; text-align: center; }
.section-head p { font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: .3px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .25s ease;
}
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-dark); color: var(--white); transform: translateY(-2px); }
.btn--outline { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn--outline:hover { background: var(--gold); color: var(--navy); }
.btn--ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 6px;
}
.brand__text { line-height: 1.1; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.2rem;
}
.brand__sub {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a {
  color: var(--navy);
  font-weight: 500;
  font-size: 0.96rem;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width .25s ease;
}
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }
.nav__links a.active { color: var(--gold-dark); }
.nav__cta { margin-left: 8px; }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: .3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(14,36,57,.92), rgba(14,36,57,.72)),
    url("https://images.unsplash.com/photo-1589391886645-d51941baf7fb?auto=format&fit=crop&w=1600&q=80") center/cover;
}
.hero__inner {
  display: grid;
  gap: 22px;
  max-width: 720px;
  padding: 120px 0;
}
.hero h1 { color: #fff; }
.hero p { color: #d6dfe8; font-size: 1.15rem; max-width: 560px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.hero .eyebrow { color: var(--gold); }

/* page hero (smaller, for inner pages) */
.page-hero {
  color: #fff;
  text-align: center;
  background:
    linear-gradient(120deg, rgba(14,36,57,.92), rgba(22,50,79,.8)),
    url("https://images.unsplash.com/photo-1505664194779-8beaceb93744?auto=format&fit=crop&w=1600&q=80") center/cover;
  padding: 96px 0;
}
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { color: #d6dfe8; max-width: 620px; margin: 0 auto; }
.breadcrumb { color: var(--gold); font-size: .85rem; letter-spacing: 1px; margin-bottom: 14px; }
.breadcrumb a { color: #d6dfe8; }

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  background: var(--cream);
  color: var(--gold-dark);
  border-radius: 10px;
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: 0.97rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; text-align: center; }
.stat__num { font-family: var(--font-head); font-size: 2.6rem; color: var(--gold); font-weight: 700; }
.stat__label { color: #c4d0dc; font-size: .9rem; letter-spacing: 1px; text-transform: uppercase; }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__img img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split ul { list-style: none; padding: 0; margin: 20px 0 0; }
.split li { padding: 8px 0 8px 30px; position: relative; color: var(--ink); }
.split li::before {
  content: "\2714";
  position: absolute; left: 0;
  color: var(--gold-dark); font-weight: 700;
}

/* ---------- Team ---------- */
.team-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; transition: transform .25s ease, box-shadow .25s ease; }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.team-card img { aspect-ratio: 4/4; object-fit: cover; width:100%; }
.team-card__body { padding: 22px 24px; }
.team-card__body h3 { margin-bottom: 2px; }
.team-card__role { color: var(--gold-dark); font-weight:600; font-size:.9rem; letter-spacing:.5px; }
.team-card__body p { font-size: .94rem; margin-top: 10px; margin-bottom: 0; }

/* ---------- Testimonials ---------- */
.quote {
  background:#fff;
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  position: relative;
}
.quote::before {
  content: "\201C";
  font-family: var(--font-head);
  font-size: 4rem;
  color: var(--gold);
  line-height: 1;
  position: absolute; top: 14px; right: 24px;
  opacity: .4;
}
.quote p { color: var(--ink); font-style: italic; }
.quote__author { display:flex; align-items:center; gap:14px; margin-top:18px; }
.quote__author span { font-weight:600; color: var(--navy); font-style: normal; }
.quote__author small { display:block; color: var(--muted); font-weight:400; }
.avatar { width:48px; height:48px; border-radius:50%; background: var(--navy); color: var(--gold); display:grid; place-items:center; font-family:var(--font-head); font-weight:700; }

.stars { color: var(--gold); letter-spacing:3px; margin-bottom: 10px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color:#fff; text-align:center; padding: 72px 0; }
.cta-band h2 { color:#fff; }
.cta-band p { color:#c4d0dc; max-width: 560px; margin: 0 auto 26px; }

/* ---------- Contact ---------- */
.contact-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.info-list { list-style:none; padding:0; margin:0; display:grid; gap: 26px; }
.info-list li { display:flex; gap:16px; align-items:flex-start; }
.info-list .ico { width:46px; height:46px; flex:0 0 46px; border-radius:10px; background:var(--cream); color:var(--gold-dark); display:grid; place-items:center; font-size:1.2rem; }
.info-list strong { display:block; color:var(--navy); margin-bottom:2px; font-family:var(--font-head); }
.info-list span { color: var(--muted); font-size:.96rem; }

form { display:grid; gap:18px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
label { font-size:.85rem; font-weight:600; color:var(--navy); display:block; margin-bottom:6px; }
input, select, textarea {
  width:100%; padding:13px 15px;
  border:1px solid var(--line); border-radius:6px;
  font-family: var(--font-body); font-size: .97rem;
  background:#fff; color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus {
  outline:none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,75,.18);
}
textarea { resize: vertical; min-height: 130px; }
.form-note { font-size:.82rem; color:var(--muted); }
.form-success {
  display:none;
  background:#eaf6ec; border:1px solid #b7e0bf; color:#1f6b33;
  padding:12px 16px; border-radius:6px; font-size:.9rem;
}

.map-embed { border:0; width:100%; height:300px; border-radius: var(--radius); margin-top: 40px; filter: grayscale(.2); }

/* ---------- FAQ (accordion) ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item { border:1px solid var(--line); border-radius:8px; margin-bottom:14px; background:#fff; overflow:hidden; }
.faq__q { width:100%; text-align:left; background:none; border:0; padding:20px 24px; font-size:1.02rem; font-weight:600; color:var(--navy); cursor:pointer; display:flex; justify-content:space-between; align-items:center; font-family: var(--font-body); }
.faq__q span { color: var(--gold-dark); transition: transform .25s ease; font-size:1.4rem; }
.faq__item.open .faq__q span { transform: rotate(45deg); }
.faq__a { max-height:0; overflow:hidden; transition: max-height .3s ease; padding:0 24px; }
.faq__a p { padding:4px 0 22px; margin:0; }

/* ---------- Footer ---------- */
.site-footer { background: #0a1b2b; color:#aebccb; padding: 66px 0 26px; }
.footer-grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer h4 { color:#fff; font-size:1.05rem; margin-bottom:18px; }
.site-footer a { color:#aebccb; }
.site-footer a:hover { color: var(--gold); }
.footer-links { list-style:none; padding:0; margin:0; display:grid; gap:10px; font-size:.94rem; }
.footer-brand .brand__name { color:#fff; }
.footer-about { font-size:.94rem; margin-top:14px; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.12); margin-top:46px; padding-top:22px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:.85rem; color:#7f90a1; }
.social { display:flex; gap:12px; margin-top:8px; }
.social a { width:38px; height:38px; border-radius:50%; border:1px solid rgba(255,255,255,.18); display:grid; place-items:center; color:#aebccb; font-size:.9rem; }
.social a:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* ---------- Reveal animation ---------- */
.reveal { opacity:0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity:1; transform:none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid--4 { grid-template-columns: repeat(2,1fr); }
  .grid--3 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 720px) {
  .nav__links {
    position: absolute;
    top: 78px; left:0; right:0;
    background:#fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 24px 20px;
    border-bottom:1px solid var(--line);
    box-shadow: var(--shadow);
    display:none;
  }
  .nav__links.open { display:flex; }
  .nav__links li { width:100%; }
  .nav__links a { display:block; padding:12px 0; width:100%; }
  .nav__cta { margin:8px 0 0; }
  .nav__toggle { display:block; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero__inner { padding: 84px 0; }
}
