/* ================================
   BRIGHTON PHARMACY
   ================================ */


/* GLOBAL */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
}

.bp-site {
  --blue: #27308b;
  --navy: #121b49;
  --red: #ed1235;
  --off-white: #f2f3f5;

  width: 100%;

  color: var(--navy);
  background: #fff;

  font: 16px/1.55 Georgia, serif;

  box-sizing: border-box;
}

.bp-site *,
.bp-site *::before,
.bp-site *::after {
  box-sizing: border-box;
}

.bp-site h1,
.bp-site h2,
.bp-site h3,
.bp-site p {
  margin: 0 0 18px;
  color: inherit;
}

.bp-site h2 {
  font: normal clamp(32px, 4vw, 54px)/1.15 Georgia, serif;
}

.bp-site h3 {
  font: normal 25px/1.3 Georgia, serif;
}

.bp-wrap {
  width: 100%;
  max-width: 1080px;

  margin: auto;
  padding: 64px 28px;
}

img {
  max-width: 100%;
}


/* ================================
   TOP OPENING HOURS BAR
   ================================ */

.bp-bar {
  text-align: center;

  font-size: 13px;

  background: var(--off-white);

  padding: 7px 20px;
}


/* ================================
   HEADER
   ================================ */

.bp-header {
  background: #333182;
  color: #fff;
}

.bp-sign {
  display: flex;
  align-items: stretch;

  width: 100%;
  height: 100px;

  overflow: hidden;

  margin: 0;

  padding-left: 22px;

  gap: clamp(18px, 2vw, 28px);

  background-image:
    radial-gradient(circle at 9px 9px,
      transparent 5px,
      rgba(255, 255, 255, .04) 6px,
      rgba(255, 255, 255, .04) 8px,
      transparent 9px);

  background-size: 25px 25px;
}


/* ALLIANCE LOGO */

.bp-alliance-link {
  display: flex;
  align-items: center;

  flex: 0 0 auto;

  text-decoration: none;
}

.bp-alliance {
  display: block;

  width: clamp(125px, 11vw, 155px);
  height: auto;

  object-fit: contain;

  margin: 9px 0;
}


/* BRIGHTON PHARMACY */

.bp-brand {
  display: flex;
  align-items: center;

  flex: 1;

  min-width: 0;

  color: #fff;

  text-decoration: none;

  font:
    700 clamp(24px, 2.1vw, 29px) /1.05 Arial, sans-serif;

  letter-spacing: -.35px;

  padding: 8px 0;
}


/* IPA */

.bp-ipa {
  flex: 0 0 auto;

  height: 100%;
  aspect-ratio: 1.74 / 1;

  display: flex;

  align-items: center;
  justify-content: flex-start;

  background: #fff;

  border-radius: 999px 0 0 999px;

  padding-left: 10px;
  padding-right: 24px;

  overflow: hidden;
}

.bp-ipa img {
  display: block;

  width: auto;
  height: auto;

  max-width: 100%;
  max-height: 61%;

  object-fit: contain;
}


/* ================================
   NAVIGATION
   ================================ */

.bp-nav {
  display: flex;

  justify-content: center;

  gap: 34px;

  background: var(--navy);

  padding: 0 18px;
}

.bp-nav a {
  position: relative;

  color: #fff;

  text-decoration: none;

  font-size: 14px;

  padding: 12px 18px;

  transition:
    background .2s;
}

.bp-nav a::after {
  position: absolute;

  content: "";

  left: 0;
  right: 0;
  bottom: 0;

  height: 5px;

  background: var(--red);

  transform: scaleX(0);
  transform-origin: center;

  transition: transform .2s;
}

.bp-nav a:hover,
.bp-nav a:focus-visible {
  background: rgba(255, 255, 255, .08);
}

.bp-nav a:hover::after,
.bp-nav a:focus-visible::after {
  transform: scaleX(1);
}


/* ================================
   BUTTONS
   ================================ */

.bp-actions {
  display: flex;

  gap: 14px;

  flex-wrap: wrap;
}

.bp-btn {
  display: inline-block;

  background: var(--red);

  color: #fff !important;

  padding: 12px 25px;

  border: 0;
  border-radius: 4px;

  text-decoration: none;

  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 15px;

  cursor: pointer;

  transition:
    background .2s,
    transform .2s,
    box-shadow .2s;
}

