/* ==========================================================================
   HLYWA LAW — Design System & Global Styles
   Extracted from Figma: oMNp5PJvTvxcLxTR4XImUx
   ========================================================================== */

/* ---------- @font-face: Neue Montreal ---------- */
@font-face {
  font-family: 'Neue Montreal';
  src: url('../fonts/NeueMontreal-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neue Montreal';
  src: url('../fonts/NeueMontreal-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Neue Montreal';
  src: url('../fonts/NeueMontreal-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colors */
  --color-primary: #780001;
  --color-primary-dark: #470001;
  --color-beige: #EAD09E;
  --color-beige-light: #FEE6B9;
  --color-light: #F6F2F2;
  --color-white: #FFFFFF;
  --color-black: #000000;
  --color-text: #470001;
  --color-text-light: #FFFFFF;
  --color-border: rgba(0, 0, 0, 0.1);

  /* Typography */
  --font-family: 'Neue Montreal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium: 500;

  /* Font Sizes */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 28px;
  --text-4xl: 36px;
  --text-5xl: 48px;
  --text-6xl: 52px;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 40px;
  --space-3xl: 48px;
  --space-4xl: 60px;
  --space-5xl: 80px;
  --space-6xl: 112px;

  /* Layout */
  --container-max: 1216px;
  --container-padding: 112px;
  --section-padding-y: 80px;
  --border-radius: 8px;
  --border-radius-lg: 12px;

  /* Shadows */
  --shadow-card: 0px 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-elevated: 0px 4px 16px rgba(0, 0, 0, 0.1);
}

/* ---------- Font Face ---------- */
/* Neue Montreal — add font files to /fonts/ directory */
/* Falling back to Inter from Google Fonts */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--text-lg);
  font-weight: var(--font-weight-regular);
  line-height: 1.5;
  letter-spacing: 0.36px;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-medium);
  line-height: 1.1;
  color: var(--color-text);
  text-transform: capitalize;
}

h1 { font-size: var(--text-6xl); }
h2 { font-size: var(--text-5xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-xl); }

p {
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 16px 32px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.32px;
  border-radius: var(--border-radius);
  transition: background 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
  text-transform: capitalize;
}

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

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 16px 32px;
  background: var(--color-beige);
  color: var(--color-primary);
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.32px;
  border-radius: var(--border-radius);
  transition: background 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
  text-transform: capitalize;
}

.btn-secondary:hover {
  background: #d4b87e;
}

.btn-secondary:active {
  transform: scale(0.98);
}

.btn-small {
  padding: 12px 16px;
  font-size: var(--text-sm);
  letter-spacing: 0.28px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-primary);
  transition: gap 0.2s ease;
}

.link-arrow::after {
  content: '\2192';
  transition: transform 0.2s ease;
}

.link-arrow:hover::after {
  transform: translateX(4px);
}

/* ---------- Top Bar ---------- */
.top-bar {
  background: var(--color-primary);
  padding: 10px 0;
  text-align: center;
}

.top-bar a {
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.28px;
}

.top-bar a:hover {
  text-decoration: underline;
}

/* ---------- Navigation ---------- */
.main-nav {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-menu a {
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  letter-spacing: 0.32px;
  transition: color 0.2s ease;
  padding: 8px 0;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--color-primary);
}

.nav-menu .nav-cta {
  padding: 12px 16px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--border-radius);
}

.nav-menu .nav-cta:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

/* Dropdown */
.has-dropdown {
  position: relative;
}

.has-dropdown > a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.has-dropdown > a::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform 0.2s ease;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-elevated);
  padding: var(--space-sm) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 100;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-regular);
  white-space: nowrap;
}

.dropdown a:hover {
  background: var(--color-light);
  color: var(--color-primary);
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s ease;
}

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

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

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

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: 80px 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  max-width: 560px;
  flex-shrink: 0;
}

.hero-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: var(--space-md);
}

.hero-stars .star {
  color: #F5C518;
  font-size: 20px;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-lg);
  margin-bottom: var(--space-xl);
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-cta-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hero-cta-right .btn-primary,
.hero-cta-right .btn-secondary {
  width: 280px;
  text-align: center;
}

