@import './nx/nx.css';
@import './nx/nx_buttons.css';

@font-face {
  font-family: "Avenir";
  src: url("../fonts/avenirltprobook.woff") format("woff"), url("../fonts/avenirltprobook.ttf") format("truetype"), url("../fonts/avenirltprobook.svg") format("svg");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Avenir";
  src: url("../fonts/avenirltpromedium.woff") format("woff"), url("../fonts/avenirltpromedium.ttf") format("truetype"), url("../fonts/avenirltpromedium.svg") format("svg");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Avenir";
  src: url("../fonts/avenirltbold.woff") format("woff"), url("../fonts/avenirltbold.ttf") format("truetype"), url("../fonts/avenirltbold.svg") format("svg");
  font-weight: 900;
  font-style: normal;
}

:root {
  --primary: var(--p-primary-500);
  --p-primary-50:  #f0f7eb;
  --p-primary-100: #daedcb;
  --p-primary-200: #b4da9e;
  --p-primary-300: #8ec771;
  --p-primary-400: #6fb75a;
  --p-primary-500: #78BC4C;
  --p-primary-600: #6aa744;
  --p-primary-700: #5a913b;
  --p-primary-800: #4b7a32;
  --p-primary-900: #3d6329;
  --p-primary-950: #2c471e;

  --cta: var(--primary);
  --cta-hover: var(--accent);
  --accent: #FBB427;

  --text-dark: #333;
  --text-medium: #888;
  --text-header-font: 'Avenir', sans-serif;
  --text-header-weight: 900;
  --text-header-size: clamp(28px, 4vw, 50px);
  --text-header-color: var(--bg-dark);
  --text-subheader-size: 24px;
  --text-subheader-weight: 300;
  --text-subheader-font: var(--body-text-font);
  --text-subheader-color: var(--text-dark);

  --body-text-font: 'Avenir', serif;
  --body-text-weight: 400;

  --container-max-width: 1453px;
  --body-bg: white;
  --bg-dark: #0254A0;
  --bg-light: #F8F8F8;

  --header-bg: white;
  --header-main-width: 100%;
  --header-padding-y: 25px;
  --header-main-nav-text-size: 20px;
  --header-font-weight: var(--text-header-weight);
  --header-color: var(--text-header-color);
  --header-main-nav-hover-color: #4F87BD;
  --header-main-nav-underline-color: transparent;
  --header-active-color: var(--header-main-nav-hover-color);
  --header-mobile-weight: var(--text-header-weight);
  --header-mobile-color: var(--text-header-color);
  --header-mobile-size: 20px;
  --header-mobile-hover-color: var(--text-inverse);
  --header-mobile-hover-bg-color: var(--bg-dark);
  --top-header-bg: var(--bg-dark);
  --top-header-fixed-bg: var(--bg-dark);
  --top-header-hover: #6cbe4c;
  --header-logo-height: 56px;

  --footer-text-color: #555;
  --footer-text-size: var(--body-text-size);
  --footer-text-weight: 400;
  --footer-dso-logo-height: 56px;
  --footer-nav-bg: var(--bg-light);

  --page-header-max-height: 310px;
  --page-header-title-decoration-bg: var(--accent);
  --page-header-mt: 0;
  --page-header-title-decoration-display: block;

  --home-banner-bg: var(--body-bg);
  --home-banner-border-color: var(--primary);
  --home-banner-content-title-size: clamp(38px, 4vw, 50px);
  --home-banner-content-subtitle-size: clamp(18px, 2vw, 26px);
  --home-banner-content-subtitle-color: var(--text-inverse);
  --home-banner-content-max-width: 880px;
  --home-banner-content-subtitle-max-width: 660px;
  --home-banner-content-lg-width: 60%;
  --home-banner-image-lg-width: 33%;
  --home-banner-form-title-size: 19px;
  --home-banner-form-title-weight: var(--body-text-weight);
  --banner-form-btn-size: 20px;
  --banner-form-btn-weight: 900;
  --home-banner-form-height: 56px;
  --home-banner-form-wrapper-max-width: 530px;
  --home-section-title-size: clamp(28px, 4vw, 50px);
  --home-section-subtitle-size: clamp(19px, 2vw, 24px);
  --home-section-title-circle-bg: var(--accent);
  --home-plan-card-max-width: 430px;
  --home-plan-card-border-radius: 14px;
  --home-plans-cards-flex-wrap: wrap;
  --home-plans-cards-gap-xl: 60px;
  --home-plans-cards-gap-lg: 60px;
  --home-plan-card-top-bg: var(--primary);
  --home-plan-card-price-size: 80px;
  --home-plan-card-period-size: 26px;
  --home-plan-card-period-color: var(--text-header-color);
  --home-plan-card-perk-icon-color: var(--primary);
  --home-plan-card-perks-size: 22px;
  --home-step-content-border-color: var(--bg-dark);
  --home-features-entry-border-color: var(--primary);
  --home-features-entry-xl-size: 22px;
  --home-features-entry-lg-size: 20px;
  --home-features-entry-mobile-size: 20px;
  --home-features-entry-weight: 400;
  --home-features-entry-padding-y: 26px;
  --savings-summary-group-select-icon-color: var(--bg-dark);
  --home-step-title-size: clamp(24px, 2vw, 30px);
  --home-step-description-size: clamp(20px, 2vw, 24px);
  --home-how-step-max-width: 543px;
  --home-questions-title-size: clamp(35px, 4vw, 50px);

  --savings-table-section-pt: 80px;
  --savings-table-section-pb: 150px;
  --savings-summary-note-size: 20px;
  --savings-summary-note-color: var(--text-medium);

  --find-a-dentist-mt: 0;
  --find-steps-border-top-radius: 100px;
  --find-content-border-radius: 50px;
  --find-steps-title-size: 40px;
  --find-steps-subtitle-size: 24px;
  --find-steps-subtitle-weight: 300;
  --find-steps-subtitle-mt: 20px;
  --find-steps-icon-size: 100px;
  --find-steps-completed-bg: transparent;
  --find-steps-text-size: 20px;
  --find-steps-weight: 900;
  --find-steps-number-size: 40px;
  --find-steps-number-text-size: 20px;
  --find-steps-number-text-color: var(--text-header-color);
  --find-steps-content-mt: 20px;
  --find-form-label-color: var(--text-header-color);
  --find-form-label-size: 13px;
  --find-form-search-btn-office-label-display: none;
  --find-form-border-color: var(--bg-dark);
  --find-results-title-size: 20px;
  --find-results-title-weight: 400;
  --find-results-subtitle-size: 16px;
  --find-office-details-title-size: 20px;
  --find-office-details-title-color: var(--text-header-color);
  --find-office-details-content-size: 16px;
  --find-office-details-content-weight: 400;
  --find-office-details-phone-color: var(--text-header-color);
  --find-office-details-phone-weight: var(--text-header-weight);
  --find-office-details-phone-hover-color: var(--text-dark);
  --find-content-bg: var(--bg-light);
  --find-map-border-width: 1px;
  --find-map-border-color: var(--bg-dark);
  --find-office-card-active-border: var(--border-light);
  --find-office-details-icon-color: var(--text-header-color);
  --find-office-select-btn-min-width: 120px;
  --find-office-select-btn-font-size: 18px;

  --faq-open-icon-bg: var(--primary);
  --faq-entry-title-color: var(--text-header-color);
  --faq-answer-color: var(--text-medium);
  --faq-answer-weight: 500;
  --faq-contact-info-title-color: var(--text-inverse);
  --faq-contact-info-text-color: var(--text-inverse);
  --faq-contact-info-text-size: 21px;

  --support-page-bg: var(--bg-light);
  --support-info-bg: var(--bg-dark);
  --support-info-title-size: clamp(20px, 2vw, 24px);
  --support-info-text-size: 14px;
  --support-form-label-color: var(--text-header-color);
  --support-form-label-size: 12px;

  --login-form-subtitle-display: block;
  --login-form-title-size: 40px;
  --login-form-subtitle-size: 14px;
  --login-form-subtitle-weight: 500;
  --login-forgot-link-color: #34b2e3;
  --login-forgot-link-weight: 500;

  --join-now-title-justify: center;
  --signup-label-color: var(--text-header-color);
  --signup-summary-border: transparent;
  --signup-summary-body-entry-size: 17px;
  --signup-summary-body-entry-color: #606e7a;
  --signup-summary-body-entry-weight: 500;
  --signup-summary-disclaimer-entry-size: 14px;
  --signup-summary-link-decoration: none;
  --signup-summary-fee-entry-weight: 500;
  --signup-summary-annual-cost-bg: #C7F7FF;
  --signup-summary-totals-border-color: var(--bg-dark);
  --signup-summary-total-row-size: 16px;
  --signup-summary-annual-cost-weight: 500;
  --signup-summary-due-now-bg: var(--bg-dark);
  --signup-summary-due-now-color: var(--text-inverse);


  --custom-table-padding-y: 21px;
  --custom-table-header-full-size: 22px;
  --custom-table-footer-full-size: 23px;
  --custom-table-row-full-bg: #ECFAFF;
  --custom-table-row-full-color: var(--text-header-color);
  --custom-table-row-full-size: 22px;
  --custom-table-row-full-weight: 900;
  --custom-table-row-full-text-align: left;
  --custom-table-body-size: 22px;
  --custom-table-body-last-col-weight: 900;
  --custom-table-highlight-color: var(--text-header-color);
  --custom-table-header-full-bg: var(--bg-dark);
  --custom-table-header-bg: var(--bg-dark);
  --custom-table-header-size: 22px;

  --button-padding-x: 25px;
  --button-border-radius: 10px;
  --button-text-weight: 900;
  --button-text-size: clamp(18px, 2vw, 20px);
  --button-height: 56px;
  --button-sm-height: 45px;
  --button-sm-text-size: 19px;
}

