/* Self-hosted Inter Font */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('./fonts/inter-v18-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('./fonts/inter-v18-latin-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('./fonts/inter-v18-latin-600.woff2') format('woff2');
}

/* Skip to content link */
.skip-to-content {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: 99999;
  padding: 12px 24px;
  background: var(--black);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
}

#main:focus {
  outline: none;
}

.skip-to-content:focus {
  top: 16px;
  outline: 3px solid #0066ff;
  outline-offset: 2px;
}

/* Visually hidden but accessible to screen readers */
.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;
}

:root {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #111;
  background-color: #fff;
  line-height: 1.6;
  font-weight: 400;
  color-scheme: light;

  /* Colors */
  --gray-light: #e5e5e5;
  --accent: #a6b4b8;
  --text: #141414;
  --black: #111;
  --white: #fff;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

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

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  overflow-x: hidden;
  /* Ensure page starts at top on load */
  scroll-behavior: smooth;
}

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

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

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 105;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 48px;
  background: rgba(255, 255, 255, 1);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-light);
  width: 100%;
}

.logo {
  flex-shrink: 0;
}

.logo img {
  height: 72px;
}

.menu {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  justify-content: center;
  white-space: nowrap;
  overflow-x: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  max-width: calc(100% - 475px);
  min-width: 0;
  padding: 0 20px;
  box-sizing: border-box;
  width: calc(100% - 475px);
}

.menu::-webkit-scrollbar {
  display: none;
}

.menu a {
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.menu a.active {
  color: var(--accent);
  font-weight: 600;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 106;
  gap: 5px;
  position: relative;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--text);
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

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

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

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

.divider {
  color: #c0c0c0;
}

.cta,
.desktop-cta {
  background: var(--accent);
  color: var(--white);
  border: 1px solid var(--accent);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
  text-decoration: none;
  display: inline-block;
}

.cta:hover,
.desktop-cta:hover {
  background: #8a9ca0;
  color: #fff;
  border-color: #8a9ca0;
}

.mobile-cta {
  display: none;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 50px 48px 120px;
  overflow: hidden;
  color: #fff;
}

.hero-content {
  max-width: 640px;
  position: relative;
  z-index: 1;
  margin-top: -120px;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 5vw, 4rem);
  margin: 16px 0;
  line-height: 1.15;
  font-weight: 400;
}

.hero-content h1 .mobile-break {
  display: block;
}

.hero-content p {
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.hero .cta.primary {
  margin-left: 0;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
}

.hero .cta.ghost {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.cta.inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  background: var(--accent);
  color: var(--white);
  border: 1px solid var(--accent);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.cta.inline:hover {
  background: #8a9ca0;
  color: #fff;
  border-color: #8a9ca0;
}

.info-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  padding: 96px 48px;
  align-items: center;
  border-bottom: 1px solid var(--gray-light);
}

.info-section.reverse {
  direction: rtl;
}

.info-section.reverse > * {
  direction: ltr;
}

.section-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-media:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.section-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
  transition: transform 0.4s ease;
}

.section-media:hover img {
  transform: scale(1.05);
}

.section-content h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  margin: 12px 0 18px;
}

.section-content p {
  font-size: 1.1rem;
  line-height: 1.7;
}

.section-content ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.section-content ul li::before {
  content: "—";
  margin-right: 8px;
  color: var(--accent);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: #5a6567;
}

/* Services Section */
.services-section {
  padding: 64px 48px;
  background: #f8f8f8;
  border-bottom: 1px solid var(--gray-light);
}

.services-container {
  max-width: 1200px;
  margin: 0 auto;
}

.services-title {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  text-align: center;
  margin: 0 0 16px;
  color: var(--text);
  font-weight: 600;
}

.services-subtitle {
  font-size: 1.1rem;
  text-align: center;
  margin: 0 0 32px;
  color: #4a4a4a;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.services-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  background: #fff;
  border: 1px solid var(--gray-light);
  border-radius: 20px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: var(--accent);
}