/* ---------- Meet Attorney Section ---------- */
.attorney {
  padding: var(--section-padding-y) 0;
}

.attorney .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.attorney-image img {
  width: 100%;
  border-radius: var(--border-radius-lg);
  object-fit: cover;
  object-position: center 20%;
}

.attorney-content h2 {
  margin-bottom: var(--space-lg);
}

.attorney-content p {
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.attorney-badges {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  align-items: center;
}

.attorney-badges img {
  height: 60px;
  width: auto;
}

.attorney-link {
  margin-top: var(--space-xl);
}

/* ---------- Practice Areas Section ---------- */
.practice-areas {
  padding: var(--section-padding-y) 0;
  background: var(--color-light);
}

.practice-areas .section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.practice-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.practice-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s ease;
}

.practice-card:hover {
  box-shadow: var(--shadow-elevated);
}

.practice-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.practice-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.practice-card:hover .practice-card-image img {
  transform: scale(1.05);
}

.practice-card-body {
  padding: var(--space-lg);
}

.practice-card-body h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.practice-card-body p {
  font-size: var(--text-base);
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

/* ---------- Testimonials Section ---------- */
.testimonials {
  padding: var(--section-padding-y) 0;
}

.testimonials .section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

/* Carousel layout for testimonials */
.testimonial-carousel-wrapper {
  position: relative;
}

.testimonial-carousel {
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  gap: 24px;
  transition: transform 0.3s ease;
}

.testimonial-track .testimonial-card {
  flex: 0 0 320px;
  max-width: 320px;
}

.testimonial-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* Google-style card: author row at top */
.testimonial-card .review-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.testimonial-card .review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-card .review-avatar-initial {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-card .review-author-info {
  flex: 1;
  min-width: 0;
}

.testimonial-card .review-author-name {
  font-weight: 600;
  font-size: 14px;
  margin: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testimonial-card .review-author-time {
  font-size: 12px;
  color: #70757a;
  margin: 0;
  line-height: 1.3;
}

.testimonial-card .review-google-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

/* Stars + verified row */
.testimonial-card .review-stars-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
}

.testimonial-card .review-stars-row svg {
  flex-shrink: 0;
}

.testimonial-card .review-verified {
  width: 16px;
  height: 16px;
  margin-left: 2px;
}

/* Review text */
.testimonial-card .review-text {
  font-size: 14px;
  line-height: 1.5;
  color: #3c4043;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.testimonial-card .review-read-more {
  font-size: 13px;
  color: #1a73e8;
  text-decoration: none;
  font-weight: 500;
}

.testimonial-card .review-read-more:hover {
  text-decoration: underline;
}

/* Carousel side arrows */
.carousel-arrow-side {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #dadce0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  font-size: 18px;
  color: #3c4043;
  transition: box-shadow 0.2s;
}

.carousel-arrow-side:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.carousel-arrow-side.prev {
  left: -20px;
}

.carousel-arrow-side.next {
  right: -20px;
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  color: #F5C518;
  font-size: 16px;
}

.testimonial-source {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.testimonial-source img {
  height: 20px;
  width: auto;
}

.testimonial-card p {
  font-size: var(--text-base);
  line-height: 1.6;
}

.testimonial-author {
  margin-top: var(--space-md);
  font-weight: var(--font-weight-medium);
  font-size: var(--text-sm);
}

.testimonials .center-cta {
  text-align: center;
  margin-top: var(--space-2xl);
}

/* ---------- Trust Section ---------- */
.trust {
  padding: var(--section-padding-y) 0;
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  overflow: hidden;
}

.trust::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(71, 0, 1, 0.88);
  z-index: 1;
}

.trust .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.trust-image img {
  width: 100%;
  min-height: 500px;
  border-radius: var(--border-radius-lg);
  object-fit: cover;
}

.trust-content h2 {
  color: var(--color-white);
  margin-bottom: 12px;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.trust-item .icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}

.trust-item .icon img {
  width: 100%;
  height: 100%;
}

.trust-item h3 {
  font-size: 22px;
  font-weight: var(--font-weight-medium);
  color: var(--color-white);
  line-height: 1.4;
}

/* ---------- Process / Steps Section ---------- */
.process {
  padding: var(--section-padding-y) 0;
}

.process .section-header {
  margin-bottom: var(--space-md);
}

.process .section-header h2 {
  margin-bottom: var(--space-md);
}

.process .section-header p {
  max-width: 600px;
}

.process-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: start;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
}

.step-number {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  min-width: 52px;
  background: var(--color-beige);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: var(--font-weight-medium);
  color: var(--color-primary);
}

.process-step h3 {
  font-size: 22px;
  margin-bottom: var(--space-sm);
}

.process-step p {
  font-size: var(--text-base);
}

.process-image img {
  width: 100%;
  min-height: 500px;
  border-radius: var(--border-radius-lg);
  object-fit: cover;
}

.process .center-cta {
  margin-top: var(--space-2xl);
}

/* ---------- Consultation Form Section ---------- */
.consultation {
  padding: var(--section-padding-y) 0;
  position: relative;
  background-size: cover;
  background-position: center;
}

.consultation::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(71, 0, 1, 0.85);
  z-index: 1;
}

