/* ============================================
   CHILINGIRIAN LAW GROUP — Global Styles
   Blue / Gray / White Color Scheme
   ============================================ */

:root {
  --blue: #1a3d7c;
  --blue-light: #2a5298;
  --blue-dark: #0f2847;
  --blue-bright: #3068c8;
  --blue-accent: #4a8fe7;
  --gray-900: #1a1f2e;
  --gray-800: #2d3444;
  --gray-700: #3d4556;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --off-white: #f7f8fb;
  --text-dark: #1a1f2e;
  --text-body: #3d4556;
  --text-light: #6b7280;
  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1200px;
  --nav-height: 100px;
  --transition: 0.3s ease;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-body);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; image-rendering: -webkit-optimize-contrast; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.2;
  font-weight: 400;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin-bottom: 1rem; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 12px;
}

.section-title {
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 650px;
  line-height: 1.8;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav--scrolled {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav--scrolled .nav__logo img {
  height: 100px;
}

.nav--scrolled.nav--hero .nav__logo img {
  height: 100px;
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__logo img {
  height: 130px;
  width: auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Nav on hero pages - same as inner pages, sits at top */
.nav--hero { height: 100px; }

.nav__links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav__links a {
  color: var(--gray-600);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color var(--transition);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width var(--transition);
}

.nav__links a:hover { color: var(--blue); }
.nav__links a:hover::after { width: 100%; }
.nav__links a.active { color: var(--blue); }
.nav__links a.active::after { width: 100%; }

/* Hero-state nav (white text on dark) */
.nav--hero .nav__logo img { filter: brightness(0) invert(1); }
.nav--scrolled.nav--hero .nav__logo img { filter: none; }
.nav--hero .nav__links a { color: rgba(255,255,255,0.85); }
.nav--hero .nav__links a:hover { color: var(--white); }
.nav--hero .nav__links a.active { color: var(--white); }
.nav--hero .nav__links a::after { background: var(--white); }
.nav--hero .nav__cta {
  background: var(--white) !important;
  color: var(--blue) !important;
}
.nav--hero .nav__cta:hover {
  background: var(--gray-100) !important;
}

/* Scrolled state overrides hero */
.nav--scrolled.nav--hero .nav__links a { color: var(--gray-600); }
.nav--scrolled.nav--hero .nav__links a:hover { color: var(--blue); }
.nav--scrolled.nav--hero .nav__links a.active { color: var(--blue); }
.nav--scrolled.nav--hero .nav__links a::after { background: var(--blue); }
.nav--scrolled.nav--hero .nav__cta,
.nav--scrolled .nav__cta {
  background: var(--blue) !important;
  color: var(--white) !important;
}
.nav--scrolled.nav--hero .nav__cta:hover,
.nav--scrolled .nav__cta:hover {
  background: var(--blue-light) !important;
}

.nav__cta {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  transition: background var(--transition) !important;
}

.nav__cta:hover {
  background: var(--blue-light) !important;
}

.nav__cta::after { display: none !important; }

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

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  transition: var(--transition);
}

.nav--hero .nav__hamburger span { background: var(--white); }
.nav--scrolled .nav__hamburger span,
.nav--scrolled.nav--hero .nav__hamburger span { background: var(--gray-700); }

/* Mobile Nav */
@media (max-width: 768px) {
  .nav__hamburger { display: flex; }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 100px 40px 40px;
    gap: 24px;
    transition: right var(--transition);
    box-shadow: -4px 0 30px rgba(0,0,0,0.1);
  }

  .nav__links--open { right: 0; }

  .nav__links a {
    font-size: 1.05rem;
    color: var(--gray-700) !important;
  }

  .nav__links a:hover { color: var(--blue) !important; }

  .nav__cta { text-align: center; width: 100%; }

  .nav__hamburger--open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav__hamburger--open span:nth-child(2) { opacity: 0; }
  .nav__hamburger--open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Animated hero background */
.hero__animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #0a1628 0%, #0f2847 30%, #1a3d7c 60%, #162d5a 100%);
  z-index: 0;
  overflow: hidden;
}

/* Globe wireframe */
.globe-container {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 60vmin;
  height: 60vmin;
  opacity: 0.6;
}

.globe-svg {
  width: 100%;
  height: 100%;
}

.globe-rotate {
  transform-origin: 250px 250px;
  animation: globeSpin 40s linear infinite;
}

@keyframes globeSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Floating particles */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(74,143,231,0.4);
  border-radius: 50%;
  animation: particleFloat 8s ease-in-out infinite;
}

.particle:nth-child(odd) {
  width: 2px;
  height: 2px;
  background: rgba(74,143,231,0.25);
  animation-duration: 12s;
}

.particle:nth-child(3n) {
  width: 4px;
  height: 4px;
  background: rgba(74,143,231,0.15);
  animation-duration: 10s;
}

@keyframes particleFloat {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.2; }
  25% { transform: translateY(-30px) translateX(10px); opacity: 0.6; }
  50% { transform: translateY(-15px) translateX(-10px); opacity: 0.3; }
  75% { transform: translateY(-40px) translateX(5px); opacity: 0.5; }
}

