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

:root {
  --navy: #1B2A4A;
  --navy-light: #2C3E6B;
  --navy-dark: #0F1A2E;
  --gold: #C4A55A;
  --gold-light: #D4BA7A;
  --white: #FFFFFF;
  --off-white: #F7F8FA;
  --gray-light: #E8EBF0;
  --gray: #8A92A3;
  --text: #2D3142;
  --text-light: #5A6178;
}

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

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Typography ===== */
h1, h2, h3 {
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--navy);
}

h1 {
  font-size: 2.8rem;
  line-height: 1.2;
}

h2 {
  font-size: 1.8rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.4;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold);
}

/* ===== Navigation ===== */
nav {
  background: var(--navy);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(15, 26, 46, 0.15);
}

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

.nav-logo {
  color: var(--white);
  font-size: 1.25rem;
  font-family: 'Georgia', serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-logo span {
  color: var(--gold);
  font-weight: 700;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  padding: 1.5rem 1.75rem;
  display: block;
  font-family: 'Georgia', serif;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s ease, background 0.2s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 60%;
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: transform 0.3s ease;
}

/* ===== Hero Section (Home) ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  opacity: 0.25;
  filter: blur(1px);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 26, 46, 0.92) 0%,
    rgba(27, 42, 74, 0.85) 50%,
    rgba(15, 26, 46, 0.92) 100%
  );
}

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

.hero-content h1 {
  color: var(--white);
  font-size: 3.2rem;
  margin-bottom: 0.5rem;
}

.hero-divider {
  width: 80px;
  height: 2px;
  background: var(--gold);
  margin: 1.5rem auto;
}

.hero-tagline {
  color: var(--gold-light);
  font-size: 1.15rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-family: 'Georgia', serif;
}

.hero-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  font-family: 'Georgia', serif;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid var(--gold);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--gold);
  color: var(--navy-dark);
}

/* ===== Section Layouts ===== */
.section {
  padding: 5rem 2rem;
}

.section-inner {
  max-width: 900px;
  margin: 0 auto;
}

.section-alt {
  background: var(--off-white);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 0.5rem;
}

.section-header .divider {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 1rem auto 0;
}

/* ===== About Page ===== */
.about-hero {
  background: var(--navy);
  padding: 4rem 2rem;
  text-align: center;
}

.about-hero h1 {
  color: var(--white);
  font-size: 2.4rem;
}

.about-hero p {
  color: var(--gold-light);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

.profile-section {
  padding: 4rem 2rem;
}

.profile-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}

.profile-photo {
  flex-shrink: 0;
}

.profile-photo img {
  width: 280px;
  height: 340px;
  object-fit: cover;
  object-position: center top;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(15, 26, 46, 0.15);
}

.profile-content h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.profile-content p {
  color: var(--text-light);
  font-size: 1.05rem;
}

/* Practice Areas */
.practice-areas {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-light);
}

.practice-areas h3 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--navy);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.areas-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
}

.areas-list li {
  padding: 0.45rem 1.1rem;
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  border-radius: 3px;
  font-size: 0.88rem;
  color: var(--navy);
  letter-spacing: 0.02em;
}

/* ===== About Details Section ===== */
.details-section {
  padding: 4rem 2rem;
}

.details-inner {
  max-width: 900px;
  margin: 0 auto;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.details-block h3 {
  font-size: 1.05rem;
  color: var(--navy);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.details-list {
  list-style: none;
  padding: 0;
}

.details-list li {
  padding: 0.5rem 0;
  color: var(--text-light);
  font-size: 1rem;
  border-bottom: 1px solid var(--gray-light);
}

.details-list li:last-child {
  border-bottom: none;
}

@media (max-width: 768px) {
  .details-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ===== Contact Page ===== */
.contact-hero {
  background: var(--navy);
  padding: 4rem 2rem;
  text-align: center;
}

.contact-hero h1 {
  color: var(--white);
  font-size: 2.4rem;
}

.contact-hero p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  margin-top: 0.75rem;
}

.contact-section {
  padding: 4rem 2rem;
  background: var(--off-white);
  flex: 1;
}

.contact-inner {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  padding: 3rem;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(15, 26, 46, 0.08);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  color: var(--navy);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: 'Georgia', serif;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gray-light);
  border-radius: 3px;
  font-family: 'Georgia', serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.form-group .optional {
  color: var(--gray);
  font-size: 0.75rem;
  text-transform: none;
  letter-spacing: normal;
  margin-left: 0.3rem;
}

.form-submit {
  text-align: center;
  margin-top: 2rem;
}

.form-submit .btn {
  width: 100%;
  padding: 1rem;
  font-size: 0.95rem;
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.form-submit .btn:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
}

/* ===== Footer ===== */
footer {
  background: var(--navy-dark);
  padding: 2rem;
  text-align: center;
  margin-top: auto;
}

footer p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  margin: 0;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 1rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links a::after {
    display: none;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  h1 {
    font-size: 2rem;
  }

  .profile-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-photo img {
    width: 220px;
    height: 270px;
  }

  .areas-list {
    justify-content: center;
  }

  .contact-inner {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-tagline {
    font-size: 0.95rem;
  }

  .section {
    padding: 3rem 1.5rem;
  }
}
