/* ============================================
   ABIODUN OLOWOLAFE OJON - SHARED STYLES
   Premium Legal Brand — Deep Obsidian & Gold
   ============================================ */

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

/* ---- RESET & ROOT ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --black:    #080706;
  --deep:     #0f0e0c;
  --surface:  #171614;
  --card:     #1e1c18;
  --border:   #2e2c26;
  --gold:     #c8a96e;
  --gold-lt:  #e2cb99;
  --gold-dk:  #9c7c42;
  --cream:    #f5f0e5;
  --text:     #e8e2d6;
  --muted:    #9a9282;
  --white:    #ffffff;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Outfit', sans-serif;
  --ease:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

/* ---- CUSTOM CURSOR ---- */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition-property: transform;
  will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  transition: transform 0.1s, opacity 0.3s;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  transition: transform 0.35s var(--ease), width 0.3s, height 0.3s, border-color 0.3s;
  opacity: 0.6;
}
body.cursor-hover .cursor-ring {
  width: 56px; height: 56px;
  border-color: var(--gold-lt);
  opacity: 1;
}

/* ---- LOADING SCREEN ---- */
#loader {
  position: fixed; inset: 0;
  background: var(--black);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-emblem {
  width: 80px; height: 80px;
  position: relative;
  margin-bottom: 28px;
}
.loader-scales {
  width: 80px; height: 80px;
  animation: scaleBalance 1.4s ease-in-out infinite alternate;
}
.loader-scales svg { width: 100%; height: 100%; }

@keyframes scaleBalance {
  0%   { transform: rotate(-4deg); }
  100% { transform: rotate(4deg); }
}

.loader-bar-wrap {
  width: 160px;
  height: 1px;
  background: var(--border);
  overflow: hidden;
  border-radius: 2px;
}
.loader-bar {
  height: 100%;
  background: var(--gold);
  width: 0;
  animation: loadFill 1.8s var(--ease) forwards;
}
@keyframes loadFill { to { width: 100%; } }

.loader-text {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 0.6s 0.4s var(--ease) forwards;
}

/* ---- NAVBAR ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 0 5%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s, backdrop-filter 0.4s;
}
.nav.scrolled {
  background: rgba(8,7,6,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.nav-logo-mark {
  width: 36px; height: 36px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-mark svg { width: 18px; height: 18px; color: var(--gold); }
.nav-logo-text {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.nav-logo-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 400;
}

.nav-links {
  display: flex; align-items: center; gap: 0;
  list-style: none;
}
.nav-links a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 18px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { width: calc(100% - 36px); }

.nav-cta {
  display: flex; align-items: center; gap: 14px;
}
.btn-nav {
  padding: 9px 22px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: none;
  transition: background 0.3s, color 0.3s;
  position: relative;
  overflow: hidden;
}
.btn-nav::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--gold);
  transform: translateX(-101%);
  transition: transform 0.35s var(--ease);
}
.btn-nav:hover::before { transform: translateX(0); }
.btn-nav span { position: relative; z-index: 1; }
.btn-nav:hover span { color: var(--black); }

/* Hamburger */
.nav-hamburger {
  display: none;
  width: 36px; height: 36px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: none;
  background: none;
  border: none;
  padding: 0;
}
.nav-hamburger span {
  display: block;
  height: 1px;
  background: var(--gold);
  transition: all 0.3s var(--ease);
  transform-origin: left;
}
.nav-hamburger span:nth-child(1) { width: 28px; }
.nav-hamburger span:nth-child(2) { width: 20px; }
.nav-hamburger span:nth-child(3) { width: 24px; }
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg); width: 28px; }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg); width: 28px; }

