/* =========================================================
   Mocha Hair Inc. — site styles
   One stylesheet for every page. To change a brand color,
   edit the values in the ":root" block right below.
   ========================================================= */

@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../assets/fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand colors (from the Mocha Hair Inc. palette) */
  --orange: #cf5819;      /* "Chocolate": logo orange, small accents */
  --orange-deep: #a5430f; /* darker orange for small text */
  --sand: #efa263;        /* "Sandy Brown": highlights on dark areas */
  --obsidian: #3b1f14;    /* "Obsidian": text, buttons, footer */
  --lagoon: #0a646c;      /* "Lagoon": links and small accent text */
  --sea: #1ab0b6;         /* "Light Sea Green": bright accent */
  --soft: #6b5247;        /* softer brown for secondary text */
  --line: #e2d8cf;        /* thin dividing lines */
  --paper: #f4efe9;       /* soft background (matches the logo background) */
  --white: #fffdfb;       /* main page background */
  --ink: #3b1f14;         /* body text */

  /* The orange-to-teal gradient. Used only as a thin line. */
  --ribbon: linear-gradient(90deg, #cf5819, #efa263 50%, #1ab0b6);

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 350;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
h3 { font-size: 1.35rem; line-height: 1.2; font-weight: 400; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
a { color: var(--lagoon); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--obsidian); }

:focus-visible { outline: 2px solid var(--lagoon); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--white); color: var(--ink);
  padding: 0.75rem 1rem; z-index: 10;
}
.skip:focus { left: 0; }

/* Small spaced-out capitals, used for the menu, buttons and labels */
.caps {
  font: 600 0.78rem/1.3 var(--body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Header ---------- */
.site-header { background: var(--white); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 0.75rem 2rem;
  padding-block: 1.1rem;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font: 700 1.05rem/1 var(--body); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--lagoon); text-decoration: none;
}
.wordmark img { width: 3.6rem; }
.wordmark { color: var(--obsidian); }
.wordmark:hover { color: var(--obsidian); }
.wordmark span { color: var(--orange-deep); }
.wordmark small { font-size: 0.72em; color: var(--lagoon); }
.site-nav { display: flex; align-items: center; gap: 0.25rem 2.25rem; flex-wrap: wrap; }
.site-nav a {
  font: 600 0.78rem/1.3 var(--body); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--obsidian); text-decoration: none;
  padding: 0.5rem 0; border-bottom: 1px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--obsidian); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--orange); }
