/*
 * FUTURETECH PEARL-WHITE HEADER & FOOTER
 * Loaded after main.css. Only header/footer surfaces and their text controls
 * are restyled; hero, body sections, cards and product pages remain unchanged.
 */

:root {
  --ft-pearl: #F7F8FC;
  --ft-pearl-border: #E4E8F0;
  --ft-ink: #14213A;
  --ft-muted: #53627A;
  --ft-blue: #1769E8;
  --ft-violet: #7137D8;
}

/* Header */
.site-header {
  background: rgba(247, 248, 252, 0.97) !important;
  color: var(--ft-ink) !important;
  border-bottom: 1px solid var(--ft-pearl-border) !important;
  box-shadow: 0 3px 16px rgba(18, 32, 58, 0.055);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.site-header .brand,
.site-header .brand-light,
.site-header .brand-name {
  color: var(--ft-ink) !important;
}

.site-header .brand-name small {
  color: #66748B !important;
}

.site-header .main-nav {
  color: #34425B !important;
}

.site-header .main-nav a {
  color: #34425B !important;
  font-weight: 600;
}

.site-header .main-nav a:hover,
.site-header .main-nav a:focus-visible {
  color: var(--ft-blue) !important;
}

.site-header .search-toggle {
  color: var(--ft-ink) !important;
  border-color: #CBD3E0 !important;
  background: #FFFFFF !important;
}

.site-header .nav-cta {
  color: #FFFFFF !important;
  background: linear-gradient(110deg, var(--ft-blue), var(--ft-violet)) !important;
  border: 0 !important;
  box-shadow: 0 5px 14px rgba(55, 93, 204, .16);
}

.site-header .nav-cta span {
  color: #FFFFFF !important;
}

.site-header .menu-toggle {
  color: var(--ft-ink) !important;
  border-color: #D6DCE7 !important;
}

.site-header .menu-toggle i {
  background: var(--ft-ink) !important;
}

/* Mobile navigation dropdown */
@media (max-width: 900px) {
  .site-header .main-nav {
    background: var(--ft-pearl) !important;
    border-top: 1px solid var(--ft-pearl-border) !important;
    box-shadow: 0 14px 24px rgba(18, 32, 58, .10);
  }

  .site-header .main-nav a {
    color: var(--ft-ink) !important;
    border-bottom: 1px solid #E8EBF2;
  }

  .site-header .main-nav .nav-cta {
    color: #FFFFFF !important;
    margin-top: 12px;
  }
}

/* Header/footer logo image sizing */
.brand.brand-image {
  display: inline-flex;
  align-items: center;
  width: clamp(170px, 19vw, 245px);
  letter-spacing: normal;
  flex: 0 0 auto;
}

.brand.brand-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
}

.brand.brand-image-footer {
  width: 230px;
  max-width: 100%;
}

.brand.brand-image-footer img {
  max-height: 72px;
}

/* Footer */
.site-footer {
  background: var(--ft-pearl) !important;
  color: var(--ft-muted) !important;
  border-top: 1px solid var(--ft-pearl-border);
}

.site-footer .brand,
.site-footer .brand-light,
.site-footer .brand-name {
  color: var(--ft-ink) !important;
}

.site-footer .brand-name small {
  color: #66748B !important;
}

.site-footer .footer-top p {
  color: #53627A !important;
}

.site-footer .footer-top h3 {
  color: #172640 !important;
}

.site-footer .footer-top a {
  color: #40516B !important;
  transition: color .2s ease;
}

.site-footer .footer-top a:hover,
.site-footer .footer-top a:focus-visible {
  color: var(--ft-blue) !important;
}

.site-footer .footer-bottom {
  color: #68768D !important;
  border-top: 1px solid #DDE3EC !important;
}

.site-footer .footer-bottom a {
  color: #53627A !important;
}

.site-footer .footer-bottom a:hover {
  color: var(--ft-blue) !important;
}

/* Keep the footer logo comfortably visible on the pearl surface */
.site-footer .brand-image-footer {
  width: 230px;
  max-width: 100%;
}

.site-footer .brand-image-footer img {
  max-height: 76px;
}

@media (max-width: 700px) {
  .brand.brand-image {
    width: 170px;
  }

  .brand.brand-image img {
    max-height: 48px;
  }

  .site-footer .brand-image-footer {
    width: 205px;
  }
}


/* FUTURETECH NEWSLETTER — MATCH PEARL HEADER/FOOTER */
.ft-newsletter {
  box-sizing: border-box;
  width: min(1018px, calc(100% - 48px));
  max-width: 1018px;
  margin: 28px auto 34px !important;
  padding: 30px 32px !important;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 42px;
  background: #F7F8FC !important;
  color: #14213A !important;
  border: 1px solid #E2E7F0;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(18, 32, 58, .055);
  font-family: inherit;
}

.ft-newsletter > div {
  min-width: 0;
  align-self: start;
}

.ft-newsletter > div strong {
  display: block;
  margin: 0 0 9px;
  color: #14213A !important;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 750;
}

.ft-newsletter p {
  margin: 0;
  max-width: 390px;
  color: #53627A !important;
  font-size: 14px;
  line-height: 1.7;
}

.ft-newsletter form {
  min-width: 0;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 10px 12px;
}

.ft-newsletter form input:not([type="checkbox"]) {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 12px 14px;
  color: #172640 !important;
  background: #FFFFFF !important;
  border: 1px solid #D5DDE9 !important;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  outline: none;
}

.ft-newsletter form input:not([type="checkbox"]):focus {
  border-color: #4385F5 !important;
  box-shadow: 0 0 0 3px rgba(67, 133, 245, .12);
}

.ft-newsletter form label {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 1px 0 0;
  color: #53627A !important;
  font-size: 11px;
  line-height: 1.5;
}

.ft-newsletter form label input[type="checkbox"] {
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: #286CE8;
}

.ft-newsletter form button {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 45px;
  padding: 12px 18px;
  color: #FFFFFF !important;
  background: linear-gradient(110deg, #1769E8, #7137D8) !important;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: filter .2s ease, transform .2s ease;
}

.ft-newsletter form button:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.ft-newsletter form small {
  grid-column: 1 / -1;
  color: #53627A !important;
  font-size: 12px;
}

@media (max-width: 760px) {
  .ft-newsletter {
    width: calc(100% - 32px);
    margin: 22px auto 26px !important;
    padding: 22px 20px !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .ft-newsletter p {
    max-width: none;
  }

  .ft-newsletter form {
    grid-template-columns: minmax(0, 1fr);
  }

  .ft-newsletter form input:not([type="checkbox"]),
  .ft-newsletter form label,
  .ft-newsletter form button,
  .ft-newsletter form small {
    grid-column: 1;
  }
}

@media (max-width: 380px) {
  .ft-newsletter {
    width: calc(100% - 24px);
    padding: 18px 15px !important;
  }
}
