/* ============================================================
   OBESO LAW — Dark Mode Stylesheet
   Palette: Deep Navy #080F17 | Dark Surface #0F1923 | Card #141E29
   Gold #B8953F | Gold Light #D4AF6A | Text #C8D4E0
   ============================================================ */

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

:root {
  --bg:         #080F17;
  --bg-mid:     #0F1923;
  --bg-card:    #141E29;
  --bg-card-2:  #1A2535;
  --bg-hover:   #1F2D3D;
  --gold:       #B8953F;
  --gold-light: #D4AF6A;
  --gold-pale:  rgba(184,149,63,0.12);
  --gold-border:rgba(184,149,63,0.22);
  --white:      #FFFFFF;
  --text:       #C8D4E0;
  --text-mid:   #8A9AB0;
  --text-dim:   #4A5A6E;
  --navy-accent:#162436;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  color: var(--white);
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { color: var(--text); margin-bottom: 1rem; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

/* ── UTILITY ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 90px 0; }

.gold-line {
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--gold), transparent);
  margin: 1rem 0 1.5rem;
}
.gold-line--center { margin: 1rem auto 1.5rem; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--gold-border);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn:hover { background: var(--gold-pale); border-color: var(--gold); color: var(--gold-light); }
.btn--solid { background: var(--gold); color: #080F17; border-color: var(--gold); }
.btn--solid:hover { background: var(--gold-light); border-color: var(--gold-light); color: #080F17; }
.btn--white { border-color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.85); }
.btn--white:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); color: var(--white); }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.1rem 0;
  transition: all 0.4s ease;
}
.nav.scrolled {
  background: rgba(8,15,23,0.96);
  backdrop-filter: blur(16px);
  padding: 0.75rem 0;
  box-shadow: 0 1px 0 rgba(184,149,63,0.15), 0 8px 32px rgba(0,0,0,0.5);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.nav__logo { display: flex; align-items: center; gap: 0.9rem; text-decoration: none; }
.nav__logo img {
  height: 44px; width: auto;
  filter: brightness(0) saturate(100%) invert(68%) sepia(42%) saturate(600%) hue-rotate(5deg) brightness(95%);
}
.nav__logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav__logo-name { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700; color: var(--white); letter-spacing: 0.04em; }
.nav__logo-sub { font-size: 0.6rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }

.nav__links { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.nav__links a {
  font-size: 0.76rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-mid); transition: color var(--transition); position: relative;
}
.nav__links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--gold); transform: scaleX(0);
  transform-origin: left; transition: transform var(--transition);
}
.nav__links a:hover, .nav__links a.active { color: var(--gold); }
.nav__links a:hover::after, .nav__links a.active::after { transform: scaleX(1); }
.nav__cta { margin-left: 1rem; }

.nav__hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav__hamburger span { display: block; width: 26px; height: 2px; background: var(--white); transition: all var(--transition); }

/* ── HERO ── */
.hero {
  position: relative; height: 100vh; min-height: 700px;
  display: flex; align-items: center; overflow: hidden; background: var(--bg);
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 65% 35%, rgba(184,149,63,0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 75%, rgba(22,36,54,0.9) 0%, transparent 50%),
    linear-gradient(160deg, #080F17 0%, #0F1923 60%, #080F17 100%);
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(184,149,63,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,149,63,0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.hero__parallax-layer { position: absolute; inset: -10%; pointer-events: none; transition: transform 0.1s linear; will-change: transform; }
.hero__orb { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.hero__orb--1 { width: 520px; height: 520px; top: -100px; right: -80px; background: rgba(184,149,63,0.11); }
.hero__orb--2 { width: 280px; height: 280px; bottom: 80px; left: 60px; background: rgba(15,25,35,0.8); }
.hero__content { position: relative; z-index: 2; max-width: 780px; }
.hero__content .eyebrow { margin-bottom: 1.2rem; }
.hero__title { color: var(--white); margin-bottom: 0.5rem; }
.hero__title em { font-style: italic; color: var(--gold); }
.hero__subtitle { font-size: 0.82rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 1.8rem; font-family: 'Inter', sans-serif; font-weight: 300; }
.hero__desc { font-size: 1.05rem; color: var(--text-mid); max-width: 540px; margin-bottom: 2.8rem; line-height: 1.8; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__scroll { position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: var(--text-dim); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; }
.hero__scroll-line { width: 1px; height: 50px; background: linear-gradient(to bottom, var(--gold), transparent); animation: scrollLine 2s ease-in-out infinite; }
@keyframes scrollLine { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ── ABOUT STRIP ── */
.about-strip { padding: 90px 0; background: var(--bg-mid); }
.about-strip__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-strip__photo { width: 100%; max-width: 420px; aspect-ratio: 3/4; object-fit: cover; object-position: top center; display: block; position: relative; z-index: 1; }
.about-strip__frame { position: absolute; top: 16px; left: 16px; right: -16px; bottom: -16px; border: 1px solid var(--gold-border); z-index: 0; pointer-events: none; }
.about-strip__image { position: relative; }
.about-strip__badge { position: absolute; bottom: -10px; right: -10px; background: var(--gold); color: #080F17; padding: 1rem 1.5rem; font-family: 'Playfair Display', serif; font-size: 0.95rem; font-weight: 700; text-align: center; z-index: 2; line-height: 1.3; }
.about-strip__badge span { display: block; font-family: 'Inter', sans-serif; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; margin-top: 2px; }
.about-strip__bar-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-top: 1.5rem; border-bottom: 1px solid transparent; transition: border-color var(--transition); }
.about-strip__bar-link:hover { border-bottom-color: var(--gold); color: var(--gold-light); }
.about-strip__bar-link svg { width: 13px; height: 13px; }

/* ── PRACTICES ── */
.practices { padding: 90px 0; background: var(--bg); }
.practices__header { text-align: center; margin-bottom: 3.5rem; }
.practices__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--gold-border); }
.practice-card { background: var(--bg-card); padding: 2.5rem 2rem; transition: all var(--transition); position: relative; overflow: hidden; }
.practice-card::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform var(--transition); }
.practice-card:hover { background: var(--bg-hover); transform: translateY(-4px); }
.practice-card:hover::before { transform: scaleX(1); }
.practice-card__icon { font-size: 1.6rem; margin-bottom: 1rem; display: block; }
.practice-card h3 { margin-bottom: 0.75rem; font-size: 1.15rem; }
.practice-card p { font-size: 0.88rem; line-height: 1.7; margin-bottom: 0; color: var(--text-mid); }

.practices__cta { text-align: center; margin-top: 3rem; }

/* ── TESTIMONIALS ── */
.testimonials { background: var(--bg-mid); padding: 90px 0; }
.testimonials__header { text-align: center; margin-bottom: 3.5rem; }
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial-card { background: var(--bg-card); border: 1px solid var(--gold-border); padding: 2.2rem; transition: all var(--transition); }
.testimonial-card:hover { background: var(--bg-card-2); border-color: rgba(184,149,63,0.4); transform: translateY(-3px); }
.testimonial-card__quote { font-family: 'Playfair Display', serif; font-size: 3rem; color: var(--gold); line-height: 0.5; margin-bottom: 1rem; opacity: 0.5; }
.testimonial-card p { color: var(--text-mid); font-size: 0.93rem; line-height: 1.75; font-style: italic; }
.testimonial-card__author { margin-top: 1.5rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }

/* ── CTA BANNER ── */
.cta-banner { background: var(--bg-card); border-top: 1px solid var(--gold-border); border-bottom: 1px solid var(--gold-border); padding: 80px 0; text-align: center; }
.cta-banner h2 { margin-bottom: 1rem; }
.cta-banner p { max-width: 520px; margin: 0 auto 2rem; color: var(--text-mid); }

/* ── FOOTER ── */
.footer { background: var(--bg); border-top: 1px solid var(--gold-border); padding: 2rem 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer__copy { font-size: 0.78rem; color: var(--text-dim); }
.footer__copy a { color: var(--text-dim); }
.footer__copy a:hover { color: var(--gold); }
.footer__logo img { height: 34px; filter: brightness(0) saturate(100%) invert(68%) sepia(42%) saturate(600%) hue-rotate(5deg) brightness(85%); opacity: 0.5; }

/* ── PAGE HERO (inner pages) ── */
.page-hero { background: var(--bg-mid); padding: 160px 0 80px; position: relative; overflow: hidden; border-bottom: 1px solid var(--gold-border); }
.page-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 50%, rgba(184,149,63,0.08) 0%, transparent 60%); pointer-events: none; }
.page-hero__content { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); }
.page-hero .eyebrow { margin-bottom: 0.8rem; }

/* ── ABOUT PAGE ── */
.attorney-profile { padding: 90px 0; background: var(--bg); }
.attorney-profile__grid { display: grid; grid-template-columns: 360px 1fr; gap: 80px; align-items: start; }
.attorney-profile__image-wrap { position: sticky; top: 100px; }
.attorney-profile__photo { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top center; display: block; }
.attorney-profile__frame { border: 1px solid var(--gold-border); padding: 10px; position: relative; background: var(--bg-card); }
.attorney-profile__frame::before { content: ''; position: absolute; top: -6px; left: -6px; right: -6px; bottom: -6px; border: 1px solid rgba(184,149,63,0.1); pointer-events: none; }
.attorney-profile__meta { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--gold-border); }
.attorney-profile__meta-item { display: flex; justify-content: space-between; align-items: center; padding: 0.55rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 0.84rem; }
.attorney-profile__meta-label { font-weight: 600; color: var(--text-dim); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; }
.attorney-profile__meta-value { color: var(--text); }

.practice-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem; }
.practice-mini { padding: 1.25rem; border: 1px solid var(--gold-border); background: var(--bg-card); }
.practice-mini strong { color: var(--white); font-family: 'Playfair Display', serif; display: block; margin-bottom: 0.4rem; font-size: 1rem; }
.practice-mini p { margin-bottom: 0; font-size: 0.85rem; color: var(--text-mid); }

/* ── SERVICES PAGE ── */
.services-list { padding: 80px 0; background: var(--bg); }
.service-block { display: grid; grid-template-columns: 220px 1fr; gap: 60px; align-items: start; padding: 60px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.service-block:last-child { border-bottom: none; }
.service-block__label { position: sticky; top: 100px; }
.service-block__num { font-family: 'Playfair Display', serif; font-size: 3.5rem; font-weight: 700; color: rgba(184,149,63,0.12); line-height: 1; margin-bottom: 0.5rem; }
.service-block__title { color: var(--white); margin-bottom: 0; }
.service-block__body p { line-height: 1.8; color: var(--text); }
.service-block__body ul { margin: 1rem 0 1.5rem 0; padding: 0; list-style: none; }
.service-block__body ul li { padding: 0.45rem 0; border-bottom: 1px solid rgba(255,255,255,0.04); color: var(--text-mid); font-size: 0.9rem; display: flex; align-items: center; gap: 0.6rem; }
.service-block__body ul li::before { content: ''; display: block; width: 4px; height: 4px; background: var(--gold); border-radius: 50%; flex-shrink: 0; }

/* ── CONTACT PAGE ── */
.contact-section { padding: 90px 0; background: var(--bg); }
.contact-section__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-method { padding: 1.75rem 2rem; border: 1px solid var(--gold-border); margin-bottom: 1.2rem; transition: all var(--transition); background: var(--bg-card); }
.contact-method:hover { border-color: rgba(184,149,63,0.45); background: var(--bg-card-2); transform: translateX(5px); }
.contact-method__icon { width: 38px; height: 38px; background: var(--gold-pale); border: 1px solid var(--gold-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 0.9rem; color: var(--gold); font-size: 1rem; }
.contact-method__label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.35rem; }
.contact-method h4 { margin-bottom: 0.4rem; color: var(--white); font-size: 1rem; }
.contact-method a { color: var(--text); font-size: 0.93rem; }
.contact-method a:hover { color: var(--gold); }
.contact-method p { margin-bottom: 0.2rem; font-size: 0.93rem; color: var(--text-mid); }

.map-container { border: 1px solid var(--gold-border); overflow: hidden; background: var(--bg-card); }
.map-container iframe { width: 100%; height: 400px; border: none; display: block; filter: invert(90%) hue-rotate(180deg); }
.map-link-btn { display: block; width: 100%; padding: 0.9rem; text-align: center; background: var(--bg-card-2); color: var(--gold); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; transition: background var(--transition); text-decoration: none; border-top: 1px solid var(--gold-border); }
.map-link-btn:hover { background: var(--bg-hover); color: var(--gold-light); }

.contact-cta-dark { background: var(--bg-mid); border-top: 1px solid var(--gold-border); padding: 70px 0; text-align: center; }
.contact-cta-dark p { color: var(--text-mid); max-width: 520px; margin: 0 auto 2rem; }

/* ── REVEAL ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s 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; }

/* ── MOBILE NAV ── */
@media (max-width: 900px) {
  .nav__hamburger { display: flex; position: relative; z-index: 2000; }
  .nav__cta { display: none; }
  .nav__links {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: #080F17;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    z-index: 1999;
  }
  .nav__links.open { display: flex; }
  .nav__links a {
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
    padding: 0.5rem 2rem;
  }
  .nav__links a:hover,
  .nav__links a.active { color: var(--gold); }
  .nav__links a::after { display: none; }
  .nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .practices__grid { grid-template-columns: repeat(2, 1fr); }
  .about-strip__grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-strip__photo { max-width: 340px; }
  .attorney-profile__grid { grid-template-columns: 280px 1fr; gap: 50px; }
  .service-block { grid-template-columns: 1fr; gap: 1.5rem; }
  .service-block__label { position: static; }
}
@media (max-width: 768px) {
  .practices__grid { grid-template-columns: 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .contact-section__grid { grid-template-columns: 1fr; gap: 3rem; }
  .attorney-profile__grid { grid-template-columns: 1fr; }
  .attorney-profile__image-wrap { position: static; max-width: 300px; }
  .practice-mini-grid { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; align-items: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero__scroll-line { animation: none; }
}
