/* ==========================================================================
   Hot Tip — gel nails & nail art
   --------------------------------------------------------------------------
   Built on the Olive Lane "simple" salon theme: big friendly type, pill
   buttons, full-width photos, lots of air. Recoloured from the Hot Tip
   logo — blush pink, soft black and cherry red.

     01  Tokens
     02  Reset & base
     03  Type helpers
     04  Buttons
     05  Layout
     06  Header & nav
     07  Hero & page banners
     08  Service cards
     09  Hot tip callout
     10  Lists, booking & contact blocks
     11  Hours
     12  Footer
     13  Responsive
   ========================================================================== */

/* --------------------------------------------------------- 01  Tokens --- */

:root {
  --blush:       #fbdcd6;   /* page background — sampled from the logo */
  --blush-light: #fdeeea;   /* alternating sections                     */
  --blush-dark:  #f3c5bc;   /* image placeholders                       */
  --ink:         #171312;   /* text, dark sections, footer              */
  --ink-soft:    #4a3d3a;   /* body copy, leads                         */
  --ink-mute:    #6e5c58;   /* small labels                             */
  --cherry:      #d31b35;   /* booking buttons, accents                 */
  --cherry-dark: #a8122a;
  --white:       #ffffff;
  --line:        #ebbdb4;   /* hairlines                                */

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-hero:  clamp(2.75rem, 7.5vw, 5.3rem);
  --fs-h1:    clamp(2.25rem, 5vw, 3.5rem);
  --fs-h2:    clamp(1.875rem, 3.6vw, 2.75rem);
  --fs-h3:    clamp(1.3125rem, 2vw, 1.625rem);
  --fs-body:  clamp(1.0625rem, 0.45vw + 1rem, 1.25rem);
  --fs-lead:  clamp(1.1875rem, 1.1vw + 1rem, 1.5rem);
  --fs-small: 0.875rem;

  --gutter:    clamp(1rem, 5vw, 3.5rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);
  --max:       72rem;
  --max-text:  42rem;

  --pill: 300px;
  --radius: 1.5rem;
}

/* ------------------------------------------------- 02  Reset & base ----- */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--blush);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-variation-settings: "SOFT" 100;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

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

a { color: inherit; }

::selection {
  background: var(--cherry);
  color: var(--white);
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--blush-light);
  text-decoration: none;
  border-radius: var(--pill);
}

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

/* -------------------------------------------- 03  Type helpers ---------- */

.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--ink-soft);
}

.muted { color: var(--ink-mute); }

.eyebrow {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cherry);
}

.center { text-align: center; }

.text-block {
  max-width: var(--max-text);
  margin-inline: auto;
}

.text-block > * + * { margin-top: 1.25rem; }

/* ----------------------------------------------- 04  Buttons ------------ */

.btn {
  display: inline-block;
  padding: 1rem 2.25rem;
  border: 2px solid var(--ink);
  border-radius: var(--pill);
  background: var(--ink);
  color: var(--blush-light);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover,
.btn:focus-visible {
  background: transparent;
  color: var(--ink);
}

/* Cherry — every booking button */
.btn--book {
  background: var(--cherry);
  border-color: var(--cherry);
  color: var(--white);
}

.btn--book:hover,
.btn--book:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--ink);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--ink);
  color: var(--blush-light);
}