/* Connection lines */
.connection-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Subtle gradient shimmer */
.hero__animated-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 70% 50%, rgba(42,82,152,0.3) 0%, transparent 50%);
  animation: shimmer 15s ease-in-out infinite alternate;
  z-index: 0;
}

.hero__animated-bg::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 60%, rgba(74,143,231,0.1) 0%, transparent 40%);
  animation: shimmer 20s ease-in-out infinite alternate-reverse;
  z-index: 0;
}

@keyframes shimmer {
  0% { transform: translate(0, 0); }
  100% { transform: translate(5%, -3%); }
}

/* Keep old .hero__bg for inner pages if needed */
.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero__bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15,40,71,0.88) 0%, rgba(26,61,124,0.78) 50%, rgba(42,82,152,0.72) 100%);
}

/* Shimmer & shooting star effects */
.hero__effects {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.shimmer-light {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  box-shadow: 0 0 6px 2px rgba(200,220,255,0.4);
  animation: shimmerPulse 3s ease-in-out infinite;
}

.shimmer-light:nth-child(odd) {
  width: 2px;
  height: 2px;
  background: rgba(200,220,255,0.4);
  box-shadow: 0 0 4px 1px rgba(200,220,255,0.3);
  animation-duration: 4s;
}

.shimmer-light:nth-child(3n) {
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,0.5);
  box-shadow: 0 0 8px 3px rgba(200,220,255,0.35);
  animation-duration: 2.5s;
}

@keyframes shimmerPulse {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

.shooting-star {
  position: absolute;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.6), transparent);
  border-radius: 50%;
  opacity: 0;
  transform: rotate(-35deg);
  animation: shootingStar 18s linear infinite;
}

@keyframes shootingStar {
  0% { opacity: 0; transform: rotate(-35deg) translateX(0); }
  2% { opacity: 0.8; }
  5% { opacity: 0; transform: rotate(-35deg) translateX(300px); }
  100% { opacity: 0; }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 750px;
  text-align: center;
  margin: 0 auto;
  padding-top: 8vh;
}

.hero__plane {
  margin-bottom: 24px;
  opacity: 0;
  animation: planeEnter 1.2s ease 0.2s forwards;
}

.hero__plane svg {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

@keyframes planeEnter {
  0% { opacity: 0; transform: translate(-30px, 30px) scale(0.7); }
  100% { opacity: 1; transform: translate(0, 0) scale(1); }
}

.hero__label {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.8s ease 3s forwards;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  opacity: 0;
  animation: fadeUp 0.8s ease 0.5s forwards;
}

.hero__text {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 600px;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.7s forwards;
}

.hero__subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-top: 80px;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeUp 1s ease 2s forwards;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.8s ease 3.5s forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 4px;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
}

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

.btn--primary:hover {
  background: var(--blue-light);
  transform: translateY(-1px);
}

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

.btn--white:hover {
  background: var(--gray-100);
  transform: translateY(-1px);
}

.btn--outline {
  border: 1.5px solid rgba(255,255,255,0.4);
  color: var(--white);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

.btn--dark {
  background: var(--blue-dark);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--blue);
  transform: translateY(-1px);
}

