:root {
  --space-section-mobile: clamp(32px, 8vw, 48px);
  --space-stack-mobile: clamp(20px, 6vw, 32px);
  --line-height-mobile: 1.45;
  --cta-mobile-max: min(360px, 100%);
  --contact-surface: #ffffff;
  --contact-border: #e1e6f5;
  --contact-shadow: 0 24px 60px rgba(10, 18, 40, 0.08);
  --contact-accent: #111833;
}

/* Navigation defaults for larger screens */
.mobile-nav-links {
  display: none !important;
}

.hero-contact {
  margin-top: clamp(16px, 3vw, 24px);
}

.contact-card {
  background: var(--contact-surface);
  border: 1px solid var(--contact-border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--contact-shadow);
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #ccd3ea;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: inherit;
  line-height: 1.4;
  background-color: #f8f9ff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--contact-accent);
  box-shadow: 0 0 0 3px rgba(17, 24, 51, 0.15);
  background-color: #fff;
}

.contact-form button {
  background-color: var(--contact-accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 20px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form button:hover,
.contact-form button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(17, 24, 51, 0.2);
}

.contact-status {
  min-height: 20px;
  margin-top: 12px;
  font-weight: 600;
  color: var(--contact-accent);
}

.contact-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--contact-accent);
}

.navbar._1 {
  height: auto;
  min-height: 72px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.navbar .content-style {
  width: auto;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.navbar .company-logo {
  flex-shrink: 0;
  overflow: visible;
}

.brand-text {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #0b1130;
  margin-left: 16px;
  white-space: normal;
  line-height: 1.25;
}

.tab-horizontal,
.tab-horizontal-2 {
  height: auto !important;
  min-height: 0;
  overflow: visible;
  padding-right: 32px;
}

.tabs-content {
  height: auto !important;
  min-height: 0;
  flex: 1 1 auto;
}

@media screen and (max-width: 1024px) {
  .navbar._1 {
    flex-wrap: wrap;
    row-gap: 12px;
    align-items: flex-start;
  }

  .component,
  .component-2,
  .component-3 {
    height: auto;
    min-height: auto;
    grid-column-gap: 40px;
  }

  .layout {
    padding: 72px 32px;
    grid-row-gap: 48px;
  }

  .tabs-menu,
  .tabs-content {
    width: 100%;
  }

  .tabs-content .placeholder-image,
  .component img.placeholder-image,
  .component-2 img.placeholder-image,
  .component-3 img.placeholder-image {
    width: min(520px, 100%);
    height: auto !important;
    object-fit: contain !important;
  }
}

/* General Mobile Styles */
@media screen and (max-width: 767px) {
  :root {
    --space-section-mobile: clamp(32px, 10vw, 48px);
    --space-stack-mobile: clamp(20px, 8vw, 32px);
    --line-height-mobile: 1.45;
    --cta-mobile-max: min(340px, 100%);
  }

  html,
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: var(--line-height-mobile);
  }

  body,
  p,
  li,
  blockquote,
  .hero-subheadline,
  .section-subheading,
  .paragraph-2,
  .paragraph-3,
  .paragraph-4,
  .paragraph-5,
  .text-2,
  .text-6 {
    line-height: var(--line-height-mobile);
    font-size: 1rem;
  }

  main > section,
  section,
  .section,
  .layout,
  .contact,
  .testimonial,
  .header-style,
  .footer {
    padding-top: var(--space-section-mobile);
    padding-bottom: var(--space-section-mobile);
  }

  .layout,
  .header-style,
  .header-style._2 {
    padding-left: 20px;
    padding-right: 20px;
    grid-row-gap: var(--space-stack-mobile);
  }

  h1,
  .hero-headline {
    font-size: 36px;
    line-height: 1.2;
  }

  h2,
  .section-heading {
    font-size: 32px;
    line-height: 1.25;
  }

  h3,
  .tab-heading {
    font-size: 24px;
    line-height: 1.3;
  }

  h1,
  h2,
  h3,
  p,
  ul,
  ol {
    margin-top: 0;
    margin-bottom: var(--space-stack-mobile);
  }

  .hero-subheadline {
    margin-bottom: 16px;
  }

  .container,
  .header-style,
  .layout,
  footer,
  .container-2,
  .container-3,
  .container-4,
  .w-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .navbar .content-style {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .brand-text {
    margin-left: 0;
    margin-top: 4px;
    white-space: normal;
  }

  .section-title,
  .section-title-2,
  .content-style-2,
  .content-style-5,
  .content-style-7,
  .tabs-menu,
  .tabs-content,
  .testimonial .content-style-4 {
    margin-bottom: var(--space-stack-mobile);
  }

  .component,
  .component-2,
  .component-3 {
    flex-direction: column;
    gap: var(--space-stack-mobile);
    height: auto;
  }

  .component > img,
  .component-2 > img,
  .component-3 > img,
  .tabs-content .placeholder-image,
  .layout img,
  .w-layout-blockcontainer img {
    width: min(420px, 100%);
    max-width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  .hero-headline,
  .hero-subheadline {
    text-align: left;
  }

  .w-button,
  button,
  .contact-form button,
  .w-inline-block .w-button {
    width: 100%;
    max-width: var(--cta-mobile-max);
    padding: 0.95rem 1.25rem;
    font-size: 1rem;
    letter-spacing: 0.01em;
    line-height: 1.2;
  }

  .w-input,
  .w-select,
  input[type="text"],
  input[type="email"],
  textarea {
    padding: 12px 14px;
    font-size: 1rem;
    line-height: 1.35;
  }

  .contact-card {
    padding: 24px;
    margin-top: var(--space-stack-mobile);
  }

  .placeholder-image {
    max-width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
  }

  ul,
  ol {
    padding-left: 20px;
  }

  .tabs-menu,
  .tabs-content,
  .timeline {
    width: 100%;
  }

  .tabs-menu {
    flex-direction: column;
    gap: var(--space-stack-mobile);
  }

  .tabs-content {
    margin-top: var(--space-stack-mobile);
    justify-content: center;
  }

  .timeline {
    padding-left: 0;
    list-style-position: inside;
  }

  /* Mobile Navigation */
  .navbar._1 {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .nav-links {
    display: none;
  }

  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
  }

  .hamburger-menu span {
    width: 2rem;
    height: 0.25rem;
    background: #000;
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
  }

  .mobile-nav-links {
    display: none !important;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    padding: 20px;
    border-top: 1px solid #eee;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .mobile-nav-links.active {
    display: flex !important;
  }

  .mobile-nav-links a {
    padding: 15px 0;
    text-align: center;
    font-size: 18px;
    transition: background-color 0.3s;
  }

  .mobile-nav-links a:hover,
  .mobile-nav-links a.w--current {
    background-color: #f0f0f0;
  }
}

/* Footer links */
.links .text-7 {
  color: inherit;
  text-decoration: none;
}

.links .text-7:hover {
  text-decoration: underline;
}

/* Testimonial formatting */
.testimonial .content-style-4 {
  text-align: center;
}

.testimonial-logo {
  display: block;
  width: 120px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 24px;
}

.testimonial-quote {
  margin: 0 auto;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.testimonial-quote .quote {
  margin: 0;
}

.testimonial .avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.testimonial .avatar-content {
  text-align: center;
}

.contact-form__checkbox {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0.5rem 0 1rem;
}

.contact-form__checkbox input[type='checkbox'] {
  margin: 0;
}

.contact-form__honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

@media screen and (max-width: 414px) {
  .brand-text {
    margin-left: 0;
    margin-top: 8px;
    font-size: 0.9rem;
  }

  .contact-card {
    padding: 20px;
  }

  .hero-headline {
    font-size: 32px;
  }

  .contact-form button {
    font-size: 0.95rem;
  }

  .hero-contact {
    margin-top: 12px;
  }
}

@media screen and (max-width: 375px) {
  .hero-headline {
    font-size: 30px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 0.95rem;
  }
}
