/* CSS Index
  1. Layout Containers
  2. Header & Navigation
  3. Cards & Panels
  4. Footer
  5. Text
  6. Images & Icons
  7. Responsive
*/

:root {
  --primary-color: #6f7664 /* Main Green */;
  --secondary-color: #ad4749 /* Main Red */;
  --background-color: #f8efe8 /* Off White */;
}

* {
  box-sizing: border-box;
}

/* 1. Layout Containers */

body {
  margin: 0;
  font-family: 'Lora' serif, Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 1.25rem;
  background: var(--background-color);
  color: #1f2937;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

/* 2. Header & Navigation */

.header {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 3fr) minmax(0, 2fr);
  align-items: stretch;
  border-radius: 12px;
}

.header .left,
.header .center,
.header .right {
  min-width: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: var(--background-color);
  border-radius: 8px;
  font-weight: 700;
  padding: 12px;
  box-sizing: border-box;
  height: 100%;
}

.header .center {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  overflow: hidden;
}

.header .center h1, .header .center p{
  display: block;
  width: 100%;
  margin: 0;
  text-align: center;
}

.logo {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

.main {
  margin-top: 20px;
}

/* 3. Cards & Panels */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  min-height: 120px;
  border: 1px solid #E2D7CA;
  border-radius: 8px;
  padding: 12px 12px 24px 12px;
}

.card-grid.footer{
  margin: 12px 0 0 0;
  background: linear-gradient(to right, #cebca6, #e4d2c6);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: 8px;  
}

/* 4. Footer */

.card-grid.footer > div {
  min-height: 80px;
  border-right: 1px solid #ffffff;
  padding: 12px;
}

.card-grid.footer > div:last-child {
  border-right: none;
}

.footer-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 100%;
}

.footer-feature h3.footer {
  margin-top: 0;
}

.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--secondary-color);
  border: 1px solid #ffffff;
  flex-shrink: 0;
}

.footer-icon img {
  width: 35px;
  height: 35px;
  object-fit: contain;
  display: block;
}

.footer-contacts{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  padding-bottom: 48px;
}

.footer-contact {
  display: flex;
  justify-content: left;
  text-align: left;
}

  .footer-contact:nth-of-type(2)  {
    justify-content: flex-end;
    text-align: right;
  }

.footer-contact-inner {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.footer-contact:nth-of-type(2) .footer-contact-inner {
  align-items: flex-end;
  text-align: right;
}

.footer-contact h3 {
  margin-bottom: 0.9rem;
  display: inline-block;
  padding-bottom: 0.45rem;
  position: relative;
}

.footer-contact h3::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(173, 71, 73, 0.95) 0%,
    var(--secondary-color) 48%,
    rgba(173, 71, 73, 0) 100%
  );
  border-radius: 999px;
}

.footer-contact:nth-of-type(2) h3::after {
  background: linear-gradient(
    to left,
    rgba(173, 71, 73, 0.95) 0%,
    var(--secondary-color) 48%,
    rgba(173, 71, 73, 0) 100%
  );
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
  text-align: left;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  line-height: 1.3;
}

.contact-note {
  margin-top: -0.15rem;
}

.contact-note p {
  margin: 0;
  margin-left: 1.3rem;
  line-height: 1.5;
}

.contact-item a {
  color: inherit;
  text-decoration: none;
}

.contact-item a:hover,
.contact-item a:focus-visible {
  text-decoration: underline;
}

.contact-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.facebook-icon {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--secondary-color);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.facebook-icon .facebook-svg {
  width: 12px;
  height: 12px;
  stroke: none;
  fill: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.location-line {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  margin: 0;
}

.footer-contact-inner > p:last-of-type {
  margin-top: 0;
  line-height: 1.3;
  margin-left: 1.3rem;
}

.location-pin {
  position: relative;
  width: 16px;
  height: 16px;
  display: inline-block;
  border-radius: 50% 50% 50% 0;
  background: transparent;
  border: 2px solid var(--secondary-color);
  transform: rotate(-45deg);
  flex-shrink: 0;
}

.location-pin::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  top: 4px;
  left: 4px;
  background: var(--secondary-color);
  border-radius: 50%;
}

