/* ==========================================================================
   Caldwell & Hart Law - Stylesheet
   ========================================================================== */

/* --- Font Faces --- */

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/cormorant-garamond-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/cormorant-garamond-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Libre Franklin';
  src: url('/fonts/libre-franklin-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Libre Franklin';
  src: url('/fonts/libre-franklin-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* --- Custom Properties --- */

:root {
  --color-primary: #7A2638;
  --color-primary-dark: #5C1C2A;
  --color-primary-light: #9B3348;
  --color-accent: #C9A962;
  --color-accent-dark: #A88B44;
  --color-accent-light: #D4BC7E;
  --color-bg: #FFFFFF;
  --color-bg-alt: #FAF8F5;
  --color-bg-warm: #F2EDE8;
  --color-bg-dark: #1A1A2E;
  --color-text: #1E1E2A;
  --color-text-light: #4A4A5A;
  --color-text-on-dark: #F2EDE8;
  --color-border: #E0DBD4;
  --color-focus: #7A2638;

  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Libre Franklin', 'Segoe UI', system-ui, sans-serif;

  --max-width: 1200px;
  --header-height: 72px;
  --transition-base: 0.3s ease;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

/* --- Reset & Base --- */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

address {
  font-style: normal;
}

a {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-primary-dark);
}

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

h1 {
  font-size: 2.5rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.875rem;
}

h3 {
  font-size: 1.375rem;
}

ul, ol {
  list-style: none;
}

/* --- Focus Indicators --- */

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

/* --- Skip Link --- */

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-100%);
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
  transition: transform var(--transition-base);
}

.skip-link:focus {
  transform: translateY(0);
  color: #fff;
}

/* --- Container --- */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg-dark);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-bg-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 169, 98, 0.35);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline-dark:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(122, 38, 56, 0.25);
}

.btn-white {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}

.btn-white:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-bg-alt);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* --- Sections --- */

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-warm {
  background: var(--color-bg-warm);
}

.section-dark {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}

.section-dark h2,
.section-dark h3,
.section-dark p {
  color: var(--color-text-on-dark);
}

.section-burgundy {
  background: var(--color-primary);
  color: #fff;
}

.section-burgundy h2,
.section-burgundy h3,
.section-burgundy p {
  color: #fff;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--color-text-light);
  font-size: 1.125rem;
  line-height: 1.7;
}

/* --- Diagonal Dividers --- */

.divider-angle {
  position: relative;
}

.divider-angle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3rem;
  background: inherit;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  z-index: 1;
}

.divider-angle-alt::after {
  background: var(--color-bg-alt);
}

.divider-angle-warm::after {
  background: var(--color-bg-warm);
}

.divider-angle-dark::after {
  background: var(--color-bg-dark);
}

.divider-angle-burgundy::after {
  background: var(--color-primary);
}

.divider-angle-white::after {
  background: var(--color-bg);
}

/* --- Header & Navigation --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}

.logo svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--color-primary);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  padding: 0;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.nav-links {
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.nav-links.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.nav-links a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color var(--transition-base);
  width: 100%;
  text-align: center;
}

.nav-links a:hover {
  color: var(--color-primary);
}

.nav-links a[aria-current="page"] {
  color: var(--color-primary);
}

.nav-cta {
  margin-top: 0.5rem;
  padding: 0 1.5rem;
  width: 100%;
}

.nav-cta .btn {
  width: 100%;
}

.header-cta {
  display: none;
}

/* --- Hero --- */

.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, #1E1E36 50%, #252540 100%);
  scroll-margin-top: var(--header-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 26, 46, 0.92) 0%,
    rgba(30, 30, 54, 0.85) 50%,
    rgba(37, 37, 64, 0.80) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  padding: 4rem 0;
}

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

.hero-content h1 {
  color: #fff;
  margin-bottom: 1.25rem;
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.1;
}

.hero-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.hero-accent {
  display: none;
  width: 4px;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--color-accent), transparent);
  border-radius: 2px;
  flex-shrink: 0;
}

/* --- Practice Areas (Horizontal Panels) --- */

.practice-panels {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.practice-panel {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-base);
  text-decoration: none;
  color: inherit;
  border-left: 3px solid transparent;
}

.practice-panel:first-child {
  border-top: 1px solid var(--color-border);
}

.practice-panel:hover {
  background: var(--color-bg-alt);
  border-left-color: var(--color-accent);
  transform: translateX(4px);
}

.practice-panel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.practice-panel-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.practice-panel-content {
  flex: 1;
  min-width: 0;
}

