/* ==========================================================================
   PharmacyFirst Landing Page Stylesheet
   ========================================================================== */

/* Color Palette & Typography Variables */
:root {
  --color-dark-gray: #444444;
  --color-orange: #FFB549;
  --color-teal: #7ED3D7;
  --color-heading-blue: #005D87;
  --color-body-text: #333333;
  --color-footer-bg: #414141;
  --font-family-primary: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Global Reset & Base Typography */
html,
body {
  font-family: var(--font-family-primary);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-body-text);
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
button,
span,
div,
footer,
header {
  font-family: var(--font-family-primary);
}

/* Header Container & Sticky Wrapper */
.sticky-header-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  overflow-anchor: none;
}

/* 1. Thin dark gray strip across top */
.top-strip {
  height: 30px;
  background-color: var(--color-dark-gray);
  width: 100%;
}

/* 2. Header */
.site-header {
  background-color: #ffffff;
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
  overflow-anchor: none;
}

.site-header.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo-img {
  max-height: 88px;
  width: auto;
  object-fit: contain;
  transition: max-height 0.3s ease;
}

.site-header.scrolled .logo-img {
  max-height: 44px;
}

.search-btn {
  background: transparent;
  border: none;
  color: var(--color-heading-blue);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease-in-out;
}

.search-btn:hover,
.search-btn:focus {
  color: var(--color-heading-blue);
  outline: none;
  box-shadow: none;
}

/* Mobile Hamburger Menu Button Styling */
.hamburger-btn {
  background: transparent;
  border: none;
  color: var(--color-heading-blue);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease-in-out;
}

.hamburger-btn:hover,
.hamburger-btn:focus {
  color: var(--color-heading-blue);
  outline: none;
  box-shadow: none;
}

/* Mobile Offcanvas Sidebar (Right side, white, empty) */
.mobile-sidebar {
  width: 280px !important;
  background-color: #ffffff !important;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15) !important;
  border-left: none !important;
}

/* Search Dropdown Box Styling */
.search-wrapper {
  position: relative;
  display: inline-block;
}

.search-dropdown-box {
  display: none;
  position: absolute;
  top: calc(100% + 15px);
  right: 0;
  width: 290px;
  background-color: #ffffff;
  padding: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
  border-radius: 2px;
  z-index: 1050;
}

.search-dropdown-box.active {
  display: block;
}

/* Upward pointing arrow */
.search-dropdown-box::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 12px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #ffffff;
}

.search-form {
  display: flex;
  width: 100%;
}

.search-input {
  flex: 1;
  background-color: #f2f4f6;
  border: 1px solid #e0e0e0;
  border-right: none;
  padding: 9px 14px;
  font-size: 14px;
  font-family: var(--font-family-primary);
  color: var(--color-body-text);
  outline: none;
  border-radius: 2px 0 0 2px;
}

.search-input::placeholder {
  color: #a0a0a0;
}

.search-input:focus {
  background-color: #ffffff;
  border-color: #005D87;
}

.search-submit-btn {
  background-color: #005D87;
  color: #ffffff;
  border: none;
  padding: 9px 15px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 0 2px 2px 0;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-submit-btn:hover {
  background-color: #004666;
}

/* 3. Thin orange divider below header */
.divider-orange {
  height: 20px;
  background-color: var(--color-orange);
  width: 100%;
}

/* 4. Main Content Section */
.main-content {
  background-color: #ffffff;
  padding-top: 50px;
  padding-bottom: 50px;
}

.main-heading {
  color: var(--color-heading-blue);
  font-family: var(--font-family-primary);
  font-size: 34px;
  line-height: 1.1em;
  /* 52px desktop heading size */
  font-weight: 600;
  /* Open Sans Semi-Bold */
  line-height: 1.25;
  letter-spacing: 1px;
  margin-bottom: 2rem;
}

.content-body {
  margin-top: 70px;
}

.content-body p {
  font-family: var(--font-family-primary);
  font-size: 16px;
  /* 18px body font size */
  font-weight: 400;
  /* Regular weight */
  line-height: 1.75;
  color: var(--color-body-text);
  margin: 0.85em 0;
  text-align: left;
}

.content-body p:last-child {
  margin-bottom: 0;
}

/* 5. Thin teal divider above footer */
.divider-teal {
  height: 20px;
  background-color: var(--color-teal);
  width: 100%;
}

/* 6. Footer */
.site-footer {
  background-color: var(--color-footer-bg);
  color: #ffffff;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  max-height: 273px;
}

.footer-logo-img {
  max-height: 100px;
  width: auto;
  object-fit: contain;
}

.footer-info p {
  font-family: var(--font-family-primary);
  font-size: 16px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.6;
}

/* Responsive Scaling */
@media (max-width: 991.98px) {
  .main-heading {
    font-size: 40px;
  }
}

@media (max-width: 575.98px) {
  .main-heading {
    font-size: 30px;
    line-height: 1.3;
  }

  .content-body p {
    font-size: 16px;
    line-height: 1.65;
  }

  .site-header {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .logo-img {
    max-height: 45px;
  }

  .search-btn {
    margin-top: 0.5rem;
  }
}

@media (min-width: 1400px) {

  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 1200px;
    padding: 0px 50px;
  }
}

#glt-translate-trigger {
  position: fixed;
  bottom: 0px;
  top: auto;
  background: #f89406;
  cursor: pointer;
  height: 40px;
  right: 20px;
  z-index: 999999;
  padding: 6px 20px 6px;
  font-size: 16px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  color: #fff;
  text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  text-align: center;
  border-radius: 4px 4px 0 0;
  display: block;
}