.consultation .container {
  position: relative;
  z-index: 2;
  max-width: 700px;
  text-align: center;
}

.consultation h2 {
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

.consultation p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-xl);
}

.consultation-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-white);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  font-size: var(--text-base);
  min-height: 48px;
  transition: border-color 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

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

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='white' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group select option {
  color: var(--color-text);
  background: var(--color-white);
}

.consultation-form .btn-primary {
  grid-column: 1 / -1;
  justify-self: start;
}

/* ---------- CTA Banner / Call Now ---------- */
.cta-banner {
  padding: var(--section-padding-y) 0;
  background: var(--color-beige-light);
}

.cta-banner .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.cta-banner-image img {
  width: 100%;
  border-radius: var(--border-radius-lg);
  object-fit: cover;
}

.cta-banner-content h2 {
  margin-bottom: var(--space-md);
}

.cta-banner-content p {
  margin-bottom: var(--space-xl);
}

/* ---------- Blog Section ---------- */
.blog-section {
  padding: var(--section-padding-y) 0;
}

.blog-section .section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.blog-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.blog-card {
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.3s ease;
}

.blog-card:hover {
  box-shadow: var(--shadow-elevated);
}

.blog-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-body {
  padding: var(--space-lg);
}

.blog-card-body .blog-date {
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-sm);
}

.blog-card-body h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.blog-card-body p {
  font-size: var(--text-base);
  margin-bottom: var(--space-md);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(71, 0, 1, 0.92);
  z-index: 1;
}

.site-footer .container {
  position: relative;
  z-index: 2;
}

.footer-main {
  padding: 60px 0 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: var(--space-2xl);
}

.footer-brand img {
  max-width: 200px;
  margin-bottom: var(--space-md);
}

.footer-col h4 {
  font-size: var(--text-lg);
  font-weight: var(--font-weight-medium);
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-col a {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s ease;
}

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

.footer-contact li {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer-contact .icon-label {
  font-weight: var(--font-weight-medium);
  color: var(--color-white);
}

.footer-map {
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-top: var(--space-md);
}

.footer-map iframe {
  width: 100%;
  height: 200px;
  border: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: var(--space-lg) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.6);
}

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

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

/* ---------- Page Hero (subpages) ---------- */
.page-hero {
  position: relative;
  padding: 60px 0;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(71, 0, 1, 0.8);
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.page-hero p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
}

/* ---------- About Page ---------- */
.about-hero {
  padding: var(--section-padding-y) 0;
}

.about-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.about-hero-content h1 {
  margin-bottom: var(--space-lg);
}

.about-hero-image img {
  width: 100%;
  border-radius: var(--border-radius-lg);
  object-fit: cover;
  object-position: center 20%;
}

.credentials-box {
  background: var(--color-beige-light);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl) var(--space-2xl);
}

.credentials-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-2xl);
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
}

.credentials-list li::before {
  content: '\2713';
  margin-right: var(--space-sm);
  color: var(--color-primary);
}

.recognition-badges {
  padding: var(--space-2xl) 0;
}

.badges-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2xl);
}

.badges-grid img {
  height: 80px;
  width: auto;
}

