:root {
  /* Colors - Premium Law Firm Palette */
  --navy: #071A2D;
  --navy-light: #123A63;
  --gold: #C9A15A;
  --gold-hover: #D9B978;
  --cream: #F7F5F0;
  --text: #10243A;
  --text-muted: #667085;
  --white: #FFFFFF;
  --line: #E2E8F0;
  
  /* Typography */
  --font-heading: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Be Vietnam Pro", system-ui, -apple-system, sans-serif;
  
  /* Layout & Spacing */
  --container-width: 1140px;
  --section-py: 112px;
  --section-py-mob: 72px;
  
  /* Visuals */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 4px 12px rgba(7, 26, 45, 0.04);
  --shadow-md: 0 12px 32px -8px rgba(7, 26, 45, 0.08);
  --shadow-hover: 0 20px 48px -12px rgba(7, 26, 45, 0.12);
  --transition-fast: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.2vw, 17px);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; transition: var(--transition-fast); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 161, 90, 0.4); /* Gold focus ring */
}
img { max-width: 100%; height: auto; }
section[id] { scroll-margin-top: 88px; }

/* -----------------------------------
   ANIMATION & MICRO-INTERACTION UTILITIES
-------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
  will-change: opacity, transform;
}
.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* -----------------------------------
   TYPOGRAPHY
-------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.3;
  margin-top: 0;
  font-weight: 500;
}
p { margin-top: 0; margin-bottom: 1rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 20px;
  text-transform: uppercase;
}

/* Eyebrow Line Animation */
.eyebrow::before,
.legal .eyebrow::after,
.hero .eyebrow::after,
.lawyer .eyebrow::after {
  content: '';
  display: inline-block;
  width: 0; /* Starts at 0 for animation */
  height: 1px;
  background-color: var(--gold);
  transition: width var(--transition-slow) 0.2s; /* Delays slightly after text reveals */
}

/* When the eyebrow is revealed, expand the line */
.is-revealed.eyebrow::before,
.legal .is-revealed.eyebrow::after,
.hero .is-revealed.eyebrow::after,
.lawyer .is-revealed.eyebrow::after {
  width: 24px;
}

/* -----------------------------------
   LAYOUT
-------------------------------------- */
.container {
  width: min(var(--container-width), 100% - 48px);
  margin: auto;
}
.section { padding: var(--section-py) 0; }

/* -----------------------------------
   HEADER & NAVIGATION
-------------------------------------- */
.site-header {
  height: 100px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  position: sticky;
  top: 0;
  z-index: 50;
  transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease, background 0.5s ease, border-color 0.5s ease;
}
.site-header.scrolled {
  height: 76px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-header .brand img {
  height: 48px;
  width: auto;
  display: block;
}
.brand-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
  color: var(--navy);
  white-space: nowrap;
}
.brand-name span {
  font-weight: 400;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 16px;
  margin-left: 6px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.main-nav a { 
  text-decoration: none; 
  position: relative; 
  padding: 6px 0; 
}
.main-nav a:not(.nav-follow)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition-fast);
}
.main-nav a:not(.nav-follow):hover::after,
.main-nav a.active:not(.nav-follow)::after { width: 100%; }
.main-nav a:hover, .main-nav a.active { color: var(--gold); outline: none; }

.nav-follow {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 24px;
  font-weight: 500;
  color: var(--navy);
  background: transparent;
}
.nav-follow:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.menu-toggle { display: none; border: 0; background: none; font-size: 28px; color: var(--navy); cursor: pointer; padding: 4px; }

/* -----------------------------------
   HERO SECTION
-------------------------------------- */
.hero {
  min-height: 700px;
  background: linear-gradient(90deg, rgba(7, 26, 45, 0.95) 0%, rgba(7, 26, 45, 0.8) 55%, rgba(7, 26, 45, 0.3) 100%), url("../assets/images/consultant-business-service.png") center/cover no-repeat;
  display: flex;
  align-items: center;
  color: var(--white);
}
.hero-inner { padding: 100px 0; }
.hero-copy { max-width: 820px; }
.hero h1 {
  font-size: clamp(32px, 5vw, 60px);
  margin-bottom: 24px;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.hero-sub {
  font-size: clamp(18px, 2vw, 22px);
  margin-bottom: 48px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
}
.hero-links { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-links a {
  padding: 14px 28px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  backdrop-filter: blur(8px);
  transition: var(--transition-fast);
}
.hero-links a:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* -----------------------------------
   PROFIT SECTION
-------------------------------------- */
.profit { background: var(--cream); }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 100px;
  align-items: center;
}
.profit h2 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 32px; }
.accent { width: 64px; height: 2px; background: var(--gold); margin-bottom: 32px; }
.profit h3 {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.5vw, 28px);
  margin-bottom: 16px;
  color: var(--navy-light);
}
.profit p {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 580px;
}

/* -----------------------------------
   SERVICES SECTION
-------------------------------------- */
.services { background: var(--white); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.service {
  background: var(--white);
  padding: 48px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: var(--transition-slow);
  display: flex;
  flex-direction: column;
}
.service:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--gold);
  transform: translateY(-6px);
}
.service h3 {
  font-size: clamp(22px, 2.5vw, 28px);
  color: var(--navy);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 20px;
}
.service h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--gold);
  transition: var(--transition-fast);
}
.service:hover h3::after { width: 64px; }
.service p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  flex: 1;
}

