/*
Theme Name: AsiaM Nails
Theme URI: https://www.instagram.com/asiam_nails/
Description: Elegancki motyw w czerni i złocie dla salonu AsiaM Nails. Współpracuje z wtyczką „AsiaM Rezerwacje” (rezerwacje online z kodem SMS). Teksty strony głównej edytujesz w Wygląd → Dostosuj → Strona główna AsiaM.
Author: AsiaM Nails
Version: 1.0.3
Requires at least: 6.0
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: asiam-nails
*/
/* =========================================================
   AsiaM Nails – czerń i złoto
   ========================================================= */
:root {
  --black: #0a0908;
  --ink: #12100d;
  --panel: #17140f;
  --panel-2: #1e1a14;
  --line: rgba(212, 175, 95, .18);
  --line-strong: rgba(212, 175, 95, .45);
  --gold: #d4af5f;
  --gold-hi: #f2dc9b;
  --gold-lo: #a67c2e;
  --gold-grad: linear-gradient(135deg, #f4e1a6 0%, #d4af5f 38%, #a67c2e 70%, #e9cf86 100%);
  --text: #efe9dd;
  --muted: #a49a88;
  --danger: #e07a6a;
  --ok: #8fc79a;
  --warn: #e7c06a;
  --radius: 14px;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow: 0 20px 60px rgba(0, 0, 0, .55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--black); color: var(--text);
  font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
button { font-family: inherit; }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.gold-text {
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); font-weight: 500;
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--gold); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: .005em; }
h2 { font-size: clamp(38px, 5vw, 60px); }
.section { padding: clamp(80px, 10vw, 130px) 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head p { color: var(--muted); margin: 18px 0 0; }

/* ---------- przyciski ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 28px; border-radius: 999px; cursor: pointer;
  font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500;
  border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn-gold { background: var(--gold-grad); color: #1a1408; box-shadow: 0 8px 30px rgba(212, 175, 95, .25); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(212, 175, 95, .38); }
.btn-ghost { border-color: var(--line-strong); color: var(--gold-hi); background: transparent; }
.btn-ghost:hover { background: rgba(212, 175, 95, .08); border-color: var(--gold); }
.btn-sm { --h: 40px; padding: 0 18px; font-size: 11.5px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- nawigacja ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(10, 9, 8, .82); backdrop-filter: blur(14px); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo { display: flex; align-items: baseline; gap: 10px; color: var(--text); }
.logo-mark { font-family: var(--serif); font-size: 32px; font-weight: 600; font-style: italic; }
.logo-sub { font-size: 11px; letter-spacing: .42em; text-transform: uppercase; color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a:not(.btn) { color: var(--text); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; opacity: .8; }
.nav-links a:not(.btn):hover { opacity: 1; color: var(--gold-hi); }
.burger { display: none; background: none; border: 0; color: var(--gold); width: 44px; height: 44px; cursor: pointer; }
@media (max-width: 960px) {
  .nav-links { position: fixed; inset: 84px 0 auto; flex-direction: column; gap: 0; background: rgba(10, 9, 8, .97);
    border-bottom: 1px solid var(--line); padding: 10px 20px 26px; transform: translateY(-120%); transition: transform .35s; }
  .nav-links.open { transform: none; }
  .nav-links a:not(.btn) { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 18px; width: 100%; }
  .burger { display: grid; place-items: center; }
}

/* ---------- hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; position: relative; overflow: hidden; padding: 120px 0 80px; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 78% 40%, rgba(212, 175, 95, .16), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(166, 124, 46, .12), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(54px, 8.5vw, 112px); line-height: .95; margin: 26px 0 28px; }
.hero h1 em { font-style: italic; font-weight: 400; }
.hero-lead { max-width: 520px; color: var(--muted); font-size: 18.5px; margin: 0 0 40px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 38px; margin-top: 56px; flex-wrap: wrap; }
.hero-meta div { border-left: 1px solid var(--line-strong); padding-left: 16px; }
.hero-meta strong { display: block; font-family: var(--serif); font-size: 34px; font-weight: 500; color: var(--gold-hi); line-height: 1.1; }
.hero-meta span { font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stars { color: var(--gold); letter-spacing: 3px; font-size: 14px; }

.hero-art { position: relative; aspect-ratio: 4/5; }
.hero-art .frame {
  position: absolute; inset: 0; border-radius: 240px 240px 18px 18px; overflow: hidden;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(242, 220, 155, .22), transparent 60%),
    linear-gradient(160deg, #1d1810 0%, #0d0b08 70%);
}
.hero-art .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .frame svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art .ring {
  position: absolute; inset: -22px; border-radius: 260px 260px 30px 30px; border: 1px solid var(--line);
  pointer-events: none;
}
.hero-badge {
  position: absolute; left: -38px; bottom: 54px; background: rgba(18, 16, 13, .92); border: 1px solid var(--line-strong);
  padding: 16px 20px; border-radius: 14px; backdrop-filter: blur(8px); box-shadow: var(--shadow);
}
.hero-badge small { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.hero-badge b { font-family: var(--serif); font-size: 24px; font-weight: 500; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 380px; width: 100%; margin: 20px auto 0; }
  .hero-badge { left: -8px; }
}

/* ---------- pasek ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; background: var(--ink); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; will-change: transform; -webkit-animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--serif); font-size: 28px; font-style: italic; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 56px; }
.marquee span::after { content: '✦'; color: var(--gold); font-style: normal; font-size: 16px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation-duration: 90s; } }
@media (max-width: 700px) { .marquee-track { animation-duration: 26s; } .marquee span { font-size: 24px; } }

/* ---------- o salonie ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.about-quote { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 42px); line-height: 1.25; font-style: italic; margin: 26px 0; }
.about-sign { font-family: var(--serif); font-size: 26px; color: var(--gold-hi); }
.about-sign small { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--black); padding: 30px 28px; }
.feature svg { width: 28px; height: 28px; color: var(--gold); margin-bottom: 14px; }
.feature h3 { font-size: 24px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .about-grid { grid-template-columns: 1fr; gap: 48px; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ---------- oferta ---------- */
.offer { background: var(--ink); }
.offer-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.offer-card {
  position: relative; border: 1px solid var(--line); border-radius: 18px; padding: 34px 26px 28px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--black) 100%);
  display: flex; flex-direction: column; min-height: 380px; transition: border-color .3s, transform .3s;
  overflow: hidden;
}
.offer-card::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 2px; background: var(--gold-grad); opacity: 0; transition: opacity .3s;
}
.offer-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.offer-card:hover::before { opacity: 1; }
.offer-num { font-family: var(--serif); font-size: 15px; color: var(--gold); letter-spacing: .1em; }
.offer-card h3 { font-size: 30px; margin: 46px 0 14px; }
.offer-card p { color: var(--muted); font-size: 15px; margin: 0 0 24px; flex: 1; }
.offer-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; }
.offer-price { font-family: var(--serif); font-size: 30px; color: var(--gold-hi); line-height: 1; }
.offer-time { font-size: 13px; color: var(--muted); display: block; margin-top: 6px; }
@media (max-width: 1080px) { .offer-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .offer-cards { grid-template-columns: 1fr; } .offer-card { min-height: 0; } .offer-card h3 { margin-top: 26px; } }

