/* Joyful Healing Hands Massage */

:root {
  --charcoal: #23242a;
  --cream: #f7ebe8;
  --green-dark: #032b01;
  --sage: #8a9b7c;
  --sage-light: #eef1e9;
  --gold: #c0b17b;
  --border: #e1e5da;
  --text: #2f312c;

  --font-heading: "Cinzel", Georgia, serif;
  --font-body: "Open Sans", Arial, sans-serif;
  --max-width: 1140px;
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9375rem;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: var(--gold);
}

h1, h2, h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--green-dark);
}

p {
  margin: 0 0 1rem;
}

address {
  font-style: normal;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--cream);
  color: var(--green-dark);
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  padding: 15px 0;
  background: var(--charcoal);
  color: var(--cream);
  font-size: 0.875rem;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.header-contact p {
  margin: 0;
}

.header-address {
  text-align: right;
}

.site-header a {
  text-decoration: none;
}

/* Intro */
.intro {
  padding-top: 3rem;
  padding-bottom: 1rem;
  text-align: center;
}

.intro h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  letter-spacing: 0.03em;
}

.tagline {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: var(--green-dark);
}

/* Intro fade-in */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .intro h1 {
    animation: fade-in-up 1.2s ease-out both;
  }

  .tagline {
    animation: fade-in-up 1.2s ease-out 0.5s both;
  }
}

/* About */
.about {
  display: flow-root;          /* contains the floated headshot */
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.headshot {
  float: left;
  width: 220px;
  margin: 0 2.5rem 1rem 0;     /* space to the right and below the photo */
  border-radius: 4px;
}

.about.container {
  max-width: 960px;
}

/* Services */
.services {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.services > h2 {
  margin-bottom: 2rem;
  font-size: 1.5rem;
  font-weight: 400;
  text-align: center;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service {
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--sage);
  border-radius: 4px;
}

.service h3 {
  font-size: 1rem;
}

.service p:last-child {
  margin-bottom: 0;
}

.service .note {
  font-weight: 600;
}

/* Price tables */
.price-table {
  width: 100%;
  margin-bottom: 1rem;
  border-collapse: collapse;
  font-weight: 600;
}

.price-table caption {
  caption-side: top;
  padding-bottom: 0.35rem;
  text-align: left;
  font-weight: 700;
  color: var(--green-dark);
}

.price-table td {
  padding: 0.2rem 0;
}

.price-table td:last-child {
  text-align: right;
}

.price-table:last-child {
  margin-bottom: 0;
}

/* Testimonials */
.testimonials-band {
  padding: 3rem 0;
  background: var(--sage-light);
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  align-items: stretch;      /* boxes in the same row match height */
}

/* Short reviews: three across */
.testimonial {
  grid-column: span 2;
  margin: 0;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--sage);
  border-radius: 4px;
}

/* Long reviews: two side by side */ 
.testimonial:nth-child(4),
.testimonial:nth-child(5)
 {
  grid-column: span 3;
}

.testimonial blockquote {
  margin: 0;
}

.testimonial figcaption {
  padding-top: 10px;         /* name sits right under the review */
  font-weight: 600;
}

/* Stack on tablets and phones */
@media (max-width: 800px) {
  .testimonials {
    grid-template-columns: 1fr;
  }

  .testimonial,
  .testimonial:nth-child(4),
  .testimonial:nth-child(5) {
    grid-column: auto;
  }
}

/* Footer */
.site-footer {
  padding-top: 3rem;
  background: var(--charcoal);
  color: var(--cream);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.site-footer h2 {
  font-size: 1.05rem;
  color: var(--cream);
}

.site-footer address {
  margin-bottom: 1rem;
}

.social-link {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.social-link svg {
  height: 1rem;
  fill: currentColor;
}

.map {
  display: block;
  width: 100%;
  height: 250px;
  border: 0;
}

/* Small screens */
@media (max-width: 760px) {
  .header-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }

  .header-logo {
    order: -1;
    justify-self: center;
  }

  .header-logo img {
    width: 200px;
  }

  .header-address {
    text-align: center;
  }

  .headshot {
    float: none;
    max-width: 220px;
    margin: 0 auto 1.5rem;
  }
}