/* =========================================================
   Zain Law Firm — Global Stylesheet
   Palette: Navy (#0a2342) + Gold (#c9a227) on White (#ffffff)
   Fonts: Playfair Display (headings) + Inter (body)
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --navy-900: #06182e;
  --navy-800: #0a2342;
  --navy-700: #0f2d52;
  --navy-600: #143a66;
  --navy-500: #1c4d85;
  --gold-600: #b8932a;
  --gold-500: #c9a227;
  --gold-400: #d9b94a;
  --gold-300: #e8cf7a;
  --ink-900: #0b1622;
  --ink-700: #2a3a4d;
  --ink-500: #5a6b7d;
  --ink-300: #9aa7b5;
  --ink-100: #eef2f6;
  --white: #ffffff;
  --bg-soft: #f7f9fc;
  --bg-tint: #fbfaf6;
  --success: #2e7d4f;
  --warning: #d4a017;
  --error: #c0392b;
  --line: #e6ebf1;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(10, 35, 66, 0.06);
  --shadow: 0 10px 30px rgba(10, 35, 66, 0.10);
  --shadow-lg: 0 24px 60px rgba(10, 35, 66, 0.16);
  --shadow-gold: 0 14px 40px rgba(201, 162, 39, 0.25);

  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --container: 1200px;
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink-700);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy-800); line-height: 1.18; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
p { color: var(--ink-500); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 64px 0; }
.bg-soft { background: var(--bg-soft); }
.bg-tint { background: var(--bg-tint); }
.center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.78rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-600);
  margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--gold-500); border-radius: 2px; }
.eyebrow.center::after { content: ''; width: 26px; height: 2px; background: var(--gold-500); border-radius: 2px; }
.section-title { max-width: 680px; }
.section-title p { margin-top: 14px; font-size: 1.05rem; }
.head-center { margin: 0 auto 56px; text-align: center; }
.head-center .section-title { margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 50px; font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.01em; transition: all 0.4s var(--ease); position: relative;
  cursor: pointer; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--navy-800); color: var(--white); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--navy-700); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-gold { background: linear-gradient(135deg, var(--gold-500), var(--gold-600)); color: var(--navy-900); box-shadow: var(--shadow-gold); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 20px 50px rgba(201, 162, 39, 0.4); }
.btn-ghost { background: transparent; color: var(--navy-800); border: 1.5px solid var(--navy-800); }
.btn-ghost:hover { background: var(--navy-800); color: var(--white); transform: translateY(-3px); }
.btn-light { background: var(--white); color: var(--navy-800); box-shadow: var(--shadow); }
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  z-index: 1000; display: flex; align-items: center;
  transition: all 0.4s var(--ease);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled { background: rgba(255, 255, 255, 0.96); border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; flex-shrink: 0; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text .bn { font-family: var(--font-head); font-weight: 700; font-size: 1.18rem; color: var(--navy-800); letter-spacing: 0.01em; }
.brand-text .bs { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-600); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  position: relative; padding: 10px 16px; font-weight: 500; font-size: 0.95rem; color: var(--ink-700);
  transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 4px; left: 16px; right: 16px; height: 2px;
  background: var(--gold-500); transform: scaleX(0); transform-origin: center;
  transition: transform 0.35s var(--ease); border-radius: 2px;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy-800); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { margin-left: 10px; padding: 11px 22px !important; }

.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: all 0.35s var(--ease); }
.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); }

/* ---------- Page banner ---------- */
.page-banner {
  margin-top: var(--nav-h); padding: 80px 0 70px; position: relative;
  background: var(--bg-soft); overflow: hidden;
}
.page-banner::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 90% 20%, rgba(201,162,39,0.08), transparent 50%);
  pointer-events: none;
}
.page-banner .container { position: relative; }
.page-banner h1 { margin-bottom: 14px; }
.page-banner p { max-width: 560px; font-size: 1.08rem; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; color: var(--ink-300); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--gold-600); }
.breadcrumb span { color: var(--gold-600); }
.banner-deco { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); opacity: 0.5; width: 280px; height: 280px; }
.banner-deco svg { width: 100%; height: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + 50px) 0 80px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy h1 .gold { color: var(--gold-600); font-style: italic; }
.hero-copy .lead { font-size: 1.15rem; color: var(--ink-500); max-width: 520px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; }
.hero-stat .num { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--navy-800); line-height: 1; }
.hero-stat .lbl { font-size: 0.82rem; color: var(--ink-500); margin-top: 4px; }