.service-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: #f8f8f8;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--accent);
  transform: scale(1.05);
}

.service-card:hover .service-icon svg {
  stroke: #fff;
}

.service-card:hover .service-icon svg circle,
.service-card:hover .service-icon svg rect {
  stroke: #fff;
}

.service-card:hover .service-icon svg path {
  stroke: #fff;
  fill: #fff;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text);
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  color: #4a4a4a;
}

.services-cta {
  padding: 32px;
  background: #fff;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border: 2px solid #A6B4B8;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  height: 100%;
  box-sizing: border-box;
  text-align: center;
}

.services-cta-icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #A6B4B8;
  border-radius: 16px;
}

.services-cta-icon svg {
  stroke: #fff;
}

.services-cta-content {
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.services-cta-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--text);
}

.services-cta-content p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 20px;
  color: #4a4a4a;
}

.services-cta-content .cta,
.services-cta-content .cta.primary {
  display: inline-flex;
  margin: 0 auto;
  background: var(--accent);
  color: var(--white);
  border: 1px solid var(--accent);
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.services-cta-content .cta:hover,
.services-cta-content .cta.primary:hover {
  background: #8a9ca0;
  border-color: #8a9ca0;
  color: #fff;
}

@media (max-width: 1024px) {
  .services-layout {
    grid-template-columns: 1fr;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-cta {
    flex-direction: row;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .services-section {
    padding: 56px 20px;
  }

  .services-title {
    font-size: clamp(1.15rem, 4vw, 1.45rem);
    margin-bottom: 12px;
  }

  .services-subtitle {
    font-size: 1rem;
    margin-bottom: 32px;
  }

  .services-layout {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
  }

  .service-card {
    padding: 24px 20px;
  }

  .service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 14px;
  }

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

  .service-card p {
    font-size: 0.9rem;
  }

  .services-cta {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
    gap: 24px;
  }

  .services-cta-icon {
    width: 60px;
    height: 60px;
  }

  .services-cta-content h3 {
    font-size: 1.2rem;
  }

  .services-cta-content p {
    font-size: 0.95rem;
  }
}

/* FAQ Section */
.faq-section {
  padding: 80px 48px;
  background: #fff;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-container h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin: 0 0 32px;
  text-align: center;
}

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

.faq-item {
  border-bottom: 1px solid var(--gray-light);
}

.faq-item:first-child {
  border-top: 1px solid var(--gray-light);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  transition: color var(--transition-fast);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  margin-left: 16px;
  flex-shrink: 0;
  transition: transform var(--transition-normal);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  color: #555;
}

.faq-answer {
  padding: 0 0 20px;
}

.faq-answer p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444;
  margin: 0;
}

@media (max-width: 1350px) {
  .faq-section {
    padding: 60px 24px;
  }
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  padding: 80px 48px 96px;
  background: #f8f8f8;
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
}

.trust-card {
  padding: 32px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--gray-light);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.trust-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.trust-card:hover .trust-icon {
  transform: scale(1.1);
  background: var(--accent);
}

.trust-card h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.trust-card p {
  margin: 0;
  color: #4a4a4a;
}

.project-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  min-height: 320px;
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
}

.project-media {
  overflow: hidden;
}

.project-media img {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: cover;
  object-position: center 75%;
}

.project-message {
  background: #f3f3f3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 40px;
  text-align: left;
  font-size: 1.1rem;
  line-height: 1.4;
  font-weight: 500;
}

.project-message p {
  margin: 0;
  max-width: 600px;
  width: 100%;
}

.contact-section {
  padding: 96px 48px;
}

.contact-section .footer-content {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.contact-section h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin: 0 0 16px;
}

.contact-section .footer-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  color: #4a4a4a;
}

.contact-section .footer-content p + p {
  margin-top: 0;
  padding-top: 0;
  display: block;
}

.direct-contact {
  margin-top: 16px;
  padding-top: 0;
}

.contact-section .direct-contact-intro {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: #4a4a4a;
}

.direct-contact-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 0;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4a4a4a;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: var(--accent);
}

