@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,400;0,600;0,700;0,800;1,400&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #1D4ED8;
  --accent: #9CA3AF;
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6B7280;
  
  --font-heading: 'Crimson Pro', serif;
  --font-body: 'Source Sans 3', sans-serif;
  
  --radius: 4px;
  --shadow-offset: 6px 6px 0 var(--primary);
  --shadow-offset-sm: 4px 4px 0 var(--primary);
  --shadow-offset-dark: 6px 6px 0 var(--text);
  
  --container-max: 1200px;
  --container-narrow: 800px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--text);
}

ul,
ol {
  list-style: none;
}

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

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-weight: 400;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text);
  font-weight: 300;
}

.drop-cap::first-letter {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  float: left;
  line-height: 0.8;
  margin-right: 0.5rem;
  margin-top: 0.25rem;
  color: var(--primary);
}

.pull-quote {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  border-left: 4px solid var(--primary);
  padding-left: 1.5rem;
  margin: 2rem 0;
}

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

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--spacing-lg) 0;
}

.section-lg {
  padding: var(--spacing-xl) 0;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.multi-column-text {
  column-count: 1;
  column-gap: 2.5rem;
  column-rule: 1px solid var(--accent);
}

.multi-column-text p {
  break-inside: avoid;
}

.asymmetric-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.header.scrolled {
  border-bottom-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  background: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(8px);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}

.logo span {
  color: var(--primary);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-menu a {
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

@media (max-width: 767px) {
  .mobile-menu-toggle { display: inline-block; }
  .nav-menu { display: none; }
  .nav-menu.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); padding: 1rem; border-top: 1px solid var(--muted); }
}

.btn-primary,
.btn-secondary,
.cta-button,
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: var(--radius);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-offset);
}

.btn-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--primary);
  color: #ffffff;
}

.btn-primary:active {
  transform: translate(4px, 4px);
  box-shadow: 2px 2px 0 var(--primary);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--text);
  box-shadow: var(--shadow-offset-dark);
}

.btn-secondary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--text);
  color: var(--text);
}

.btn-secondary:active {
  transform: translate(4px, 4px);
  box-shadow: 2px 2px 0 var(--text);
}

.cta-button {
  background: var(--text);
  color: #ffffff;
  border-color: var(--text);
  box-shadow: var(--shadow-offset);
}

.form-submit {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-offset-sm);
  width: auto;
  align-self: flex-start;
}

.form-submit:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--primary);
}

.has-photo-bg { position: relative; isolation: isolate; }
.has-photo-bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.85)); z-index: 0; }
.has-photo-bg > * { position: relative; z-index: 1; }

.hero-section,
.testimonial-section {
  position: relative;
  isolation: isolate;
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.hero-section::before,
.testimonial-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.85));
  z-index: 0;
}

.hero-section > *,
.testimonial-section > * {
  position: relative;
  z-index: 1;
}

.hero-section {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: var(--spacing-xl) 0;
}

.hero-section h1 {
  color: #ffffff;
  margin-bottom: 1.5rem;
  max-width: 800px;
}

.hero-section .lead {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin-bottom: 2.5rem;
  font-size: 1.35rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.features-section {
  background: var(--surface);
}

.feature-card {
  padding: 2rem;
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-offset-sm);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.services-section .service-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--accent);
}

.services-section .service-item:last-child {
  border-bottom: none;
}

.service-number {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
  opacity: 0.2;
}

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

.about-image-wrapper {
  position: relative;
}

.about-image-wrapper img {
  border-radius: var(--radius);
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about-image-wrapper::after {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  width: 100%;
  height: 100%;
  border: 3px solid var(--primary);
  border-radius: var(--radius);
  z-index: -1;
}

.stats-section {
  background: var(--text);
  color: #ffffff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.testimonial-section {
  padding: var(--spacing-xl) 0;
}

.testimonial-section h2 {
  color: #ffffff;
  text-align: center;
  margin-bottom: 3rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.testimonial-card {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-offset);
  color: var(--text);
}

.testimonial-card blockquote {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author-info strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
}

.testimonial-author-info span {
  font-size: 0.875rem;
  color: var(--muted);
}

.cta-section {
  background: var(--primary);
  color: #ffffff;
  text-align: center;
  padding: var(--spacing-lg) 0;
}

.cta-section h2 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.2rem;
}

.cta-section .btn-secondary {
  background: #ffffff;
  color: var(--primary);
  border-color: #ffffff;
  box-shadow: 6px 6px 0 var(--text);
}

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

.contact-info h3 {
  margin-bottom: 1.5rem;
}

.contact-row { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; }
.contact-row .icon, .contact-row svg { width: 1.4rem; height: 1.4rem; flex-shrink: 0; color: var(--primary); margin-top: 0.2rem; }
.contact-row p { margin: 0; color: var(--text); }

.contact-form {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-offset-sm);
}

.form-group { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; width: 100%; }

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

.form-input, .form-textarea { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--muted); border-radius: 4px; background: var(--surface); color: var(--text); font: inherit; }

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

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

.policy-page {
  padding: var(--spacing-lg) 0;
}

.policy-page h1 {
  margin-bottom: 1rem;
}

.policy-page .last-updated {
  color: var(--muted);
  font-style: italic;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--accent);
}

.policy-page h2 {
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.policy-page h3 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.policy-page ul,
.policy-page ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.policy-page ol {
  list-style: decimal;
}

.policy-page li {
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

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

.footer h4 {
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer ul li {
  margin-bottom: 0.75rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.footer a:hover {
  color: #ffffff;
}

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

.cookie-popup {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  left: 1.5rem;
  max-width: 400px;
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), var(--shadow-offset-sm);
  z-index: 1000;
  border: 1px solid var(--accent);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.cookie-popup.hidden {
  transform: translateY(150%);
  opacity: 0;
  pointer-events: none;
}

.cookie-popup p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
}

.cookie-actions button {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (min-width: 768px) {
  .editorial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .multi-column-text {
    column-count: 2;
  }
  
  .asymmetric-grid {
    grid-template-columns: 2fr 1fr;
  }
  
  .asymmetric-grid .img-offset {
    transform: translateY(3rem);
  }
  
  .services-section .service-item {
    grid-template-columns: 100px 1fr;
    gap: 3rem;
  }
  
  .about-section .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-section .contact-grid {
    grid-template-columns: 1fr 1.5fr;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .cookie-popup {
    left: auto;
  }
}

@media (min-width: 1024px) {
  .editorial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .editorial-grid .span-2 {
    grid-column: span 2;
  }
  
  .multi-column-text {
    column-count: 3;
  }
  
  .asymmetric-grid {
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
  }
  
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}