.background-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.background-block h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
}

.background-block ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.background-block li {
  font-size: var(--text-base);
  padding-left: var(--space-lg);
  position: relative;
}

.background-block li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
}

/* Philosophy */
.philosophy {
  padding: var(--section-padding-y) 0;
  background: var(--color-light);
}

.philosophy-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.pillar h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.philosophy-quote {
  margin-top: var(--space-2xl);
  text-align: center;
}

.philosophy-quote blockquote {
  font-size: var(--text-xl);
  font-style: italic;
  max-width: 700px;
  margin: var(--space-md) auto 0;
  line-height: 1.6;
}

/* ---------- Contact Page ---------- */
.contact-hero {
  padding: var(--section-padding-y) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.contact-info-item .icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

/* ---------- Blog Page ---------- */
.blog-page-hero {
  min-height: 580px;
  display: flex;
  align-items: center;
  padding: 120px 0;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.blog-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.blog-page-hero .container {
  position: relative;
  z-index: 2;
}

.blog-hero-layout {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.blog-hero-text {
  flex: 0 0 560px;
  max-width: 560px;
}

.blog-hero-text h1 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.blog-hero-text p {
  color: var(--color-white);
  font-size: var(--text-lg);
  letter-spacing: 0.36px;
}

.blog-hero-cta {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.blog-hero-cta .btn-primary,
.blog-hero-cta .btn-secondary {
  width: auto;
}

.blog-listing {
  padding: 40px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 52px var(--space-xl);
}

.blog-card--beige {
  background: var(--color-beige-light);
  border: none;
}

.blog-card--beige .blog-date {
  color: var(--color-text);
  opacity: 0.7;
  font-weight: var(--font-weight-regular);
}

.blog-card--beige h3 {
  font-size: 22px;
  color: var(--color-text);
}

/* ---------- Sub-Service Page (Template) ---------- */
.service-content {
  padding: var(--section-padding-y) 0;
}

.service-content .container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-4xl);
}

.service-main h2 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.service-main h2:first-child {
  margin-top: 0;
}

.service-main ul {
  margin: var(--space-md) 0;
  padding-left: var(--space-lg);
}

.service-main li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.service-main li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
}

.service-sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-card {
  background: var(--color-beige-light);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.sidebar-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.sidebar-nav a {
  display: block;
  padding: 12px 16px;
  background: var(--color-white);
  border-radius: var(--border-radius);
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  transition: background 0.2s ease;
}

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

/* ---------- Center CTA ---------- */
.center-cta {
  text-align: center;
  margin-top: var(--space-2xl);
}

/* ---------- Section Header ---------- */
.section-header {
  margin-bottom: var(--space-3xl);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

/* ---------- Scroll to Top ---------- */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-elevated);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  cursor: pointer;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--color-primary-dark);
}

/* ---------- Hero Checklist ---------- */
.hero-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: var(--space-xl);
}

.hero-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-weight: var(--font-weight-medium);
  font-size: var(--text-lg);
  letter-spacing: 0.36px;
}

.hero-check-item img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.hero-stars img {
  width: 20px;
  height: 20px;
}

/* ---------- Consultation Form — Underline Style (Figma) ---------- */
.form-group-underline {
  width: 100%;
}

.form-group-underline input,
.form-group-underline textarea,
.form-group-underline select {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--color-beige);
  background: transparent;
  color: var(--color-white);
  font-size: var(--text-lg);
  font-family: var(--font-family);
  letter-spacing: 0.36px;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.2s ease;
  min-height: 48px;
}

.form-group-underline input::placeholder,
.form-group-underline textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.form-group-underline input:focus,
.form-group-underline textarea:focus,
.form-group-underline select:focus {
  border-bottom-color: var(--color-white);
}

.form-group-underline select {
  appearance: none;
  color: rgba(255, 255, 255, 0.45);
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='white' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 24px;
}

.form-group-underline select option {
  color: var(--color-text);
  background: var(--color-white);
}

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

.consultation-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.consultation-form .form-row {
  display: flex;
  gap: 24px;
}

/* ---------- Practice Card as Link ---------- */
a.practice-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