.contact-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #4a4a4a;
  transition: color 0.2s ease;
}

.contact-link:hover .contact-icon {
  color: var(--accent);
}

.contact-divider {
  color: var(--gray-light);
  font-size: 1.2rem;
}

.contact-form {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: #4a4a4a;
}

.required {
  color: #4a4a4a;
  font-weight: 400;
}

input,
textarea {
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--gray-light);
  background: #fff;
  color: var(--text);
  font: inherit;
}

textarea {
  resize: vertical;
  width: 100%;
  box-sizing: border-box;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}

button {
  background: var(--accent);
  color: var(--white);
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  padding: 10px 20px;
  font-weight: 500;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  justify-self: start;
  width: auto;
}

button:hover {
  background: #8a9ca0;
  border-color: #8a9ca0;
  color: #fff;
}

.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}

.checkbox input {
  width: 18px;
  height: 18px;
}

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

.form-message {
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-top: 4px;
}

.form-message.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.form-message.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.site-footer {
  padding: 24px 48px;
  background: #fff;
  color: #1a1a1a;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--gray-light);
  text-align: center;
}

.site-footer p {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.site-footer a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

/* Fluid menu spacing: scales gap and padding between 1351px and 1800px */
@media (max-width: 1800px) and (min-width: 1351px) {
  .menu {
    /* 1px at 1351px → 12px at 1800px */
    gap: clamp(1px, calc(1px + (100vw - 1351px) * 11 / 449), 12px);
    max-width: calc(100% - 475px);
    width: calc(100% - 475px);
  }

  .top-nav {
    /* 33px at 1351px → 48px at 1800px */
    padding: 18px clamp(33px, calc(33px + (100vw - 1351px) * 15 / 449), 48px);
  }
}

@media (max-width: 900px) {
  .info-section,
  .info-section.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .section-media {
    min-height: 260px;
    border-radius: 16px;
  }

  .hero-content {
    margin-top: -120px;
  }

  .project-showcase {
    grid-template-columns: 1fr;
  }

  .project-media img {
    height: 260px;
    max-height: none;
  }
}

@media (max-width: 1350px) {
  .menu-toggle {
    display: flex;
  }

  .menu {
    display: none;
  }

  .menu.active {
    display: flex;
  }

  .cta {
    margin-left: 0;
  }

  .hero {
    padding: 50px 36px 120px;
  }

  .top-nav {
    flex-direction: row;
    align-items: center;
    padding: 16px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 110;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    isolation: isolate;
    overflow: visible;
  }

  .logo {
    flex-shrink: 0;
  }

  .logo img {
    height: 64px;
  }

  .menu-toggle {
    order: 2;
    margin-left: auto;
    margin-right: 12px;
  }

  /* Menu appears from under the nav bar, starting at the bottom edge of nav - NEVER overlaps nav */
  .menu {
    position: fixed;
    top: var(--nav-height, 80px);
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    max-height: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s ease;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 0;
    pointer-events: none;
    z-index: 98;
  }

  .menu.active {
    max-height: calc(100vh - var(--nav-height, 80px));
    height: auto;
    min-height: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    overflow-y: visible;
    overflow-x: hidden;
    padding-top: 32px;
    padding-bottom: 32px;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }

  .menu a {
    font-size: 1.2rem;
    padding: 22px 32px;
    width: 100%;
    max-width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--gray-light);
    text-decoration: none;
    color: var(--text);
    transition: background-color 0.2s ease;
    box-sizing: border-box;
    display: block;
    margin: 0;
  }

  .menu a:hover {
    background-color: #f8f8f8;
  }

  .menu .divider {
    display: none;
  }

  .menu .mobile-cta {
    margin-top: 24px;
    margin-left: 32px;
    margin-right: 32px;
    margin-bottom: 0;
    padding: 18px 32px;
    border: 1px solid var(--text);
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 500;
    display: block;
    text-align: center;
    background-color: #f8f8f8;
    width: calc(100% - 64px);
    max-width: calc(100% - 64px);
    box-sizing: border-box;
  }

  .menu .mobile-cta:hover {
    background-color: #e8e8e8;
  }

  .desktop-cta {
    display: none !important;
  }

  body.menu-open {
    overflow: hidden;
  }

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

  .section-content .cta.inline {
    margin-left: auto;
    margin-right: auto;
  }

  .info-section {
    padding: 64px 20px;
    gap: 32px;
  }

  .section-content h2 {
    font-size: clamp(1.15rem, 4vw, 1.45rem);
  }

  .trust-badges {
    padding: 56px 20px 72px;
    gap: 24px;
    grid-template-columns: 1fr;
  }

  .project-message {
    padding: 24px 20px;
  }

  .contact-section {
    padding: 72px 20px;
  }

  .contact-section h2 {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
  }

  .direct-contact-info {
    flex-direction: column;
    gap: 12px;
  }

  .contact-divider {
    display: none;
  }

  .site-footer {
    padding: 24px 20px;
  }
}

