:root {
  --ink: #241f21;
  --muted: #746a6c;
  --paper: #fffaf7;
  --cream: #f7eee8;
  --blush: #d68a91;
  --rose: #a84e5c;
  --sage: #8fa68f;
  --mint: #d9e6d5;
  --taupe: #b69d8e;
  --line: rgba(36, 31, 33, 0.14);
  --shadow: 0 22px 55px rgba(36, 31, 33, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.menu-open,
body.chat-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  color: #fff;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    padding 180ms ease;
}

.site-header.is-scrolled,
.site-header.menu-active {
  color: var(--ink);
  background: rgba(255, 250, 247, 0.93);
  box-shadow: 0 12px 40px rgba(36, 31, 33, 0.12);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 2.35rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 1.2rem;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.95rem;
  letter-spacing: 0;
}

.brand small {
  color: currentColor;
  font-size: 0.72rem;
  opacity: 0.75;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.4rem);
  color: currentColor;
  font-size: 0.92rem;
}

.main-nav a {
  opacity: 0.86;
}

.main-nav a:hover {
  opacity: 1;
}

.nav-action,
.button,
.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  border-radius: 8px;
  font-weight: 750;
  white-space: nowrap;
}

.nav-action {
  border: 1px solid currentColor;
  padding: 0 1rem;
  font-size: 0.9rem;
}

.menu-toggle,
.icon-button,
.floating-chat {
  display: inline-grid;
  width: 2.75rem;
  aspect-ratio: 1;
  place-items: center;
  border: 0;
  border-radius: 8px;
}

.menu-toggle {
  display: none;
  color: currentColor;
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  position: relative;
  display: grid;
  min-height: 78svh;
  padding: 7.5rem clamp(1rem, 5vw, 4.25rem) 3rem;
  overflow: hidden;
  color: #fff;
  background-image: var(--hero-image, url("assets/hero-nails.png"));
  background-position: center;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 17, 18, 0.78), rgba(20, 17, 18, 0.42) 44%, rgba(20, 17, 18, 0.18)),
    linear-gradient(0deg, rgba(20, 17, 18, 0.28), rgba(20, 17, 18, 0.02));
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: center;
  max-width: 42rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f6d8d2;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 12ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.6rem, 9vw, 8.2rem);
  font-weight: 500;
  line-height: 0.98;
}

h2 {
  max-width: 15ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.15rem, 5vw, 4.4rem);
  font-weight: 500;
  line-height: 1.1;
}

h3 {
  font-size: 1.1rem;
  line-height: 1.18;
}

.hero-copy {
  max-width: 34rem;
  margin: 1.35rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  min-width: 10rem;
  border: 1px solid transparent;
  padding: 0.85rem 1.1rem;
}

.button-primary {
  color: #fff;
  background: var(--rose);
  box-shadow: 0 18px 35px rgba(168, 78, 92, 0.28);
}

.button-primary:hover {
  background: #913f4d;
}

.button-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
}

.button-wide {
  width: 100%;
}

.hero-status {
  position: absolute;
  right: clamp(1rem, 5vw, 4rem);
  bottom: 2rem;
  z-index: 1;
  width: min(16rem, calc(100% - 2rem));
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(18px);
}

.hero-status span,
.hero-status strong {
  display: block;
}

.hero-status span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.85rem;
}

.hero-status strong {
  margin-top: 0.2rem;
  font-size: 1.35rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.trust-strip div {
  padding: clamp(1.1rem, 3vw, 1.7rem) clamp(1rem, 4vw, 3rem);
  border-right: 1px solid var(--line);
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  color: var(--rose);
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.trust-strip span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 4.25rem);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  min-height: 18rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(36, 31, 33, 0.07);
}

.service-icon {
  display: grid;
  width: 2.7rem;
  aspect-ratio: 1;
  place-items: center;
  margin-bottom: 1.6rem;
  border-radius: 8px;
  color: var(--rose);
  background: #f9e5e4;
}

.service-card p {
  margin: 0.85rem 0 1.4rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.service-category {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.service-card > span:not(.service-category) {
  display: inline-block;
  margin-top: auto;
  color: var(--rose);
  font-weight: 800;
}

.portfolio-section {
  display: grid;
  grid-template-columns: minmax(17rem, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  background: var(--cream);
}

.portfolio-copy p:not(.eyebrow),
.booking-info p {
  max-width: 34rem;
  margin: 1.3rem 0 0;
  color: var(--muted);
}

.lookbook {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.look {
  position: relative;
  display: grid;
  min-height: 14rem;
  align-content: end;
  padding: 1.2rem;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  background: var(--rose);
}

.look::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--look-image, url("assets/hero-nails.png"));
  background-size: 170%;
  opacity: 0.82;
  transition: transform 220ms ease;
}

.look::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(36, 31, 33, 0.74), rgba(36, 31, 33, 0.08));
}

