/* ============================================
   Law Office of Christopher B. O'Brien
   v3 — Original Site Styling Integration
   Warm, clean, minimalist — white + warm neutrals
   ============================================ */

/* --- CSS Variables --- */
:root {
  --brown: #5c4a3a;
  --brown-light: #7a6555;
  --brown-dark: #3e3028;
  --cream: #f9f6f2;
  --cream-dark: #f0ebe4;
  --white: #ffffff;
  --black: #1a1a1a;
  --text-primary: #2c2c2c;
  --text-secondary: #5a5a5a;
  --text-light: #8a8a8a;
  --accent: #5c4a3a;
  --accent-light: #7a6555;
  --accent-bg: rgba(92, 74, 58, 0.06);
  --bg-primary: #ffffff;
  --bg-secondary: #f9f6f2;
  --bg-card: #ffffff;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.15);
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
  --transition: 0.3s ease;
  --max-width: 1100px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.35;
  font-weight: 400;
  color: var(--black);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Utility Classes --- */
.text-accent { color: var(--accent); }
.text-secondary { color: var(--text-secondary); }

.section {
  padding: 80px 0;
}

.section-label {
  display: inline-block;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 16px;
  font-weight: 400;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 40px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--black);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--brown);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}

.btn-outline:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 9px 20px;
  font-size: 0.82rem;
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  width: auto;
}

.logo-text {
  font-family: 'Georgia', serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--black);
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-family: -apple-system, sans-serif;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color var(--transition);
  letter-spacing: 0.3px;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--black);
  transition: width var(--transition);
}

.nav-links a {
  position: relative;
}

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

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--black);
  transition: all var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

body.nav-open {
  overflow: hidden;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.hero::before {
  content: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 540px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: none;
  border: none;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 20px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 400;
}

.hero h1 .highlight {
  color: var(--brown);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.hero-stat {
  text-align: left;
}

.hero-stat .number {
  display: block;
  font-family: 'Georgia', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--brown);
}

.hero-stat .label {
  font-size: 0.72rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 520px;
}

.hero-image-wrapper img {
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
}

.hero-image-accent {
  display: none;
}

/* --- Practice Areas / Services --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 36px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brown);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-bg);
  border-radius: 8px;
  margin-bottom: 16px;
  color: var(--brown);
  font-size: 1.3rem;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

/* Primary service card */
.service-card.primary {
  border-color: var(--brown);
  background: linear-gradient(135deg, #ffffff, var(--cream));
}

.service-card.primary::before {
  transform: scaleX(1);
}

/* --- About Preview Section --- */
.about-preview {
  background: var(--bg-primary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
}

.about-image-accent {
  display: none;
}

.about-content h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin-bottom: 16px;
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.credentials-list {
  margin: 20px 0 28px;
}

.credentials-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 6px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.credentials-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 9px;
  background: var(--brown);
  border-radius: 50%;
}

/* --- Why Choose / Differentiators --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.why-card {
  text-align: center;
  padding: 32px 20px;
}

.why-card .icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.why-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.why-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 52px;
  text-align: center;
  margin: 0 auto;
  max-width: var(--max-width);
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 12px;
}

.cta-banner p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.text-gold {
  color: var(--brown);
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
}

.contact-info-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-bg);
  border-radius: 8px;
  color: var(--brown);
  font-size: 1.1rem;
}

.contact-info-text h4 {
  font-family: -apple-system, sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 3px;
}

.contact-info-text p,
.contact-info-text a {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.contact-form {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 36px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  color: var(--text-primary);
  font-family: -apple-system, sans-serif;
  font-size: 0.92rem;
  transition: border-color var(--transition);
}

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

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* --- Footer --- */
.footer {
  background: var(--black);
  padding: 52px 0 20px;
  color: rgba(255, 255, 255, 0.7);
}

.footer .logo-text {
  color: var(--white);
}

.footer .logo-text span {
  color: rgba(255, 255, 255, 0.4);
}

.footer .footer-brand p {
  color: rgba(255, 255, 255, 0.5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 0.88rem;
  margin-top: 14px;
  max-width: 280px;
}

.footer h4 {
  font-family: -apple-system, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 16px;
}

.footer-links li {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom p:last-child {
  flex-basis: 100%;
  text-align: center;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding: 130px 0 50px;
  background: var(--bg-secondary);
  text-align: center;
}

.page-header h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 12px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 550px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.8rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--text-light);
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* --- Practice Area Detail Pages --- */
.practice-detail {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
}

.practice-content h2 {
  font-size: 1.45rem;
  margin: 36px 0 14px;
}

.practice-content h2:first-child {
  margin-top: 0;
}

.practice-content p {
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.practice-content ul {
  margin: 18px 0;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.92rem;
  border: 1px solid #ccc;
}

.info-table th {
  text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-light);
  padding: 12px 16px;
  border: 1px solid #ccc;
  background: var(--bg-secondary);
}

.info-table td {
  padding: 14px 16px;
  color: var(--text-secondary);
  border: 1px solid #ccc;
  vertical-align: top;
}

.info-table td:first-child {
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
}

.practice-content ul li {
  display: block;
  padding: 10px 0 10px 16px;
  color: var(--text-secondary);
  border-left: 2px solid var(--brown);
  margin-bottom: 6px;
  line-height: 1.75;
}

.practice-content ul li:last-child {
  margin-bottom: 0;
}

.practice-content ul li strong {
  color: var(--text-primary);
}

.practice-sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
}

.sidebar-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px;
  margin-bottom: 20px;
}

.sidebar-card h3 {
  font-size: 1rem;
  margin-bottom: 14px;
}

.sidebar-nav a {
  display: block;
  padding: 9px 14px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  border-left: 2px solid var(--border);
  transition: all var(--transition);
  margin-bottom: 3px;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--brown);
  border-left-color: var(--brown);
  background: var(--accent-bg);
}