.hero-visual { position: relative; height: 460px; perspective: 1200px; }
.hero-card-3d {
  position: absolute; inset: 0; border-radius: var(--radius-lg);
  transform-style: preserve-3d; transition: transform 0.2s ease-out;
}
.hero-img {
  position: absolute; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 6px solid var(--white);
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-img.main { top: 0; left: 20px; width: 78%; height: 88%; transform: translateZ(40px); }
.hero-img.sub { bottom: 0; right: 0; width: 46%; height: 38%; transform: translateZ(70px); border-width: 5px; }
.hero-badge {
  position: absolute; top: 30px; right: 0; background: var(--white); border-radius: var(--radius);
  padding: 16px 20px; box-shadow: var(--shadow-lg); transform: translateZ(90px);
  display: flex; align-items: center; gap: 12px; z-index: 3;
}
.hero-badge .ic { width: 40px; height: 40px; }
.hero-badge .tx { font-family: var(--font-head); font-weight: 700; color: var(--navy-800); font-size: 0.95rem; line-height: 1.2; }
.hero-badge .tx small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.72rem; color: var(--ink-500); }
.hero-scales {
  position: absolute; bottom: -20px; left: -10px; width: 130px; height: 130px;
  background: var(--white); border-radius: 50%; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center; transform: translateZ(60px); z-index: 3;
}
.hero-scales svg { width: 70%; height: 70%; }

/* floating scales animation */
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.float-anim { animation: floaty 5s ease-in-out infinite; }

/* ---------- Animated headline words ---------- */
.hero-words { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero-words .w {
  display: inline-block; transform: translateY(110%); opacity: 0;
  animation: wordUp 0.7s var(--ease-out) forwards;
}
.hero-words .w:nth-child(1) { animation-delay: 0.2s; }
.hero-words .w:nth-child(2) { animation-delay: 0.35s; }
@keyframes wordUp { to { transform: translateY(0); opacity: 1; } }

/* ---------- Why Choose Us cards ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 28px; transition: all 0.45s var(--ease); position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease);
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-card:hover::before { transform: scaleX(1); }
.feature-card .ic { width: 56px; height: 56px; margin-bottom: 20px; }
.feature-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.feature-card p { font-size: 0.93rem; }

/* ---------- Practice area cards ---------- */
.practice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.practice-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; transition: all 0.45s var(--ease); position: relative; overflow: hidden;
  transform-style: preserve-3d;
}
.practice-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.practice-card .ic { width: 48px; height: 48px; margin-bottom: 16px; transition: transform 0.5s var(--ease); }
.practice-card:hover .ic { transform: scale(1.12) rotate(-4deg); }
.practice-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.practice-card p { font-size: 0.88rem; }
.practice-card .arrow { margin-top: 14px; font-size: 0.82rem; font-weight: 600; color: var(--gold-600); display: inline-flex; align-items: center; gap: 6px; opacity: 0; transform: translateX(-6px); transition: all 0.4s var(--ease); }
.practice-card:hover .arrow { opacity: 1; transform: translateX(0); }

