/* ================================================================
   VIOLORA STUDIO — main stylesheet
   ================================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Evolventa";
  src: url("../fonts/evolventa-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Evolventa";
  src: url("../fonts/evolventa-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --bg:           #fdfbf8;
  --bg-alt:       #f6efe6;
  --bg-warm:      #efe0d2;
  --surface:      #ffffff;
  --border:       #e5d2c0;
  --border-soft:  #f0e4d6;

  --text:         #221915;
  --text-muted:   #4a2d23;
  --text-soft:    #7a5c4a;

  --accent:       #c78a54;
  --accent-dark:  #9f7254;
  --accent-soft:  #d9a976;
  --accent-hover: #b07a47;

  --radius-sm:    8px;
  --radius:       16px;
  --radius-lg:    28px;

  --shadow-sm:    0 1px 2px rgba(74, 45, 35, 0.05);
  --shadow:       0 8px 24px rgba(74, 45, 35, 0.08);
  --shadow-lg:    0 24px 48px rgba(74, 45, 35, 0.12);

  --container:    1200px;
  --gutter:       24px;

  --font-sans:    "Evolventa", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;

  --transition:   180ms ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
button { font: inherit; cursor: pointer; }
ul, ol { padding-left: 1.25em; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 500;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p  { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--border-soft); margin: 3rem 0; }

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--alt { background: var(--bg-alt); }
.section--warm { background: var(--bg-warm); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--text-muted); max-width: 680px; margin: 0 auto; font-size: 1.05rem; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--text); color: var(--bg); }
.btn--primary:hover { background: var(--accent-dark); color: var(--bg); }
.btn--accent  { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-hover); color: #fff; }
.btn--ghost   { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn--block { width: 100%; }

/* Header CTA — smaller, lighter weight, only background changes on hover */
.site-header .btn--accent {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  padding: 10px 20px;
  color: #fdfbf8;
}
.site-header .btn--accent:hover {
  background: var(--accent-hover);
  color: #fdfbf8;
  transform: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 251, 248, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.site-logo img { height: 40px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 400;
  position: relative;
  padding: 4px 0;
}
.main-nav a:hover { color: var(--accent-dark); }
.main-nav a.is-active { color: var(--accent-dark); }
.main-nav a.is-active::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
  transition: transform var(--transition);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border-soft);
    padding: 12px 24px 24px;
    box-shadow: var(--shadow);
    z-index: 49;
    /* Closed: fully hidden — opacity + visibility + zero pointer-events */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 220ms ease,
      transform 220ms ease,
      visibility 0s 220ms;
  }
  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition:
      opacity 220ms ease,
      transform 220ms ease,
      visibility 0s 0s;
  }
  .main-nav > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
  .main-nav > a:not(.btn):last-of-type { border-bottom: 0; }
  /* Book Now CTA in mobile menu — full-width pill at the bottom, no inherited link styles */
  .site-header .main-nav .btn--accent {
    margin-top: 16px;
    padding: 14px 24px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    align-self: stretch;
    text-align: center;
    border-bottom: 0;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(540px, 78vh, 760px);
  display: grid;
  align-items: center;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero__slide.is-active { opacity: 1; }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, rgba(34,25,21,.65), rgba(34,25,21,.35));
}
.hero__inner { padding: clamp(48px, 8vw, 96px) 0; max-width: 720px; }
.hero h1 { color: #fff; margin-bottom: 16px; }
.hero p { color: rgba(255,255,255,.92); font-size: 1.15rem; max-width: 560px; margin-bottom: 32px; }

@media (max-width: 600px) {
  .hero { min-height: clamp(520px, 88vh, 720px); }
  .hero .container { padding-left: 28px; padding-right: 28px; }
  .hero h1 { font-size: clamp(2rem, 8.5vw, 2.6rem); }
  .hero p { font-size: 1.02rem; }
  .hero__ctas .btn { padding: 13px 22px; font-size: 0.85rem; }
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .btn--primary { background: #fff; color: var(--text); }
.hero .btn--primary:hover { background: var(--accent-soft); color: var(--text); }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.hero .btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }

/* ---------- Trust badges ---------- */
.trust {
  background: var(--surface);
  border-bottom: 1px solid var(--border-soft);
  padding: 24px 0;
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px 32px;
  text-align: center;
}
.trust__item {
  font-size: 0.95rem;
  color: var(--text-muted);
}
.trust__item strong { display: block; color: var(--text); font-weight: 700; margin-bottom: 2px; }

/* ---------- Page header (non-home) ---------- */
.page-header {
  background: var(--bg-warm);
  padding: clamp(64px, 10vw, 112px) 0 clamp(48px, 8vw, 80px);
  text-align: center;
}
.page-header h1 { margin-bottom: 12px; }
.page-header p { color: var(--text-muted); max-width: 640px; margin: 0 auto; font-size: 1.1rem; }

/* ---------- Service cards ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card__img {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
}
.service-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.service-card h3 { margin-bottom: 6px; }
.service-card__price {
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.service-card__list { list-style: none; padding: 0; margin: 0 0 20px; }
.service-card__list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.95rem;
}
.service-card__list li:last-child { border-bottom: 0; }
.service-card__list span:last-child { color: var(--text-muted); white-space: nowrap; }
.service-card__cta { margin-top: auto; }

/* ---------- Service table (services page) ---------- */
.service-block { margin-bottom: 56px; }
.service-block h2 { margin-bottom: 8px; }
.service-block__intro { color: var(--text-muted); margin-bottom: 28px; }
.service-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-soft);
}
.service-table th, .service-table td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}
.service-table th {
  background: var(--bg-alt);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
}
.service-table tr:last-child td { border-bottom: 0; }
.service-table .price,
.service-table .duration { text-align: right; color: var(--text-muted); white-space: nowrap; }
.service-table td.price { color: var(--accent-dark); font-weight: 700; }
@media (max-width: 640px) {
  .service-table th, .service-table td { padding: 12px 14px; font-size: 0.92rem; }
}