/* -----------------------------------
   LAWYER SECTION
-------------------------------------- */
.section-heading { text-align: center; margin-bottom: 72px; }
.section-heading h2 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 0; }
.lawyer { background: var(--cream); }
.lawyer-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 80px;
  align-items: start;
}
.portrait-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  transition: var(--transition-slow);
}
.portrait-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-slow);
}
/* Lawyer Card Micro-interaction */
.lawyer-grid:hover .portrait-wrap {
  box-shadow: var(--shadow-hover);
}
.lawyer-grid:hover .portrait-wrap img {
  transform: scale(1.03);
}

.lawyer-content {
  /* Removed padding-top so text aligns beautifully with the top of image */
}
.lawyer-content .lead {
  font-size: 20px;
  color: var(--navy);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 640px;
}
.lawyer-content .lead strong {
  font-family: var(--font-heading);
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
}
.lawyer-content h3 {
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  margin-top: 32px;
}
.lawyer-content ul {
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
}
.lawyer-content li { margin-bottom: 12px; }
.lawyer-content li::marker { color: var(--gold); }

/* -----------------------------------
   QUOTE SECTION
-------------------------------------- */
.quote {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 120px 0;
}
.quote-inner { 
  max-width: 800px; 
  margin: 0 auto; 
  display: flex;
  flex-direction: column;
  align-items: center;
}
.quote-mark {
  font-family: var(--font-heading);
  font-size: 88px;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 24px;
  opacity: 0.8;
}
blockquote {
  font-family: var(--font-heading);
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.45;
  margin: 0 auto 48px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  max-width: 720px;
}
.quote-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.quote-author img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: var(--white);
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.quote-author strong {
  display: block;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.02em;
}
.quote-author span {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  margin-top: 4px;
}

/* -----------------------------------
   LEGAL / NEWSLETTER SECTION
-------------------------------------- */
.legal { background: var(--white); }
.newsletter {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 64px;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  align-items: center;
  box-shadow: var(--shadow-md);
  color: var(--white);
}
.newsletter h3 {
  font-size: clamp(26px, 3.5vw, 32px);
  color: var(--white);
  margin-bottom: 12px;
  font-family: var(--font-heading);
}
.newsletter p { margin: 0; color: rgba(255,255,255,0.8); font-size: 16px; }
form {
  display: flex;
  gap: 16px;
  width: 100%;
  max-width: 500px;
}
input {
  flex: 1;
  height: 56px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-sm);
  padding: 0 20px;
  font-family: var(--font-body);
  font-size: 16px;
  background: rgba(255,255,255,0.05);
  color: var(--white);
  transition: var(--transition-fast);
}
input::placeholder { color: rgba(255,255,255,0.5); }
input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 3px rgba(201, 161, 90, 0.2);
}
input:focus:invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}
button {
  height: 56px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0 36px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition-fast);
}
button:hover, button:focus {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
button:active { transform: translateY(0); }
button:disabled { background: var(--text-muted); color: var(--line); cursor: not-allowed; transform: none; box-shadow: none; }

/* -----------------------------------
   FOOTER
-------------------------------------- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 96px 0 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 80px;
  padding-bottom: 72px;
}
.footer-brand {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 26px;
  margin-bottom: 24px;
  display: inline-block;
}
.footer-brand span { font-weight: 400; font-family: var(--font-body); font-size: 18px; color: rgba(255,255,255,0.6); }
.footer p, .footer a {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 12px;
}
.footer h4 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.footer a { text-decoration: none; display: inline-block; transition: var(--transition-fast); }
.footer a:hover { color: var(--gold); transform: translateX(4px); }
.footer-grid > div:last-child a { display: block; margin-bottom: 16px; }
.copyright {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 32px 24px;
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,0.4);
}

/* -----------------------------------
   MEDIA QUERIES (RESPONSIVE)
-------------------------------------- */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .lawyer-grid { grid-template-columns: 320px 1fr; gap: 48px; }
  .two-col { gap: 64px; }
  
  .is-revealed.eyebrow::before,
  .legal .is-revealed.eyebrow::after,
  .hero .is-revealed.eyebrow::after,
  .lawyer .is-revealed.eyebrow::after { width: 22px; }
}

@media (max-width: 850px) {
  .section { padding: var(--section-py-mob) 0; }
  
  .is-revealed.eyebrow::before,
  .legal .is-revealed.eyebrow::after,
  .hero .is-revealed.eyebrow::after,
  .lawyer .is-revealed.eyebrow::after { width: 20px; }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    padding: 32px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .main-nav a { display: block; width: 100%; padding: 12px 0; }
  .main-nav a.nav-follow { text-align: center; margin-top: 8px; }
  .site-header .brand img { height: 40px; }
  .brand-name { font-size: 18px; }
  .brand-name span { display: none; }
  .menu-toggle { display: block; }
  
  .two-col, .lawyer-grid { grid-template-columns: 1fr; }
  .portrait-wrap { max-width: 440px; margin: 0 auto 24px; }
  .lawyer-content .lead { text-align: center; }
  .lawyer-content .lead strong { display: inline; }
  
  .newsletter { flex-direction: column; text-align: center; padding: 48px 24px; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 56px; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 32px, var(--container-width)); }
  
  .is-revealed.eyebrow::before,
  .legal .is-revealed.eyebrow::after,
  .hero .is-revealed.eyebrow::after,
  .lawyer .is-revealed.eyebrow::after { width: 18px; }
  
  .service-grid { grid-template-columns: 1fr; }
  .hero { min-height: 560px; }
  .hero-inner { padding: 48px 0; }
  .hero h1 { font-size: 36px; }
  .hero-links { flex-direction: column; align-items: stretch; }
  .hero-links a { text-align: center; }
  
  form { flex-direction: column; max-width: 100%; }
  button { width: 100%; }
  
  .quote { padding: 80px 16px; }
}

/* -----------------------------------
   ACCESSIBILITY
-------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