/* ---------- Advocate cards ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.adv-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: all 0.5s var(--ease); display: flex; flex-direction: column;
}
.adv-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.adv-photo { height: 360px; overflow: hidden; position: relative; }
.adv-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.adv-card:hover .adv-photo img { transform: scale(1.06); }
.adv-body { padding: 28px; }
.adv-body .role { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-600); font-weight: 600; margin-bottom: 8px; }
.adv-body h3 { margin-bottom: 10px; }
.adv-body p { font-size: 0.92rem; margin-bottom: 18px; }
.adv-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9rem; color: var(--navy-800); }
.adv-link svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.adv-link:hover svg { transform: translateX(5px); }

/* ---------- Stats / counters ---------- */
.stats-band { background: var(--navy-800); color: var(--white); padding: 72px 0; position: relative; overflow: hidden; }
.stats-band::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 15% 30%, rgba(201,162,39,0.12), transparent 45%), radial-gradient(circle at 85% 70%, rgba(201,162,39,0.08), transparent 40%); }
.stats-band .container { position: relative; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-item { text-align: center; padding: 20px; }
.stat-item .num { font-family: var(--font-head); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; color: var(--white); line-height: 1; }
.stat-item .num .suf { color: var(--gold-400); }
.stat-item .lbl { margin-top: 10px; font-size: 0.86rem; color: rgba(255,255,255,0.72); letter-spacing: 0.06em; }
.stat-item .ic { width: 38px; height: 38px; margin: 0 auto 14px; opacity: 0.85; }

/* ---------- Testimonials ---------- */
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.test-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; transition: all 0.45s var(--ease); position: relative;
}
.test-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.test-card .quote-ic { width: 40px; height: 40px; margin-bottom: 16px; opacity: 0.5; }
.test-card .stars { display: flex; gap: 3px; margin-bottom: 14px; }
.test-card .stars svg { width: 16px; height: 16px; fill: var(--gold-500); }
.test-card p { font-size: 0.95rem; color: var(--ink-700); margin-bottom: 20px; font-style: italic; }
.test-card .who { display: flex; align-items: center; gap: 12px; }
.test-card .who .av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--navy-700), var(--navy-500)); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 1rem; }
.test-card .who .nm { font-weight: 600; color: var(--navy-800); font-size: 0.92rem; }
.test-card .who .ds { font-size: 0.78rem; color: var(--ink-500); }

/* ---------- CTA banner ---------- */
.cta-band { padding: 70px 0; }
.cta-inner {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  border-radius: var(--radius-lg); padding: 56px 48px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-inner::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 80% 20%, rgba(201,162,39,0.18), transparent 45%); }
.cta-inner .container { position: relative; }
.cta-inner h2 { color: var(--white); margin-bottom: 14px; }
.cta-inner p { color: rgba(255,255,255,0.82); max-width: 540px; margin: 0 auto 28px; }
.cta-inner .btn-gold { padding: 16px 36px; }

/* ---------- Service detail (service page) ---------- */
.svc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.svc-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px; transition: all 0.45s var(--ease); position: relative; overflow: hidden;
  display: flex; gap: 22px; align-items: flex-start;
}
.svc-card::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(var(--gold-500), var(--gold-300)); transform: scaleY(0); transform-origin: top; transition: transform 0.5s var(--ease);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svc-card:hover::after { transform: scaleY(1); }
.svc-card .ic { width: 56px; height: 56px; flex-shrink: 0; }
.svc-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.svc-card p { font-size: 0.92rem; }

/* ---------- Process timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.timeline::before { content: ''; position: absolute; top: 40px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, var(--gold-300), var(--gold-500), var(--gold-300)); z-index: 0; }
.tl-step { position: relative; z-index: 1; text-align: center; }
.tl-circle {
  width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--gold-500); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); transition: all 0.45s var(--ease); position: relative;
}
.tl-step:hover .tl-circle { transform: translateY(-6px) scale(1.05); box-shadow: var(--shadow-gold); }
.tl-circle .num { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: var(--navy-800); }
.tl-circle .ic { width: 38px; height: 38px; }
.tl-step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.tl-step p { font-size: 0.88rem; }

/* ---------- About: story ---------- */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.story-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid var(--white); }
.story-img img { width: 100%; height: 440px; object-fit: cover; }
.story-copy h2 { margin-bottom: 18px; }
.story-copy p { margin-bottom: 16px; }
.story-points { display: grid; gap: 14px; margin-top: 24px; }
.story-point { display: flex; gap: 14px; align-items: flex-start; }
.story-point .ic { width: 26px; height: 26px; flex-shrink: 0; color: var(--gold-600); }
.story-point strong { color: var(--navy-800); font-weight: 600; }
.story-point span { display: block; font-size: 0.9rem; }