@media (max-width: 640px) {
  .hero-content h1 {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  .section-content {
    text-align: left;
  }

  .section-media {
    min-height: 220px;
  }

  .section-content h2 {
    font-size: clamp(0.95rem, 6vw, 1.25rem);
  }

  .project-media img {
    height: 220px;
  }

  .project-message {
    font-size: 1rem;
    padding: 20px;
  }

  .site-footer p {
    flex-direction: column;
    gap: 8px;
  }
}

/* Desktop Menu - Nur so breit wie nötig (zwischen 429px und 1350px) */
@media (min-width: 429px) and (max-width: 1350px) {
  .menu {
    left: auto;
    right: 0;
    width: auto;
    max-width: 400px;
    min-width: 280px;
  }

  .menu.active {
    max-height: fit-content !important;
    height: auto;
  }
}

/* Hero Mobile View - iPhone Pro Max and smaller (428px) */
@media (max-width: 428px) {
  .hero {
    padding: 40px 20px 0;
    min-height: 100vh;
    height: 100vh;
    margin-top: var(--nav-height, 80px);
    align-items: flex-start;
    padding-top: 40px;
    justify-content: center;
  }
  
  .hero-video {
    top: calc(-1 * var(--nav-height, 80px));
    height: calc(100% + var(--nav-height, 80px));
  }

  .hero-content {
    margin-top: -40px;
    text-align: center;
    max-width: 100%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-content h1 {
    font-size: clamp(2.2rem, 7vw, 3rem);
  }

  .hero-content h1 .mobile-break {
    display: block;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-actions .cta {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* iPhone 14 Pro Portrait (390px) - Content etwas nach unten */
@media (max-width: 390px) {
  .hero {
    padding-top: 60px;
  }

  .hero-content {
    margin-top: -20px;
  }
}

/* iPhone 14 Pro Landscape - Content deutlich nach unten */
@media (max-width: 844px) and (orientation: landscape) {
  .hero {
    padding-top: 100px;
    min-height: 100vh;
    height: 100vh;
  }

  .hero-content {
    margin-top: 0;
  }
}

/* iPad Pro 13" - Gleiche Position wie Desktop */
@media (min-width: 1024px) and (max-width: 1366px) {
  .hero {
    padding: 50px 48px 120px;
  }

  .hero-content {
    margin-top: -120px;
  }
}


@media (max-width: 480px) {
  .top-nav {
    padding: 12px 16px;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
  }

  .logo img {
    height: 56px;
  }

  .menu-toggle {
    width: 28px;
    height: 28px;
  }

  .menu.active {
    max-height: calc(100vh - var(--nav-height, 90px));
    height: auto;
    min-height: auto;
    padding-top: 28px;
    padding-bottom: 28px;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
    overflow-y: visible;
  }

  .menu a {
    font-size: 1.15rem;
    padding: 20px 28px;
    width: 100%;
    max-width: 100%;
    text-align: center;
    box-sizing: border-box;
    display: block;
    margin: 0;
  }

  .menu .mobile-cta {
    font-size: 1.05rem;
    padding: 16px 28px;
    display: block;
    border: 1px solid var(--text);
    border-radius: 20px;
    background-color: #f8f8f8;
    margin-top: 20px;
    margin-left: 28px;
    margin-right: 28px;
    margin-bottom: 0;
    width: calc(100% - 56px);
    max-width: calc(100% - 56px);
    box-sizing: border-box;
  }

  .desktop-cta {
    display: none !important;
  }


  .services-section {
    padding: 48px 16px;
  }

  .services-title {
    font-size: clamp(1.05rem, 5vw, 1.35rem);
    margin-bottom: 12px;
  }

  .services-subtitle {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }

  .services-grid {
    gap: 16px;
  }

  .service-card {
    padding: 20px 16px;
  }

  .service-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
  }

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

  .service-card p {
    font-size: 0.85rem;
  }

  .services-cta {
    padding: 24px 20px;
    gap: 20px;
  }

  .services-cta-icon {
    width: 56px;
    height: 56px;
  }

  .services-cta-content h3 {
    font-size: 1.1rem;
  }

  .services-cta-content p {
    font-size: 0.9rem;
  }

  .info-section,
  .contact-section,
  .trust-badges {
    padding: 48px 16px;
  }

  .section-content h2 {
    font-size: clamp(1.05rem, 5vw, 1.35rem);
    line-height: 1.3;
  }

  .section-content p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .section-media {
    min-height: 200px;
    border-radius: 16px;
  }

  .trust-badges {
    gap: 20px;
    grid-template-columns: 1fr;
  }

  .trust-card {
    padding: 24px 20px;
  }

  .contact-form {
    gap: 12px;
  }

  input,
  textarea {
    padding: 12px 16px;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  button {
    padding: 12px 20px;
    font-size: 1rem;
  }

  .project-message {
    padding: 16px;
    font-size: 0.95rem;
  }

  .privacy-modal {
    padding: 10px;
  }

  .privacy-modal-content {
    max-height: 100vh;
    border-radius: 8px;
  }

  .privacy-modal-header,
  .privacy-modal-footer {
    padding: 16px;
  }

  .privacy-modal-header h2 {
    font-size: 1.1rem;
  }

  .privacy-content-wrapper {
    padding: 16px;
    font-size: 0.9rem;
  }

  .site-footer {
    padding: 20px 16px;
    font-size: 0.85rem;
  }

  .site-footer p {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

.legal-page {
  padding: 64px 48px 96px;
  padding-top: 120px;
  max-width: 900px;
  margin: 0 auto;
}

.legal-content {
  line-height: 1.7;
  color: var(--text);
}

.legal-content h1 {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  margin: 0 0 12px;
  color: var(--text);
}

.legal-content .last-updated {
  color: #666;
  font-size: 0.95rem;
  margin: 0 0 48px;
}

.legal-content h2 {
  font-size: clamp(1rem, 2vw, 1.3rem);
  margin: 48px 0 16px;
  color: var(--text);
  font-weight: 600;
}

.legal-content h3 {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  margin: 32px 0 12px;
  color: var(--text);
  font-weight: 600;
}

.legal-content p {
  margin: 0 0 16px;
}

.legal-content ul {
  margin: 16px 0 24px;
  padding-left: 24px;
}

.legal-content li {
  margin: 8px 0;
}

.legal-content a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.legal-content a:hover {
  text-decoration-color: var(--text);
}

@media (max-width: 640px) {
  .top-nav {
    padding: 16px 20px;
  }

  .hero,
  .info-section,
  .contact-section {
    padding: 64px 20px;
  }

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

  .legal-page {
    padding: 96px 20px 64px;
    padding-top: 120px;
  }
}

/* Phone Button */
.phone-button {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 56px;
  height: 56px;
  border-radius: 28px;
  background: var(--accent);
  color: #fff;
  border: 2px solid #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: width 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
  z-index: 9998;
  text-decoration: none;
  overflow: hidden;
}

.phone-button:hover {
  width: auto;
  min-width: 56px;
  height: 56px;
  padding: 0 20px 0 12px;
  border-radius: 28px;
  justify-content: flex-start;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.phone-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  transition: none;
}

.phone-number {
  display: none;
  margin-left: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}

.phone-button:hover .phone-number {
  display: block;
}

.scroll-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  border: 2px solid #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
  z-index: 9999;
  pointer-events: none;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.scroll-to-top:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.scroll-to-top:active {
  transform: translateY(0);
}

.scroll-to-top-inline {
  display: inline-block;
  padding: 10px 20px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
}

.scroll-to-top-inline:hover {
  background: #A6B4B8;
  border-color: #A6B4B8;
  color: #fff;
}

.scroll-to-top-inline:active {
  transform: translateY(0);
}

/* Privacy Modal Styles */
.privacy-link {
  color: var(--text);
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s ease;
}

.privacy-link:hover {
  color: #333;
}

.privacy-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(1px);
  z-index: 10000;
  overflow-y: auto;
  padding: 20px;
  box-sizing: border-box;
}

.privacy-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.privacy-modal-content {
  background: #fff;
  border-radius: 12px;
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
}

.privacy-modal-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--gray-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.privacy-modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

.privacy-modal-close {
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.privacy-modal-close:hover {
  color: var(--text);
}

.privacy-modal-body {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.privacy-content-wrapper {
  flex: 1;
  overflow-y: auto;
  position: relative;
  padding: 24px 32px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
}

#privacyContentInner {
  width: 100%;
}

.privacy-content-wrapper h2 {
  margin-top: 32px;
  margin-bottom: 16px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.privacy-content-wrapper h2:first-of-type {
  margin-top: 0;
}

.privacy-content-wrapper h3 {
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.privacy-content-wrapper p {
  margin-bottom: 16px;
  color: var(--text);
}

.privacy-content-wrapper ul,
.privacy-content-wrapper ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.privacy-content-wrapper li {
  margin-bottom: 8px;
}

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

.privacy-content-wrapper a:hover {
  color: #333;
}

.privacy-content-wrapper h1 {
  display: none;
}

.privacy-modal-footer {
  padding: 20px 32px;
  border-top: 1px solid var(--gray-light);
  display: flex;
  justify-content: flex-start;
  flex-shrink: 0;
}

.privacy-accept-btn {
  padding: 10px 20px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
  border-radius: var(--radius-pill);
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.privacy-accept-btn:hover {
  background: #A6B4B8;
  border-color: #A6B4B8;
  color: #fff;
}

.privacy-accept-btn:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .privacy-modal {
    padding: 10px;
  }

  .privacy-modal-content {
    max-height: 95vh;
  }

  .privacy-modal-header {
    padding: 20px;
  }

  .privacy-modal-header h2 {
    font-size: 1.25rem;
  }

  .privacy-modal-footer {
    padding: 16px 20px;
  }

  .privacy-accept-btn {
    width: 100%;
  }

}

@media (max-width: 640px) {
  .phone-button {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
  }

  .phone-button:hover {
    width: auto;
    height: 48px;
    padding: 0 16px;
    border-radius: 24px;
  }

  .phone-icon {
    width: 24px;
    height: 24px;
  }

  .phone-number {
    font-size: 0.85rem;
    margin-left: 10px;
  }

  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
  }
}

/* Desktop: Ensure fixed position is maintained - this protects desktop from mobile changes */
/* This must come after all other media queries to ensure it takes precedence */
@media (min-width: 1351px) {
  .top-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 105 !important;
    width: 100% !important;
    box-shadow: none !important;
    isolation: auto !important;
  }
  
  /* Add padding-top to body or main to account for fixed nav */
  main {
    padding-top: 0;
  }
  
  .hero {
    margin-top: 0;
    min-height: 100vh;
  }
}

/* Reduced motion preferences */
@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;
  }

  .hero-video {
    display: none;
  }

  .hero {
    background-image: url('./images/hero-poster.webp');
    background-size: cover;
    background-position: center;
  }
}

