/* ============================================================
   BARKS LAW - Aviation Disaster Landing Page
   ============================================================ */

/* --- TOKENS ------------------------------------------------- */
:root {
  --navy-dark:   #0C1B33;
  --navy-mid:    #152848;
  --navy-light:  #1e3a5f;
  --gold:        #C9A84C;
  --gold-light:  #e8c97a;
  --white:       #ffffff;
  --off-white:   #F8F7F4;
  --text-dark:   #1a1a2e;
  --text-mid:    #3d3d3d;
  --text-light:  #c5cfe0;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --radius: 2px;
  --max-width: 1160px;
  --section-pad: 96px;
}

/* --- RESET -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

::selection {
  background: var(--gold);
  color: var(--navy-dark);
}

/* --- A11Y: focus + skip link ------------------------------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.btn-gold:focus-visible {
  outline-color: var(--navy-dark);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 200;
  background: var(--gold);
  color: var(--navy-dark);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 12px 20px;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* --- FADE-IN ----------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.perspective-card:nth-child(2).fade-in { transition-delay: 0.12s; }
.perspective-card:nth-child(3).fade-in { transition-delay: 0.24s; }
.profile-content.fade-in               { transition-delay: 0.15s; }

/* --- HERO ENTRANCE ----------------------------------------- */
@keyframes hero-enter {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- UTILITIES ---------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
  border: 2px solid var(--gold);
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--navy-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--text-light);
  border: 1.5px solid rgba(197, 207, 224, 0.4);
}
.btn-ghost:hover {
  border-color: var(--text-light);
  color: var(--white);
}

.section-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-label--light {
  color: var(--gold);
}

.section-headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.2;
  margin-bottom: 48px;
}

.section-headline--light {
  color: var(--white);
  margin-bottom: 8px;
}

/* --- NAV ---------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(12, 27, 51, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  transition: background 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(12, 27, 51, 0.98);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.nav-brand-link {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  opacity: 0.8;
  transition: color 0.2s, opacity 0.2s;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
  opacity: 1;
}

.nav-phone {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold);
  opacity: 0.85;
  text-decoration: none;
  transition: opacity 0.2s;
  border-left: 1px solid rgba(201, 168, 76, 0.25);
  padding-left: 28px;
}

.nav-phone:hover {
  opacity: 1;
}

.nav-contact {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
  text-decoration: none;
  transition: opacity 0.2s;
  border-left: 1px solid rgba(201, 168, 76, 0.2);
  padding-left: 20px;
  cursor: pointer;
  background: none;
  border-top: none;
  border-right: none;
  border-bottom: none;
}

.nav-contact:hover {
  opacity: 1;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}

.nav.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}

.nav-divider {
  display: block;
  width: 1px;
  height: 18px;
  background: rgba(201, 168, 76, 0.4);
}

.nav-title {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-cta {
  margin-top: 40px;
}

/* --- HERO --------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--navy-dark);
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(12, 27, 51, 0.88) 0%,
    rgba(12, 27, 51, 0.60) 60%,
    rgba(12, 27, 51, 0.30) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  max-width: 700px;
  margin-left: max(32px, calc((100vw - var(--max-width)) / 2));
  animation: hero-enter 0.8s ease 0.1s both;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-sub {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 560px;
}

/* --- SCROLL INDICATOR --------------------------------------- */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(197, 207, 224, 0.5);
  text-decoration: none;
  transition: color 0.2s;
  animation: scroll-bob 2s ease-in-out infinite;
}

.scroll-indicator:hover {
  color: var(--gold);
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
}

@keyframes scroll-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* --- PRACTICE AREAS ----------------------------------------- */
.practice-section {
  background: var(--off-white);
  padding: var(--section-pad) 0;
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
}

.practice-section .section-headline {
  margin-bottom: 32px;
}

.practice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 0;
}

.practice-card-sm {
  border-left: 3px solid var(--gold);
  padding: 16px 20px;
  background: var(--white);
}

.practice-card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy-dark);
  line-height: 1.35;
}

/* --- PERSPECTIVE -------------------------------------------- */
.perspective {
  background: var(--off-white);
  padding: calc(var(--section-pad) * 1.25) 0;
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
}

.perspective .container {
  text-align: left;
}

.perspective-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  text-align: left;
}

.perspective-card {
  background: transparent;
  padding: 0;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--navy-dark);
  line-height: 1.2;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gold);
  margin-bottom: 24px;
}

.card-body {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-mid);
}

/* --- PROFILE ----------------------------------------------- */
.profile {
  background: var(--navy-dark);
  padding: var(--section-pad) 0;
}

.profile-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.profile-image-wrap {
  position: relative;
}

.profile-image-frame {
  position: relative;
  border: 2px solid var(--gold);
  padding: 8px;
}

.profile-image-frame::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  right: 16px;
  bottom: 16px;
  border: 1px solid rgba(201, 168, 76, 0.25);
  pointer-events: none;
}

.profile-img {
  width: 100%;
  height: auto;
  display: block;
}

.profile-caption {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(197, 207, 224, 0.5);
  margin-top: 16px;
  font-style: italic;
}

.profile-caption-name {
  font-style: normal;
  font-weight: 600;
  color: var(--gold);
  opacity: 0.85;
}

.profile-content {
  padding: 16px 0;
}

.profile-credentials {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 32px;
  opacity: 0.7;
}

.profile-divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 32px;
}

.profile-body {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text-light);
  margin-bottom: 20px;
}

.profile-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* --- FOOTER ------------------------------------------------- */
.footer {
  background: #070f1e;
  padding: 48px 0;
  border-top: 1px solid rgba(201, 168, 76, 0.15);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-tag {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}

.footer-contact-item {
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(197, 207, 224, 0.5);
  letter-spacing: 0.02em;
}

a.footer-contact-item {
  color: var(--gold);
  opacity: 0.85;
  transition: opacity 0.2s;
}

a.footer-contact-item:hover {
  opacity: 1;
}

.footer-disclaimer {
  font-size: 0.72rem;
  line-height: 1.75;
  color: rgba(197, 207, 224, 0.3);
  max-width: 860px;
}

.footer-copy {
  font-size: 0.72rem;
  color: rgba(197, 207, 224, 0.2);
  letter-spacing: 0.04em;
}

/* --- RESPONSIVE -------------------------------------------- */
@media (max-width: 900px) {
  :root { --section-pad: 64px; }

  .perspective-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .profile-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .profile-image-frame::before {
    display: none;
  }

  .practice-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    gap: 20px;
  }

  .footer-contact {
    text-align: left;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
    background: rgba(12, 27, 51, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav.is-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link,
  .nav-phone,
  .nav-contact {
    display: block;
    padding: 14px 24px;
    border-left: none;
    text-align: left;
    width: 100%;
    font-size: 0.85rem;
    opacity: 1;
  }

  .nav-phone {
    padding-top: 18px;
    padding-bottom: 18px;
    border-top: 1px solid rgba(201, 168, 76, 0.15);
    margin-top: 4px;
  }

  .nav-contact {
    border-top: 1px solid rgba(201, 168, 76, 0.15);
  }
}

@media (max-width: 600px) {
  :root { --section-pad: 48px; }

  .nav-inner { padding: 16px 20px; }
  .nav-title { display: none; }
  .nav-divider { display: none; }

  .hero-content {
    margin-left: 0;
    padding: 0 20px;
  }

  .container { padding: 0 20px; }

  .scroll-indicator { display: none; }

  .profile-actions {
    flex-direction: column;
  }

  .profile-actions .btn {
    width: 100%;
    text-align: center;
  }
}
