:root {
  --color-beige: rgb(241, 232, 218);
  --color-olive: rgb(97, 108, 87);
  --color-white: #fdfdfd;
  --color-gray: gray;
  --color-dark-gray: #555;
  --color-hover: rgb(120, 134, 107);
  --color-black: #222;
  --color-charcoal: rgb(62, 58, 55);
  --color-cta: rgb(215 117 58);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-beige);
  margin-inline: auto;
  font-family: system-ui, sans-serif;
  font-weight: normal;
  line-height: 1.5;
  color: #222;
}

section,
footer {
  padding: 1rem;
  font-family:
    Avenir, Montserrat, Corbel, "URW Gothic", source-sans-pro, sans-serif;
}

h1 {
  margin-top: 0;
}
h2 {
  margin-top: 3rem;
}
h1,
h2 {
  letter-spacing: 0.5px;
  text-align: center;
}

a {
  color: blue;
}

label {
  display: block;
}

header {
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

#header__logo {
  height: 52px;
  width: 52px;
}

.header__title {
  font-family:
    "Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif;
  font-size: clamp(1rem, 0.8977rem + 0.4545vw, 1.25rem);
  color: var(--color-charcoal);
  margin: 0;
}

.header__tagline {
  font-family:
    "Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif;
  font-size: clamp(0.8333rem, 0.7652rem + 0.303vw, 1rem);
  color: var(--color-charcoal);
  margin: 0;
}

@media screen and (min-width: 840px) {
  #header__logo {
    height: 72px;
    width: 72px;
  }
}

nav {
  background-color: var(--color-white);
  font-family: Optima, Candara, "Noto Sans", source-sans-pro, sans-serif;
  text-transform: uppercase;
  display: none;
}

@media screen and (min-width: 840px) {
  nav {
    display: block;
  }
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 1rem;
}

nav > ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* top-level nav links only (not the ones inside services submenu) */
nav > ul > li > a:hover {
  color: var(--color-hover);
}

nav a {
  text-decoration: none;
  color: var(--color-gray);
  padding: 1rem;
}

nav a.active {
  border-bottom: 4px solid var(--color-olive);
  color: var(--color-olive);
  font-weight: bold;
}

.nav__dropdown {
  position: relative;
}

.nav__submenu {
  display: none;
  padding: 1rem;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-olive);
  color: var(--color-white);
  min-width: max-content;
  padding: 1rem;
  box-shadow: 0 4px 23px rgba(0, 0, 0, 0.4);
  border-radius: 4px;
}

.nav__submenu li a {
  color: var(--color-beige);
  width: 100%;
  display: inline-block;
  text-transform: capitalize;
  border-radius: 4px;
}

.nav__submenu li a:hover {
  background-color: var(--color-hover);
}

.nav__dropdown:hover .nav__submenu {
  display: flex;
  flex-direction: column;
}

section#hero {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("/images/hero-optimized.jpeg");

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

  min-height: 50vh; /* or 400px, 500px, etc. */

  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--color-beige);
}

section#reiki-hero {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("/images/reiki_hero.jpg");

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

  min-height: 50vh; /* or 400px, 500px, etc. */

  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--color-beige);
}

section h2 {
  margin-top: 2rem;
  font-family:
    "Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif;
  font-size: clamp(2.0736rem, 1.6734rem + 1.7785vw, 3.0518rem);
  font-weight: 400;
  text-align: center;
  font-weight: normal;
}

section h2.subsequent {
  font-size: clamp(1.728rem, 1.4362rem + 1.2971vw, 2.4414rem);
  font-weight: normal;
}

.hero-cta {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  background-color: var(--color-cta);
  padding: 0.75rem 1.35rem;
  text-transform: uppercase;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-beige);
  text-decoration: none;
  letter-spacing: 2px;
  transition: all 0.25s ease-in;
  border-radius: 4px;
}

.hero-cta:hover {
  background-color: rgb(176 90 42);
}

/* A general class for the "about" section beneath hero in each service page */
/* It has sub classes, like service-about (below hero), service-experience (img + (h3 + p) */

section.service-about {
  background-color: var(--color-white);
  padding-bottom: 4rem;
  font-size: clamp(1rem, 0.8977rem + 0.4545vw, 1.25rem);
}

section.service-about h2 {
  color: var(--color-black);
}

