/* Devera Aesthetics — Editorial Studio */
:root {
  --ink: #14110f;
  --ink-soft: #2c2622;
  --cream: #f7f1ea;
  --cream-deep: #ebe3d9;
  --wine: #6b2d3c;
  --wine-bright: #8f3d52;
  --copper: #c17f59;
  --copper-soft: #d9a57a;
  --champagne: #f0e6dc;
  --success: #3d6b52;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 20px rgba(20, 17, 15, 0.06);
  --shadow-lg: 0 24px 60px rgba(20, 17, 15, 0.12);

  --font-display: "Fraunces", ui-serif, Georgia, serif;
  --font-ui: "Sora", system-ui, sans-serif;

  --h1: clamp(2.25rem, 4.5vw, 3.5rem);
  --h2: clamp(1.65rem, 2.8vw, 2.25rem);
  --h3: clamp(1.15rem, 1.6vw, 1.35rem);
  --body: 17px;
  --leading: 1.55;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink-soft);
  background: var(--cream);
  font-size: var(--body);
  line-height: var(--leading);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

a {
  color: var(--wine);
  text-decoration: none;
  transition: color 0.2s var(--ease-out);
}

a:hover {
  color: var(--copper);
}

a:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  opacity: 0.92;
  max-width: 38ch;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  background: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 241, 234, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(44, 38, 34, 0.08);
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--wine), var(--wine-bright));
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-sm);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
  justify-content: center;
}

.site-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  border-bottom-color: var(--copper-soft);
  color: var(--ink);
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 3rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 120%;
  background:
    radial-gradient(ellipse 80% 50% at 70% 0%, rgba(193, 127, 89, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 20% 20%, rgba(107, 45, 60, 0.12), transparent 50%),
    linear-gradient(180deg, var(--champagne), var(--cream));
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: var(--h1);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 12px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 14px;
}

.hero-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--wine), var(--copper));
  border-radius: 2px;
}

.corner-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 8px 14px;
  background: linear-gradient(135deg, var(--wine), var(--wine-bright));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  animation: badge-soft 4s ease-in-out infinite;
}

@keyframes badge-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.cta-form {
  margin-top: 1.5rem;
}

.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.cta-row-fields {
  align-items: flex-end;
}

.field-date {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: min(100%, 200px);
  flex: 0 1 auto;
}

.field-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.input-date {
  min-height: 48px;
  padding: 11px 14px;
  color-scheme: light;
}

.input {
  flex: 1;
  min-width: 200px;
  background: #fff;
  border: 1px solid rgba(44, 38, 34, 0.12);
  padding: 13px 16px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.input:hover {
  border-color: rgba(107, 45, 60, 0.35);
}

.input:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(193, 127, 89, 0.25);
}

.custom-select {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.custom-select-button {
  position: relative;
  text-align: left;
  padding-right: 44px;
  cursor: pointer;
  width: 100%;
}

.custom-select-button::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b2d3c' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 20px;
  opacity: 0.85;
}

.custom-select[aria-expanded="true"] .custom-select-button::after {
  transform: translateY(-50%) rotate(180deg);
}

.custom-select-list {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  margin-top: 8px;
  background: #fff;
  border: 1px solid rgba(44, 38, 34, 0.1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  max-height: 280px;
  overflow: auto;
}

.custom-option {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.92rem;
}

.custom-option:hover,
.custom-option[aria-selected="true"],
.custom-option.is-active {
  background: linear-gradient(180deg, #fffbf8, #fff5ef);
  outline: 1px solid rgba(193, 127, 89, 0.35);
}

.microcopy {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-top: 8px;
}

/* Hero visual — always polished */
.hero-visual {
  position: relative;
  min-height: 280px;
}

.hero-art {
  position: relative;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/5;
  max-width: 420px;
  margin-inline: auto 0;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(107, 45, 60, 0.92), rgba(44, 38, 34, 0.95)),
    radial-gradient(circle at 30% 20%, rgba(217, 165, 122, 0.45), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(193, 127, 89, 0.35), transparent 45%);
  box-shadow: var(--shadow-lg);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    transparent 40%,
    rgba(255, 255, 255, 0.07) 50%,
    transparent 60%
  );
  animation: shine 6s ease-in-out infinite;
}

@keyframes shine {
  0%,
  100% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(100%);
  }
}

.hero-art-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  color: #fff;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}

.hero-art--no-photo .hero-art-inner {
  opacity: 1;
}

.hero-art--has-photo .hero-art-inner {
  opacity: 0;
}

.hero-art-inner p {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

.hero-art-inner strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  margin-top: 6px;
  line-height: 1.2;
}

.hero-art-tagline {
  display: block;
  margin-top: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  opacity: 0.9;
}

.hero-figure {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 2;
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  opacity: 0.98;
}

.hero-art--no-photo .hero-figure img {
  display: none;
}

/* Section titles */
.section-head {
  max-width: 52ch;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: var(--h2);
  color: var(--ink);
  margin: 0 0 10px;
}

.section-head p {
  margin: 0;
  opacity: 0.85;
}

.service-group {
  margin-bottom: 2.75rem;
}

