/*
 * Webconnect Responsive Framework
 * Version 3.0.0
 *
 * Generic component rules only. New pages inherit these automatically
 * when they use the wc-* component classes.
 */

@media (max-width: 1100px) {
  :root {
    --wc-gutter: 24px;
    --wc-section-space: 54px;
  }

  .wc-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .wc-panel,
  .wc-dark-panel {
    padding: 36px !important;
  }

  .wc-hero {
    padding-top: 82px !important;
    padding-bottom: 64px !important;
  }
}

@media (max-width: 980px) {
  .wc-hero-grid,
  .wc-split,
  .wc-dark-panel-grid {
    grid-template-columns: 1fr !important;
  }

  .wc-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .wc-hero-grid,
  .wc-split {
    gap: 32px !important;
  }

  .wc-hero-visual {
    max-width: 680px;
    width: 100%;
    margin-inline: auto;
  }
}

@media (max-width: 767px) {
  :root {
    --wc-gutter: 16px;
    --wc-section-space: 40px;
  }

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  /*
   * Divi rows can otherwise constrain Code modules on phones.
   * Any v3 Webconnect page automatically escapes that restriction.
   */
  .wc-page,
  .wc-header-wrap,
  .wc-footer-wrap {
    position: relative;
    left: 50%;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    overflow-x: clip;
  }

  .wc-page *,
  .wc-header-wrap *,
  .wc-footer-wrap * {
    min-width: 0;
  }

  .wc-page img,
  .wc-page svg,
  .wc-header-wrap img,
  .wc-footer-wrap img {
    max-width: 100%;
    height: auto;
  }

  .wc-section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  .wc-section--no-top {
    padding-top: 0 !important;
  }

  .wc-hero {
    padding-top: 50px !important;
    padding-bottom: 44px !important;
    border-radius: 0 0 24px 24px !important;
  }

  .wc-hero::after {
    height: 54px !important;
  }

  .wc-hero h1 {
    max-width: 100% !important;
    font-size: clamp(28px, 8vw, 34px) !important;
    line-height: 1.09 !important;
    letter-spacing: -.035em !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    text-wrap: balance;
  }

  .wc-hero p {
    font-size: 16px !important;
    line-height: 1.62 !important;
    margin-bottom: 22px !important;
  }

  .wc-eyebrow {
    max-width: 100%;
    padding: 8px 12px !important;
    margin-bottom: 16px !important;
    font-size: 11px !important;
    line-height: 1.4;
    white-space: normal;
  }

  .wc-section-title {
    margin-bottom: 24px !important;
  }

  .wc-section-title h2 {
    font-size: 27px !important;
    line-height: 1.15 !important;
    margin: 9px 0 12px !important;
  }

  .wc-section-title p {
    font-size: 15.5px !important;
    line-height: 1.65 !important;
  }

  .wc-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100%;
  }

  .wc-btn {
    width: 100% !important;
    min-height: 48px;
    padding: 13px 16px !important;
    text-align: center;
  }

  .wc-grid--2,
  .wc-grid--3,
  .wc-grid--4 {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .wc-panel,
  .wc-dark-panel {
    padding: 22px !important;
    border-radius: 22px !important;
  }

  .wc-card,
  .wc-price-card {
    padding: 20px !important;
    border-radius: 20px !important;
  }

  .wc-badge--light {
    margin-bottom: 14px !important;
  }

  .wc-accordion__button {
    padding: 17px 50px 17px 17px !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
  }

  .wc-accordion__button::after {
    right: 14px !important;
  }

  .wc-accordion__inner {
    padding: 0 17px 20px !important;
  }

  .wc-price {
    white-space: nowrap !important;
  }

  .wc-calendly-embed,
  .calendly-inline-widget {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  iframe {
    max-width: 100% !important;
  }

  /* Generic header/footer mobile behaviour */
  .wc-header-inner {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }

  .wc-logo-mark {
    width: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
  }

  .wc-logo-title {
    font-size: 14px !important;
  }

  .wc-logo-sub {
    display: none !important;
  }

  .wc-menu-toggle {
    width: 42px !important;
    height: 42px !important;
  }

  .wc-mobile-panel {
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
  }

  .wc-footer-wrap {
    margin-top: 32px !important;
    padding-top: 64px !important;
    padding-bottom: 20px !important;
  }

  .wc-footer-glass {
    padding: 22px 18px !important;
    border-radius: 20px !important;
  }

  .wc-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 26px !important;
  }

  .wc-footer-cta,
  .wc-footer-bottom,
  .wc-footer-bottom-links {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .wc-footer-btn {
    width: 100% !important;
    text-align: center;
  }
}

@media (max-width: 390px) {
  .wc-hero h1 {
    font-size: 27px !important;
  }
}

@media (max-width: 360px) {
  .wc-hero h1 {
    font-size: 25px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wc-page *,
  .wc-header-wrap *,
  .wc-footer-wrap * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}


/* =========================================================
   v3.0.1 - LEGACY PAGE COMPATIBILITY BRIDGE
   Existing Divi pages can use the v3 responsive system before their HTML
   has been migrated to the new generic wc-* component classes.
   ========================================================= */

/* Treat every current page wrapper like .wc-page on phones. */
@media (max-width: 767px) {
  .wc-home-page,
  .wc-about-new-page,
  .wccare-page,
  .wcportfolio-page,
  .wc-webdesign-new-page,
  .wcit-page,
  .wcm365-page,
  .wcemail-page,
  .wccontact-page,
  .wc-managed-page {
    position: relative;
    left: 50%;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    overflow-x: clip;
  }

  /* Standard containers */
  .wc-home-container,
  .wc-about-new-container,
  .wccare-container,
  .wcportfolio-container,
  .wc-webdesign-new-container,
  .wcit-container,
  .wcm365-container,
  .wcemail-container,
  .wccontact-container,
  .wc-managed-container {
    width: calc(100% - 32px) !important;
    max-width: 1360px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Standard sections */
  .wc-home-section,
  .wc-about-new-section,
  .wccare-section,
  .wcportfolio-section,
  .wc-webdesign-new-section,
  .wcit-section,
  .wcm365-section,
  .wcemail-section,
  .wccontact-section,
  .wc-managed-section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  .wc-home-section.wc-u-pt-0,
  .wc-about-new-section.wc-u-pt-0,
  .wccare-section.wc-u-pt-0,
  .wcportfolio-section.wc-u-pt-0,
  .wc-webdesign-new-section.wc-u-pt-0,
  .wcit-section.wc-u-pt-0,
  .wcm365-section.wc-u-pt-0,
  .wcemail-section.wc-u-pt-0,
  .wccontact-section.wc-u-pt-0,
  .wc-managed-section.wc-u-pt-0 {
    padding-top: 0 !important;
  }

  /* HERO LAYOUTS */
  .wc-home-hero-grid,
  .wc-about-new-hero-grid,
  .wccare-hero-grid,
  .wc-webdesign-new-hero-grid,
  .wcit-hero-grid,
  .wcm365-hero-grid,
  .wcemail-hero-grid,
  .wccontact-hero-grid,
  .wc-managed-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .wc-home-hero,
  .wc-about-new-hero,
  .wccare-hero,
  .wcportfolio-hero,
  .wc-webdesign-new-hero,
  .wcit-hero,
  .wcm365-hero,
  .wcemail-hero,
  .wccontact-hero,
  .wc-managed-hero {
    padding-top: 50px !important;
    padding-bottom: 44px !important;
    border-radius: 0 0 24px 24px !important;
  }

  /* Hero typography */
  .wc-home-hero h1,
  .wc-about-new-hero h1,
  .wccare-hero h1,
  .wcportfolio-hero h1,
  .wc-webdesign-new-hero h1,
  .wcit-hero h1,
  .wcm365-hero h1,
  .wcemail-hero h1,
  .wccontact-hero h1,
  .wc-managed-hero h1 {
    max-width: 100% !important;
    font-size: clamp(28px, 8vw, 34px) !important;
    line-height: 1.09 !important;
    letter-spacing: -0.035em !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
    text-wrap: balance;
  }

  /* Preserve the intentional 3-line Home hero. */
  .wc-home-hero h1 {
    font-size: clamp(24px, 7.4vw, 33px) !important;
    white-space: nowrap !important;
  }

  .wc-home-hero h1 br {
    display: initial !important;
  }

  /* Actions/buttons */
  .wc-home-actions,
  .wc-about-new-actions,
  .wccare-actions,
  .wcportfolio-actions,
  .wcportfolio-work-actions,
  .wc-webdesign-new-actions,
  .wcit-actions,
  .wcm365-actions,
  .wcemail-actions,
  .wccontact-actions,
  .wc-managed-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100%;
  }

  .wc-home-btn,
  .wc-about-new-btn,
  .wccare-btn,
  .wcportfolio-btn,
  .wcportfolio-work-link,
  .wc-webdesign-new-btn,
  .wcit-btn,
  .wcm365-btn,
  .wcemail-btn,
  .wccontact-btn,
  .wc-managed-btn {
    width: 100% !important;
    min-height: 48px;
    padding: 13px 16px !important;
    justify-content: center;
    text-align: center;
  }

  /* Split/two-column layouts */
  .wc-home-about-grid,
  .wc-home-portfolio-grid,
  .wc-about-new-intro-grid,
  .wc-about-new-process-grid,
  .wccare-feature-grid,
  .wccare-contact-grid,
  .wc-webdesign-new-feature-grid,
  .wc-webdesign-new-contact-grid,
  .wcit-feature-grid,
  .wcit-why-grid,
  .wcit-faq-grid,
  .wcm365-care-grid,
  .wcemail-feature-grid,
  .wccontact-form-grid,
  .wc-managed-feature-grid,
  .wc-managed-contact-grid,
  .wc-managed-comparison-grid,
  .wc-about-new-dark-grid,
  .wccare-dark-grid,
  .wc-webdesign-new-dark-grid,
  .wcit-dark-grid,
  .wcemail-dark-grid,
  .wccontact-dark-grid,
  .wc-managed-dark-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Existing multi-card grids */
  .wc-home-service-grid,
  .wc-home-strength-grid,
  .wc-home-portfolio-previews,
  .wc-about-new-card-grid,
  .wccare-intro-items,
  .wccare-plan-grid,
  .wccare-card-grid,
  .wcportfolio-stats,
  .wcportfolio-card-grid,
  .wcit-service-grid,
  .wcit-card-grid,
  .wcit-price-grid,
  .wcm365-card-grid,
  .wcm365-care-list,
  .wcemail-card-grid,
  .wccontact-card-grid,
  .wc-managed-intro-items,
  .wc-managed-step-grid,
  .wc-managed-card-grid,
  .wc-managed-plan-grid,
  .wc-managed-option-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  /* Large boxes */
  .wc-home-about-box,
  .wc-home-strength-section,
  .wc-home-portfolio-box,
  .wc-about-new-intro-box,
  .wc-about-new-process-box,
  .wc-about-new-dark-box,
  .wccare-feature-box,
  .wccare-contact-box,
  .wccare-dark-box,
  .wcportfolio-intro-box,
  .wcportfolio-work-box,
  .wcportfolio-testimonial,
  .wc-webdesign-new-feature-box,
  .wc-webdesign-new-support-box,
  .wc-webdesign-new-contact-box,
  .wc-webdesign-new-dark-box,
  .wc-webdesign-new-testimonial,
  .wcit-feature-box,
  .wcit-support-box,
  .wcit-pricing-box,
  .wcit-faq-box,
  .wcit-dark-box,
  .wcm365-feature-box,
  .wcm365-care-box,
  .wcm365-comparison-box,
  .wcemail-feature-box,
  .wcemail-maintenance-box,
  .wcemail-faq-box,
  .wcemail-dark-box,
  .wccontact-form-box,
  .wccontact-dark-box,
  .wc-managed-feature-box,
  .wc-managed-contact-box,
  .wc-managed-dark-box {
    padding: 22px !important;
    border-radius: 22px !important;
  }

  /* Cards */
  .wc-home-service-card,
  .wc-home-strength-card,
  .wc-home-about-panel,
  .wc-about-new-card,
  .wccare-intro-item,
  .wccare-card,
  .wccare-plan-card,
  .wcportfolio-card,
  .wcit-service-card,
  .wcit-card,
  .wcit-price-card,
  .wcm365-card,
  .wcemail-card,
  .wcemail-price-card,
  .wccontact-card,
  .wc-managed-intro-item,
  .wc-managed-step,
  .wc-managed-card,
  .wc-managed-plan-card,
  .wc-managed-comparison-card,
  .wc-managed-option {
    padding: 20px !important;
    border-radius: 20px !important;
  }

  /* Section headings */
  .wc-home-section-title,
  .wc-about-new-section-title,
  .wccare-section-title,
  .wcportfolio-section-title,
  .wc-webdesign-new-section-title,
  .wcit-section-title,
  .wcm365-section-title,
  .wcemail-section-title,
  .wccontact-section-title,
  .wc-managed-section-title {
    margin-bottom: 24px !important;
  }

  .wc-home-section-title h2,
  .wc-about-new-section-title h2,
  .wccare-section-title h2,
  .wcportfolio-section-title h2,
  .wc-webdesign-new-section-title h2,
  .wcit-section-title h2,
  .wcm365-section-title h2,
  .wcemail-section-title h2,
  .wccontact-section-title h2,
  .wc-managed-section-title h2 {
    font-size: 27px !important;
    line-height: 1.15 !important;
    margin: 9px 0 12px !important;
    text-wrap: balance;
  }

  /* Pricing cards remain clean and buttons line up */
  .wc-managed-comparison-card,
  .wc-managed-plan-card,
  .wccare-plan-card,
  .wcit-price-card,
  .wcemail-price-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch;
  }

  .wc-managed-comparison-card > a,
  .wc-managed-plan-card > a,
  .wccare-plan-card > a,
  .wcit-price-card > a,
  .wcemail-price-card > a {
    margin-top: auto !important;
  }

  /* Floating desktop decorations become normal mobile content. */
  .wc-about-new-note,
  .wccare-floating-badge,
  .wcportfolio-floating-card,
  .wcit-floating-card,
  .wcm365-floating-card,
  .wcemail-floating-card,
  .wccontact-floating-card,
  .wc-managed-floating-badge {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 12px 0 0 !important;
    transform: none !important;
  }

  /* Remove desktop rotations/transforms on mobile visuals. */
  .wc-home-dashboard-card,
  .wc-about-new-photo-card,
  .wccare-hero-image,
  .wc-webdesign-new-hero-image-card,
  .wcit-hero-image,
  .wcm365-hero-image,
  .wcemail-hero-image,
  .wccontact-hero-image,
  .wc-managed-hero-visual,
  .wcportfolio-browser {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transform: none !important;
  }

  /* Calendly */
  .wccare-form-wrap .calendly-inline-widget,
  .wc-webdesign-new-form-wrap .calendly-inline-widget,
  .wc-managed-calendly,
  .calendly-inline-widget {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  /* Contact form */
  .wccontact-form-shell .fluentform .ff-t-container {
    display: block !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .wccontact-form-shell .fluentform .ff-t-cell {
    width: 100% !important;
    padding: 0 !important;
    margin-bottom: 12px;
  }

  /* Microsoft 365 table */
  .wcm365-table-wrap {
    width: 100% !important;
    max-width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .wcm365-table {
    min-width: 700px !important;
  }
}

@media (max-width: 390px) {
  .wc-home-hero h1 {
    font-size: 25px !important;
  }

  .wc-about-new-hero h1,
  .wccare-hero h1,
  .wcportfolio-hero h1,
  .wc-webdesign-new-hero h1,
  .wcit-hero h1,
  .wcm365-hero h1,
  .wcemail-hero h1,
  .wccontact-hero h1,
  .wc-managed-hero h1 {
    font-size: 27px !important;
  }
}