/* ============================================
   HERO CTA (below fold)
   ============================================ */

.hero-cta {
  padding: 48px 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

/* ============================================
   CREDENTIALS BAR
   ============================================ */

.credentials {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 28px 0;
}

.credentials__inner {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.credential {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.credential__icon {
  width: 48px;
  height: 48px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.credential__icon svg {
  width: 22px;
  height: 22px;
  fill: var(--white);
}

.credential__text strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-dark);
  font-weight: 700;
}

.credential__text span {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
  padding: 100px 0;
}

.section--gray { background: var(--off-white); }
.section--blue {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: var(--white);
}

.section--blue h2,
.section--blue h3,
.section--blue h4 { color: var(--white); }

.section--blue .section-label { color: var(--blue-accent); }
.section--blue .section-subtitle { color: rgba(255,255,255,0.7); }

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__header .section-subtitle {
  margin: 0 auto;
}

/* ============================================
   PHOTO SECTIONS
   ============================================ */

.photo-break {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.photo-break img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-break--overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(15,40,71,0.6), rgba(26,61,124,0.4));
}

/* ============================================
   PRACTICE AREA CARDS (Home)
   ============================================ */

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

.practice-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 40px 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

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

.practice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

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

.practice-card__icon {
  width: 52px;
  height: 52px;
  background: var(--off-white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.practice-card__icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.5;
}

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

.practice-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.practice-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition);
}

.practice-card__link:hover { gap: 10px; }

/* ============================================
   WHY CHOOSE US
   ============================================ */

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

.why-item { text-align: center; }

.why-item__number {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--blue-accent);
  margin-bottom: 8px;
  line-height: 1;
}

.why-item__title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 12px;
}

.why-item__text {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

/* ============================================
   CTA BANNER
   ============================================ */

.cta-banner {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  padding: 80px 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.page-hero {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  padding: 140px 0 80px;
  text-align: center;
}

.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero .section-label { color: var(--blue-accent); }
.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

.about-intro {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.about-photo {
  border-radius: 8px;
  overflow: hidden;
  position: sticky;
  top: 100px;
}

.about-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.about-text h2 { margin-bottom: 24px; }
.about-text p { margin-bottom: 16px; color: var(--text-body); }

.highlight-box {
  background: var(--off-white);
  border-left: 4px solid var(--blue);
  padding: 28px 32px;
  margin: 32px 0;
  border-radius: 0 8px 8px 0;
}

.highlight-box h4 {
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--blue-dark);
}

.highlight-box p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Credentials Grid (About page) */
.cred-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.cred-card {
  text-align: left;
  padding: 40px 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
}

.cred-card__badge {
  width: 72px;
  height: 72px;
  margin: 0 0 20px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cred-card__badge svg {
  width: 32px;
  height: 32px;
  fill: var(--white);
}

.cred-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.cred-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Education & Experience */
.timeline {
  max-width: 700px;
}

.timeline__item {
  display: flex;
  gap: 24px;
  padding-bottom: 32px;
  position: relative;
}

.timeline__item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 0;
  width: 1px;
  background: var(--gray-200);
}

.timeline__dot {
  width: 48px;
  height: 48px;
  background: var(--off-white);
  border: 2px solid var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.timeline__dot svg {
  width: 20px;
  height: 20px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 2;
}

.timeline__content h4 {
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline__content p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ============================================
   PRACTICE AREAS PAGE
   ============================================ */

.pa-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pa-item {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 64px;
  padding: 80px 0;
  border-bottom: 1px solid var(--gray-200);
  align-items: start;
}

.pa-item:last-child { border-bottom: none; }

.pa-item__header {
  position: sticky;
  top: 100px;
}

.pa-item__number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: var(--gray-200);
  line-height: 1;
  margin-bottom: 12px;
}

.pa-item__header h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.pa-item__header p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.pa-item__content p {
  font-size: 1rem;
  margin-bottom: 16px;
}

.pa-item__services {
  margin-top: 24px;
}

.pa-item__services h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.pa-item__services ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}

.pa-item__services li {
  font-size: 0.9rem;
  color: var(--text-body);
  padding-left: 18px;
  position: relative;
}

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

/* ============================================
   INDUSTRIES PAGE
   ============================================ */

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

.industry-card {
  padding: 48px 36px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  transition: all var(--transition);
}

.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  border-color: var(--blue);
}

.industry-card__icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.industry-card__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--white);
  fill: none;
  stroke-width: 1.5;
}

