/* Mackie's Nails - soft pink & nude theme */
:root {
  --cream: #fdf8f5;
  --blush: #f6e3de;
  --blush-2: #efd2cb;
  --nude: #e8d2c5;
  --rose: #d4899a;
  --rose-deep: #a8506a;
  --gold: #b48a5e;
  --ink: #3b2a2f;
  --muted: #6f5a60;
  --line: #ecd9d2;
  --white: #fff;
  --radius: 18px;
  --shadow: 0 14px 34px -16px rgba(122, 56, 78, .35);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose-deep); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--rose-deep); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); }
.center { text-align: center; }
.muted { color: var(--muted); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--rose-deep); color: #fff; text-decoration: none; font: 500 1rem/1 var(--sans);
  padding: .95rem 1.7rem; border-radius: 999px; border: 2px solid var(--rose-deep); cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s; letter-spacing: .02em;
}
.btn:hover { background: #8f3f57; border-color: #8f3f57; transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(143, 63, 87, .7); }
.btn-ghost { background: transparent; color: var(--rose-deep); }
.btn-ghost:hover { background: var(--blush); color: #8f3f57; box-shadow: none; }
.btn-sm { padding: .65rem 1.2rem; font-size: .95rem; }
.btn-block { width: 100%; }
.text-link { font-weight: 500; text-decoration: none; border-bottom: 1.5px solid var(--rose); }
.text-link:hover { color: #8f3f57; }

/* ---- header ---- */
.announce { background: var(--rose-deep); color: #fff; text-align: center; padding: .55rem 1rem; font-size: .95rem; letter-spacing: .02em; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(253, 248, 245, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.brand { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.9rem; color: var(--rose-deep); text-decoration: none; line-height: 1; }
.site-nav { display: flex; align-items: center; gap: 1.8rem; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; padding: .3rem 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--rose); }
.nav-toggle { display: none; background: none; border: 0; width: 46px; height: 46px; padding: 0; cursor: pointer; border-radius: 12px; }
.nav-toggle i { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px auto; transition: transform .25s, opacity .25s; }
.nav-open .nav-toggle i:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle i:nth-child(3) { opacity: 0; }
.nav-open .nav-toggle i:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

/* ---- hero ---- */
.hero { background: radial-gradient(1200px 500px at 85% -10%, var(--blush) 0%, rgba(246, 227, 222, 0) 60%), linear-gradient(180deg, #fbeee9 0%, var(--cream) 100%); padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5.5rem); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 500; color: var(--gold); margin-bottom: 1rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.4rem; }
.hero-loc { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .98rem; margin: 0; }
.hero-loc svg, .contact-list svg { width: 20px; height: 20px; fill: var(--rose-deep); flex: none; }
.hero-media { position: relative; width: min(440px, 100%); margin-inline: auto; }
.hero-media::before { content: ''; position: absolute; inset: 18px -18px -18px 18px; border: 1.5px solid var(--rose); border-radius: 220px 220px 30px 30px; opacity: .55; }
.carousel, .hero-art { position: relative; aspect-ratio: 4 / 5; border-radius: 220px 220px 30px 30px; overflow: hidden; background: var(--blush); box-shadow: var(--shadow); }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .9s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 4px; z-index: 2; }
.dots button { width: 26px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.dots button::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .6); transform: translate(-50%, -50%); box-shadow: 0 0 0 1px rgba(60, 30, 40, .25); transition: background .2s, width .2s; }
.dots button[aria-current="true"]::after { background: #fff; width: 22px; border-radius: 6px; }
.hero-art { background: linear-gradient(160deg, #f9dfd9, #efc3c6); display: grid; place-items: end center; padding-bottom: 8%; }
.hero-art svg { width: 78%; height: auto; }
.n1 { fill: #fff3ef; } .n2 { fill: #f0b6bf; } .n3 { fill: var(--rose-deep); } .n4 { fill: #e8c9b4; }

/* ---- sections ---- */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-tint { background: linear-gradient(180deg, #fbeee9, #f9e6e0); }
.section-title { text-align: center; margin-bottom: 1.6rem; position: relative; }
.section-title::after { content: ''; display: block; width: 54px; height: 2px; background: var(--rose); margin: .7rem auto 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.section-head .section-title { text-align: left; margin: 0; }
.section-head .section-title::after { margin-left: 0; }
.empty { text-align: center; color: var(--muted); padding: 2rem 1rem; background: var(--blush); border-radius: var(--radius); }
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1rem; background: linear-gradient(180deg, #fbeee9, var(--cream)); }
.page-head .lead { margin-inline: auto; }

/* ---- promotions / adverts ---- */
.promos { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.promo { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.promo:not(.has-img) { background: linear-gradient(135deg, var(--blush), #fbeee9); justify-content: center; text-align: center; }
.promo-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.promo-body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; flex: 1; }
.promo:not(.has-img) .promo-body { align-items: center; padding: 2.2rem 1.8rem; }
.promo h3 { margin-bottom: .3em; }
.promo p { color: var(--muted); }
.promo .btn { margin-top: auto; }
.promos[data-count="1"] { grid-template-columns: 1fr; }
.promos[data-count="1"] .promo.has-img { flex-direction: row; }
.promos[data-count="1"] .promo.has-img .promo-img { flex: 1 1 50%; }
.promos[data-count="1"] .promo.has-img .promo-img img { height: 100%; aspect-ratio: auto; min-height: 260px; }
.promos[data-count="1"] .promo.has-img .promo-body { flex: 1 1 50%; justify-content: center; padding: 2.4rem; }
.promos[data-count="1"] .promo .btn { margin-top: 1rem; }
.promos[data-count="1"] .promo:not(.has-img) .promo-body { max-width: 640px; margin-inline: auto; }

/* ---- photo tiles ---- */
.tile { display: block; position: relative; border-radius: 14px; overflow: hidden; background: var(--blush); box-shadow: 0 8px 22px -14px rgba(122, 56, 78, .5); }
.tile img { width: 100%; height: auto; transition: transform .5s ease; }
.tile:hover img { transform: scale(1.04); }
.tile-cap { position: absolute; inset: auto 0 0 0; padding: 1.6rem .9rem .7rem; color: #fff; font-size: .92rem; background: linear-gradient(0deg, rgba(45, 20, 30, .7), transparent); opacity: 0; transition: opacity .25s; }
.tile:hover .tile-cap, .tile:focus-visible .tile-cap { opacity: 1; }
.grid-latest { display: grid; gap: .9rem; grid-template-columns: repeat(2, 1fr); }
.grid-latest .tile { aspect-ratio: 1; }
.grid-latest .tile img { height: 100%; object-fit: cover; }
.masonry { columns: 2; column-gap: .9rem; }
.masonry .tile { margin-bottom: .9rem; break-inside: avoid; }
.masonry .tile[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-bottom: 2rem; }
.chip { font: 500 .95rem var(--sans); background: var(--white); color: var(--ink); border: 1.5px solid var(--line); border-radius: 999px; padding: .55rem 1.2rem; cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--rose); }
.chip.is-active { background: var(--rose-deep); border-color: var(--rose-deep); color: #fff; }

/* ---- services / about / contact ---- */
.services { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.service { background: var(--white); border-radius: var(--radius); padding: 1.8rem; border: 1px solid var(--line); text-align: center; }
.service h3 { color: var(--rose-deep); }
.service p { color: var(--muted); margin-bottom: .5em; }
.service .price { color: var(--ink); font-weight: 600; margin: 0; }
.about { font-size: 1.2rem; text-align: center; color: var(--muted); }
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.6rem; align-items: start; }
.contact-card, .contact-note { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.contact-note { background: transparent; box-shadow: none; border-style: dashed; border-color: var(--rose); }
.contact-list { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list svg { margin-top: 3px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.socials { list-style: none; display: flex; gap: .7rem; margin: 1.4rem 0 0; padding: 0; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blush); color: var(--rose-deep); transition: background .2s; }
.socials a:hover { background: var(--blush-2); }
.socials svg { width: 22px; height: 22px; }

/* ---- footer ---- */
.site-footer { background: var(--ink); color: #f1e3df; padding: 2.5rem 0 2rem; }
.site-footer a { color: #f6cfd6; }
.footer-in { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 2rem; align-items: start; }
.footer-brand { font-family: var(--serif); font-style: italic; font-size: 1.8rem; margin: 0 0 .3rem; color: #fff; }
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-in p { margin: 0; }
.copy { grid-column: 1 / -1; font-size: .9rem; opacity: .7; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 1.2rem; }

/* ---- login ---- */
.login-wrap { min-height: 70vh; display: grid; place-items: center; padding: 3rem 1rem; background: radial-gradient(800px 400px at 50% 0, var(--blush), transparent), var(--cream); }
.login-card { width: min(420px, 100%); background: var(--white); padding: 2.2rem; border-radius: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.login-card h1 { font-size: 2.4rem; margin-bottom: .2em; }
.login-card label { display: block; font-weight: 500; margin: 1.1rem 0 .35rem; }
.login-card input { width: 100%; font: inherit; padding: .85rem 1rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--cream); color: var(--ink); }
.login-card input:focus { outline: none; border-color: var(--rose-deep); box-shadow: 0 0 0 3px rgba(168, 80, 106, .2); }
.login-card .btn { margin-top: 1.4rem; }
.form-error { color: #9d2942; background: #fdecef; border-radius: 10px; padding: .7rem .9rem; margin: 1rem 0 0; font-size: .95rem; }
.back { text-align: center; margin: 1.4rem 0 0; }
code { background: var(--blush); padding: .1em .4em; border-radius: 6px; font-size: .9em; }

/* ---- lightbox ---- */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(38, 18, 26, .94); display: none; align-items: center; justify-content: center; flex-direction: column; padding: 3.5rem 1rem 1.5rem; }
.lb.open { display: flex; }
.lb img { max-width: min(96vw, 1200px); max-height: calc(100vh - 8.5rem); width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.lb-cap { color: #f6e3de; margin: 1rem 0 0; text-align: center; min-height: 1.5em; }
.lb button { position: absolute; background: rgba(255, 255, 255, .12); border: 0; color: #fff; cursor: pointer; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; line-height: 1; display: grid; place-items: center; transition: background .2s; }
.lb button:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---- responsive ---- */
@media (min-width: 640px) { .grid-latest { grid-template-columns: repeat(4, 1fr); } .masonry { columns: 3; } }
@media (min-width: 1000px) { .masonry { columns: 4; column-gap: 1.1rem; } .masonry .tile { margin-bottom: 1.1rem; } }
@media (max-width: 860px) {
  .hero-in, .contact { grid-template-columns: 1fr; }
  .hero-media { order: -1; width: min(360px, 88%); }
  .hero-copy { text-align: center; }
  .lead { margin-inline: auto; }
  .hero-cta, .hero-loc { justify-content: center; }
  .promos[data-count="1"] .promo.has-img { flex-direction: column; }
  .promos[data-count="1"] .promo.has-img .promo-img img { aspect-ratio: 16 / 10; min-height: 0; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); flex-direction: column; align-items: stretch; gap: 0; padding: .6rem 1.25rem 1.2rem; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(60, 20, 35, .4); }
  .nav-open .site-nav { display: flex; }
  .site-nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 1rem; }
  .footer-in { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