.service-about-two-columns,
.service-about-three-columns {
  margin: 0 auto;
  max-width: 80ch;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media screen and (min-width: 840px) {
  .service-about-two-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
  }

  .service-about-three-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
  }
}

section.service-about p::before {
  content: "\\ ";
  font-weight: bold;
  font-size: clamp(1.2rem, 1.0517rem + 0.6591vw, 1.5625rem);
}

section.service-experience {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding: 0;
  font-size: clamp(1rem, 0.8977rem + 0.4545vw, 1.25rem);
}

section.service-experience img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

@media screen and (min-width: 840px) {
  section.service-experience {
    grid-template-columns: 1fr 2fr;
  }
  section.service-experience.reverse {
    grid-template-columns: 2fr 1fr;
  }

  section.service-experience.reverse img {
    grid-column: 2;
  }

  section.service-experience.reverse div {
    grid-column: 1;
    grid-row: 1;
  }
}

section.service-experience h3,
section.service-pricing h3 {
  font-family:
    "Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif;
  font-weight: normal;
  color: var(--color-black);
  font-size: clamp(1.2rem, 1.0517rem + 0.6591vw, 1.5625rem);
  margin-top: 0;
}

p.benefit-heading {
  font-weight: bold;
  font-size: clamp(1rem, 0.8977rem + 0.4545vw, 1.25rem);
}

p.benefit-heading + p::before {
  content: "";
}

section.service-pricing {
  font-size: clamp(1rem, 0.8977rem + 0.4545vw, 1.25rem);
  max-width: 80ch;
  margin: 0 auto;
}

ul.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  list-style: none;
  padding: 0;
}

.services-card {
  background: #fdfdfd;
  border-radius: 4px;
  overflow: hidden;

  display: flex;
  flex-direction: column;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.services-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.services-card img {
  width: 100%;
  max-height: 90px;
  object-fit: cover;
  display: block;
}

.services-card__title {
  margin: 1rem;
  font-size: 1.5rem;
  color: #363d2f;

  font-family:
    "Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif;
}

.services-card__description {
  margin: 1rem;
  color: var(--color-dark-gray);
  flex-grow: 1;
}

.services-card p:last-child {
  margin: 1.5rem 1.25rem 1.25rem;
}

.services-card a {
  display: inline-block;
  background: var(--color-charcoal);
  color: var(--color-beige);
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.875rem;
}

.services-card a:hover {
  background: var(--color-hover);
}

@media (max-width: 768px) {
  ul.services-grid {
    grid-template-columns: 1fr;
  }
}

section#about-us {
  background-color: var(--color-olive);
  color: var(--color-beige);
  padding-bottom: 6rem;
}

section#about-us h2 {
  text-align: center;
  font-family:
    "Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, serif;
  font-weight: bold;
  font-size: clamp(1.728rem, 1.4362rem + 1.2971vw, 2.4414rem);
}

footer {
  background-color: var(--color-charcoal);
  color: var(--color-beige);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 1rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media screen and (min-width: 840px) {
  footer {
    flex-direction: row;
  }
}

footer ul {
  list-style-type: none;
  padding: 0;
}

footer a {
  color: var(--color-white);
}

.footer__column-title {
  letter-spacing: 1px;
  color: var(--color-white);
  font-weight: bold;
  font-variant: small-caps;
  font-size: 1.15rem;
  border-bottom: 2px solid var(--color-gray);
}

.footer__column-social-link {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  text-decoration: none;
  color: var(--color-beige);
}

/* Google Map */
footer iframe {
  width: 100%;
  height: 200px;
  max-width: 400px;
  margin-top: 2rem;
}

/* Mobile Nav */

.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: var(--color-olive);
  border-top: 1px solid var(--color-beige);
  z-index: 999;
  text-transform: uppercase;
}

.mobile-nav a,
.mobile-nav summary {
  padding: 1rem;
  text-decoration: none;
  color: var(--color-beige);
  cursor: pointer;
}

.mobile-nav__services {
  position: relative;
}

.mobile-nav__panel {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  background: var(--color-olive);
  color: var(--color-white);
  border: 1px solid var(--color-beige);
  border-radius: 4px;
  min-width: 24ch;
}

.mobile-nav__panel a {
  white-space: nowrap;
  color: var(--color-beige);
  text-transform: capitalize;
}

@media screen and (min-width: 840px) {
  .mobile-nav {
    display: none;
  }
}
