/* Happy Nails · Elkton, MD
   One family (Jost), one accent (the polish red from the logo), one bold moment (the full-bleed video hero). */

:root {
  --paper: #FCF8F7;
  --panel: #FFFFFF;
  --blush: #F5E8E5;
  --rule: #E8D3CE;
  --ink: #2B2426;
  --ink-soft: #6E6366;
  --polish: #B5393B;
  --polish-deep: #8F2B2F;
  --open: #4E8A5E;
  --open-bright: #7CC48F;
  --oxblood: #3B1A1E;
  --oxblood-soft: #5A2A30;
  --oxblood-text: #F3DEDA;
  --oxblood-muted: #D3AFA9;
  --font: "Jost", "Avenir Next", "Segoe UI", sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(3.5rem, 7vw, 6rem);
  --header-h: 74px;
  --call-bar-h: 86px;
  --almond: 50% 50% 46% 46% / 66% 66% 34% 34%;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }

h1, h2, h3 {
  margin: 0;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); }
h3 { font-size: 1.375rem; font-weight: 500; letter-spacing: 0; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 50;
  padding: .6rem 1rem;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--polish-deep);
  outline-offset: 3px;
}
.hero :focus-visible,
.site-header:not(.is-solid) :focus-visible {
  outline-color: #fff;
}

/* Anchored sections sit below the fixed header */
#services, #reviews, #hours, #visit { scroll-margin-top: calc(var(--header-h) + 8px); }

/* Header: transparent over the video, solid once you scroll */

.site-header {
  position: fixed;
  left: 0; right: 0; top: 0;
  z-index: 20;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease;
}
.site-header.is-solid {
  background: rgba(252, 248, 247, .9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
}
.brand-mark { width: 46px; height: auto; transition: filter .25s ease; }
.brand-word { height: 30px; width: auto; transition: filter .25s ease; }
.site-header:not(.is-solid) .brand-mark,
.site-header:not(.is-solid) .brand-word { filter: brightness(0) invert(1); }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}
.site-nav a {
  text-decoration: none;
  font-size: 1rem;
  color: var(--ink-soft);
  padding: .25rem 0;
  transition: color .25s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav .nav-cta {
  color: var(--polish-deep);
  font-weight: 500;
}
.site-header:not(.is-solid) .site-nav a { color: rgba(255, 255, 255, .85); }
.site-header:not(.is-solid) .site-nav a:hover,
.site-header:not(.is-solid) .site-nav .nav-cta { color: #fff; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-toggle-bars {
  display: block;
  width: 22px;
  margin: 0 auto;
}
.nav-toggle-bars span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  margin: 6px 0;
  transition: transform .2s ease, background-color .25s ease;
}
.site-header:not(.is-solid) .nav-toggle-bars span { background: #fff; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* Hero: full-bleed looping footage, copy in the lower left */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(100vh, 1000px);
  min-height: min(100svh, 1000px);
  overflow: hidden;
  background: var(--oxblood);
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--oxblood) url("assets/video/poster.jpg") center / cover no-repeat;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(43, 36, 38, .55) 0%, rgba(43, 36, 38, .08) 32%, rgba(59, 26, 30, .18) 55%, rgba(59, 26, 30, .82) 100%),
    linear-gradient(90deg, rgba(59, 26, 30, .35) 0%, rgba(59, 26, 30, 0) 60%);
}

.hero-inner {
  padding-top: calc(var(--header-h) + 2.5rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}
.hero-copy { max-width: 38rem; }
.hero h1 {
  margin-bottom: 1.25rem;
  text-wrap: balance;
  text-shadow: 0 2px 28px rgba(0, 0, 0, .28);
}

.lede {
  font-size: 1.2rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .88);
  max-width: 32rem;
  text-shadow: 0 1px 16px rgba(0, 0, 0, .3);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}

.open-status {
  font-size: 1rem;
  color: rgba(255, 255, 255, .88);
}
.open-status::before {
  content: "";
  display: inline-block;
  width: .55em; height: .55em;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  margin-right: .5em;
  vertical-align: middle;
}
.open-status.is-open::before { background: var(--open-bright); }

.hero-note {
  margin-top: 1.25rem;
  font-size: .95rem;
  color: rgba(255, 255, 255, .72);
}

.video-toggle {
  position: absolute;
  right: var(--gutter);
  bottom: 1.5rem;
  z-index: 2;
  padding: .55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .45);
  background: rgba(43, 36, 38, .35);
  color: #fff;
  font: inherit;
  font-size: .9rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.video-toggle:hover { background: rgba(43, 36, 38, .6); }