.look:hover::before {
  transform: scale(1.04);
}

.look span,
.look h3 {
  position: relative;
  z-index: 1;
}

.look span {
  margin-bottom: 0.35rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
}

.look-soft::before {
  background-position: 68% 48%;
}

.look-french::before {
  background-position: 38% 62%;
}

.look-chrome::before {
  background-position: 74% 34%;
}

.look-sage::before {
  background-position: 52% 44%;
}

.booking-section {
  display: grid;
  grid-template-columns: minmax(17rem, 0.85fr) minmax(19rem, 0.65fr);
  gap: clamp(2rem, 7vw, 5rem);
  align-items: start;
}

.hours {
  display: grid;
  gap: 0.8rem;
  max-width: 24rem;
  margin-top: 2rem;
}

.hours div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.hours span {
  color: var(--muted);
}

.booking-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.35rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 3rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fffaf7;
  padding: 0.8rem 0.9rem;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(168, 78, 92, 0.14);
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(8rem, 0.7fr);
  gap: 1rem;
}

.form-message {
  min-height: 1.4rem;
  margin: 0;
  color: var(--rose);
  font-weight: 750;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(18rem, 1fr) minmax(20rem, 1fr);
  gap: 2rem;
  align-items: center;
  color: #fff;
  background: #2f3330;
}

.contact-section .eyebrow {
  color: #d8e6ce;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.contact-link {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  padding: 1rem;
  min-width: 0;
}

.contact-link span {
  overflow: hidden;
  text-overflow: ellipsis;
}

button.contact-link {
  text-align: center;
}

.contact-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

.chat-panel {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  display: grid;
  grid-template-rows: auto minmax(13rem, 1fr) auto;
  width: min(24rem, calc(100vw - 2rem));
  height: min(34rem, calc(100svh - 2rem));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  transform: translateY(1rem) scale(0.97);
  transform-origin: bottom right;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.chat-panel.is-open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  color: #fff;
  background: #2f3330;
}

.chat-header strong,
.chat-header span {
  display: block;
}

.chat-header span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.icon-button {
  color: var(--ink);
  background: #f5ece8;
}

.icon-button-dark {
  color: #fff;
  background: var(--rose);
}

.chat-header .icon-button {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  overflow-y: auto;
  padding: 1rem;
  background: #fffaf7;
}

.chat-bubble {
  max-width: 84%;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  font-size: 0.92rem;
}

.chat-bubble.bot {
  align-self: flex-start;
  color: var(--ink);
  background: #eee1db;
}

.chat-bubble.user {
  align-self: flex-end;
  color: #fff;
  background: var(--rose);
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  padding: 0.8rem;
  border-top: 1px solid var(--line);
}

.chat-form input {
  min-height: 2.75rem;
}

.floating-chat {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  color: #fff;
  background: var(--rose);
  box-shadow: 0 15px 35px rgba(168, 78, 92, 0.35);
}

.chat-open .floating-chat {
  display: none;
}

@media (max-width: 1050px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-section,
  .booking-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    grid-template-columns: 1fr;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .portfolio-copy p:not(.eyebrow),
  .booking-info p {
    max-width: 44rem;
  }
}

@media (max-width: 780px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .main-nav,
  .nav-action {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
    justify-self: end;
  }

  .main-nav.is-open {
    position: fixed;
    top: 4.6rem;
    right: 1rem;
    left: 1rem;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: 0.5rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: rgba(255, 250, 247, 0.97);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open a {
    padding: 0.9rem;
    border-radius: 8px;
  }

  .main-nav.is-open a:hover {
    background: #f3e6df;
  }

  .hero {
    min-height: 76svh;
    padding-top: 6.4rem;
    background-position: 58% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(20, 17, 18, 0.82), rgba(20, 17, 18, 0.45)),
      linear-gradient(0deg, rgba(20, 17, 18, 0.44), rgba(20, 17, 18, 0.06));
  }

  h1 {
    font-size: clamp(3.25rem, 17vw, 5.6rem);
  }

  .hero-status {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 2rem;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .trust-strip div {
    border-right: 0;
  }

  .trust-strip div + div {
    border-top: 1px solid var(--line);
  }

  .lookbook,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 0.8rem 1rem;
  }

  .brand strong {
    max-width: 9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    min-width: 0;
  }

  .section {
    padding-block: 3.5rem;
  }

  .chat-panel {
    right: 0;
    bottom: 0;
    width: 100vw;
    height: min(100svh, 36rem);
    border-radius: 8px 8px 0 0;
  }
}