a.blog-card {
  text-decoration: none;
  color: inherit;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-white { color: var(--color-white); }
.bg-light { background: var(--color-light); }
.bg-beige { background: var(--color-beige-light); }

/* ==========================================================================
   RESPONSIVE — Mobile First Breakpoint at 768px
   ========================================================================== */

@media (max-width: 1024px) {
  :root {
    --container-padding: 40px;
  }

  .container {
    padding: 0 var(--space-lg);
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

@media (max-width: 768px) {
  /* Typography scale down */
  h1 { font-size: 36px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }

  body { font-size: var(--text-base); }

  .container {
    padding: 0 var(--space-md);
  }

  /* Navigation */
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    padding: 80px var(--space-lg) var(--space-lg);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
    gap: 0;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-menu a {
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
    display: block;
  }

  .nav-menu .nav-cta {
    margin-top: var(--space-md);
    text-align: center;
  }

  /* Dropdown mobile — larger tap target for caret */
  .has-dropdown > a::after {
    margin-left: auto;
    padding: 10px;
    width: 10px;
    height: 10px;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0;
    display: none;
    background: var(--color-light);
    border-radius: 0;
  }

  .dropdown.open {
    display: block;
  }

  .dropdown a {
    padding: 12px var(--space-md);
    font-size: var(--text-base);
  }

  /* Mobile overlay */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
  }

  .nav-overlay.active {
    display: block;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero .container {
    flex-direction: column;
  }

  .hero-cta-right {
    width: 100%;
    align-items: stretch;
  }

  .hero-cta-right .btn-primary,
  .hero-cta-right .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
    text-align: center;
  }

  /* Attorney */
  .attorney .container {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .attorney-image {
    order: -1;
  }

  /* Practice cards */
  .practice-cards {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* Testimonials */
  .testimonial-cards {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .testimonial-track .testimonial-card {
    flex: 0 0 calc(100vw - 80px);
    max-width: calc(100vw - 80px);
  }

  .testimonial-carousel-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .testimonial-carousel {
    order: 1;
    width: 100%;
  }

  .carousel-arrow-side {
    position: static;
    transform: none;
    order: 2;
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  /* Trust */
  .trust .container {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* Process */
  .process-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  /* Consultation form */
  .consultation-form {
    grid-template-columns: 1fr;
  }

  /* CTA Banner */
  .cta-banner .container {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  /* Blog cards */
  .blog-cards,
  .blog-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  /* Blog page hero */
  .blog-page-hero {
    min-height: auto;
    padding: 60px 0;
  }

  .blog-page-hero h1 {
    font-size: 40px;
  }

  .blog-hero-layout {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .blog-hero-text {
    flex: none;
    max-width: 100%;
  }

  .blog-hero-text h1 {
    font-size: 40px;
  }

  .blog-hero-text p {
    margin-bottom: 0;
  }

  .blog-hero-cta {
    width: 100%;
    align-items: stretch;
  }

  .blog-hero-cta .btn-primary,
  .blog-hero-cta .btn-secondary {
    width: 100%;
    text-align: center;
  }

  .blog-listing {
    padding: 40px 0;
  }

  /* Footer */
  .footer-main {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-col {
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  /* About */
  .about-hero .container {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

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

  .philosophy-pillars {
    grid-template-columns: 1fr;
  }

  .credentials-list {
    flex-direction: column;
  }

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

  /* Service pages */
  .service-content .container {
    grid-template-columns: 1fr;
  }

  .service-sidebar {
    position: static;
  }

  /* Sections spacing */
  .hero, .attorney, .practice-areas, .testimonials,
  .trust, .process, .consultation, .cta-banner,
  .blog-section, .about-hero, .philosophy, .blog-listing {
    padding: 48px 0;
  }

  /* Buttons — center all on mobile */
  .btn-primary:not(.btn-small),
  .btn-secondary:not(.btn-small) {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 24px;
    font-size: var(--text-sm);
  }

  .btn-small {
    padding: 12px 16px;
    font-size: var(--text-sm);
  }

  /* Sticky header on mobile — top-bar + nav both visible */
  .top-bar {
    position: sticky;
    top: 0;
    z-index: 1001;
  }

  .main-nav {
    top: 41px;
  }
}