.practice-panel-content h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.practice-panel-content p {
  color: var(--color-text-light);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.practice-panel-arrow {
  flex-shrink: 0;
  color: var(--color-text-light);
  transition: color var(--transition-base), transform var(--transition-base);
}

.practice-panel-arrow svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.practice-panel:hover .practice-panel-arrow {
  color: var(--color-accent);
  transform: translateX(4px);
}

/* --- Philosophy Section --- */

.philosophy {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.philosophy-quote {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1rem;
}

.philosophy-quote-mark {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  opacity: 0.6;
  display: block;
  margin-bottom: -1.5rem;
}

.philosophy-quote blockquote {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.5;
  color: #fff;
  margin-bottom: 2.5rem;
}

.philosophy-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.philosophy-point {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  text-align: left;
}

.philosophy-point-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(201, 169, 98, 0.15);
  border-radius: 50%;
  flex-shrink: 0;
}

.philosophy-point-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.philosophy-point h3 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.25rem;
}

.philosophy-point p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

/* --- CTA Section --- */

.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 1rem;
  position: relative;
}

.cta-section p {
  color: rgba(242, 237, 232, 0.85);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.cta-phone {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
  margin-bottom: 2rem;
  position: relative;
  transition: color var(--transition-base);
}

.cta-phone:hover {
  color: var(--color-accent-light);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem;
  position: relative;
}

/* --- Footer --- */

.site-footer {
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  padding: 3.5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.footer-col h3 {
  color: #fff;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer-description {
  max-width: 280px;
}

.footer-description p {
  color: rgba(242, 237, 232, 0.7);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-top: 0.75rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: rgba(242, 237, 232, 0.7);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--transition-base);
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  color: rgba(242, 237, 232, 0.7);
  font-size: 0.9375rem;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-accent);
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item a {
  color: rgba(242, 237, 232, 0.7);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-contact-item a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.footer-bottom p {
  color: rgba(242, 237, 232, 0.5);
  font-size: 0.8125rem;
}

.footer-bottom a {
  color: rgba(242, 237, 232, 0.5);
  text-decoration: underline;
  transition: color var(--transition-base);
}

.footer-bottom a:hover {
  color: rgba(242, 237, 232, 0.8);
}

/* --- Page Header (Inner Pages) --- */

.page-header {
  position: relative;
  background: var(--color-bg-dark);
  padding: 3.5rem 0 4.5rem;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), 0 100%);
}

.page-header h1 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.page-header p {
  color: rgba(242, 237, 232, 0.8);
  font-size: 1.125rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Practice Area Detail (Practice Areas Page) --- */

.practice-detail {
  padding: 2.5rem 0;
}

.practice-detail + .practice-detail {
  border-top: 1px solid var(--color-border);
}

.practice-detail h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.practice-detail > p {
  color: var(--color-text-light);
  line-height: 1.7;
  max-width: 720px;
}

/* --- About Page --- */

.about-story {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.about-story-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary-dark));
}

.about-story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-story-content h2 {
  margin-bottom: 1rem;
}

.about-story-content p {
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-story-content p:last-child {
  margin-bottom: 0;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.value-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-bg-alt);
  border-radius: 50%;
  flex-shrink: 0;
}

.value-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.value-card h3 {
  margin-bottom: 0.375rem;
  font-size: 1.125rem;
}

.value-card p {
  color: var(--color-text-light);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* --- Contact Page --- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.contact-info-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.contact-info-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.contact-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-item-text {
  font-size: 0.9375rem;
}

.contact-item-label {
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.125rem;
}

.contact-item-text a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-base);
}

.contact-item-text a:hover {
  color: var(--color-primary);
}

.contact-item-text p {
  color: var(--color-text-light);
  line-height: 1.6;
}

/* --- Contact Form --- */

.contact-form-wrapper h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-form {
  display: grid;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(122, 38, 56, 0.12);
}

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

.honeypot {
  display: none;
}

.form-submit-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#form-status {
  font-size: 0.9375rem;
  line-height: 1.5;
}

#form-status.success {
  color: #2E7D32;
}

#form-status.error {
  color: var(--color-primary);
}

/* --- Privacy Page --- */

.privacy-content {
  max-width: 780px;
  margin: 0 auto;
}

.privacy-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

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

