/* ============================================
   ADVOKAT LIRIM MUSTAFI – Main Stylesheet
   ============================================ */

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

:root {
  --bg:          #100303;
  --bg-card:     #1c0505;
  --bg-section:  #160404;
  --primary:     #c9943a;
  --primary-light: #e4b96a;
  --primary-dim: rgba(201,148,58,0.15);
  --foreground:  #f0e8d5;
  --muted:       #9a8a78;
  --border:      rgba(201,148,58,0.2);
  --border-light:rgba(201,148,58,0.1);
  --font-serif:  'EB Garamond', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;
  --max-w:       1200px;
  --radius:      4px;
}

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

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

body {
  background: var(--bg);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-light); }
img { max-width: 100%; height: auto; display: block; }

h1,h2,h3,h4,h5 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.25;
  color: var(--foreground);
}

p { margin-bottom: 1rem; color: var(--muted); }
p:last-child { margin-bottom: 0; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .05em;
  cursor: pointer;
  transition: all .2s;
  border: none;
  text-align: center;
}
.btn-primary { background: var(--primary); color: #1a0000; }
.btn-primary:hover { background: var(--primary-light); color: #1a0000; transform: translateY(-2px); box-shadow: 0 4px 20px rgba(201,148,58,.35); }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary-dim); color: var(--primary-light); }

/* ── NAVBAR ── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  transition: all .3s;
  padding: 1.1rem 0;
  background: rgba(16,3,3,.45);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}
#site-header.scrolled {
  background: rgba(16,3,3,.96);
  padding: .7rem 0;
  border-color: var(--border);
  box-shadow: 0 2px 24px rgba(0,0,0,.5);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-brand { display: flex; align-items: center; gap: .8rem; }
.nav-logo {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: contain;
  border: 2px solid rgba(201,148,58,.6);
  box-shadow: 0 0 12px rgba(201,148,58,.25);
}
.nav-name { font-family: var(--font-serif); font-size: 1.05rem; font-weight: 700; color: var(--primary); letter-spacing: .15em; line-height: 1.2; }
.nav-slogan { font-size: .7rem; color: var(--muted); letter-spacing: .15em; font-style: italic; }

nav ul { display: flex; list-style: none; gap: 1.75rem; align-items: center; }
nav ul a { font-size: .85rem; font-weight: 500; color: rgba(240,232,213,.75); letter-spacing: .04em; transition: color .2s; }
nav ul a:hover, nav ul a.active { color: var(--primary); }
.nav-cta { padding: .55rem 1.2rem; font-size: .82rem; }

/* Hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--foreground); transition: all .3s; border-radius: 2px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu { display: flex; align-items: center; gap: 1rem; }

/* Mobile nav */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none; flex-direction: column; align-items: flex-start;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(16,3,3,.98);
    border-top: 1px solid var(--border);
    padding: 1.5rem;
    gap: 1rem;
  }
  .nav-menu.open { display: flex; }
  nav ul { flex-direction: column; gap: 1rem; width: 100%; }
  nav ul a { font-size: 1rem; }
  .nav-cta { width: 100%; text-align: center; }
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
  padding: 7rem 0 4rem;
  background: var(--bg);
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../images/hero-bg.jpg');
  background-size: cover; background-position: center;
  opacity: .35;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(16,3,3,.95) 50%, rgba(16,3,3,.4) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 680px; }
.hero-badge {
  display: inline-block;
  padding: .35rem .9rem;
  border: 1px solid rgba(201,148,58,.4);
  background: rgba(201,148,58,.1);
  border-radius: var(--radius);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.hero-slogan { font-size: .8rem; letter-spacing: .22em; font-style: italic; color: rgba(201,148,58,.7); margin-bottom: 1.5rem; display: block; }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}
.hero h1 span { color: var(--primary); }
.hero-desc { font-size: 1.05rem; color: rgba(240,232,213,.75); margin-bottom: 2.5rem; max-width: 520px; line-height: 1.75; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 2.5rem; margin-top: 3rem;
  padding-top: 2rem; border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}
.stat-num { font-family: var(--font-serif); font-size: 2rem; color: var(--primary); font-weight: 700; display: block; }
.stat-label { font-size: .75rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

/* ── SECTIONS ── */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-section); }
.section-label {
  font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--primary); display: block; margin-bottom: .6rem;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 1rem; }
.section-sub { color: var(--muted); max-width: 560px; margin-bottom: 3rem; }
.section-divider { width: 60px; height: 2px; background: var(--primary); margin-bottom: 1.5rem; border-radius: 2px; }