.pricelist { margin-top: 80px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 70px; }
.price-group h3 { font-size: 30px; color: var(--gold-hi); margin-bottom: 10px; }
.price-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.price-row .n { font-size: 16.5px; }
.price-row .d { font-size: 13px; color: var(--muted); display: block; }
.price-row .p { font-family: var(--serif); font-size: 22px; color: var(--gold-hi); white-space: nowrap; }
.price-row .book { background: none; border: 1px solid var(--line-strong); color: var(--gold); border-radius: 999px; padding: 6px 14px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: .2s; }
.price-row .book:hover { background: var(--gold); color: #1a1408; }
@media (max-width: 860px) { .pricelist { grid-template-columns: 1fr; } }

/* ---------- galeria ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; gap: 14px; }
.gallery-grid figure { margin: 0; position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); cursor: zoom-in; }
.gallery-grid figure:nth-child(5n+1) { grid-row: span 2; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-grid figcaption { position: absolute; inset: auto 0 0; padding: 30px 16px 12px; font-size: 13px; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; } }
.insta-cta {
  border: 1px solid var(--line); border-radius: 22px; padding: clamp(36px, 6vw, 70px); text-align: center;
  background: radial-gradient(80% 120% at 50% 0%, rgba(212, 175, 95, .12), transparent 70%), var(--ink);
}
.insta-cta h3 { font-size: clamp(30px, 4vw, 44px); margin: 14px 0 12px; }
.insta-cta p { color: var(--muted); max-width: 520px; margin: 0 auto 28px; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92); display: none; place-items: center; padding: 30px; cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 88vh; border-radius: 10px; }

/* ---------- opinie ---------- */
.reviews { background: var(--ink); }
.reviews-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 50px; }
.score { display: flex; align-items: center; gap: 22px; }
.score b { font-family: var(--serif); font-size: 78px; font-weight: 500; line-height: 1; }
.score small { color: var(--muted); font-size: 14px; display: block; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { border: 1px solid var(--line); border-radius: 16px; padding: 30px; background: var(--black); }
.review p { font-family: var(--serif); font-size: 23px; line-height: 1.35; font-style: italic; margin: 16px 0 22px; }
.review footer { font-size: 13px; color: var(--muted); letter-spacing: .06em; }
.review footer b { color: var(--text); font-weight: 500; }
@media (max-width: 860px) { .review-grid { grid-template-columns: 1fr; } }

/* ---------- zasady / udogodnienia ---------- */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 10px; }
.perk { display: flex; gap: 14px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: 14px; font-size: 15px; }
.perk svg { flex: none; width: 24px; height: 24px; color: var(--gold); }
@media (max-width: 960px) { .perks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .perks { grid-template-columns: 1fr; } }

