/* ==========================================================================
   Phoenix Pharmaceuticals — site styles
   Consolidated from the Angular component styles found in the archived
   index.html, de-duplicated and rewritten against plain class/id selectors
   (the original used the same id, e.g. #list / #detail / #photo / #name,
   on several unrelated elements, which is invalid HTML and meant only the
   first matching element on the page was ever actually styled).
   ========================================================================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Roboto', 'Helvetica Neue', sans-serif;
}

/* ---------- Header ---------- */

#site-header {
  background-color: #fff;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
}

#site-header .logo {
  width: 7vw;
  height: 15vh;
  margin: 1.5vw 0 1.5vw 15vw;
  cursor: pointer;
}

#site-header .company-name {
  margin-left: 15vw;
}

#brand-name {
  margin: 2vh 0 0;
  font-size: 2.5em;
  color: tomato;
}

#tagline {
  color: #00f;
  font-size: 1.5em;
}

#site-header hr {
  width: 35vw;
  font-weight: bold;
}

@media (max-width: 700px) {
  #site-header {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  #site-header .logo {
    width: 20vw;
    margin-left: 0;
  }
  #site-header .company-name {
    margin-left: 0;
  }
  #brand-name {
    font-size: 1.5em;
  }
  #tagline {
    font-size: 1em;
  }
  #site-header hr {
    width: 48vw;
  }
}

@media (max-width: 400px) {
  #site-header {
    grid-template-columns: auto 1fr;
    justify-items: start;
    text-align: left;
  }
  #site-header .logo {
    width: 15vw;
    height: 12vw;
    margin: 3vh 0 0 2vw;
  }
  #site-header .company-name {
    margin-left: 4vw;
  }
  #brand-name {
    font-size: 22px;
  }
  #tagline {
    font-size: 12px;
  }
  #site-header hr {
    width: 48vw;
  }
}

/* ---------- Navbar ---------- */

.navbar-nav {
  margin-left: 6vw;
}

.nav-item {
  margin-left: 5vw;
}

.division-menu {
  background-color: #adff2f;
}

.dropdown-menu li {
  position: relative;
}

.dropdown-menu .dropdown-submenu {
  display: none;
  position: absolute;
  left: 100%;
  top: -7px;
}

.dropdown-menu .dropdown-submenu-left {
  right: 100%;
  left: auto;
}

.dropdown-menu > li:hover > .dropdown-submenu {
  display: block;
}

@media (max-width: 700px) {
  .division-menu {
    max-width: 23vw;
  }
}

/* ---------- Carousel ---------- */

#home-carousel img {
  width: 100%;
  max-height: 80vh;
  object-fit: cover;
}

/* ---------- Products (home page teaser cards) ---------- */

#products-heading {
  font-size: 3em;
  text-align: center;
  margin-top: 4vh;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-style: oblique;
}

#products-cards {
  display: grid;
  grid-gap: 2vw;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 3vh;
}

#products-cards img {
  height: 40vh;
  object-fit: cover;
}

#products-cards .card {
  box-shadow: 5px 10px tomato;
}

#products-cards .card-title {
  text-align: center;
}

#products-cards .card:hover {
  cursor: pointer;
  transform: scale(1.1);
}

@media (max-width: 700px) {
  #products-cards {
    grid-template-columns: 1fr;
    justify-items: center;
    margin-top: 3vh;
  }
}

/* ---------- About ---------- */

#about-heading {
  font-size: 3em;
  text-align: center;
  margin-top: 4vh;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-style: oblique;
}

#about-us {
  margin-top: 3vh;
  padding: 0 5vw;
  text-align: center;
}

/* ---------- Springgreen "fact box" pages (Company Profile, Contact, ...) ---------- */

.info-heading {
  font-size: 3em;
  text-align: center;
  margin-top: 4vh;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-style: oblique;
}

.info-card {
  border: 3px solid springgreen;
  width: 40vw;
  margin: 0 auto 5vh;
  padding-bottom: 3vh;
}

.info-card h3 {
  text-align: center;
  font-size: 2em;
  margin-top: 5vh;
  color: #00ff7f;
}

.info-card p {
  text-align: center;
  color: tomato;
}

.info-card a {
  color: inherit;
}

.info-card ul {
  list-style: none;
  margin: 0.5em auto 0;
  padding: 0;
  color: tomato;
  text-align: center;
}

.info-card ul li {
  margin: 0.4em 0;
}

.info-card-wide {
  width: 70vw;
  padding-left: 2vw;
  padding-right: 2vw;
}

@media (max-width: 700px) {
  .info-card {
    width: 60vw;
  }
  .info-card-wide {
    width: 85vw;
  }
}

@media (max-width: 420px) {
  .info-card {
    width: 80vw;
  }
  .info-card-wide {
    width: 92vw;
  }
}

/* ---------- Rating / stats ---------- */

#rating {
  background-color: #808080c2;
  display: grid;
  grid-gap: 5vw;
  grid-template-columns: repeat(3, 1fr);
  padding: 3vh 4vw 2vh;
  text-align: center;
}

#rating h3 {
  font-size: 2em;
  color: green;
  margin-bottom: 0;
}

#rating p {
  font-size: 2em;
  margin-top: 0.25em;
}

@media (max-width: 700px) {
  #rating {
    grid-template-columns: 1fr;
  }
}