/* --- FAQ Accordion --- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--bg-secondary);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--cream-dark);
}

.faq-question .icon {
  font-size: 1.1rem;
  color: var(--brown);
  transition: transform var(--transition);
}

.faq-item.open .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
}

.faq-item.open .faq-answer {
  padding: 0 20px 20px;
  max-height: 500px;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* --- About Page --- */
.about-full {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: start;
}

.about-photo {
  position: sticky;
  top: 92px;
}

.about-photo img {
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.about-body h2 {
  font-size: 1.35rem;
  margin: 32px 0 14px;
  color: var(--brown);
}

.about-body h2:first-child {
  margin-top: 0;
}

.about-body p {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.timeline {
  position: relative;
  padding-left: 28px;
  margin: 20px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-strong);
}

.timeline-item {
  position: relative;
  padding-bottom: 20px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -33px;
  top: 6px;
  width: 10px;
  height: 10px;
  background: var(--brown);
  border-radius: 50%;
  border: 2px solid var(--white);
}

.timeline-item h4 {
  font-family: -apple-system, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 3px;
}

.timeline-item .date {
  font-size: 0.78rem;
  color: var(--brown);
  margin-bottom: 6px;
}

.timeline-item p {
  font-size: 0.88rem;
}

/* --- Blog --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: all var(--transition);
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.blog-card-image {
  height: 180px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

.blog-card-content {
  padding: 20px;
}

.blog-card-meta {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.blog-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.blog-list {
  max-width: 750px;
  margin: 0 auto;
}

.blog-list-item {
  display: flex;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.blog-list-item:first-child {
  padding-top: 0;
}

.blog-list-thumb {
  flex-shrink: 0;
  width: 180px;
  height: 120px;
  background: var(--cream);
  border-radius: 4px;
}

.blog-list-content h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.blog-list-content p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 10px;
}

/* --- Testimonials --- */
.testimonials {
  background: var(--bg-secondary);
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px;
  position: relative;
}

.testimonial-card .quote {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

.testimonial-card .quote::before {
  content: '\201C';
  font-family: 'Georgia', serif;
  font-size: 3rem;
  color: var(--brown);
  opacity: 0.2;
  position: absolute;
  top: 12px;
  left: 20px;
}

.testimonial-author {
  font-weight: 600;
  font-size: 0.85rem;
}

/* --- Sidebar CTA Card --- */
.sidebar-card-cta {
  background: linear-gradient(135deg, var(--bg-card), rgba(92, 74, 58, 0.06));
  border-color: var(--accent);
}

.sidebar-phone {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}

.sidebar-subtitle {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* --- Block Button --- */
.btn-block {
  width: 100%;
  justify-content: center;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .hero-image {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    max-width: 380px;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .practice-detail {
    grid-template-columns: 1fr;
  }

  .practice-sidebar {
    position: static;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-full {
    grid-template-columns: 1fr;
  }

  .about-photo {
    position: static;
    max-width: 280px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    flex-direction: column;
    justify-content: flex-start;
    padding: 32px 24px;
    gap: 0;
  }

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

  .nav-links a {
    font-size: 1.1rem;
    padding: 14px 0;
    display: block;
  }

  .mobile-toggle {
    display: flex;
  }

  .header-phone {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
    padding-bottom: 48px;
  }

  .section {
    padding: 48px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: 32px 20px;
    margin: 0 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-links a {
    display: block;
    padding: 6px 0;
  }

  .footer-links li {
    margin-bottom: 4px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 14px;
    font-size: 1rem;
  }

  .btn-sm {
    padding: 12px 20px;
  }

  .blog-list-item {
    flex-direction: column;
  }

  .blog-list-thumb {
    width: 100%;
    height: 160px;
  }

  .hero-stats {
    flex-wrap: wrap;
  }

  .sidebar-nav a {
    padding: 12px 14px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 36px 0;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

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

  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .hero-stat {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .hero-stat .number {
    font-size: 1.3rem;
  }

  .page-header {
    padding: 110px 0 36px;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }

  .section-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
  }

  .cta-banner {
    margin: 0;
    padding: 24px 16px;
  }

  .cta-banner h2 {
    font-size: 1.3rem;
  }

  .header-cta .btn {
    padding: 8px 14px;
    font-size: 0.78rem;
  }

  .faq-question {
    font-size: 0.88rem;
    padding: 14px 16px;
  }
}
