/* ============================================================
   Brian Kidnay, P.C. — Main Stylesheet
   ============================================================ */

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

:root {
  --navy:      #0d1b2a;
  --navy-mid:  #162336;
  --navy-lt:   #1e3250;
  --gold:      #b8922e;
  --gold-lt:   #d4a94a;
  --cream:     #f5f0e8;
  --cream-dk:  #ede7da;
  --text:      #1a1a2e;
  --text-mid:  #3d3d5c;
  --text-lt:   #6b6b8a;
  --white:     #ffffff;
  --border:    rgba(184,146,46,0.2);
  --shadow-sm: 0 2px 12px rgba(13,27,42,0.08);
  --shadow-md: 0 8px 32px rgba(13,27,42,0.12);
  --shadow-lg: 0 20px 60px rgba(13,27,42,0.18);
  --radius:    6px;
  --transition: 0.28s ease;
  --max-w:     1160px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: 0.03em; }

p { color: var(--text-mid); font-size: 1.05rem; }

/* ---------- Utilities ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}
.section-label.light { color: var(--gold-lt); }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-sub {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--text-lt);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--white);
  border: 2px solid var(--gold);
}
.btn-primary:hover {
  background: var(--gold-lt);
  border-color: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184,146,46,0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.45);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 1.5rem 0;
}
#navbar.scrolled {
  background: rgba(13,27,42,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.25);
  padding: 1rem 0;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}
.nav-logo span { color: var(--gold-lt); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.08); }

.nav-links a.nav-cta {
  background: var(--gold);
  color: var(--white);
  padding: 0.5rem 1.2rem;
}
.nav-links a.nav-cta:hover {
  background: var(--gold-lt);
  box-shadow: 0 4px 16px rgba(184,146,46,0.4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(13,27,42,0.78) 0%, rgba(22,35,54,0.72) 50%, rgba(13,27,42,0.88) 100%),
    url("images/LizardHead.jpeg");
  background-size: cover;
  background-position: center 40%;
  background-attachment: fixed;
}

/* Subtle animated gradient overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(184,146,46,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 1.5rem;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-content h1 em {
  font-style: italic;
  color: var(--gold-lt);
}

.hero-sub {
  color: rgba(255,255,255,0.65);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  letter-spacing: 0.05em;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Decorative divider line */
.hero-content::before {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 1.5rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero-scroll span {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 100%);
  margin: 0 auto;
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================================
   ABOUT
   ============================================================ */
#about {
  padding: 7rem 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: center;
}

.about-photo {
  position: relative;
}

.photo-frame {
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--cream-dk);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-frame.photo-placeholder::after {
  content: 'B';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 8rem;
  font-weight: 700;
  color: var(--navy);
  opacity: 0.12;
}

/* Gold corner accent */
.photo-frame::before {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  width: 80px;
  height: 80px;
  border-top: 3px solid var(--gold);
  border-left: 3px solid var(--gold);
  z-index: 1;
  border-radius: 2px;
}

.about-text h2 { margin-bottom: 1.5rem; }
.about-text p { margin-bottom: 1.2rem; line-height: 1.8; }
.about-text .btn { margin-top: 0.5rem; }

/* ============================================================
   PRACTICE AREAS
   ============================================================ */
#practice {
  padding: 7rem 0;
  background: var(--cream);
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 860px;
  margin: 0 auto;
}

.practice-card {
  background: var(--white);
  border: 1px solid var(--cream-dk);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.practice-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.practice-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.practice-card:hover::after { transform: scaleX(1); }

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  color: var(--gold);
}
.card-icon svg { width: 100%; height: 100%; }

.practice-card h3 { margin-bottom: 0.75rem; font-size: 1.2rem; }
.practice-card p { font-size: 0.95rem; line-height: 1.7; }

/* ============================================================
   AREAS SERVED
   ============================================================ */
#areas {
  padding: 7rem 0;
  background: var(--white);
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.area-card {
  background: var(--cream);
  border: 1px solid var(--cream-dk);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.area-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.area-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.area-card p {
  font-size: 0.95rem;
  color: var(--text-lt);
  line-height: 1.6;
}

.areas-note {
  max-width: 760px;
  margin: 3rem auto 0;
  text-align: center;
  font-size: 1rem;
  color: var(--text-lt);
  line-height: 1.8;
}
.areas-note a {
  color: var(--gold);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.areas-note a:hover { border-bottom-color: var(--gold); }

/* ============================================================
   APPROACH / PHILOSOPHY
   ============================================================ */
#approach {
  position: relative;
  padding: 8rem 0;
  overflow: hidden;
}

.approach-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, var(--navy) 0%, var(--navy-lt) 50%, var(--navy-mid) 100%);
}
.approach-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 85%, rgba(184,146,46,0.08) 0%, transparent 50%),
    radial-gradient(circle at 85% 15%, rgba(184,146,46,0.05) 0%, transparent 50%);
}

.approach-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.approach-quote blockquote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-style: italic;
  color: var(--white);
  line-height: 1.5;
  position: relative;
  padding-left: 2rem;
}
.approach-quote blockquote::before {
  content: '"';
  position: absolute;
  left: -0.5rem;
  top: -1rem;
  font-size: 6rem;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
  font-style: normal;
}

.approach-text p {
  color: rgba(255,255,255,0.72);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}
.approach-emphasis {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-style: italic;
  color: var(--gold-lt) !important;
  margin-top: 1rem;
  opacity: 1 !important;
}

/* ============================================================
   CONTACT
   ============================================================ */
#contact {
  padding: 7rem 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: start;
}

.contact-text h2 { margin-bottom: 1rem; }
.contact-text p { line-height: 1.8; }

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--cream);
  border: 1px solid var(--cream-dk);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.contact-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.contact-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--gold);
  margin-top: 2px;
}
.contact-icon svg { width: 100%; height: 100%; }

.contact-card h4 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-lt);
  margin-bottom: 0.35rem;
}
.contact-card p { font-size: 1rem; color: var(--text); line-height: 1.6; margin-bottom: 0; }
.contact-card a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--navy);
  transition: color var(--transition);
}
.contact-card a:hover { color: var(--gold); }
.contact-note { font-size: 0.875rem !important; color: var(--text-lt) !important; margin-top: 0.35rem !important; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
}
.footer-copy {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .about-grid         { grid-template-columns: 1fr; gap: 4rem; }
  .about-photo        { max-width: 360px; margin: 0 auto; }
  .approach-inner     { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid       { grid-template-columns: 1fr; gap: 3rem; }
  .areas-grid         { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  #about, #practice, #areas, #contact { padding: 5rem 0; }
  .areas-grid { grid-template-columns: 1fr; }
  #approach { padding: 5rem 0; }
  .practice-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }

  /* Mobile nav */
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    width: 280px;
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 7rem 2rem 2rem;
    gap: 0.5rem;
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -4px 0 30px rgba(0,0,0,0.3);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.05rem; padding: 0.6rem 0.5rem; width: 100%; }

  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; text-align: center; }
}

/* ============================================================
   SCROLL ANIMATIONS (opt-in via JS class)
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
