/* ============================================================
   Renata Măceluică — Nail Artist & Educator, Graz
   Atelier + Akademie · Prata (display) / Karla (body)
   Palette: champagne #D8C9A8 · charcoal #232021 · cream #F4EFE6 · emerald #1F6F5C
   ============================================================ */

:root {
  --champagne: #D8C9A8;
  --champagne-deep: #c2ad81;
  --charcoal: #232021;
  --charcoal-soft: #322d2e;
  --cream: #F4EFE6;
  --cream-2: #ece4d6;
  --emerald: #1F6F5C;
  --emerald-bright: #2f9079;
  --ink: #2a2624;
  --ink-soft: #6b625b;
  --line: rgba(35, 32, 33, 0.12);
  --maxw: 1180px;
  --r: 4px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Karla", system-ui, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

h1, h2, h3 { font-family: "Prata", Georgia, serif; font-weight: 400; line-height: 1.1; letter-spacing: 0.01em; }

a { color: inherit; }

.wrap { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; }

.eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--champagne-deep);
  font-weight: 600;
  margin-bottom: 1rem;
}
.eyebrow.center { text-align: center; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.7rem;
  font-family: "Karla", sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--r);
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  cursor: pointer;
}
.btn-primary { background: var(--charcoal); color: var(--cream); }
.btn-primary:hover { background: var(--emerald); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn-ghost:hover { background: var(--charcoal); color: var(--cream); transform: translateY(-2px); }

/* Hero/contact on dark variants */
.hero .btn-ghost, .contact .btn-ghost { color: var(--cream); border-color: rgba(244,239,230,0.5); }
.hero .btn-ghost:hover, .contact .btn-ghost:hover { background: var(--champagne); color: var(--charcoal); border-color: var(--champagne); }
.hero .btn-primary, .contact .btn-primary { background: var(--champagne); color: var(--charcoal); }
.hero .btn-primary:hover, .contact .btn-primary:hover { background: var(--cream); color: var(--charcoal); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(244, 239, 230, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar {
  width: min(100% - 2.4rem, var(--maxw));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-chip {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; background: var(--charcoal);
  border: 1px solid var(--champagne-deep);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: "Prata", serif; font-size: 1.02rem; color: var(--charcoal); }
.brand-sub { font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }

nav { display: flex; }
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.9rem;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--emerald); }
.nav-cta {
  border: 1px solid var(--charcoal);
  padding: 0.55rem 1.05rem;
  border-radius: var(--r);
}
.nav-cta:hover { background: var(--charcoal); color: var(--cream) !important; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  width: 26px; height: 2px; background: var(--charcoal);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(120% 80% at 80% -10%, rgba(31,111,92,0.35), transparent 55%),
    radial-gradient(90% 70% at -10% 110%, rgba(216,201,168,0.22), transparent 60%),
    var(--charcoal);
  color: var(--cream);
  position: relative;
}
.hero-inner {
  width: min(100% - 2.4rem, var(--maxw));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.hero .eyebrow { color: var(--champagne); }
.hero h1 {
  font-size: clamp(2.9rem, 7vw, 5.1rem);
  color: var(--cream);
  margin-bottom: 1.4rem;
}
.hero-lede {
  font-size: 1.06rem;
  color: rgba(244, 239, 230, 0.82);
  max-width: 40ch;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1.6rem; }
.hero-note { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--champagne-deep); }

/* gem-framed photo */
.hero-frame, .about-photo { position: relative; }
.hero-frame {
  border: 1px solid rgba(216,201,168,0.45);
  padding: 0.65rem;
  border-radius: 2px;
  background: rgba(255,255,255,0.02);
}
.hero-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 1px;
}

.gem {
  position: absolute;
  width: 16px; height: 16px;
  background: var(--emerald-bright);
  transform: rotate(45deg);
  box-shadow: 0 0 0 4px rgba(31,111,92,0.18);
  z-index: 2;
}
.gem-tl { top: -8px; left: -8px; }
.gem-br { bottom: -8px; right: -8px; background: var(--champagne); box-shadow: 0 0 0 4px rgba(216,201,168,0.2); }

/* ---------- Pillars ---------- */
.pillars { background: var(--cream-2); border-bottom: 1px solid var(--line); }
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.pillar { padding: 0 clamp(1rem, 3vw, 2.6rem); }
.pillar:first-child { border-right: 1px solid var(--line); }
.pillar-tag {
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--emerald); font-weight: 600;
}
.pillar h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin: 0.6rem 0 0.8rem; color: var(--charcoal); }
.pillar p { color: var(--ink-soft); max-width: 42ch; }

/* ---------- About ---------- */
.about { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-photo {
  border: 1px solid var(--champagne-deep);
  padding: 0.55rem;
}
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about-copy h2 { font-size: clamp(2rem, 4.5vw, 3rem); color: var(--charcoal); margin-bottom: 1.3rem; }
.about-copy p { color: var(--ink-soft); margin-bottom: 1.05rem; max-width: 52ch; }
.about-meta {
  font-size: 0.76rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--champagne-deep) !important; font-weight: 600;
}

