/* Nails at Home by Mel — theme carried over from the original site */
:root {
  --bg: #f9f6f7;
  --text: #484c67;
  --text-dark: #333649;
  --muted: #7a7c7b;
  --accent: #c51d04;
  --peach: #fed8ca;
  --white: #fff;
  --line: #dfdfdf;
  --radius: 6px;
  --max: 1140px;
  --font-head: "El Messiri", Georgia, serif;
  --font-body: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 300 1rem/1.7 var(--font-body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration: none; transition: color .2s; }
a:hover, a:focus-visible { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
strong, b { font-weight: 700; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 400; color: var(--text); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; position: relative; }
.section--peach { background: var(--peach); }
.center { text-align: center; }
.eyebrow { font-family: var(--font-body); font-weight: 700; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; }
.lead { max-width: 60ch; }
.center .lead { margin-inline: auto; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--text); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; color: #fff; }

/* Header */
.site-header { background: var(--bg); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.header-inner { display: flex; flex-direction: column; align-items: center; padding: .9rem 0 .4rem; }
.brand img { width: 150px; }
.site-header.is-scrolled .brand img { width: 110px; }
.brand img { transition: width .2s; }
.nav-toggle { display: none; }
.site-nav ul { list-style: none; margin: .4rem 0 0; padding: 0; display: flex; gap: clamp(1.5rem, 9vw, 9rem); }
.site-nav a { font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); padding: .5rem 0; display: inline-block; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

@media (max-width: 720px) {
  .header-inner { flex-direction: row; justify-content: space-between; padding: .6rem 0; }
  .brand img, .site-header.is-scrolled .brand img { width: 110px; }
  .nav-toggle { display: inline-flex; align-items: center; gap: .5rem; background: none; border: 1px solid var(--text); color: var(--text); border-radius: var(--radius); padding: .45rem .8rem; font: 700 .75rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; margin: 0; padding: .5rem 1.25rem 1rem; }
  .site-nav a { padding: .75rem 0; width: 100%; }
}

/* Decorative florals (from the original theme) */
.floral { position: absolute; pointer-events: none; opacity: .5; z-index: 0; }
.floral--left { left: -40px; bottom: 0; width: 220px; }
.floral--right { right: -40px; top: 10%; width: 200px; transform: scaleX(-1); }
.section > .container { position: relative; z-index: 1; }
@media (max-width: 720px) { .floral { display: none; } }

/* Buttons */
.btn { display: inline-block; background: var(--text); color: #fff; font: 700 .78rem var(--font-body); letter-spacing: .16em; text-transform: uppercase; padding: .95rem 1.8rem; border-radius: 3px; border: 0; cursor: pointer; transition: background .2s; }
.btn:hover, .btn:focus-visible { background: var(--text-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn--ghost:hover { background: var(--accent); color: #fff; }

/* Hero */
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* Price list */
.price-card h2 { color: var(--accent); }
.price-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.price-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-bottom: 1px dotted var(--line); }
.price-list li span:last-child { font-weight: 400; white-space: nowrap; }
.price-list small { color: var(--muted); }
.price-card img { border-radius: var(--radius); }

/* Values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 2rem; }
.value { text-align: center; }
.value-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--peach); display: grid; place-items: center; margin: 0 auto 1rem; }
.value-icon svg { width: 34px; height: 34px; stroke: var(--text); fill: none; stroke-width: 1.4; }
.value h3 { font-family: var(--font-body); font-weight: 400; font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .5rem; }
.value p { font-size: .95rem; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }

/* Treatment cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; }
.card { display: block; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 20px rgba(72,76,103,.07); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(72,76,103,.12); color: var(--text); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 1.1rem 1.25rem 1.4rem; text-align: center; }
.card-body h3 { margin: 0 0 .2rem; }
.card-body p { margin: 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* Treatment quick nav */
.quick-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.quick-nav a { display: flex; align-items: center; gap: .9rem; background: var(--white); padding: 1rem 1.25rem; border-radius: var(--radius); box-shadow: 0 3px 14px rgba(72,76,103,.06); font-weight: 400; letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; }
.quick-nav img { width: 40px; height: 40px; }
@media (max-width: 760px) { .quick-nav { grid-template-columns: repeat(2, 1fr); } }

/* Treatment detail */
.treatment { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; scroll-margin-top: 140px; }
.treatment + .treatment { margin-top: clamp(3.5rem, 7vw, 6rem); }
.treatment:nth-of-type(even) .treatment-media { order: 2; }
.treatment-media img { border-radius: var(--radius); width: 100%; max-height: 520px; object-fit: cover; }
.treatment .price { font-family: var(--font-body); font-weight: 700; font-size: 1.6rem; color: var(--text); margin: 1rem 0 1.25rem; }
.treatment .price small { font-size: .85rem; font-weight: 400; color: var(--muted); }
.treatment .price-list { max-width: 360px; }
@media (max-width: 860px) { .treatment { grid-template-columns: 1fr; } .treatment:nth-of-type(even) .treatment-media { order: 0; } }

/* Partners */
.partners { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; margin-top: 2rem; }
.partners a { background: var(--white); border-radius: 4px; padding: .9rem 1.4rem; display: grid; place-items: center; width: 190px; height: 80px; }
.partners img { max-height: 46px; width: auto; }

/* Areas */
.areas { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.areas li { background: var(--white); border-radius: 999px; padding: .4rem 1rem; font-size: .9rem; }
.postcodes { font-weight: 700; letter-spacing: .12em; color: var(--accent); }

/* Article */
.article { max-width: 760px; margin-inline: auto; }
.article-meta { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }
.article img { border-radius: var(--radius); margin: 0 auto 2rem; max-height: 560px; object-fit: cover; }

/* Prose pages (privacy, legal) */
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.contact-details { list-style: none; padding: 0; margin: 1.5rem 0; }
.contact-details li { margin-bottom: .6rem; }
.contact-details strong { display: inline-block; min-width: 90px; font-weight: 700; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.form { max-width: 560px; margin-inline: auto; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 400; font-size: .85rem; color: var(--accent); margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%; border: 1px solid transparent; background: var(--white); color: var(--text);
  font: 300 1rem var(--font-body); padding: .8rem .9rem; border-radius: 3px;
}
.field input:focus, .field textarea:focus { border-color: var(--text); outline: none; }
.field textarea { min-height: 150px; resize: vertical; }
.checkbox { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; margin-bottom: 1.5rem; }
.checkbox input { margin-top: .35rem; accent-color: var(--text); }
.checkbox a { text-decoration: underline; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; }
.form-status { margin-top: 1rem; padding: .8rem 1rem; border-radius: 3px; display: none; }
.form-status.is-success { display: block; background: #e7f4ea; color: #1e6b33; }
.form-status.is-error { display: block; background: #fbe9e7; color: var(--accent); }

/* Footer */
.site-footer { background: var(--peach); padding: 3.5rem 0 1.5rem; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.6fr 1fr 1fr; gap: 2rem; }
.site-footer h2 { font-family: var(--font-body); font-size: .9rem; font-weight: 700; margin-bottom: .8rem; letter-spacing: .04em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer .brand img { width: 130px; margin-bottom: .6rem; }
.social { display: flex; gap: .6rem; }
.social a { width: 36px; height: 36px; border-radius: 50%; background: var(--white); display: grid; place-items: center; }
.social svg { width: 18px; height: 18px; fill: var(--text); }
.social a:hover svg { fill: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(72,76,103,.15); margin-top: 2.5rem; padding-top: 1.2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .8rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

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