/* ---------- Trust ---------- */

#trust {
  display: grid;
  grid-gap: 5vw;
  grid-template-columns: minmax(150px, 20vw) 1fr;
  align-items: center;
  margin: 5vh 10vw;
}

#trust img {
  width: 100%;
  max-width: 20vw;
}

#trust h2 {
  color: #00ff7f;
}

#trust p {
  color: tomato;
  font-size: 1.5em;
}

@media (max-width: 700px) {
  #trust {
    grid-template-columns: 1fr;
    margin: 5vh 10vw;
    text-align: center;
  }
  #trust img {
    max-width: 40vw;
    justify-self: center;
  }
}

/* ---------- Team ---------- */

#team-heading {
  font-size: 3em;
  text-align: center;
}

#team-photos {
  display: grid;
  grid-gap: 6vw;
  grid-template-columns: repeat(3, 1fr);
  margin: 4vh 9vw 0;
  text-align: center;
}

.team-member img {
  width: 100%;
  max-width: 200px;
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

@media (max-width: 700px) {
  #team-photos {
    grid-template-columns: 1fr;
    margin: 4vh auto 0;
    max-width: 60vw;
  }
}

/* ---------- Contact ---------- */

#contact-heading {
  font-size: 3em;
  text-align: center;
  padding-top: 2vh;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-style: oblique;
}

#contact-grid {
  display: grid;
  grid-gap: 4vw;
  grid-template-columns: repeat(3, 1fr);
  margin: 5vh 5vw 5vh;
}

#contact-detail {
  background-color: #adff2f;
}

@media (max-width: 700px) {
  #contact-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ---------- Product listing pages (Eye Drops, Capsules, Tablets, ...) ---------- */

.category-heading {
  text-align: center;
  font-size: 3.5em;
  margin-top: 4vh;
  margin-bottom: 3vh;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-style: oblique;
}

.product-grid {
  display: grid;
  grid-gap: 3vw;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 9vw 5vh;
}

.product-grid .card {
  margin-top: 2vh;
}

.product-grid .product-thumb {
  height: 40vh;
  background-color: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  font-size: 0.9em;
  text-align: center;
  padding: 1em;
}

.product-grid .product-thumb-img {
  display: block;
  width: 100%;
  height: 40vh;
  object-fit: cover;
}

.product-grid .card-title {
  font-weight: bolder;
  font-size: 1em;
  margin: 0;
  padding: 0.75em;
}

@media (max-width: 700px) {
  .product-grid {
    grid-template-columns: 1fr;
    margin: 0 20vw 5vh;
  }
}

@media (max-width: 420px) {
  .product-grid {
    grid-template-columns: 1fr;
    margin: 0 10vw 5vh;
  }
}

/* ---------- Media Gallery page ---------- */

.media-grid {
  display: grid;
  grid-gap: 3vw;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 9vw 5vh;
}

.media-grid .media-item {
  aspect-ratio: 3 / 5;
  border: 1px solid #212529;
  border-radius: 16px;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  font-size: 0.9em;
  text-align: center;
  padding: 1em;
}

@media (max-width: 700px) {
  .media-grid {
    grid-template-columns: 1fr;
    margin: 0 20vw 5vh;
  }
}

@media (max-width: 420px) {
  .media-grid {
    grid-template-columns: 1fr;
    margin: 0 10vw 5vh;
  }
}

/* ---------- Forms (Feedback & Queries, Contact, ...) ---------- */

.form-heading {
  text-align: center;
  font-size: 2.2em;
  margin-top: 4vh;
  margin-bottom: 3vh;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-style: oblique;
}

.site-form {
  max-width: 580px;
  margin: 0 auto 6vh;
  padding: 0 1em;
}

.site-form .form-alert {
  padding: 0.9em 1.1em;
  border-radius: 4px;
  margin-bottom: 1.5em;
}

.site-form .form-alert-success {
  background-color: #e6f6ee;
  color: #1a7a4c;
  border: 1px solid #b7e4cc;
}

.site-form .form-alert-error {
  background-color: #fdecec;
  color: #a4262c;
  border: 1px solid #f3b8ba;
}

.site-form .form-alert ul {
  margin: 0.3em 0 0;
  padding-left: 1.2em;
}

.site-form label {
  display: block;
  font-weight: 500;
  margin: 1.5em 0 0.5em;
}

.site-form input[type="text"],
.site-form input[type="email"],
.site-form input[type="tel"],
.site-form textarea {
  width: 100%;
  padding: 0.6em 0.8em;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1em;
}

.site-form textarea {
  min-height: 130px;
  resize: vertical;
}

.site-form .form-actions {
  display: flex;
  gap: 1em;
  margin-top: 2em;
}

.site-form button {
  border: none;
  border-radius: 4px;
  padding: 0.65em 1.8em;
  font-size: 1em;
  color: #fff;
  cursor: pointer;
}

.site-form .btn-submit {
  background-color: #5fa98c;
}

.site-form .btn-submit:hover {
  background-color: #4e8f75;
}

.site-form .btn-reset {
  background-color: #d9576f;
}

.site-form .btn-reset:hover {
  background-color: #c1435a;
}

/* ---------- Footer ---------- */

footer {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 2vh 0;
}

footer .dev-link {
  text-decoration: none;
  color: #fff;
}