.bp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.bp-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  stroke: currentColor;
}

.bp-btn:hover,
.bp-btn:focus-visible {
  background: #c80d2c;

  transform: translateY(-2px);

  box-shadow: 0 5px 14px #0002;
}

.bp-outline {
  background: transparent;

  border: 1px solid #fff;

  margin-top: 12px;
}

.bp-outline:hover {
  background: #fff;

  color: var(--navy) !important;
}


/* ================================
   HERO
   ================================ */

.bp-hero {
  background:
    linear-gradient(90deg,
      rgba(18, 27, 73, .75),
      rgba(39, 48, 139, .35)),
    var(--blue);

  background-size: cover;
  background-position: center;

  color: #fff;

  min-height: 540px;
}

.bp-hero .bp-wrap {
  max-width: 900px;
  padding-top: 85px;
  padding-bottom: 85px;
}

.bp-hero h1 {
  max-width: 610px;

  font:
    normal clamp(34px, 4vw, 46px) /1.12 Arial, sans-serif;
}

.bp-hero p {
  max-width: 610px;
}


/* ================================
   SERVICES
   ================================ */

.bp-services {
  text-align: center;

  background: #fff;
}

.bp-services-page {
  background: var(--off-white);
}

.bp-services h2 {
  max-width: 720px;

  margin: 0 auto 24px;
}

.bp-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 42px 70px;

  max-width: 900px;

  margin: 48px auto;
}

.bp-grid article {
  min-width: 0;
}

.bp-icon {
  color: #898f9a;

  font: 52px/1 Arial, sans-serif;

  margin-bottom: 18px;
}

.bp-icon.bp-icon--ipa {
  width: 120px;
  height: 120px;
  margin: 0 auto 18px;
  padding: 0;
  background: transparent;
}

.bp-icon.bp-icon--ipa img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.bp-grid p {
  font-size: 15px;
}

.bp-note {
  font-size: 13px;

  opacity: .75;

  margin-top: 16px !important;
}

.bp-service-actions {
  display: flex;

  justify-content: center;
  align-items: center;

  flex-wrap: wrap;

  gap: 22px;
}

.bp-text-link {
  color: var(--navy);

  font-weight: bold;

  text-underline-offset: 4px;
}


/* ================================
   OPENING HOURS / VISIT US
   ================================ */

.bp-hours {
  background: var(--off-white);
}

.bp-hours-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 70px;

  align-items: start;
}

.bp-store-wrap {
  display: flex;

  flex-direction: column;

  gap: 48px;

  padding-top: 10px;
}

.bp-store {
  display: block;

  width: 100%;
  height: auto;

  aspect-ratio: 4 / 3;

  object-fit: cover;

  order: 1;
}

.bp-map {
  width: 100%;

  order: 2;
}

.bp-map iframe {
  display: block;

  width: 100%;
  height: 260px;

  border: 0;
}

.bp-hours table {
  width: 100%;

  border-collapse: collapse;

  margin: 30px 0 20px;

  font-size: 16px;
}

.bp-hours td {
  padding: 8px 0;

  border-bottom: 1px solid #d4d7de;
}

.bp-hours td:last-child {
  font-weight: bold;

  text-align: right;
}

.bp-closed {
  color: var(--red);
}

.bp-hours summary {
  display: flex;

  align-items: center;
  justify-content: flex-start;

  gap: 10px;

  width: fit-content;

  cursor: pointer;

  text-decoration: underline;

  text-underline-offset: 4px;

  list-style: none;
}

.bp-hours summary::-webkit-details-marker {
  display: none;
}

.bp-hours summary::after {
  content: "";

  width: 8px;
  height: 8px;

  flex: 0 0 8px;

  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);

  transform: rotate(45deg);

  transition: transform .2s ease;

  margin-left: 2px;
  margin-top: -4px;
}

.bp-hours details[open] summary {
  margin-bottom: 18px;
}

.bp-hours details[open] summary::after {
  transform: rotate(-135deg);

  margin-top: 4px;
}

.bp-holiday-heading {
  margin-top: 22px !important;
}

.bp-visit-button {
  margin-top: 26px;
}


/* ================================
   CONTACT
   ================================ */

.bp-contact {
  background: var(--blue);

  color: #fff;
}

.bp-contact .bp-wrap {
  max-width: 900px;
}

.bp-contact h2 {
  margin-bottom: 32px;
}

