/* ============================================
   RATNER PLLC — BATMAN THEME
   Black/Charcoal + White Accent
   ============================================ */

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

:root {
  /* Batman palette */
  --black: #0A0A0A;
  --black-pure: #000000;
  --charcoal: #1A1A1E;
  --charcoal-light: #2A2A30;
  --charcoal-mid: #3A3A40;
  --accent: #E8E8E8;
  --accent-bright: #FFFFFF;
  --accent-dim: #B0B0B0;
  --white: #FFFFFF;
  --off-white: #F5F5F0;
  --text-on-dark: #C8C8C8;
  --text-body-dark: #3A3A3A;
  --border-dark: rgba(255,255,255,0.08);
  --border-light: rgba(0,0,0,0.08);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-med: 0.4s var(--ease-out);
  --transition-slow: 0.6s var(--ease-out);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--white);
  background: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === EYEBROW LABEL === */
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-dim);
}

/* === HEADER === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-dark);
  transition: background var(--transition-fast);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  color: var(--white);
}
.logo-svg {
  width: 160px;
  height: 20px;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
}
.site-nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}
.site-nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dim);
  transition: color var(--transition-fast);
  padding: 4px 0;
}
.site-nav a:hover {
  color: var(--white);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-header {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--white);
  padding: 10px 24px;
  border-radius: 0;
  transition: all var(--transition-fast);
}
.btn-header:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  color: var(--white);
}
.mobile-toggle span {
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: all var(--transition-fast);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0A0A0A;
  z-index: 9999;
  padding: 100px 24px 40px;
}
.mobile-menu.active {
  display: flex;
  flex-direction: column;
}
.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-menu a {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--white);
  padding: 16px 0;
  border-bottom: 1px solid var(--border-dark);
}
.btn-mobile-cta {
  display: block;
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--white);
  padding: 16px 32px;
}

/* === HERO (HOME) === */
.home-hero {
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--black);
  padding-top: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 85vh;
  width: 100%;
}
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 64px 40px 0;
  padding-left: max(24px, calc((100vw - 1240px) / 2 + 24px));
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
}
.hero-headline em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}
.hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-on-dark);
  max-width: 480px;
  margin-bottom: 40px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid var(--white);
  padding: 16px 36px;
  transition: all var(--transition-fast);
}
.hero-cta:hover {
  background: var(--white);
  color: var(--black);
}
.hero-cta .arrow {
  transition: transform var(--transition-fast);
}
.hero-cta:hover .arrow {
  transform: translateX(4px);
}

.hero-image {
  position: relative;
  overflow: hidden;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
/* Geometric angular overlay on hero image */
.hero-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 100%;
  background: linear-gradient(to right, var(--black), transparent);
  z-index: 1;
}

/* === MISSION SECTION === */
.section-mission {
  background: var(--charcoal);
  padding: 120px 0;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}
.mission-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
.mission-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
}
.mission-headline .highlight {
  color: var(--accent);
  position: relative;
}
.mission-body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-on-dark);
}
.mission-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color var(--transition-fast);
}
.mission-cta:hover { color: var(--white); }

/* === SERVICES SECTION === */
.section-services {
  padding: 120px 0;
  background: var(--black);
}
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 64px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--charcoal);
  border: 1px solid var(--border-dark);
  padding: 40px 32px;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-med);
}
.service-card:hover::before {
  transform: scaleX(1);
}
.service-card:hover {
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}
.service-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 300;
  color: rgba(255,255,255,0.08);
  margin-bottom: 20px;
  line-height: 1;
}
.service-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}
.service-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-on-dark);
}

/* === ABOUT / BIO SECTION === */
.section-about {
  padding: 120px 0;
  background: var(--charcoal);
  border-top: 1px solid var(--border-dark);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}