.industry-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.industry-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

.contact-info h2 { margin-bottom: 24px; }

.contact-info > p {
  color: var(--text-light);
  margin-bottom: 40px;
}

.contact-detail {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-detail__icon {
  width: 44px;
  height: 44px;
  background: var(--off-white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.5;
}

.contact-detail h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-detail p,
.contact-detail a {
  font-size: 0.9rem;
  color: var(--text-light);
}

.contact-detail a:hover { color: var(--blue); }

.contact-form {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 0;
}

.contact-form__inner {
  padding: 36px;
}

.contact-form h3 { margin-bottom: 8px; }

.contact-form > p,
.contact-form__inner > p {
  color: var(--text-light);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

/* Legacy manual form styles kept in case you reuse native forms elsewhere */
.form-group {
  margin-bottom: 20px;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: var(--white);
}

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

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

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

/* Cognito seamless form styling */
.contact-form__inner,
.contact-form__inner * {
  font-family: var(--font-body) !important;
}

.contact-form__inner h1,
.contact-form__inner h2,
.contact-form__inner h3,
.contact-form__inner h4,
.contact-form__inner legend,
.contact-form__inner .c-forms-heading,
.contact-form__inner .c-forms-form-title {
  font-family: var(--font-heading) !important;
  color: var(--text-dark) !important;
}

.contact-form__inner label,
.contact-form__inner .c-label,
.contact-form__inner .c-forms-form label,
.contact-form__inner .cognito label {
  font-family: var(--font-body) !important;
  color: var(--text-dark) !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
}

.contact-form__inner input,
.contact-form__inner select,
.contact-form__inner textarea,
.contact-form__inner .c-editor,
.contact-form__inner .cognito input,
.contact-form__inner .cognito select,
.contact-form__inner .cognito textarea {
  font-family: var(--font-body) !important;
  font-size: 0.95rem !important;
  color: var(--text-body) !important;
}

.contact-form__inner input::placeholder,
.contact-form__inner textarea::placeholder {
  font-family: var(--font-body) !important;
  color: var(--text-light) !important;
}

.contact-form__inner button,
.contact-form__inner input[type="submit"],
.contact-form__inner .c-button,
.contact-form__inner .cognito button,
.contact-form__inner .cognito input[type="submit"] {
  font-family: var(--font-body) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
}

.contact-form__inner .cognito,
.contact-form__inner > div {
  width: 100% !important;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--gray-900);
  padding: 64px 0 32px;
  color: rgba(255,255,255,0.6);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__brand img {
  height: auto;
  width: 320px;
  max-width: 100%;
  display: block;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.25);
}

.footer__brand p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer__links a {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: color var(--transition);
}

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

.footer__contact p,
.footer__contact a {
  font-size: 0.9rem;
  margin-bottom: 8px;
  display: block;
}

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

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.footer__bottom a { transition: color var(--transition); }
.footer__bottom a:hover { color: var(--blue-accent); }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .practice-grid,
  .industry-grid,
  .cred-grid { grid-template-columns: repeat(2, 1fr); }

  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }

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

  .about-photo {
    position: static;
    max-width: 400px;
    margin: 0 auto;
  }

  .pa-item {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 60px 0;
  }

  .pa-item__header { position: static; }

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

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .nav__logo img { height: 70px; }
  .hero { min-height: 100svh; padding: 130px 0 60px; }

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

  .cred-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

  .credentials__inner { gap: 24px; flex-direction: column; align-items: flex-start; }

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

  .contact-form__inner { padding: 24px; }

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

  .pa-item__services ul { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }

  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }

  .page-hero { padding: 140px 0 60px; }

  .photo-break { height: 250px; }
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center { text-align: center; }
.text-blue { color: var(--blue); }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }

/* Scroll animations */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}