/* ---------- kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-card { border: 1px solid var(--line); border-radius: 18px; padding: 40px; background: var(--ink); }
.contact-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-of-type { border: 0; }
.contact-item svg { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 4px; }
.contact-item small { display: block; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.contact-item a, .contact-item span { color: var(--text); font-size: 18px; }
.hours-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.hours-table td { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 15.5px; }
.hours-table td:last-child { text-align: right; color: var(--gold-hi); }
.hours-table tr.today td { color: var(--gold-hi); font-weight: 500; }
.hours-table tr.closed td:last-child { color: var(--muted); }
.map { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); min-height: 420px; }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(1) invert(.92) contrast(.9) sepia(.25); }
.socials { display: flex; gap: 12px; margin-top: 26px; }
.socials a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--gold); transition: .2s; }
.socials a:hover { background: var(--gold); color: #1a1408; }
.socials svg { width: 20px; height: 20px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-card { padding: 28px 22px; } }

/* ---------- CTA + stopka ---------- */
.final-cta { text-align: center; padding: 110px 0; position: relative; overflow: hidden; }
.final-cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(50% 70% at 50% 50%, rgba(212, 175, 95, .14), transparent 70%); }
.final-cta h2 { position: relative; font-size: clamp(42px, 6vw, 78px); margin-bottom: 30px; }
.final-cta .btn { position: relative; }
.footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--gold); }

/* ---------- mobilny przycisk ---------- */
.mobile-book { display: none; }
@media (max-width: 700px) {
  .mobile-book { display: flex; position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 40; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
  .footer { padding-bottom: 100px; }
}

/* ---------- animacje wejścia ---------- */
/* Animacja tylko gdy działa JS (klasa am-js dodawana w <head>).
   Zabezpieczenie: jeśli skrypt zostanie opóźniony przez wtyczkę cache/optymalizacji,
   treść i tak pokaże się po 1,5 s – strona nigdy nie zostaje pusta. */
.am-js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; animation: am-show .6s ease 1.5s forwards; }
.am-js .reveal.in { opacity: 1; transform: none; animation: none; }
@keyframes am-show { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .am-js .reveal { opacity: 1; transform: none; animation: none; } }


/* ---------- podstrony ---------- */
.page-wrap { min-height: 100vh; padding: 140px 0 90px; }
.page-box { width: min(820px, 100% - 40px); margin: 0 auto; }
.page-box > h1 { font-size: clamp(42px, 6vw, 64px); margin: 18px 0 30px; }
.entry { color: var(--muted); }
.entry h2, .entry h3 { color: var(--text); margin: 1.6em 0 .5em; }
.entry h2 { font-size: 34px; } .entry h3 { font-size: 26px; }
.entry a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }
.entry img { border-radius: 14px; height: auto; }
.entry strong, .entry b { color: var(--text); font-weight: 500; }
.post-card { border: 1px solid var(--line); border-radius: 18px; padding: 28px; margin-bottom: 18px; background: var(--ink); }
.post-card h2 { font-size: 32px; margin: 6px 0 10px; } .post-card h2 a { color: var(--text); }
.post-card time { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.nav-links .menu-item { list-style: none; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }
.nav-links > li { list-style: none; }
@media (max-width: 960px) { .nav-links > li { width: 100%; } }
.entry ol, .entry ul { padding-left: 1.2em; }
.entry li { margin: .4em 0; }
body.asiam-theme .asiam-client { max-width: none; }
.entry a.btn, .entry .btn { text-decoration: none; }

/* ---------- logo salonu w nagłówku strony głównej ---------- */
.hero-logo { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero-logo::before {
  content: ''; position: absolute; inset: 6% 6% 14%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(212, 175, 95, .22), rgba(212, 175, 95, .06) 60%, transparent);
  filter: blur(10px);
}
.hero-logo picture, .hero-logo > img { position: relative; display: block; width: 100%; max-width: 580px; }
.hero-logo img { width: 100%; height: auto; display: block; filter: drop-shadow(0 24px 50px rgba(0, 0, 0, .55)); }
.hero-logo .hero-badge { position: relative; left: auto; bottom: auto; margin-top: -6px; text-align: center; }
@media (max-width: 960px) {
  .hero-logo { margin-top: 10px; }
  .hero-logo picture, .hero-logo > img { max-width: 360px; }
  .hero-logo .hero-badge { left: auto; }
}