.location-text {
  display: inline-block;
}

.card.double {
  grid-column: span 2;
}

.treatment-addon {
  background: #f3e2db;
  border: 1px solid #bea79f;
  border-radius: 8px;
  text-align: center;
  padding: 12px;
  margin-bottom: 24px;
} 

/* 5. Text */

h1{
  font-size: 2rem;
  display : block;
}

h2, h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 1.1rem !important;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0;
  margin-top: 12px;
}

h2.treatment.long-title {
  font-size: .8rem !important;
}

.treatment-addon h2 {
  color: var(--secondary-color);  
  font-size: 1.1rem !important;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.footer-contact-inner h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 1rem !important;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0;
  margin-bottom: 24px;
  padding-top: 24px;
  color: var(--secondary-color);
}

.center p {
  font-family: 'Lora' serif, Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 1.25rem;
}

.highlight {
  color: var(--secondary-color);
}

.card p {
  margin: 0;
}

.card hr {
  border-top: 0.5px solid #E2D7CA;
  margin-top: 24px;
  margin-bottom: 24px;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.75rem 0 0;
  color: #1f2937;
}

.price-row .service-name,
.price-row .price {
  white-space: nowrap;
}

.price-row .dot-line {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  height: 0.75em;
  align-self: flex-end;
  margin-bottom: 0.12em;
}

.price-row .dot-line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background-image: radial-gradient(circle, currentColor 50%, transparent 50%);
  background-size: 0.85rem 100%;
  background-repeat: repeat-x;
}

/* 6. Images & Icons */

.treatment {
  position: relative;
  border-radius: 6px;
  padding: 6px 6px 6px 55px;
  margin-left: 6px;
  font-size: 1em;
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: none;
}

.card.double .treatment {
  max-width: calc(50% - 24px);
}

.treatment .icon {
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 3px solid #ffffff;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.treatment, .treatment .icon {
  background: var(--secondary-color);
}

.icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.treatment .icon svg {
  width: 35px;
  height: 35px;
  display: block;
  color: #ffffff;
  transform: scale(1.25);
}

.card:nth-child(odd) .treatment,
.card:nth-child(odd) .treatment .icon {
  background-color: var(--primary-color);
}

.treatment .icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/icon.gif") center center no-repeat;
  background-size: 20px;
}

.treatment-list {
  list-style: none;
  padding: 10px;
}

hr.fancy-line {
  border: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, #ad4749, transparent);
  margin: 1rem 0;
}

/* 7. Responsive */

@media (max-width: 1100px) {
  .header {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid.footer{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.footer > div {
  border-right: none;
}

  .header .left{
    margin: 0 auto;
    max-width: 35%;
    height: auto;
    margin-bottom: -24px;
  } 

  .header .right {
    display: none;
  }  

  .center p {
    max-width: 75%;
  } 

  .center img {
    max-width: 65%;
  }


}

@media (max-width: 768px) {

  .header .left, .header .right {
    display: none;
  }



}

@media (max-width: 650px) {
  .card-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .card {
    width: 100%;
    max-width: 100%;
  }

  .card-grid.footer {
    display: none;
  }

  .footer-contacts{
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  align-items: start;
  padding-bottom: 48px;
  }

  .footer-contact {
  display: flex;
  justify-content: left;
  text-align: left;
  padding-left: 24px;
  }

  .footer-contact:nth-of-type(2)  {
    margin-top: 24px;
    width: 100%;
    justify-content: left;
    text-align: left;
    clear: both;
  }

  .footer-contact:nth-of-type(2) .footer-contact-inner {
    align-items: flex-start;
    text-align: left;
  }

  .footer-contact h3::after,
  .footer-contact:nth-of-type(2) h3::after {
    background: linear-gradient(
      to right,
      rgba(173, 71, 73, 0.95) 0%,
      var(--secondary-color) 42%,
      rgba(173, 71, 73, 0.28) 80%,
      rgba(173, 71, 73, 0) 100%
    );
  }

}