.btn--small {
  padding: 0.6875rem 1.5rem;
  font-size: 0.9375rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.btn-row--center { justify-content: center; }

/* ------------------------------------------------ 05  Layout ------------ */

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

.section { padding-block: var(--section-y); }

.section--light { background: var(--blush-light); }
.section--dark  { background: var(--ink); color: var(--blush-light); }

.section--dark .lead,
.section--dark .muted { color: rgba(253, 238, 234, 0.78); }

.section--dark .btn--outline {
  border-color: var(--blush-light);
  color: var(--blush-light);
}

.section--dark .btn--outline:hover,
.section--dark .btn--outline:focus-visible {
  background: var(--blush-light);
  color: var(--ink);
}

.section--dark .btn--book:hover,
.section--dark .btn--book:focus-visible {
  background: var(--blush-light);
  border-color: var(--blush-light);
  color: var(--ink);
}

.section-title {
  max-width: 20ch;
  margin-inline: auto;
  margin-bottom: 1.25rem;
}

/* p. prefix so it beats the base p:last-child { margin-bottom: 0 } */
p.section-intro {
  max-width: 46ch;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

/* ------------------------------------------ 06  Header & nav ------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);           /* solid white at the top */
  border-bottom: 1px solid rgba(23, 19, 18, 0.08);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Once the page is scrolled (js/main.js adds .is-scrolled): frosted white */
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: rgba(23, 19, 18, 0.08);
  box-shadow: 0 6px 24px rgba(23, 19, 18, 0.06);
}

/* Keep it solid while the mobile menu is open */
body.nav-open .site-header { background: var(--white); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 5rem;
}

.brand {
  display: inline-block;
  flex-shrink: 0;
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 3.25rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.nav__link {
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  padding-block: 0.4rem;
  border-bottom: 2px solid transparent;
}

.nav__link:hover { border-bottom-color: var(--ink); }
.nav__link[aria-current="page"] { border-bottom-color: var(--cherry); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  display: none;
  position: sticky;
  top: 5rem;
  z-index: 49;
  padding: 1.5rem var(--gutter) 2.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.nav-drawer.is-open { display: block; }

.nav-drawer ul {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 1.75rem;
}

.nav-drawer a:not(.btn) {
  display: block;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-weight: 600;
  font-variation-settings: "SOFT" 100;
  text-decoration: none;
}

.nav-drawer .btn { width: 100%; }

/* ---------------------------------------- 07  Hero & page banners ------- */

/* Shaped to match hero.jpg (2000×727). Phones get a taller crop below. */
.hero__media {
  width: 100%;
  aspect-ratio: 2000 / 727;
  max-height: 72vh;
  overflow: hidden;
  background: var(--blush-dark);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 50%;   /* keeps the nails in view when cropped */
}

@media (max-width: 40rem) {
  .hero__media { aspect-ratio: 4 / 3; }
}

/* Laptops and up: a fixed ~650px deep hero (less on short screens) */
@media (min-width: 64rem) {
  .hero__media {
    aspect-ratio: auto;
    height: min(650px, 80vh);
    max-height: none;
  }
}

.hero__text {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  text-align: center;
}

.hero__text h1 {
  font-size: var(--fs-hero);
  line-height: 1.04;
}

.hero__text h1 span { display: block; }
.hero__text h1 em { font-style: normal; color: var(--cherry); }

.hero__tagline {
  max-width: 34ch;
  margin: 1.5rem auto 2.25rem;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--ink-soft);
}

.page-banner {
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: 24rem;
  overflow: hidden;
  background: var(--blush-dark);
}

.page-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* For photos whose subject sits low in the frame (about.html) */
.page-banner--low img { object-position: 50% 80%; }

/* --------------------------------------------- 08  Service cards -------- */

.cards {
  display: grid;
  gap: clamp(2rem, 4vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.card { text-align: center; }

.card__photo {
  aspect-ratio: 4 / 5;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: 999px 999px var(--radius) var(--radius);  /* nail-tip arch */
  background: var(--blush-dark);
}

.card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card h3 {
  font-size: var(--fs-h3);
  margin-bottom: 0.5rem;
}

.card p {
  max-width: 28ch;
  margin-inline: auto;
  color: var(--ink-soft);
  font-size: 1.0625rem;
}

/* --------------------------------------------- 09  Hot tip callout ------ */

.tip {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}

.tip__label {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.4rem 1.1rem;
  border-radius: var(--pill);
  background: var(--cherry);
  color: var(--white);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section--cherry { background: var(--cherry); color: var(--white); }

.section--cherry .tip__label {
  background: var(--white);
  color: var(--cherry-dark);
}

.section--cherry .btn {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.section--cherry .btn:hover,
.section--cherry .btn:focus-visible {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

.tip__text {
  font-family: var(--font-head);
  font-size: var(--fs-h2);
  font-weight: 500;
  font-variation-settings: "SOFT" 100;
  line-height: 1.25;
}

/* ------------------------------ 10  Lists, booking & contact blocks ----- */

/* Large plain list — the way the Olive Lane site lists its services */
.plain-list {
  max-width: 34rem;
  margin-inline: auto;
  text-align: center;
}

.plain-list li {
  padding-block: 1.0625rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 500;
  font-variation-settings: "SOFT" 100;
  line-height: 1.3;
}

.plain-list li:first-child { border-top: 1px solid var(--line); }

.plain-list small {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink-mute);
}

.list-group + .list-group { margin-top: clamp(3rem, 6vw, 4.5rem); }

.list-group h2 {
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Booking box on appointments.html */
.booking-box {
  max-width: 40rem;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--blush-light);
  text-align: center;
}

.booking-box h2 { margin-bottom: 0.75rem; }

/* Centred contact blocks, each under its own heading */
.contact-stack {
  max-width: 34rem;
  margin-inline: auto;
  text-align: center;
}

.contact-stack > * + * { margin-top: clamp(2.25rem, 5vw, 3.25rem); }

.contact-stack h2 {
  font-size: var(--fs-h3);
  margin-bottom: 0.75rem;
}

.contact-stack p { font-size: var(--fs-lead); line-height: 1.5; }

.contact-stack a { text-decoration: none; }
.contact-stack a:hover { text-decoration: underline; }

/* ---------------------------------------------- 11  Hours --------------- */

.hours {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  text-align: left;
}

.hours div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}

.hours dt { color: var(--ink-soft); }
.hours dd { margin: 0; font-weight: 500; }

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

.site-footer {
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  background: var(--ink);
  color: rgba(253, 238, 234, 0.8);
  text-align: center;
}

.site-footer a { color: inherit; }

.site-footer .brand { margin-bottom: 1.75rem; }
.site-footer .brand img { height: 4.5rem; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  margin-bottom: 1.75rem;
}

.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }

.footer-meta {
  font-size: 1rem;
  line-height: 2;
  margin-bottom: 1.75rem;
}

.footer-bottom {
  padding-top: 1.75rem;
  border-top: 1px solid rgba(253, 238, 234, 0.2);
  font-size: 0.875rem;
  color: rgba(253, 238, 234, 0.6);
}

/* ------------------------------------------- 13  Responsive ------------- */

@media (max-width: 54rem) {
  .nav__list { display: none; }
  .nav .btn { display: none; }
  .nav-toggle { display: flex; }
  .site-header__inner { min-height: 4.25rem; }
  .brand img { height: 2.75rem; }
  .nav-drawer { top: 4.25rem; }
}

@media print {
  .site-header, .nav-drawer, .hero__media, .page-banner { display: none; }
  body { background: #fff; color: #000; }
}