.privacy-content p {
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.privacy-content ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.privacy-content ul li {
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 0.375rem;
}

.privacy-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* --- 404 Page --- */

.error-page {
  text-align: center;
  padding: 4rem 0;
}

.error-code {
  font-family: var(--font-heading);
  font-size: 6rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.error-page h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.error-page p {
  color: var(--color-text-light);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem;
}

/* --- Demo Overlay --- */

.demo-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.demo-overlay.is-hidden {
  display: none;
}

.demo-modal {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

.demo-modal h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.demo-modal p {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.demo-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-base), opacity var(--transition-base);
  min-width: 120px;
}

.demo-close:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.demo-close:not(:disabled):hover {
  background: var(--color-primary-dark);
}

/* --- Animations --- */

@media (prefers-reduced-motion: no-preference) {
  .hero-content {
    animation: heroFadeIn 0.8s ease both;
  }

  .hero-accent {
    animation: accentSlideIn 1s ease 0.3s both;
  }

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

  @keyframes accentSlideIn {
    from {
      opacity: 0;
      transform: translateX(40px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
}

/* --- Dark Mode --- */

@media (prefers-color-scheme: dark) {
  :root {
    --color-primary: #C4546A;
    --color-primary-dark: #A8405A;
    --color-primary-light: #D6758A;
    --color-accent: #D4BC7E;
    --color-accent-dark: #C9A962;
    --color-accent-light: #E0CFA0;
    --color-bg: #151520;
    --color-bg-alt: #1C1C2E;
    --color-bg-warm: #1E1E30;
    --color-bg-dark: #0E0E18;
    --color-text: #E8E6E3;
    --color-text-light: #A0A0B0;
    --color-text-on-dark: #E8E6E3;
    --color-border: #2E2E42;
    --color-focus: #C4546A;
  }

  .site-header {
    background: rgba(21, 21, 32, 0.95);
  }

  .nav-links {
    background: #1C1C2E;
  }

  .practice-panel:hover {
    background: var(--color-bg-alt);
  }

  .contact-item-icon {
    background: var(--color-bg-alt);
  }

  .demo-modal {
    background: #1C1C2E;
  }

  .demo-modal h2 {
    color: var(--color-primary);
  }

  .demo-modal p {
    color: var(--color-text-light);
  }

  .demo-close {
    background: var(--color-primary);
  }

  .demo-close:not(:disabled):hover {
    background: var(--color-primary-dark);
  }

  #form-status.success {
    color: #66BB6A;
  }

  .philosophy {
    background: #2A1520;
  }
}

/* --- Responsive: Tablet (768px) --- */

@media (min-width: 768px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .container {
    padding: 0 2rem;
  }

  .section {
    padding: 5rem 0;
  }

  /* Header */
  .nav-toggle {
    display: none;
  }

  .nav-links {
    position: static;
    flex-direction: row;
    background: none;
    border: none;
    padding: 0;
    visibility: visible;
    opacity: 1;
    transform: none;
    box-shadow: none;
    gap: 0.25rem;
  }

  .nav-links a {
    padding: 0.5rem 0.75rem;
    width: auto;
    text-align: left;
    font-size: 0.9375rem;
  }

  .nav-cta {
    display: none;
  }

  .header-cta {
    display: block;
    flex-shrink: 0;
    margin-left: 1rem;
  }

  .header-cta .btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
  }

  /* Hero */
  .hero {
    min-height: 560px;
  }

  .hero-content h1 {
    font-size: 3.25rem;
  }

  .hero-accent {
    display: block;
  }

  /* Practice Panels */
  .practice-panel {
    padding: 1.5rem 2rem;
  }

  /* Philosophy */
  .philosophy-quote blockquote {
    font-size: 1.75rem;
  }

  .philosophy-points {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  /* Page Header */
  .page-header {
    padding: 4rem 0 5rem;
  }

  /* About */
  .about-story {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 5fr 7fr;
    gap: 3rem;
  }
}

/* --- Responsive: Desktop (1024px) --- */

@media (min-width: 1024px) {
  .section {
    padding: 6rem 0;
  }

  /* Hero */
  .hero {
    min-height: 600px;
  }

  .hero-content h1 {
    font-size: 3.75rem;
  }

  .hero-content p {
    font-size: 1.1875rem;
  }

  .hero-accent {
    height: 280px;
  }

  /* Practice Panels */
  .practice-panel-content p {
    max-width: 600px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }

  /* 404 */
  .error-code {
    font-size: 8rem;
  }
}

/* --- Responsive: Large Desktop (1280px) --- */

@media (min-width: 1280px) {
  .hero-content h1 {
    font-size: 4rem;
  }

  .hero {
    min-height: 640px;
  }
}
