:root {
  --white: #ffffff;
  --gray: #f1f1f1;
  --coral: #f15942;
  --coral-dark: #d94630;
  --dark: #222222;
  --text: #333333;
  --muted: #666666;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* Top bar */
.top-bar {
  background: var(--gray);
  font-size: 0.82rem;
  color: var(--muted);
  border-bottom: 1px solid #e3e3e3;
}

.top-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  flex-wrap: wrap;
  gap: 10px;
}

.top-socials, .top-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.top-socials a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.btn-coral-sm {
  background: var(--coral);
  color: var(--white);
  padding: 6px 14px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 3px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--dark);
}

.coral-scales {
  color: var(--coral);
  font-size: 1.8rem;
}

.brand-name {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.5px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 99px;
}

.main-nav a.pill-active,
.main-nav a:hover {
  background: var(--coral);
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--dark);
}

/* Hero */
.hero {
  background: linear-gradient(120deg, #f8f8f8 0%, #eceef2 100%);
  padding: 50px 0 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: center;
}

.hero-slide-text {
  display: none;
}

.hero-slide-text.active {
  display: block;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 16px;
}

.hero-copy h1 span {
  color: var(--coral);
}

.hero-copy p {
  color: var(--muted);
  margin-bottom: 26px;
  max-width: 520px;
}

.btn-coral {
  display: inline-block;
  background: var(--coral);
  color: var(--white);
  border: none;
  padding: 13px 28px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.8px;
  text-decoration: none;
  border-radius: 3px;
  cursor: pointer;
}

.btn-coral:hover {
  background: var(--coral-dark);
}

.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 28px;
  padding-bottom: 36px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #cccccc;
  cursor: pointer;
}

.dot.active {
  background: var(--coral);
}

.hero-portrait img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
  display: block;
}

/* Sections */
.section-white {
  background: var(--white);
  padding: 80px 0;
}

.section-gray {
  background: var(--gray);
  padding: 80px 0;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.highlight-box {
  border: 1px solid #eaeaea;
  padding: 30px;
  border-radius: 6px;
  text-align: center;
}

.h-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(241, 89, 66, 0.1);
  color: var(--coral);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.highlight-box h3 {
  margin-bottom: 8px;
}

.highlight-box p {
  font-size: 0.92rem;
  color: var(--muted);
}

/* Bar Headings */
.bar-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 42px;
}

.bar-heading.right {
  justify-content: flex-end;
  text-align: right;
}

.coral-bar {
  width: 5px;
  height: 52px;
  background: var(--coral);
  display: inline-block;
}

.bar-heading small {
  display: block;
  color: var(--coral);
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 0.78rem;
}

.bar-heading h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
}

/* Practice */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.practice-card {
  background: var(--white);
  padding: 28px;
  border-radius: 6px;
  border-left: 4px solid var(--coral);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.p-badge {
  display: inline-block;
  color: var(--coral);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.practice-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.practice-card p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Attorneys */
.attorney-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.attorney-card {
  background: var(--gray);
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
}

.attorney-card img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  display: block;
}

.attorney-info {
  padding: 18px;
}

.attorney-info h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.attorney-info span {
  font-size: 0.84rem;
  color: var(--coral);
  font-weight: 600;
}

/* Emergency + Appointment */
.emergency-head {
  text-align: center;
  margin-bottom: 40px;
}

.emergency-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 8px;
}

.emergency-head strong {
  color: var(--coral);
}

.appointment-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.team-photo-box img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.appointment-form {
  background: var(--gray);
  padding: 36px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.appointment-form h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.appointment-form input,
.appointment-form textarea {
  padding: 12px 14px;
  border: 1px solid #dddddd;
  background: var(--white);
  border-radius: 4px;
  font-family: inherit;
}

.form-msg {
  color: var(--coral-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  border: 1px solid #eaeaea;
  border-radius: 6px;
  overflow: hidden;
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.news-body {
  padding: 22px;
}

.news-body span {
  font-size: 0.76rem;
  color: var(--coral);
  font-weight: 700;
}

.news-body h3 {
  font-size: 1.2rem;
  margin: 8px 0;
}

.news-body p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  background: var(--dark);
  color: #cccccc;
  padding-top: 64px;
  text-align: center;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding-bottom: 40px;
}

.coral-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--coral);
  display: inline-block;
  margin-bottom: 12px;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 8px;
}

.footer-col p {
  font-size: 0.9rem;
  color: #aaaaaa;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding-bottom: 34px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
}

.footer-copy {
  background: #181818;
  padding: 16px;
  font-size: 0.84rem;
  color: #999999;
}

@media (max-width: 960px) {
  .hero-grid,
  .highlights-grid,
  .practice-grid,
  .attorney-grid,
  .appointment-split,
  .news-grid,
  .footer-cols {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 20px 6%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  }

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