.bp-contact .bp-note {
  opacity: 1;
}


/* ================================
   ENQUIRY FORM
   ================================ */

.bp-enquiry {
  margin-top: 48px;
}

.bp-enquiry h3 {
  margin-bottom: 24px;
}

.bp-enquiry-form {
  max-width: 844px;
}

.bp-form-group {
  display: flex;

  flex-direction: column;

  gap: 8px;

  margin-bottom: 20px;
}

.bp-form-group label {
  color: #fff;

  font-weight: bold;
}

.bp-form-group input,
.bp-form-group textarea {
  width: 100%;

  background: #fff;

  color: var(--navy);

  border: 1px solid #d6d6df;
  border-radius: 2px;

  padding: 12px 14px;

  font: 16px/1.4 Georgia, serif;

  outline: none;
}

.bp-form-group input {
  min-height: 46px;
}

.bp-form-group textarea {
  min-height: 165px;

  resize: vertical;
}

.bp-form-group input:focus,
.bp-form-group textarea:focus {
  border-color: #fff;

  box-shadow: 0 0 0 3px rgba(255, 255, 255, .22);
}


/* ================================
   FOOTER
   ================================ */

.bp-footer {
  background: #fff;
}

.bp-footer .bp-wrap {
  display: grid;

  grid-template-columns:
    1.4fr 1.2fr 1fr 1fr;

  gap: 38px;

  padding-top: 30px;
  padding-bottom: 30px;

  font-size: 14px;

  line-height: 1.95;
}

.bp-footer a {
  color: var(--navy);
}

.bp-footer p {
  margin-bottom: 8px;
}


/* ================================
   ACCESSIBILITY
   ================================ */

.bp-site a:focus-visible,
.bp-site button:focus-visible {
  outline: 3px solid #ffca28;

  outline-offset: 4px;
}


/* ================================
   MOBILE
   ================================ */

@media(max-width:700px) {

  .bp-sign {
    height: 78px;

    gap: 10px;

    padding-left: 12px;
  }


  .bp-alliance {
    width: clamp(75px, 22vw, 110px);

    margin: 8px 0;
  }


  .bp-brand {
    font-size: clamp(18px, 5vw, 23px);

    line-height: 1.05;

    padding: 8px 0;

    text-align: center;

    justify-content: center;
  }


  .bp-ipa {
    height: 100%;

    aspect-ratio: 1.74 / 1;

    flex-basis: auto;

    padding-left: 12px;
    padding-right: 12px;

    border-radius: 999px 0 0 999px;
  }


  .bp-ipa img {
    max-height: 61%;
  }


  .bp-nav {
    gap: 0;

    justify-content: space-evenly;

    flex-wrap: wrap;
  }


  .bp-nav a {
    padding: 11px 9px;

    font-size: 13px;
  }


  .bp-wrap {
    padding: 45px 22px;
  }


  .bp-hero {
    min-height: 0;
  }


  .bp-hero .bp-wrap {
    padding-top: 60px;
    padding-bottom: 60px;
  }


  .bp-hero h1 {
    font-size: clamp(22px, 6.5vw, 32px);

    white-space: nowrap;
  }


  .bp-grid,
  .bp-hours-grid {
    grid-template-columns: 1fr;

    gap: 32px;
  }


  .bp-store-wrap {
    gap: 18px;

    padding-top: 0;
  }


  .bp-map iframe {
    height: 240px;
  }


  .bp-actions {
    gap: 8px;
  }


  .bp-btn {
    padding: 11px 16px;
  }


  .bp-service-actions {
    flex-direction: column;

    gap: 16px;
  }


  .bp-footer .bp-wrap {
    grid-template-columns: 1fr 1fr;

    gap: 25px;
  }


  .bp-bar {
    font-size: 11px;
  }

  .bp-icon.bp-icon--ipa {
    width: 95px;
    height: 95px;
  }

}


/* ================================
   VERY SMALL MOBILE
   ================================ */

@media(max-width:430px) {

  .bp-sign {
    gap: 7px;

    padding-left: 8px;
  }

  .bp-nav a {
    font-size: 12px;

    padding-left: 7px;
    padding-right: 7px;
  }

  .bp-hero h1 {
    font-size: clamp(21px, 6.2vw, 27px);
  }

  .bp-footer .bp-wrap {
    grid-template-columns: 1fr;
  }

}