.ribbon { height: 3px; background: var(--ribbon); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: 600 0.78rem/1.2 var(--body); letter-spacing: 0.16em; text-transform: uppercase;
  padding: 1.05rem 1.75rem;
  border: 1px solid var(--obsidian);
  text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-dark { background: var(--obsidian); color: #fff; }
.btn-dark:hover { background: var(--lagoon); border-color: var(--lagoon); color: #fff; }
.btn-line { background: transparent; color: var(--obsidian); }
.btn-line:hover { background: var(--obsidian); color: #fff; }
.text-link {
  font: 600 0.78rem/1.3 var(--body); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--obsidian); text-decoration: none;
  border-bottom: 1px solid var(--orange); padding-bottom: 0.3rem;
}
.text-link:hover { color: var(--lagoon); border-bottom-color: var(--lagoon); }

/* ---------- Home hero (photo with words over the empty side) ---------- */
.hero { position: relative; background: #dad2c7; overflow: hidden; }
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: right center;
}
.hero .wrap { position: relative; padding-block: clamp(4rem, 12vw, 9rem); }
.hero-copy { max-width: 31rem; }
.hero-lede { font-size: 1.15rem; color: var(--obsidian); margin: 1.5rem 0 2.25rem; max-width: 27rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Page titles (services, tips, about) ---------- */
.masthead { background: var(--white); }
.masthead .wrap { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem); }
.masthead p { color: var(--soft); font-size: 1.15rem; max-width: 34rem; margin: 1.25rem 0 0; }
.masthead h1::after {
  content: ""; display: block; width: 4.5rem; height: 3px;
  background: var(--ribbon); margin-top: 1.5rem;
}

/* Services banner: a large photo with a brown-to-teal tint so the words stay readable */
.masthead-photo { position: relative; overflow: hidden; background: var(--obsidian); color: #fff; }
.masthead-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.masthead-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(59, 31, 20, 0.92) 0%, rgba(59, 31, 20, 0.6) 45%, rgba(10, 100, 108, 0.42) 100%);
}
.masthead-photo .wrap { position: relative; z-index: 2; padding-block: clamp(7rem, 17vw, 14rem) clamp(3rem, 7vw, 5rem); }
.masthead-photo h1 { font-size: clamp(3.2rem, 9vw, 6.5rem); }
.masthead-photo p { color: #fff; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 9vw, 7rem); }
.section-paper { background: var(--paper); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 1rem 2rem; margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head p { margin: 1rem 0 0; color: var(--soft); font-size: 1.1rem; max-width: 34rem; }

/* Intro statement on the home page */
.intro { display: grid; gap: 2rem 5rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.intro p { font-size: 1.15rem; color: var(--soft); }

/* ---------- Photo gallery ---------- */
.gallery { display: grid; gap: 1.25rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery-small { display: grid; gap: 1.25rem; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 1.25rem 0 0; padding: 0; list-style: none; }
.gallery-small img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gallery figcaption { margin-top: 0.85rem; color: var(--soft); font-size: 0.95rem; }

/* ---------- Service lists ---------- */
.menu { list-style: none; margin: 0; padding: 0; }
.menu-item { padding: 1.35rem 0; border-top: 1px solid var(--line); }
.menu-item:last-child { border-bottom: 1px solid var(--line); }
.menu-line { display: flex; align-items: baseline; justify-content: space-between; gap: 1.5rem; }
.menu-name { font-family: var(--display); font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.01em; }
a.menu-name { color: var(--ink); text-decoration: none; }
a.menu-name:hover { color: var(--lagoon); }
.menu-time {
  flex: 0 0 auto; white-space: nowrap;
  font: 600 0.78rem/1.3 var(--body); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--orange-deep);
}
.menu-price {
  flex: 0 0 auto; white-space: nowrap; text-align: right;
  font-family: var(--display); font-size: 1.35rem; line-height: 1.2; color: var(--orange-deep);
}
.menu-price small {
  font: 500 0.82rem/1 var(--body); letter-spacing: 0.02em; color: var(--soft);
  margin-right: 0.15rem;
}
.group-label { margin: 2.25rem 0 0.9rem; color: var(--lagoon); }
.acc-body > .group-label:first-child { margin-top: 0.25rem; }
.menu-desc { margin: 0.45rem 0 0; max-width: 44rem; color: var(--soft); }
.menu-note { margin: 0.3rem 0 0; max-width: 44rem; font-size: 0.95rem; color: var(--soft); }
.menu-note strong { color: var(--ink); font-weight: 600; }

/* Services page: each category opens and closes when tapped */
.acc { border-top: 1px solid var(--obsidian); }
.acc:last-of-type { border-bottom: 1px solid var(--obsidian); }
.acc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.75rem 0; cursor: pointer; list-style: none;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.acc summary:hover h2 { color: var(--lagoon); }
.acc summary::after {
  content: "+"; flex: 0 0 auto;
  font: 300 2rem/1 var(--body); color: var(--orange);
}
.acc[open] summary::after { content: "\2212"; }
.acc-body { padding: 0 0 2.5rem; }
.acc-intro { color: var(--soft); font-size: 1.1rem; max-width: 40rem; margin: 0 0 1.5rem; }

/* ---------- Tips and tricks ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 2.5rem; }
.tab {
  font: 600 0.74rem/1.2 var(--body); letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.75rem 1.1rem; cursor: pointer;
  background: transparent; color: var(--obsidian);
  border: 1px solid var(--line);
}
.tab:hover { border-color: var(--obsidian); }
.tab[aria-pressed="true"] { background: var(--obsidian); border-color: var(--obsidian); color: #fff; }

.posts { list-style: none; margin: 0; padding: 0; }
.post-row { border-top: 1px solid var(--line); }
.post-row:last-child { border-bottom: 1px solid var(--line); }
.post-link {
  display: grid; gap: 0.5rem 2rem;
  grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  padding: 1.9rem 0; color: inherit; text-decoration: none;
}
.post-link:hover h3 { color: var(--lagoon); }
.post-meta { font-size: 0.9rem; color: var(--soft); }
.post-cat {
  display: block; margin-bottom: 0.2rem;
  font: 600 0.74rem/1.3 var(--body); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--lagoon);
}
.post-link h3 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
.post-link p { margin: 0.5rem 0 0; color: var(--soft); max-width: 40rem; }
.empty { padding: 2rem 0; color: var(--soft); }

.article { max-width: 42rem; margin-inline: auto; }
.article-back { display: inline-block; margin-bottom: 2.5rem; }
.article h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); margin: 0.75rem 0 1rem; }
.article-summary { font-size: 1.25rem; color: var(--soft); }
.article-body { font-size: 1.125rem; line-height: 1.75; margin-top: 2.25rem; }
.article-body h2 { font-size: 1.6rem; margin: 2.5rem 0 0.75rem; font-weight: 400; }
.article-body ul { padding-left: 1.25rem; margin: 0 0 1em; }
.article-body li { margin-bottom: 0.45rem; }
.article-end { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--obsidian); }
.article-end p { margin-bottom: 1.25rem; font-family: var(--display); font-size: 1.4rem; }

/* ---------- Find us ---------- */
.visit { display: grid; gap: 2.5rem 4rem; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; }
.visit-logo { width: 9rem; margin-bottom: 2rem; mix-blend-mode: multiply; }
.visit address { font-style: normal; font-size: 1.15rem; line-height: 1.6; margin: 1.5rem 0 2rem; color: var(--soft); }
.visit address strong { display: block; font-weight: 600; color: var(--ink); }
.map { display: block; width: 100%; height: 24rem; border: 0; background: var(--line); }

/* ---------- Loc Lady ---------- */
.soon { color: var(--orange-deep); margin: 0 0 1rem; }
.loc-teaser { display: grid; gap: 2rem 4rem; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); align-items: center; }
.loc-teaser p { color: var(--soft); font-size: 1.1rem; margin: 1rem 0 1.5rem; }
.loc-teaser p.soon { color: var(--orange-deep); font-size: 0.78rem; margin: 0 0 1rem; }
.loc-page { display: grid; gap: 2.5rem 5rem; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; }
.loc-page img { width: 100%; max-width: 24rem; justify-self: center; }
.loc-lede { font-size: 1.25rem; color: var(--soft); margin: 1.5rem 0 0; max-width: 32rem; }
.loc-note { margin: 2.5rem 0 1.25rem; max-width: 32rem; }

/* ---------- About page ---------- */
.about { display: grid; gap: 2.5rem 5rem; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; }
.portrait { position: sticky; top: 2rem; }
.portrait img { width: 100%; }
.portrait::after { content: ""; display: block; height: 3px; background: var(--ribbon); }
.about-text h2 { margin-bottom: 1.25rem; }
.about-text h2 + p { margin-top: 0; }
.about-text .gap { margin-top: 3.5rem; }
.about-text p { font-size: 1.125rem; line-height: 1.75; max-width: 38rem; color: var(--soft); }
.skills { margin: 3rem 0 0; padding: 0; list-style: none; max-width: 38rem; }
.skills li { padding: 0.9rem 0; border-top: 1px solid var(--line); font-family: var(--display); font-size: 1.3rem; }
.skills li:last-child { border-bottom: 1px solid var(--line); }
.skills-label { margin: 3.5rem 0 0; color: var(--orange-deep); }
.skills-label + .skills { margin-top: 1rem; }

.reviews { display: grid; gap: 3rem 4rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.review { margin: 0; }
.review blockquote { margin: 0.75rem 0 1rem; font-family: var(--display); font-size: 1.3rem; line-height: 1.45; letter-spacing: -0.01em; }
.review cite { font: 600 0.78rem/1.3 var(--body); letter-spacing: 0.14em; text-transform: uppercase; font-style: normal; }
.stars { color: var(--orange); letter-spacing: 0.2em; font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--obsidian); color: #e9ddd3; font-size: 0.98rem; }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: 2rem 3rem;
  justify-content: space-between; padding-block: 3.5rem;
}
.site-footer p { margin: 0 0 0.3rem; }
.site-footer strong { color: #fff; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.85rem; }
.site-footer a { color: #e9ddd3; }
.site-footer a:hover { color: #fff; }
.footer-links { display: flex; gap: 0.5rem 2rem; flex-wrap: wrap; align-items: flex-start; }
.footer-links a {
  font: 600 0.76rem/1.3 var(--body); letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; }

/* ---------- Smaller screens ---------- */
@media (max-width: 760px) {
  .site-header .wrap { justify-content: center; }
  .site-nav { justify-content: center; gap: 0 1.4rem; }
  .masthead-photo img { object-position: 62% center; }
  .hero { background: var(--paper); }
  .hero-photo { position: static; height: 17rem; object-position: 82% center; }
  .hero .wrap { padding-block: 2.5rem 3.5rem; }
  .intro, .visit, .about, .reviews, .loc-page { grid-template-columns: 1fr; }
  .loc-teaser { grid-template-columns: minmax(0, 7rem) minmax(0, 1fr); gap: 1.5rem; }
  .loc-page img { max-width: 15rem; }
  .gallery-small { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
  .map { height: 18rem; }
  .site-nav { gap: 0 1.1rem; }
  .site-nav a { font-size: 0.72rem; letter-spacing: 0.12em; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery li:first-child { grid-column: 1 / -1; }
  .gallery li:first-child img { aspect-ratio: 4 / 3; }
  .portrait { position: static; }
  .post-link { grid-template-columns: 1fr; }
  .menu-line { flex-wrap: wrap; gap: 0.25rem 1rem; }
  .menu-name { font-size: 1.3rem; }
  .menu-price { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