.video-toggle[hidden] { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: copy-in .9s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes copy-in {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn-primary {
  background: var(--polish);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 1px 2px rgba(59, 26, 30, .18);
}
.btn-primary:hover { background: var(--polish-deep); }
.btn-secondary {
  background: var(--panel);
  border-color: var(--rule);
  color: var(--ink);
  font-weight: 400;
}
.btn-secondary:hover { border-color: var(--ink-soft); }

/* Sections */

.section {
  padding-block: var(--section);
  border-top: 1px solid var(--rule);
}
.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-head h2 { margin-bottom: .75rem; }
.section-lede {
  color: var(--ink-soft);
  font-size: 1.1rem;
}

/* Services menu */

.menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}

.menu-group h3 {
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.1rem;
}

.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}
.menu-list li {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: .9rem;
  align-items: start;
}

.swatch {
  width: 12px; height: 19px;
  margin-top: .4em;
  border-radius: var(--almond);
  background: var(--polish);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.s-red      { background: #B5393B; }
.s-sheer    { background: #F0C6C0; }
.s-nude     { background: #D9B8A4; }
.s-mauve    { background: #A66E7E; }
.s-white    { background: #FBF7F6; box-shadow: inset 0 0 0 1px var(--rule); }
.s-coral    { background: #D9695A; }
.s-berry    { background: #7A2C4A; }
.s-cherry   { background: #4E1A22; }
.s-chestnut { background: #5C3A2A; }
.s-honey    { background: #C79A5E; }
.s-raven    { background: #2B2426; }

.menu-item-name { display: block; font-weight: 500; }
.menu-item-desc {
  display: block;
  color: var(--ink-soft);
  font-size: .98rem;
  line-height: 1.5;
}

/* Reviews */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
}
.review { margin: 0; }
.review p {
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1.4;
  text-wrap: pretty;
}
.review footer {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: .95rem;
}

/* Hours and visit */

.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
}

.hours {
  width: 100%;
  max-width: 26rem;
  border-collapse: collapse;
  margin-top: 1.5rem;
  font-size: 1.05rem;
}
.hours th, .hours td {
  padding: .65rem 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  font-weight: 400;
}
.hours td {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.hours tr.is-today th, .hours tr.is-today td {
  font-weight: 500;
  color: var(--polish-deep);
}
.hours tr.is-today th::before {
  content: "";
  display: inline-block;
  width: 8px; height: 13px;
  border-radius: var(--almond);
  background: var(--polish);
  margin-right: .6rem;
  vertical-align: -1px;
}
.hours-note {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: .95rem;
}

address {
  font-style: normal;
  font-size: 1.2rem;
  line-height: 1.45;
  margin-top: 1.5rem;
}
.visit-note {
  margin-top: 1rem;
  color: var(--ink-soft);
  max-width: 28rem;
}
.visit-phone {
  margin-top: 1rem;
  font-size: 1.2rem;
}
.visit-phone a { text-decoration: none; color: var(--polish-deep); font-weight: 500; }
.visit-phone a:hover { text-decoration: underline; }
.visit-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}

.map {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--rule);
  background: var(--blush);
}
.map iframe {
  display: block;
  width: 100%;
  height: clamp(260px, 40vw, 420px);
  border: 0;
  filter: saturate(.55);
}

/* Footer */

.site-footer {
  background: var(--oxblood);
  color: var(--oxblood-text);
  padding-block: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}
.footer-word {
  height: 34px;
  width: auto;
  filter: invert(1);
  opacity: .95;
}
.footer-tag { margin-top: 1rem; max-width: 22rem; }
.site-footer a { color: inherit; }
.site-footer h3 {
  font-size: .95rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: .35rem;
}
.site-footer h3 + p { margin-bottom: 1.4rem; }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--oxblood-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  font-size: .9rem;
  color: var(--oxblood-muted);
}

/* Mobile call bar */

.call-bar { display: none; }

/* Responsive */

@media (max-width: 900px) {
  .menu { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: .25rem;
    padding: .75rem var(--gutter) 1.25rem;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { font-size: 1.1rem; padding: .5rem 0; }
  /* The dropdown always sits on paper, so keep its links dark even over the video */
  .site-header:not(.is-solid) .site-nav a { color: var(--ink-soft); }
  .site-header:not(.is-solid) .site-nav .nav-cta { color: var(--polish-deep); }

  .hero-inner { padding-bottom: calc(2.5rem + var(--call-bar-h)); }
  .video-toggle { bottom: calc(.75rem + var(--call-bar-h)); }

  .reviews-grid, .visit-grid, .footer-grid { grid-template-columns: 1fr; }

  .call-bar {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 30;
    padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
    background: rgba(252, 248, 247, .92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--rule);
  }
  .call-bar a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .85rem 1.25rem;
    border-radius: 999px;
    background: var(--polish);
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28);
  }
  .call-bar span { font-weight: 400; opacity: .9; }
  body { padding-bottom: var(--call-bar-h); }
}

@media (max-width: 600px) {
  .menu { grid-template-columns: 1fr; }
}

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