.about-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--charcoal-light);
  border: 2px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 32px;
}
.about-name {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.about-role {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 32px;
}
.about-bio {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-on-dark);
}
.about-bio p + p {
  margin-top: 20px;
}
.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.sidebar-block h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 16px;
}
.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sidebar-tag {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-on-dark);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-dark);
  padding: 8px 16px;
}

/* === TESTIMONIAL SECTION === */
.section-testimonial {
  padding: 120px 0;
  background: var(--black);
  border-top: 1px solid var(--border-dark);
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  color: var(--white);
  max-width: 900px;
  margin: 0 auto 40px;
  text-align: center;
  position: relative;
}
.testimonial-quote::before {
  content: '\201C';
  font-size: 120px;
  font-style: normal;
  color: rgba(255,255,255,0.06);
  position: absolute;
  top: -40px;
  left: -20px;
  line-height: 1;
  font-family: var(--font-display);
}
.testimonial-attribution {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-dim);
  letter-spacing: 0.05em;
}

/* === CONTACT CTA SECTION === */
.section-contact-cta {
  padding: 120px 0;
  background: var(--charcoal);
  text-align: center;
  border-top: 1px solid var(--border-dark);
}
.contact-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  color: var(--white);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.2;
  text-align: center;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--white);
  padding: 18px 48px;
  transition: all var(--transition-fast);
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,255,255,0.1);
}

/* === PAGE TEMPLATE (for Ghost pages) === */
.page-content {
  padding: 160px 0 120px;
}
.page-content .container {
  max-width: 800px;
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 48px;
}
.page-body {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-on-dark);
}
.page-body h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin: 48px 0 20px;
}
.page-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin: 32px 0 16px;
}
.page-body p { margin-bottom: 20px; }
.page-body a { color: var(--accent); border-bottom: 1px solid var(--accent-dim); }
.page-body a:hover { color: var(--white); border-color: var(--white); }
.page-body ul, .page-body ol { margin: 16px 0; padding-left: 24px; }
.page-body li { margin-bottom: 8px; }

/* === POST / INDEX TEMPLATE === */
.post-feed {
  padding: 160px 0 80px;
}
.post-card {
  border-bottom: 1px solid var(--border-dark);
  padding: 40px 0;
}
.post-card-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.post-card-title a:hover { color: var(--accent); }
.post-card-excerpt {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-on-dark);
}
.post-card-meta {
  font-size: 12px;
  color: var(--accent-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* === FOOTER === */
.site-footer {
  background: var(--black-pure);
  border-top: 1px solid var(--border-dark);
  padding: 80px 0 40px;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-tagline {
  font-size: 14px;
  color: var(--text-on-dark);
  margin-bottom: 8px;
}
.footer-location {
  font-size: 13px;
  color: var(--accent-dim);
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 20px;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 12px;
}
.footer-col a {
  font-size: 14px;
  color: var(--text-on-dark);
  transition: color var(--transition-fast);
}
.footer-col a:hover {
  color: var(--white);
}
.footer-email {
  font-size: 14px;
  color: var(--text-on-dark);
  transition: color var(--transition-fast);
}
.footer-email:hover {
  color: var(--white);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-dark);
}
.footer-bottom p {
  font-size: 12px;
  color: var(--accent-dim);
}
.footer-legal {
  display: flex;
  gap: 24px;
}
.footer-legal a {
  font-size: 12px;
  color: var(--accent-dim);
  transition: color var(--transition-fast);
}
.footer-legal a:hover {
  color: var(--white);
}

/* === SCROLL ANIMATIONS === */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.stagger > *.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-content {
    padding: 120px 40px 80px;
    min-height: 70vh;
  }
  .hero-image {
    height: 50vh;
  }
  .hero-image::before { display: none; }
  .mission-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .site-nav { display: none; }
  .mobile-toggle { display: flex; }
  .mobile-menu.active { display: block; }

  .hero-content {
    padding: 120px 24px 60px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .testimonial-quote::before {
    display: none;
  }
}