/* ── SERVICES GRID ── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: all .3s;
}
.service-card:hover { border-color: rgba(201,148,58,.4); transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,.35); }
.service-icon {
  width: 48px; height: 48px;
  background: var(--primary-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}
.service-card h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: .6rem; }
.service-card p { font-size: .9rem; color: var(--muted); }
.service-link { font-size: .82rem; font-weight: 600; color: var(--primary); letter-spacing: .05em; display: inline-block; margin-top: 1rem; }
.service-link:hover { color: var(--primary-light); }

/* ── WHY US ── */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.why-card {
  padding: 1.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--bg-card);
  text-align: center;
}
.why-number { font-family: var(--font-serif); font-size: 2.5rem; color: var(--primary); font-weight: 700; display: block; }
.why-card h3 { font-size: .95rem; color: var(--foreground); margin: .5rem 0 .4rem; }
.why-card p { font-size: .85rem; color: var(--muted); }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-img-wrap { position: relative; }
.about-img {
  width: 100%; border-radius: var(--radius);
  border: 2px solid var(--border);
  object-fit: cover;
  aspect-ratio: 3/4;
  filter: sepia(.15) contrast(1.05);
}
.about-badge-img {
  position: absolute; bottom: -20px; right: -20px;
  width: 90px; height: 90px; border-radius: 50%;
  border: 3px solid var(--primary);
  box-shadow: 0 0 24px rgba(201,148,58,.3);
}
.about-quote {
  font-family: var(--font-serif);
  font-size: 1.35rem; font-style: italic;
  color: rgba(240,232,213,.9);
  border-left: 3px solid var(--primary);
  padding-left: 1.5rem;
  margin: 1.75rem 0;
  line-height: 1.6;
}
.about-quote cite { display: block; font-size: .85rem; font-style: normal; color: var(--primary); font-weight: 600; margin-top: .5rem; letter-spacing: .1em; }
.credentials { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.credential-tag {
  padding: .35rem .9rem;
  background: var(--primary-dim);
  border: 1px solid var(--border);
  border-radius: 2rem;
  font-size: .78rem;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: .04em;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-badge-img { bottom: -10px; right: 10px; width: 70px; height: 70px; }
}

/* ── LOCATION ── */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.info-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.info-icon {
  width: 42px; height: 42px; border-radius: var(--radius);
  background: var(--primary-dim); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.info-label { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); margin-bottom: .2rem; }
.info-value { font-size: .95rem; color: var(--foreground); }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.map-embed iframe { width: 100%; height: 340px; border: none; filter: grayscale(.3) contrast(1.1); }

@media (max-width: 768px) {
  .location-grid { grid-template-columns: 1fr; }
}

/* ── CONTACT FORM ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; }
.contact-info p { font-size: .9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: .9rem;
  transition: border-color .2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(201,148,58,.12); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select option { background: var(--bg-card); }
.form-notice { font-size: .8rem; color: var(--muted); margin-top: .5rem; }
.form-success { background: rgba(60,160,60,.12); border: 1px solid rgba(60,160,60,.3); border-radius: var(--radius); padding: 1rem 1.25rem; color: #6bcf7a; font-size: .9rem; margin-bottom: 1rem; }
.form-error { background: rgba(180,40,40,.12); border: 1px solid rgba(180,40,40,.3); border-radius: var(--radius); padding: 1rem 1.25rem; color: #e07070; font-size: .9rem; margin-bottom: 1rem; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ── FOOTER ── */
.site-footer {
  background: #0a0202;
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.footer-logo { width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(201,148,58,.5); }
.footer-name { font-family: var(--font-serif); font-size: 1rem; font-weight: 700; color: var(--primary); letter-spacing: .12em; }
.footer-slogan { font-size: .68rem; color: var(--muted); letter-spacing: .12em; font-style: italic; }
.footer-desc { font-size: .85rem; color: var(--muted); line-height: 1.7; }
.footer-h { font-size: .75rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--primary); margin-bottom: 1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { font-size: .85rem; color: var(--muted); }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { padding-top: 1.5rem; border-top: 1px solid rgba(201,148,58,.08); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: .78rem; color: rgba(154,138,120,.6); margin: 0; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 9rem 0 4rem;
  background: var(--bg);
  position: relative;
  border-bottom: 1px solid var(--border-light);
}
.page-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top left, rgba(201,148,58,.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .75rem; }
.page-hero .breadcrumb { font-size: .8rem; color: var(--muted); margin-bottom: 1rem; }
.page-hero .breadcrumb a { color: var(--primary); }
.page-hero p { color: rgba(240,232,213,.7); max-width: 560px; font-size: 1.05rem; }

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(135deg, var(--bg-card), #220808);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 4rem 0; text-align: center;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .75rem; }
.cta-band p { color: var(--muted); max-width: 520px; margin: 0 auto 2rem; }

/* ── CONTENT PROSE ── */
.prose h2 { font-size: 1.5rem; color: var(--primary); margin: 2rem 0 .75rem; }
.prose h3 { font-size: 1.15rem; color: var(--foreground); margin: 1.5rem 0 .5rem; }
.prose p { color: rgba(240,232,213,.8); margin-bottom: 1rem; }
.prose ul { margin: .75rem 0 1rem 1.5rem; }
.prose ul li { color: rgba(240,232,213,.75); margin-bottom: .4rem; }
.prose strong { color: var(--foreground); }
.content-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
@media (max-width: 768px) { .content-cols { grid-template-columns: 1fr; } }

/* ── UTILITIES ── */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.pt-0 { padding-top: 0 !important; }

/* Responsive */
@media (max-width: 600px) {
  .hero-stats { gap: 1.5rem; }
  .section { padding: 3.5rem 0; }
  .hero { padding: 6rem 0 3rem; }
  .form-row { grid-template-columns: 1fr; }
}

/* Accessibility */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