/* ---- FULL-SCREEN MENU OVERLAY ---- */
.menu-overlay {
  position: fixed; inset: 0;
  background: var(--deep);
  z-index: 800;
  display: flex; flex-direction: column;
  justify-content: center;
  padding: 10% 8%;
  clip-path: circle(0% at calc(100% - 50px) 36px);
  transition: clip-path 0.7s var(--ease);
  pointer-events: none;
}
.menu-overlay.open {
  clip-path: circle(150% at calc(100% - 50px) 36px);
  pointer-events: all;
}
.menu-overlay-nav { list-style: none; }
.menu-overlay-nav li {
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.menu-overlay-nav li:first-child { border-top: 1px solid var(--border); }
.menu-overlay-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-family: var(--font-serif);
  font-size: clamp(32px, 6vw, 60px);
  font-weight: 300;
  color: var(--cream);
  text-decoration: none;
  transform: translateY(100%);
  transition: transform 0.5s var(--ease), color 0.3s;
}
.menu-overlay.open .menu-overlay-nav a {
  transform: translateY(0);
}
.menu-overlay-nav li:nth-child(1) a { transition-delay: 0.08s; }
.menu-overlay-nav li:nth-child(2) a { transition-delay: 0.14s; }
.menu-overlay-nav li:nth-child(3) a { transition-delay: 0.20s; }
.menu-overlay-nav li:nth-child(4) a { transition-delay: 0.26s; }
.menu-overlay-nav li:nth-child(5) a { transition-delay: 0.32s; }
.menu-overlay-nav li:nth-child(6) a { transition-delay: 0.38s; }
.menu-overlay-nav a:hover { color: var(--gold); }
.menu-overlay-nav a .nav-num {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.menu-overlay-social {
  display: flex; gap: 24px;
  margin-top: 48px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s 0.5s, transform 0.4s 0.5s var(--ease);
}
.menu-overlay.open .menu-overlay-social {
  opacity: 1; transform: translateY(0);
}
.menu-overlay-social a {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s;
}
.menu-overlay-social a:hover { color: var(--gold); }

/* ---- COMMON SECTIONS ---- */
.section { padding: 100px 5%; }
.section-sm { padding: 60px 5%; }
.container { max-width: 1200px; margin: 0 auto; }

/* ---- HEADINGS ---- */
.section-label {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 12px;
}
h1, h2, h3, h4, h5 { font-family: var(--font-serif); font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(48px, 7vw, 96px); }
h2 { font-size: clamp(32px, 4vw, 56px); }
h3 { font-size: clamp(24px, 3vw, 36px); }
h4 { font-size: clamp(18px, 2vw, 24px); }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: none;
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--gold);
  color: var(--black);
  border: 1px solid var(--gold);
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--gold-lt);
  transform: translateX(-101%);
  transition: transform 0.35s var(--ease);
}
.btn-primary span { position: relative; z-index: 1; }
.btn-primary:hover::before { transform: translateX(0); }

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn-outline::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--gold);
  transform: translateX(-101%);
  transition: transform 0.35s var(--ease);
}
.btn-outline span { position: relative; z-index: 1; }
.btn-outline:hover span { color: var(--black); }
.btn-outline:hover::before { transform: translateX(0); }

.btn svg { transition: transform 0.3s var(--ease); flex-shrink: 0; }
.btn:hover svg { transform: translateX(4px); }

/* ---- CARDS ---- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 40px;
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--gold-dk); box-shadow: 0 30px 60px rgba(0,0,0,0.5); }
.card:hover::before { width: 100%; }
.card-icon {
  width: 48px; height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  transition: border-color 0.3s, background 0.3s;
  color: var(--gold);
}
.card:hover .card-icon { border-color: var(--gold); background: rgba(200,169,110,0.1); }
.card-icon svg { width: 20px; height: 20px; }
.card h4 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--cream);
  margin-bottom: 12px;
}
.card p { font-size: 14px; color: var(--muted); line-height: 1.8; }

/* ---- DIVIDER ---- */
.divider {
  display: flex; align-items: center; gap: 16px;
  color: var(--border);
  margin: 20px 0;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ---- FOOTER ---- */
footer {
  background: var(--deep);
  border-top: 1px solid var(--border);
  padding: 60px 5% 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto 48px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.9;
  max-width: 280px;
}
.footer-heading {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--cream); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.footer-bottom p { font-size: 11px; color: var(--muted); }
.footer-social { display: flex; gap: 16px; }
.footer-social a {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s;
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold); }
.footer-social svg { width: 14px; height: 14px; }

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

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---- FORMS ---- */
.form-group { margin-bottom: 24px; }
.form-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.3s;
  appearance: none;
  cursor: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a9282' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }

/* ---- GOLD LINE ACCENT ---- */
.gold-line {
  display: block;
  width: 60px; height: 2px;
  background: var(--gold);
  margin: 20px 0;
}

/* ---- IMAGE RATIO ---- */
.img-wrap {
  position: relative;
  overflow: hidden;
}
.img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease);
  filter: brightness(0.85) saturate(0.9);
}
.img-wrap:hover img { transform: scale(1.04); }

/* ---- PARALLAX BG ---- */
.parallax-section {
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta .btn-nav { display: none; }
  .nav-hamburger { display: flex; }
  .section { padding: 70px 5%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; }
}