/* ---------- About: profile detail ---------- */
.profile-block { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; margin-bottom: 72px; }
.profile-block:nth-child(even) .profile-img { order: 2; }
.profile-block:nth-child(even) .profile-img { order: 2; }
.profile-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid var(--white); position: relative; }
.profile-img img { width: 100%; height: 420px; object-fit: cover; }
.profile-img .tag { position: absolute; bottom: 18px; left: 18px; background: var(--white); padding: 10px 18px; border-radius: 50px; font-family: var(--font-head); font-weight: 700; color: var(--navy-800); font-size: 0.88rem; box-shadow: var(--shadow); }
.profile-info .role { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-600); font-weight: 600; margin-bottom: 10px; }
.profile-info h2 { margin-bottom: 16px; }
.profile-info p { margin-bottom: 14px; }
.pa-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.pa-list li { background: var(--bg-soft); border: 1px solid var(--line); padding: 8px 16px; border-radius: 50px; font-size: 0.84rem; color: var(--navy-700); font-weight: 500; transition: all 0.3s; }
.pa-list li:hover { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); }

/* ---------- Mission / Vision ---------- */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.mv-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px 36px; transition: all 0.45s var(--ease); }
.mv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.mv-card .ic { width: 56px; height: 56px; margin-bottom: 20px; }
.mv-card h3 { margin-bottom: 12px; }
.mv-card p { font-size: 0.96rem; }

/* ---------- Core values ---------- */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value-card { text-align: center; padding: 30px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: all 0.45s var(--ease); }
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.value-card .ic { width: 50px; height: 50px; margin: 0 auto 16px; }
.value-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.value-card p { font-size: 0.86rem; }

/* ---------- Firm timeline ---------- */
.ftl { position: relative; max-width: 760px; margin: 0 auto; }
.ftl::before { content: ''; position: absolute; left: 20px; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--gold-300), var(--gold-500), var(--gold-300)); }
.ftl-item { position: relative; padding-left: 60px; margin-bottom: 36px; }
.ftl-item::before { content: ''; position: absolute; left: 12px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 3px solid var(--gold-500); }
.ftl-item .yr { font-family: var(--font-head); font-weight: 700; color: var(--gold-600); font-size: 1.1rem; }
.ftl-item h3 { font-size: 1.08rem; margin: 4px 0 8px; }
.ftl-item p { font-size: 0.9rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; }
.contact-info-card { background: var(--navy-800); color: var(--white); border-radius: var(--radius-lg); padding: 44px 38px; position: relative; overflow: hidden; }
.contact-info-card::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 80% 10%, rgba(201,162,39,0.16), transparent 45%); }
.contact-info-card > * { position: relative; }
.contact-info-card h3 { color: var(--white); margin-bottom: 12px; }
.contact-info-card > p { color: rgba(255,255,255,0.72); margin-bottom: 30px; font-size: 0.95rem; }
.ci-item { display: flex; gap: 16px; margin-bottom: 24px; }
.ci-item .ic { width: 44px; height: 44px; flex-shrink: 0; background: rgba(201,162,39,0.15); border-radius: 12px; padding: 10px; }
.ci-item .ic svg { width: 100%; height: 100%; }
.ci-item .lb { font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-400); font-weight: 600; margin-bottom: 4px; }
.ci-item .vl { font-size: 0.96rem; color: var(--white); font-weight: 500; }
.ci-item a.vl:hover { color: var(--gold-300); }
.ci-item .vl.dual { display: flex; flex-direction: column; gap: 2px; }