.service-group:last-child {
  margin-bottom: 0;
}

.service-group-nails {
  padding-top: 1.5rem;
  margin-top: 0.25rem;
  border-top: 1px solid rgba(44, 38, 34, 0.1);
}

.service-group-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: var(--ink);
  margin: 0 0 1.25rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid rgba(193, 127, 89, 0.4);
}

/* Grid & Cards */
.grid {
  display: grid;
  gap: 16px;
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: #fff;
  border: 1px solid rgba(44, 38, 34, 0.08);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card[data-booking-service] {
  cursor: pointer;
}

.card[data-booking-service]:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
}

.card-icon {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wine);
  margin-bottom: 8px;
}

.card h3,
.card h4 {
  font-family: var(--font-display);
  font-size: var(--h3);
  margin: 0 0 8px;
  color: var(--ink);
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.88;
}

/* Split band */
.band {
  background: linear-gradient(180deg, var(--champagne), var(--cream-deep));
  border-block: 1px solid rgba(44, 38, 34, 0.06);
}

/* Offer */
.offer-box {
  background: #fff;
  border: 1px solid rgba(107, 45, 60, 0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  max-width: 520px;
  margin-inline: auto;
}

.offer-text {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin: 0;
  color: var(--ink);
}

.offer-text strong {
  color: var(--wine);
  font-weight: 700;
}

.note {
  font-size: 0.88rem;
  opacity: 0.8;
  margin-top: 10px;
}

/* Gallery */
.gallery {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.tile {
  margin: 0;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--cream-deep), #fff);
  border: 1px solid rgba(44, 38, 34, 0.08);
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.4s var(--ease-out);
}

.tile:hover img {
  transform: scale(1.04);
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20, 17, 15, 0.45), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.tile:hover::after {
  opacity: 1;
}

/* Testimonials */
.testimonials {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.quote {
  margin: 0;
  padding: 1.35rem;
  background: #fff;
  border: 1px solid rgba(44, 38, 34, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-style: normal;
  position: relative;
}

.quote::before {
  content: "“";
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--copper-soft);
  opacity: 0.5;
  position: absolute;
  top: 8px;
  left: 12px;
}

.quote cite {
  display: block;
  margin-top: 12px;
  font-size: 0.88rem;
  font-style: normal;
  color: var(--wine);
}

/* About */
.about-inner {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .about-inner {
    grid-template-columns: 1fr minmax(200px, 380px);
  }
}

.about-figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* FAQ */
.faq details {
  background: #fff;
  border: 1px solid rgba(44, 38, 34, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.faq details + details {
  margin-top: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}

.faq details[open] summary {
  color: var(--wine);
}

/* Contact */
.contact a {
  color: var(--wine);
}

.contact-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.map-consent {
  margin-top: 12px;
  padding: 16px;
  border: 1px dashed rgba(107, 45, 60, 0.25);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.6);
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(44, 38, 34, 0.08);
  margin-top: 8px;
  background: #fff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0;
}

.footer-nav {
  display: flex;
  gap: 16px;
}

.legal {
  border-top: 1px solid rgba(44, 38, 34, 0.08);
  padding: 28px 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s var(--ease-out), color 0.2s var(--ease-out), border-color 0.2s,
    transform 0.15s var(--ease-out);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--wine), var(--wine-bright));
  color: #fff;
  box-shadow: 0 4px 16px rgba(107, 45, 60, 0.28);
}

.btn-primary:hover {
  filter: brightness(1.06);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border-color: rgba(107, 45, 60, 0.45);
  color: var(--wine);
}

.btn-secondary:hover {
  border-color: var(--copper);
  color: var(--ink);
}

.btn-text {
  padding: 8px 10px;
  background: transparent;
  border-color: transparent;
  color: var(--ink-soft);
}

.btn-text:hover {
  color: var(--wine);
}

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(247, 241, 234, 0), rgba(247, 241, 234, 0.97));
  border-top: 1px solid rgba(44, 38, 34, 0.08);
  backdrop-filter: blur(12px);
  z-index: 40;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 17, 15, 0.65);
  border: 0;
  cursor: pointer;
}

.lightbox-figure {
  position: relative;
  z-index: 101;
  max-width: min(92vw, 1100px);
  max-height: min(88vh, 920px);
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  border: 1px solid rgba(44, 38, 34, 0.1);
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 68vh;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius-sm);
}

.lightbox-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}

.lightbox-figure figcaption {
  font-size: 0.88rem;
  opacity: 0.85;
  margin-top: 10px;
  text-align: center;
}

h1,
h2,
h3,
h4 {
  line-height: 1.22;
}

h2 {
  font-family: var(--font-display);
  font-size: var(--h2);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
  }

  .hero-art {
    margin-inline: auto;
  }

  .header-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .site-nav {
    width: 100%;
    justify-content: center;
  }

  .brand {
    justify-content: center;
  }

  .header-actions {
    justify-content: center;
  }

  .cta-row-fields {
    flex-direction: column;
    align-items: stretch;
  }

  .field-date {
    min-width: 0;
    width: 100%;
  }
}
