/* ============================================================
   ISLAMABAD LEGAL SERVICES — Shared Stylesheet
   Fonts: Cormorant Garamond (display) + DM Sans (body)
   Palette: White / Gold #B8952A / Black #0C0C0C
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&family=DM+Sans:wght@300;400;500&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --gold:        #B8952A;
  --gold-light:  #D4AE4E;
  --gold-faint:  #F7F1E3;
  --black:       #0C0C0C;
  --charcoal:    #1A1A1A;
  --mid:         #3D3D3D;
  --grey:        #6E6E6E;
  --rule:        rgba(184,149,42,0.22);
  --white:       #FFFFFF;
  --off:         #FAFAF7;
  --serif:       'Cormorant Garamond', Georgia, serif;
  --sans:        'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── UTILITY ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.gold { color: var(--gold); }
.italic { font-style: italic; }

/* ── NAVIGATION ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(10px);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 18px; font-weight: 600;
  letter-spacing: 0.08em; color: var(--black);
  text-decoration: none;
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--grey); text-decoration: none; transition: color 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-wa {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 10px 24px;
  background: var(--gold); color: var(--white);
  text-decoration: none; transition: background 0.25s;
}
.nav-wa:hover { background: var(--black); }
.nav-wa svg { width: 14px; height: 14px; fill: var(--white); flex-shrink: 0; }

/* hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--black); transition: all 0.3s; }
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 190;
  background: var(--white); padding-top: 90px;
  flex-direction: column; align-items: center; gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--black); text-decoration: none;
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu .nav-wa { margin-top: 8px; }

/* ── FLOATING WHATSAPP ── */
.wa-float {
  position: fixed; bottom: 32px; right: 32px; z-index: 300;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  text-decoration: none; transition: transform 0.3s, box-shadow 0.3s;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }
.wa-float svg { width: 28px; height: 28px; fill: white; }

/* ── PAGE HEADER (inner pages) ── */
.page-hero {
  padding: 160px 0 80px;
  background: var(--charcoal);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(184,149,42,0.04) 0px,
    rgba(184,149,42,0.04) 1px,
    transparent 1px, transparent 80px
  );
}
.page-hero-inner { position: relative; z-index: 1; }
.page-eyebrow {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
  display: flex; align-items: center; gap: 14px;
}
.page-eyebrow::before {
  content: ''; display: block;
  width: 32px; height: 1px; background: var(--gold);
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 300; line-height: 1.1;
  color: var(--white);
}
.page-hero h1 em { font-style: italic; color: var(--gold); }

/* ── SECTION BASICS ── */
.section { padding: 100px 0; }
.section-sm { padding: 72px 0; }
.section-dark { background: var(--charcoal); }
.section-off { background: var(--off); }

.eyebrow {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.eyebrow-light { color: var(--gold-light); }

.section-title {
  font-family: var(--serif);
  font-size: clamp(32px, 3.5vw, 50px);
  font-weight: 300; line-height: 1.12;
  color: var(--black);
}
.section-title em { font-style: italic; color: var(--gold); }
.section-title-light { color: var(--white); }

.section-lead {
  font-size: 14px; line-height: 1.85;
  color: var(--grey); max-width: 520px;
  margin-top: 20px;
}
.section-lead-light { color: rgba(255,255,255,0.5); }

.divider-gold {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 0;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 14px 36px; text-decoration: none;
  transition: all 0.3s; cursor: pointer; border: none;
}
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--gold); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: var(--black); }
.btn-outline { border: 1px solid var(--gold); color: var(--gold); background: transparent; }
.btn-outline:hover { background: var(--gold); color: var(--white); }
.btn-outline-white { border: 1px solid rgba(255,255,255,0.3); color: var(--white); background: transparent; }
.btn-outline-white:hover { border-color: var(--gold); color: var(--gold); }

/* ── GOLD RULE ── */
.gold-rule { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.gold-rule::before { content: ''; display: block; width: 40px; height: 1px; background: var(--gold); }

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.07);
  padding: 40px 36px;
  transition: border-color 0.3s, transform 0.3s;
  position: relative; overflow: hidden;
}
.card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.card:hover::after { transform: scaleX(1); }
.card:hover { border-color: rgba(184,149,42,0.2); transform: translateY(-2px); }

.card-dark {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(184,149,42,0.15);
  padding: 40px 36px;
  transition: border-color 0.3s;
}
.card-dark:hover { border-color: var(--gold); }

/* ── FOOTER ── */
footer {
  background: var(--black);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-logo {
  font-family: var(--serif);
  font-size: 20px; font-weight: 600;
  color: var(--white); letter-spacing: 0.06em;
  margin-bottom: 16px; display: block; text-decoration: none;
}
.footer-logo span { color: var(--gold); }
.footer-tagline {
  font-size: 12px; line-height: 1.8;
  color: rgba(255,255,255,0.35);
}
.footer-heading {
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 13px; color: rgba(255,255,255,0.45);
  text-decoration: none; transition: color 0.25s;
}
.footer-links a:hover { color: var(--gold); }
.footer-address {
  font-size: 13px; line-height: 1.9;
  color: rgba(255,255,255,0.45);
}
.footer-address a { color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.25s; }
.footer-address a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.2); }
.footer-bar { font-size: 11px; color: rgba(255,255,255,0.2); letter-spacing: 0.05em; }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ── ANIMATIONS ── */
@keyframes fadeDown { from { opacity:0; transform:translateY(-16px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeUp   { from { opacity:0; transform:translateY(24px);  } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn   { from { opacity:0; } to { opacity:1; } }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .nav-inner { padding: 0 32px; }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .nav-links, .nav-wa { display: none; }
  .hamburger { display: flex; }
  .section { padding: 72px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .page-hero { padding: 130px 0 60px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