.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 44px 38px; box-shadow: var(--shadow); }
.contact-form h3 { margin-bottom: 8px; }
.contact-form > p { margin-bottom: 28px; font-size: 0.94rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy-800); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-soft); color: var(--ink-900); transition: all 0.3s; font-size: 0.95rem;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold-500); background: var(--white); box-shadow: 0 0 0 4px rgba(201,162,39,0.12); }
.field textarea { resize: vertical; min-height: 130px; }
.field .err { display: none; color: var(--error); font-size: 0.8rem; margin-top: 6px; }
.field.invalid input, .field.invalid textarea { border-color: var(--error); background: #fef3f2; }
.field.invalid .err { display: block; }
.form-success { display: none; background: #ecfdf3; border: 1px solid #abefc6; color: var(--success); padding: 16px 20px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: 0.92rem; font-weight: 500; }
.form-success.show { display: block; animation: fadeUp 0.5s var(--ease); }

.map-wrap { margin-top: 56px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid var(--white); line-height: 0; }
.map-wrap iframe { width: 100%; height: 380px; border: 0; }

.hours-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 24px; }
.hours-row { display: flex; justify-content: space-between; padding: 12px 18px; background: var(--bg-soft); border-radius: var(--radius-sm); font-size: 0.92rem; }
.hours-row .d { color: var(--navy-800); font-weight: 600; }
.hours-row .h { color: var(--ink-500); }
.hours-row.closed .h { color: var(--error); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: rgba(255,255,255,0.7); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 50px; }
.footer .brand-text .bn { color: var(--white); }
.footer-about p { font-size: 0.9rem; margin: 18px 0 22px; color: rgba(255,255,255,0.6); }
.footer h4 { color: var(--white); font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; margin-bottom: 20px; letter-spacing: 0.04em; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { font-size: 0.9rem; color: rgba(255,255,255,0.62); transition: all 0.3s; display: inline-flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: var(--gold-400); transform: translateX(4px); }
.footer-links a::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-500); opacity: 0.5; }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 16px; font-size: 0.9rem; color: rgba(255,255,255,0.62); }
.footer-contact li .ic { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--gold-400); }
.footer-contact a:hover { color: var(--gold-400); }
.social-row { display: flex; gap: 12px; margin-top: 20px; }
.social-row a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; transition: all 0.4s var(--ease); }
.social-row a svg { width: 18px; height: 18px; }
.social-row a:hover { background: var(--gold-500); transform: translateY(-4px); }
.social-row a:hover svg path { fill: var(--navy-900); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 24px 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.84rem; color: rgba(255,255,255,0.5); flex-wrap: wrap; gap: 10px; }
.footer-bottom a:hover { color: var(--gold-400); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Scroll progress bar ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--gold-500), var(--gold-300)); z-index: 1100; transition: width 0.1s linear; }

/* ---------- Back to top ---------- */
.to-top { position: fixed; bottom: 28px; right: 28px; width: 48px; height: 48px; border-radius: 50%; background: var(--navy-800); color: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(12px); transition: all 0.4s var(--ease); z-index: 900; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--gold-500); color: var(--navy-900); transform: translateY(-4px); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards-grid, .practice-grid, .values-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { display: none; }
  .hero-visual { height: 400px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; height: calc(100vh - var(--nav-h));
    background: var(--white); flex-direction: column; align-items: stretch; gap: 0;
    padding: 20px 24px; transform: translateX(100%); transition: transform 0.4s var(--ease);
    box-shadow: var(--shadow-lg); overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 16px 8px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-links a::after { display: none; }
  .nav-cta { margin: 16px 0 0; text-align: center; }
  .nav-toggle { display: flex; }
  .hero-grid, .story-grid, .profile-block, .contact-grid, .mv-grid { grid-template-columns: 1fr; gap: 36px; }
  .profile-block:nth-child(even) .profile-img { order: 0; }
  .hero-visual { height: 360px; margin-top: 20px; }
  .svc-list, .test-grid, .adv-grid, .footer-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hours-grid { grid-template-columns: 1fr; }
  .cta-inner { padding: 40px 24px; }
  .contact-info-card, .contact-form { padding: 32px 24px; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .cards-grid, .practice-grid, .values-grid, .stats-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .hero-cta .btn { width: 100%; }
  .section { padding: 52px 0; }
  .hero-badge { display: none; }
}