/* ---------- Services ---------- */
.services { background: var(--charcoal); color: var(--cream); padding: clamp(3.5rem, 7vw, 6rem) 0; }
.services .eyebrow { color: var(--champagne); }
.services h2 { font-size: clamp(2rem, 4.5vw, 3rem); color: var(--cream); margin-bottom: 2.8rem; }
.svc-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 920px;
  margin-inline: auto;
}
.svc-head {
  font-size: 1.45rem;
  color: var(--champagne);
  padding-bottom: 0.9rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid rgba(216,201,168,0.3);
}
.svc-list { list-style: none; }
.svc-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(244,239,230,0.1);
}
.svc-list span { font-weight: 500; font-size: 1rem; }
.svc-list em {
  font-style: normal;
  font-size: 0.82rem;
  color: rgba(244,239,230,0.6);
  text-align: right;
  flex-shrink: 0;
}
.svc-foot { text-align: center; margin-top: 2.6rem; color: rgba(244,239,230,0.75); }
.svc-foot a { color: var(--champagne); font-weight: 600; text-decoration: none; white-space: nowrap; }
.svc-foot a:hover { color: var(--emerald-bright); }

/* ---------- Gallery ---------- */
.gallery { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.gallery h2 { font-size: clamp(2rem, 4.5vw, 3rem); color: var(--charcoal); }
.gallery-sub { color: var(--ink-soft); margin: 0.6rem auto 2.6rem; max-width: 46ch; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.gallery-item {
  position: relative;
  border: 0;
  padding: 0;
  margin: 0;
  background: var(--cream-2);
  cursor: pointer;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 4 / 5;
  box-shadow: 0 1px 0 rgba(35,32,33,0.05);
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
  pointer-events: none;
}
.gallery-item::before {
  content: "";
  position: absolute;
  top: 8px; left: 8px;
  width: 10px; height: 10px;
  background: var(--emerald-bright);
  transform: rotate(45deg) scale(0);
  transition: transform 0.3s var(--ease);
  z-index: 3;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover::after { border-color: var(--champagne); }
.gallery-item:hover::before { transform: rotate(45deg) scale(1); }
.gallery-item:focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; }
.gallery-credit {
  margin-top: 2rem;
  font-size: 0.76rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--champagne-deep);
}

/* ---------- Contact ---------- */
.contact {
  background:
    radial-gradient(100% 90% at 50% -20%, rgba(31,111,92,0.4), transparent 60%),
    var(--charcoal);
  color: var(--cream);
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.contact-inner { position: relative; max-width: 640px; }
.contact-inner .gem-tl { top: -2rem; left: 50%; transform: translateX(-50%) rotate(45deg); }
.contact-inner .gem-br { display: none; }
.contact .eyebrow { color: var(--champagne); }
.contact h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--cream); margin-bottom: 1.2rem; }
.contact-lede { color: rgba(244,239,230,0.82); margin-bottom: 2rem; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; margin-bottom: 1.6rem; }
.contact-loc { font-size: 0.76rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--champagne-deep); }

/* ---------- Footer ---------- */
.site-footer { background: var(--cream-2); border-top: 1px solid var(--line); padding: 2.6rem 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; text-align: center; }
.site-footer .brand-name { color: var(--charcoal); }
.footer-meta, .footer-copy { font-size: 0.82rem; color: var(--ink-soft); }
.footer-meta a { color: var(--emerald); text-decoration: none; font-weight: 600; }
.footer-copy { font-size: 0.74rem; letter-spacing: 0.06em; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 18, 18, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(92vw, 720px);
  max-height: 88vh;
  object-fit: contain;
  border: 1px solid rgba(216,201,168,0.4);
}
.lightbox-close {
  position: absolute;
  top: 1.1rem; right: 1.4rem;
  font-size: 2.4rem;
  line-height: 1;
  background: none;
  border: 0;
  color: var(--champagne);
  cursor: pointer;
}
.lightbox-close:hover { color: var(--cream); }

/* ---------- Sticky DM bar (mobile) ---------- */
.dm-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  background: var(--charcoal);
  color: var(--cream);
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  padding: 0.95rem 1rem;
  border-top: 1px solid var(--champagne-deep);
}
.dm-bar-ig {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 1.4em; height: 1.4em;
  border-radius: 50%;
  background: var(--champagne);
  color: var(--charcoal);
  font-weight: 700;
  margin-right: 0.4rem;
}

/* ============ Responsive ============ */
@media (max-width: 880px) {
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 56px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.2rem 1.2rem;
    transform: translateY(-120%);
    transition: transform 0.32s var(--ease);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; width: 100%; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .nav-cta { border: 0; padding: 0.85rem 0; color: var(--emerald) !important; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-frame { order: -1; max-width: 380px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 380px; margin-inline: auto; }
  .svc-cols { grid-template-columns: 1fr; gap: 2.5rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .dm-bar { display: block; }
  body { padding-bottom: 3.4rem; }
  .site-footer { margin-bottom: 0; }
}

@media (max-width: 560px) {
  .pillars-grid { grid-template-columns: 1fr; gap: 2rem; }
  .pillar:first-child { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 2rem; }
  .brand-sub { display: none; }
}

/* ============ Motion ============ */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