.home {
  --header-position: fixed;
  --header-bg: transparent;
  --header-fixed-bg: var(--body-bg);
  --header-open-bg: var(--body-bg);
  --header-mobile-nav-bg: var(--body-bg);
  --header-toggle-bg: var(--bg-dark);
  --header-toggle-bg-hover: var(--accent);
  --header-toggle-color-hover: var(--text-header-color);
  --header-fixed-box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
  --top-header-fixed-bg: var(--primary);
  --header-logo-display: none;
  --header-logo-alt-display: block;
  --savings-table-mt: 40px;

  .home-how {
    --container-max-width: 1606px;
  }

  .home-features {
    --home-section-title-color: var(--text-inverse);
    --home-section-subtitle-color: var(--text-inverse);
  }

  tr td:nth-child(2) {
    color: var(--text-header-color);
    font-weight: 900;
  }
}

.find-a-dentist .main-content {
  --button-text-size: 16px;
}

.support .main-content {
  --button-text-size: 12px;
  --button-height: 49px;
}

.member-login {
  --page-header-max-height: 475px;
}

@layer components {
  /* Turquoise Buttons */
  .directory-phone-btn,
  .directory-contact-btn,
  .find-clear-filters-btn,
  .header-logout-btn,
  .submit-reset-btn,
  .login-forgot-submit-btn,
  .login-btn,
  .checkout-success-btn,
  .start-btn,
  .find-select-office-btn,
  .find-form-search-btn,
  .savings-summary-btn,
  .home-questions-contact-btn,
  .home-how-btn,
  .home-savings-btn,
  .home-features-join-btn,
  .home-plans-join-btn,
  .header-join-now-btn {
    background-color: var(--cta);
    color: var(--text-inverse);

    &:hover:not(:disabled) {
      background-color: var(--cta-hover);
      color: var(--text-inverse);
    }
  }

  /* Dark Buttons */
  .support-send-btn {
    background-color: var(--bg-dark);
    color: var(--text-inverse);
  }

  /* White Buttons */
  .faq-contact-btn,
  .home-questions-faq-btn {
    background-color: white;
    color: var(--text-header-color);

    &:hover {
      background-color: var(--bg-light);
    }
  }

  /* Outlined Dark Buttons */
  .login-go-back-btn,
  .find-form-clear-btn {
    background-color: var(--body-bg);
    border-color: var(--bg-dark);
    color: var(--text-header-color);

    &:hover {
      background-color: #19315b;
      color: var(--text-inverse);
    }
  }

  /* Outlined White */
  .add-dependent-btn,
  .support-faq-link {
    background-color: var(--bg-dark);
    border-color: var(--bg-body);
    color: var(--text-inverse);

    &:hover {
      background-color: var(--body-bg);
      color: var(--text-header-color);
    }
  }

  /* Fixed width buttons */
  .faq-contact-btn,
  .savings-summary-btn,
  .home-how-btn,
  .home-savings-btn,
  .home-features-join-btn,
  .home-plans-join-btn {
    min-width: 300px;
  }

  /* Squared buttons */
  .start-btn,
  .support-faq-link,
  .find-select-office-btn {
    border-radius: 10px;
    min-width: 120px;
    font-size: 18px;
  }

  .start-btn {
    height: 61px;
  }

  .support-faq-link {
    font-size: 14px;
  }

  .support-link {
    border-radius: 10px;
    border-color: var(--border-light);
    background-color: var(--body-bg);
    height: 32px !important;
    font-size: 12px !important;
    color: var(--text-header-color);
    font-weight: 900;

    &:hover {
      color: #004a43;
    }
  }
}