/* ---------- Recent work / Gallery grid ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.work-grid__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 1/1;
  cursor: zoom-in;
  background: var(--bg-alt);
}
.work-grid__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.work-grid__item:hover img { transform: scale(1.04); }
.work-grid__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px 12px;
  background: linear-gradient(0deg, rgba(34,25,21,.78), transparent);
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity var(--transition);
}
.work-grid__item:hover .work-grid__caption { opacity: 1; }

/* ---------- Features grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.feature {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--border-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__img {
  aspect-ratio: 4/3;
  background-size: cover; background-position: center;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--text-muted); margin: 0; font-size: 0.97rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--border-soft);
  padding: 22px 0;
}
.faq details[open] summary { color: var(--accent-dark); }
.faq summary {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-sans);
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform var(--transition);
  flex: 0 0 auto;
}
.faq details[open] summary::after { content: "−"; }
.faq__answer { padding-top: 12px; color: var(--text-muted); }

/* ---------- Instagram block ---------- */
.instagram-block {
  text-align: center;
}
.instagram-block .ig-handle {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent-dark);
  display: inline-block;
  margin-bottom: 16px;
}
.instagram-block p { max-width: 640px; margin: 0 auto 28px; color: var(--text-muted); }

/* ---------- About page ---------- */
.about-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-hero__img {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  background-size: cover; background-position: center;
}
.about-hero h2 { margin-bottom: 20px; }
.about-hero p { color: var(--text-muted); }
@media (max-width: 800px) { .about-hero { grid-template-columns: 1fr; gap: 32px; } }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.value {
  padding: 32px 28px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
}
.value h3 { color: var(--accent-dark); margin-bottom: 10px; font-size: 1.2rem; }
.value p { margin: 0; color: var(--text-muted); }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }

.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-info__item {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px 28px;
  border: 1px solid var(--border-soft);
}
.contact-info__label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: 8px;
}
.contact-info__value {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--text);
}
.contact-info__value a { color: var(--text); }
.contact-info__value a:hover { color: var(--accent-dark); }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
  height: 100%;
  min-height: 420px;
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- Booking page ---------- */
.booking-wrap {
  max-width: 980px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.booking-wrap p.note { color: var(--text-muted); margin-bottom: 24px; }
@media (max-width: 600px) { .booking-wrap { padding: 16px; } }

/* ---------- Policy pages ---------- */
.policy {
  max-width: 820px;
  margin: 0 auto;
}
.policy h2 { margin-top: 2.4em; margin-bottom: 0.6em; }
.policy h3 { margin-top: 1.6em; margin-bottom: 0.4em; }
.policy p, .policy li { color: var(--text-muted); }
.policy ul { padding-left: 1.4em; }
.policy ul li { margin-bottom: 0.5em; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--text);
  color: #efe0d2;
  padding: 64px 0 24px;
}
.site-footer a { color: #efe0d2; }
.site-footer a:hover { color: var(--accent-soft); }
.site-footer h4 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 16px;
  font-weight: 500;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-brand p { color: #d7b99f; font-size: 0.95rem; max-width: 320px; margin: 0; }
.footer-brand .site-logo { color: #fff; margin-bottom: 14px; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 10px; font-size: 0.95rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #b68b6b;
}
.footer-bottom .socials { display: flex; gap: 16px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15,10,7,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: var(--radius-sm); }
.lightbox__close {
  position: absolute;
  top: 20px; right: 20px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lightbox__close:hover { background: rgba(255,255,255,0.2); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lightbox__nav:hover { background: rgba(255,255,255,0.2); }
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }
@media (max-width: 600px) {
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
}
