@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=DM+Serif+Display&display=swap');

:root {
  --primary: #000000;
  --accent: #D42126;
  --bg: #FFFFFF;
  --surface: #F5F5F5;
  --text: #0A0A0A;
  --muted: #7A7A7A;
  --radius: 12px;
  --glow: 0 0 40px rgba(212, 33, 38, 0.3);
  --glow-subtle: 0 0 24px rgba(212, 33, 38, 0.15);
  --font-heading: 'DM Serif Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --container-max: 1200px;
  --header-height: 72px;
}

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

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

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

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

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

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

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

ul, ol {
  list-style: none;
}

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

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  max-width: 65ch;
}

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

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

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

/* ========================================
   HEADER
   ======================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header.scrolled {
  border-bottom-color: var(--surface);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary);
  text-decoration: none;
  flex-shrink: 0;
}

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

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

.nav-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

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

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

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

@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);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .nav-menu.open a {
    padding: 0.75rem 0;
    font-size: 1rem;
  }
}

/* ========================================
   PHOTO BACKGROUND OVERLAY
   ======================================== */

.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
   ======================================== */

.hero-section {
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  padding: 4rem 0;
}

.hero-section .container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 720px;
}

.hero-section h1 {
  color: var(--bg);
}

.hero-section p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
  line-height: 1.7;
}

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

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

.btn-primary,
.btn-secondary,
.cta-button,
.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: var(--glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 56px rgba(212, 33, 38, 0.45);
  color: var(--bg);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--bg);
  transform: translateY(-2px);
}

.hero-section .btn-secondary {
  color: var(--bg);
  border-color: var(--bg);
}

.hero-section .btn-secondary:hover {
  background: var(--bg);
  color: var(--primary);
}

.cta-button {
  background: var(--accent);
  color: var(--bg);
  box-shadow: var(--glow);
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 56px rgba(212, 33, 38, 0.45);
  color: var(--bg);
}

.form-submit {
  background: var(--primary);
  color: var(--bg);
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.form-submit:hover {
  background: var(--accent);
  box-shadow: var(--glow);
  transform: translateY(-1px);
}

/* ========================================
   SECTIONS (shared)
   ======================================== */

.section {
  padding: 4rem 0;
}

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

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

.section-header {
  margin-bottom: 3rem;
  max-width: 600px;
}

.section-header.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-header p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* ========================================
   FEATURES SECTION
   ======================================== */

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

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.feature-card:hover {
  box-shadow: var(--glow-subtle);
  transform: translateY(-4px);
}

.feature-card .icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  color: var(--accent);
}

.feature-card h3 {
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ========================================
   SERVICES SECTION
   ======================================== */

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

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow 0.3s ease;
}

.service-card:hover {
  box-shadow: var(--glow-subtle);
}

.service-card h3 {
  font-size: 1.5rem;
}

.service-card p {
  color: var(--muted);
  line-height: 1.7;
}

.service-card .service-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--accent);
  opacity: 0.4;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

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

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

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

.about-content p {
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
}

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

/* ========================================
   STATS SECTION
   ======================================== */

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

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

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item .stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--bg);
  display: block;
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */

.testimonial-section {
  background-size: cover;
  background-position: center;
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .testimonial-section {
    padding: 6.5rem 0;
  }
}

.testimonial-section .section-header h2 {
  color: var(--bg);
}

.testimonial-section .section-header p {
  color: rgba(255, 255, 255, 0.7);
}

.testimonial-section .section-label {
  color: var(--accent);
}

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

@media (min-width: 768px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.testimonial-card .quote {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
}

.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

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

.testimonial-card .author-info .name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}

.testimonial-card .author-info .role {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
  text-align: center;
  background: var(--surface);
}

.cta-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.cta-section h2 {
  max-width: 500px;
}

.cta-section p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 480px;
}

/* ========================================
   FORMS
   ======================================== */

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

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

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

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 33, 38, 0.1);
  outline: none;
}

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

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

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

.contact-form {
  max-width: 600px;
}

/* ========================================
   CONTACT ROWS
   ======================================== */

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-row .icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  color: var(--accent);
  line-height: 1.4;
}

.contact-row .label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-row .value {
  font-weight: 500;
  color: var(--text);
}

/* ========================================
   CONTACT SECTION
   ======================================== */

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

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

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

.contact-info p {
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

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

.footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}

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

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand .logo {
  color: var(--bg);
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-column h4 {
  color: var(--bg);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

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

.footer-column a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--bg);
}

.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;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

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

/* ========================================
   COOKIE POPUP
   ======================================== */

.cookie-popup {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  left: 1.5rem;
  max-width: 420px;
  background: var(--primary);
  color: var(--bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-left: auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (min-width: 768px) {
  .cookie-popup {
    left: auto;
  }
}

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

.cookie-popup p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

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

.cookie-popup .btn-accept {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.cookie-popup .btn-accept:hover {
  background: #b81c20;
}

.cookie-popup .btn-decline {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.cookie-popup .btn-decline:hover {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--bg);
}

/* ========================================
   POLICY PAGES
   ======================================== */

.policy-page {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .policy-page {
    padding: 5.5rem 0;
  }
}

.policy-page .container {
  max-width: 760px;
}

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

.policy-page .last-updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 3rem;
}

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

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

.policy-page p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

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

.policy-page ul li {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 0.35rem;
}

.policy-page a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

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

.text-muted {
  color: var(--muted);
}

.text-accent {
  color: var(--accent);
}

.bg-surface {
  background: var(--surface);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   GRID LINES (Swiss-grid decorative)
   ======================================== */

.grid-decoration {
  position: relative;
}

.grid-decoration::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: var(--surface);
  transform: translateX(-50%);
  pointer-events: none;
  display: none;
}

@media (min-width: 1024px) {
  .grid-decoration::after {
    display: block;
  }
}

/* ========================================
   PAGE TRANSITIONS / ANIMATIONS
   ======================================== */

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

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 {
  animation-delay: 0.1s;
}

.animate-delay-2 {
  animation-delay: 0.2s;
}

.animate-delay-3 {
  animation-delay: 0.3s;
}

/* ========================================
   SWISS GRID: TWO-COLUMN LAYOUTS
   ======================================== */

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

@media (min-width: 768px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

.two-col--wide-left {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .two-col--wide-left {
    grid-template-columns: 3fr 2fr;
  }
}

.two-col--wide-right {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .two-col--wide-right {
    grid-template-columns: 2fr 3fr;
  }
}

/* ========================================
   DIVIDER
   ======================================== */

.divider {
  border: none;
  border-top: 1px solid var(--surface);
  margin: 3rem 0;
}

@media (min-width: 768px) {
  .divider {
    margin: 4rem 0;
  }
}

/* ========================================
   BADGE / TAG
   ======================================== */

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
}

.badge--accent {
  background: rgba(212, 33, 38, 0.1);
  color: var(--accent);
}

/* ========================================
   SCROLLBAR (minimal)
   ======================================== */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--surface);
}

::-webkit-scrollbar-thumb {
  background: var(--muted);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text);
}

/* ========================================
   SELECTION
   ======================================== */

::selection {
  background: var(--accent);
  color: var(--bg);
}