:root {
  --dark: #1f2933;
  --dark-secondary: #374151;
  --accent: #1c4ed8;
  --light: #ffffff;
  --gray: #f3f4f6;
}

/* =========================
   Reset / Base
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  background-color: var(--light);
}

/* =========================
   Layout Containers
========================= */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Space for fixed header */
main {
  padding-top: 160px;
}

.section {
  padding: 120px 0;
}

/* =========================
   Header
========================= */

.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--light);
  border-bottom: 1px solid #e5e7eb;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 24px 6px;
}

.logo {
  height: 64px; /* reduced from 248px to avoid layout issues */
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
}

.nav a {
  margin-left: 24px;
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  white-space: nowrap;
}

.nav a:hover {
  text-decoration: underline;
}

.header-tagline {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4b5563;
  padding: 6px 32px 10px;
}

/* =========================
   Hero
========================= */

.hero {
  position: relative;
  background-image: url("nasoc.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 160px 24px 120px;
  color: var(--light);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.3);
}

/* ✅ FIXED: proper child selector (was HTML-escaped before) */
.hero > * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 900px;
  line-height: 1.15;
  margin-bottom: 28px;
}

/* =========================
   Typography
========================= */

h1 {
  font-size: 3rem;
  font-weight: 600;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 32px;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
}

p {
  margin-bottom: 1.25rem;
}

.lead {
  font-size: 1.125rem;
  max-width: 800px;
}

/* =========================
   About
========================= */

.about {
  background-color: var(--light);
}

/* =========================
   Practice Areas
========================= */

.practice {
  background-color: var(--gray);
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.practice-card {
  background: var(--light);
  padding: 40px;
  border-left: 4px solid var(--accent);
}

.practice-card h3 {
  margin-bottom: 16px;
}

/* =========================
   Contact
========================= */

.contact {
  background-color: var(--light);
}

.contact-form {
  max-width: 600px;
  margin-top: 40px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

label {
  font-weight: 600;
  margin-bottom: 8px;
}

input,
textarea {
  padding: 12px;
  border: 1px solid #d1d5db;
  font-family: inherit;
}

button {
  padding: 14px 28px;
  background: var(--accent);
  color: white;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  opacity: 0.9;
}

/* =========================
   Footer
========================= */

.footer {
  background: var(--dark);
  color: white;
  text-align: center;
  padding: 40px 24px;
}

/* =========================
   Responsive
========================= */

@media (max-width: 768px) {
  .hero {
    padding: 120px 20px 80px;
    background-position: center top;
  }

  h1 {
    font-size: 2.1rem;
  }

  .header .container {
    flex-direction: column;
    gap: 12px;
  }

  .nav a {
    margin-left: 12px;
    margin-right: 12px;
  }
}