/* === CSS Variables === */
:root {
  --bg: #0D0B0E;
  --bg-alt: #1A1520;
  --text: #FDF6EC;
  --text-muted: #B8A88A;
  --accent: #D4A853;
  --accent-hover: #E8C46E;
  --gold-gradient: linear-gradient(135deg, #D4A853 0%, #F5DEB3 40%, #D4A853 60%, #A07830 100%);
  --mirror-sheen: linear-gradient(120deg, rgba(212,168,83,0) 0%, rgba(212,168,83,0.08) 50%, rgba(212,168,83,0) 100%);
  --font-display: 'Playfair Display', serif;
  --font-body: 'Raleway', sans-serif;
  --font-accent: 'Cormorant Garamond', serif;
  --border-deco: 1px solid rgba(212,168,83,0.25);
  --glow-gold: 0 0 30px rgba(212,168,83,0.15);
  --glow-color: rgba(212,168,83,0.03);
  --transition-page: 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, var(--glow-color) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* === Art Deco Frame === */
.deco-frame {
  position: fixed;
  inset: 3vw;
  pointer-events: none;
  z-index: 10;
}

.deco-frame-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.deco-frame-corner {
  position: absolute;
  width: 36px;
  height: 36px;
  pointer-events: none;
}

.deco-frame-corner::before,
.deco-frame-corner::after {
  content: '';
  position: absolute;
}

.deco-frame-corner::before {
  width: 100%;
  height: 100%;
  border: 1.5px solid var(--accent);
  opacity: 0.6;
}

.deco-frame-corner::after {
  width: 8px;
  height: 8px;
  background: var(--accent);
  transform: rotate(45deg);
}

.deco-corner-tl {
  top: -2px;
  left: -2px;
}
.deco-corner-tl::before {
  border-right: none;
  border-bottom: none;
}
.deco-corner-tl::after {
  bottom: -4px;
  right: -4px;
}

.deco-corner-tr {
  top: -2px;
  right: -2px;
}
.deco-corner-tr::before {
  border-left: none;
  border-bottom: none;
}
.deco-corner-tr::after {
  bottom: -4px;
  left: -4px;
}

.deco-corner-bl {
  bottom: -2px;
  left: -2px;
}
.deco-corner-bl::before {
  border-right: none;
  border-top: none;
}
.deco-corner-bl::after {
  top: -4px;
  right: -4px;
}

.deco-corner-br {
  bottom: -2px;
  right: -2px;
}
.deco-corner-br::before {
  border-left: none;
  border-top: none;
}
.deco-corner-br::after {
  top: -4px;
  left: -4px;
}

/* === Navigation === */
.site-nav {
  position: fixed;
  top: 3vw;
  left: 3vw;
  right: 3vw;
  z-index: 100;
  padding: 0.8rem 1.5rem;
  background: rgba(13,11,14,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.brand-icon {
  color: var(--accent);
  font-size: 0.75rem;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  color: var(--text);
}

.brand-sub {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.nav-tabs {
  display: flex;
  gap: 0.3rem;
}

.nav-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.35s ease;
}

.nav-tab:hover,
.nav-tab.active {
  color: var(--accent);
}

.tab-jewel {
  display: block;
  width: 6px;
  height: 6px;
  margin-bottom: 4px;
  background: var(--accent);
  transform: rotate(45deg) scale(0);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-tab.active .tab-jewel {
  transform: rotate(45deg) scale(1);
}

.nav-deco-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
}

/* === Footer === */
.site-footer {
  position: fixed;
  bottom: 3vw;
  left: 3vw;
  right: 3vw;
  z-index: 100;
  padding: 0.6rem 1.5rem;
  background: rgba(13,11,14,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.footer-deco-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
  margin-bottom: 0.5rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.75rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
}

.footer-address {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.footer-center {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
}

.footer-link {
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer-link:hover {
  color: var(--accent);
}

.footer-divider {
  color: var(--accent);
  font-size: 0.5rem;
}

.footer-right {
  display: flex;
}

.footer-whatsapp {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.35rem 0.8rem;
  transition: all 0.3s ease;
}

.footer-whatsapp:hover {
  background: var(--accent);
  color: var(--bg);
}

/* === Page Content === */
.page-content {
  position: relative;
  z-index: 1;
  padding: calc(3vw + 60px) calc(3vw + 20px) calc(3vw + 50px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* === Common Elements === */
.eyebrow {
  display: block;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 0.8rem;
}

.diamond-divider {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.divider-line {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.divider-diamond {
  color: var(--accent);
  font-size: 0.6rem;
}

.gold-line {
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 1rem 0;
}

/* === CTA Button === */
.cta-button {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  padding: 0.8rem 2rem;
  background: transparent;
  cursor: pointer;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
  transition: background 0.3s ease, color 0.3s ease;
  position: relative;
}

.cta-button:hover {
  background: var(--gold-gradient);
  color: var(--bg);
}

/* === The Mirror (Index) === */
.mirror-layout {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.mirror-text {
  flex: 0 0 55%;
}

.hero-title {
  margin-bottom: 0.6rem;
}

.title-line {
  display: block;
  font-family: var(--font-display);
  line-height: 1.05;
}

.title-bold {
  font-weight: 900;
  font-size: clamp(3rem, 6vw, 5rem);
  color: var(--text);
}

.title-light {
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  letter-spacing: 0.3em;
  color: var(--text);
}

.hero-tagline {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.hero-desc {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 380px;
  margin-bottom: 1.8rem;
}

.mirror-image {
  flex: 0 0 45%;
}

.deco-arch {
  position: relative;
  overflow: hidden;
  clip-path: polygon(15% 0, 85% 0, 95% 5%, 100% 15%, 100% 100%, 0 100%, 0 15%, 5% 5%);
  border: var(--border-deco);
}

.deco-arch img {
  width: 100%;
  height: auto;
  display: block;
  will-change: transform;
}

/* Character reveal animation */
.char-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  animation: charIn 0.4s forwards;
}

@keyframes charIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === The Art (Services) === */
.the-art-content {
  align-items: center;
  text-align: center;
}

.art-header {
  margin-bottom: 1.5rem;
}

.art-header .diamond-divider {
  justify-content: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  max-width: 900px;
  width: 100%;
}

.service-card {
  position: relative;
  background: rgba(26,21,32,0.8);
  border: var(--border-deco);
  overflow: hidden;
  transition: transform 0.35s ease-out, box-shadow 0.35s ease-out;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--glow-gold);
}

.card-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--accent);
  transform: rotate(45deg);
  z-index: 2;
  transition: transform 0.35s ease-out;
  pointer-events: none;
}

.card-corner-tl {
  top: -6px;
  left: -6px;
}

.card-corner-br {
  bottom: -6px;
  right: -6px;
}

.service-card:hover .card-corner {
  transform: rotate(45deg) scale(1.2);
}

.card-image {
  position: relative;
  height: 0;
  padding-bottom: 55%;
  overflow: hidden;
}

.card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease-out;
}

.service-card:hover .card-image img {
  transform: scale(1.05);
}

.card-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(26,21,32,0.9), transparent);
  pointer-events: none;
}

.card-body {
  padding: 1rem 1.2rem;
  text-align: left;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.card-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* === The Atelier (About) === */
.atelier-layout {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.atelier-image-wrap {
  flex: 0 0 45%;
}

.deco-image-frame {
  position: relative;
  border: var(--border-deco);
  padding: 8px;
}

.frame-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  z-index: 2;
}

.frame-dot-tl { top: -3px; left: -3px; }
.frame-dot-tr { top: -3px; right: -3px; }
.frame-dot-bl { bottom: -3px; left: -3px; }
.frame-dot-br { bottom: -3px; right: -3px; }

.atelier-image-mask {
  overflow: hidden;
  clip-path: polygon(10% 0, 90% 0, 95% 3%, 100% 10%, 100% 100%, 0 100%, 0 10%, 5% 3%);
}

.atelier-image-mask img {
  width: 100%;
  height: auto;
  display: block;
}

.atelier-text {
  flex: 0 0 55%;
}

.atelier-para {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.atelier-quote {
  position: relative;
  border-left: 2px solid var(--accent);
  padding: 1rem 1.5rem;
  margin-top: 1.2rem;
}

.atelier-quote p {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.6;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.3;
  line-height: 0;
  position: absolute;
}

.quote-mark-open {
  top: -0.3rem;
  left: -0.5rem;
}

.quote-mark-close {
  bottom: -1.5rem;
  right: 0.5rem;
}

/* === The Invitation (Contact) === */
.the-invitation-content {
  align-items: center;
  text-align: center;
}

.invitation-header {
  margin-bottom: 1.5rem;
}

.invitation-header .diamond-divider {
  justify-content: center;
}

.invitation-intro {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

.invitation-columns {
  display: flex;
  gap: 2.5rem;
  max-width: 900px;
  width: 100%;
  text-align: left;
}

.invitation-form-wrap {
  flex: 1;
}

.invitation-info-wrap {
  flex: 1;
}

/* === Contact Form === */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-group label {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--accent);
}

.form-group input,
.form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(212,168,83,0.3);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.5rem 0;
  outline: none;
  transition: border-color 0.3s;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--accent);
}

/* === Map === */
.map-frame {
  margin-bottom: 1rem;
}

.map-mask {
  overflow: hidden;
  height: 180px;
}

.map-mask iframe {
  width: 100%;
  height: 100%;
  filter: sepia(0.3) saturate(0.8) brightness(0.8);
}

/* === Contact Details === */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-detail-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-detail-row a {
  color: var(--text-muted);
  transition: color 0.3s;
}

.contact-detail-row a:hover {
  color: var(--accent);
}

.contact-icon {
  color: var(--accent);
  font-size: 1rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

/* === WhatsApp FAB === */
.whatsapp-fab {
  position: fixed;
  bottom: calc(3vw + 60px);
  right: calc(3vw + 10px);
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(37,211,102,0.3);
  animation: whatsappPulse 2.5s infinite ease-in-out;
}

@keyframes whatsappPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(212,168,83,0);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 25px rgba(212,168,83,0.4);
  }
}

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

  .char-reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .whatsapp-fab {
    animation: none;
  }
}

/* === Mobile Responsive === */
@media (max-width: 768px) {
  .deco-frame {
    inset: 1.5vw;
  }

  .deco-frame-corner {
    width: 20px;
    height: 20px;
  }

  .deco-frame-corner::after {
    width: 5px;
    height: 5px;
  }

  .site-nav {
    top: 1.5vw;
    left: 1.5vw;
    right: 1.5vw;
    padding: 0.5rem 0.8rem;
  }

  .site-footer {
    bottom: 1.5vw;
    left: 1.5vw;
    right: 1.5vw;
    padding: 0.4rem 0.8rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.3rem;
    text-align: center;
  }

  .footer-left {
    align-items: center;
  }

  .footer-center {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-tabs {
    gap: 0;
  }

  .tab-label {
    display: none;
  }

  .nav-tab {
    padding: 0.4rem 0.6rem;
    font-size: 0;
  }

  .nav-tab::after {
    font-size: 0.85rem;
    display: block;
  }

  .nav-tab[data-page="mirror"]::after { content: '\2666'; }
  .nav-tab[data-page="art"]::after { content: '\2605'; }
  .nav-tab[data-page="atelier"]::after { content: '\2302'; }
  .nav-tab[data-page="invitation"]::after { content: '\2709'; }

  .page-content {
    padding: calc(1.5vw + 55px) calc(1.5vw + 12px) calc(1.5vw + 70px);
  }

  /* Mirror mobile */
  .mirror-layout {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .mirror-text {
    flex: 1;
    order: 1;
  }

  .mirror-image {
    flex: 1;
    order: 2;
    max-height: 35vh;
    overflow: hidden;
  }

  .hero-desc {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .title-bold {
    font-size: clamp(2.2rem, 10vw, 3rem);
  }

  .title-light {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  /* Services mobile */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-height: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    display: flex;
    padding-bottom: 0.5rem;
  }

  .service-card {
    min-width: 75vw;
    scroll-snap-align: start;
    flex-shrink: 0;
  }

  /* Atelier mobile */
  .atelier-layout {
    flex-direction: column;
    gap: 1.5rem;
  }

  .atelier-image-wrap {
    flex: 1;
    max-height: 35vh;
    overflow: hidden;
  }

  .atelier-text {
    flex: 1;
  }

  /* Invitation mobile */
  .invitation-columns {
    flex-direction: column;
    gap: 1.5rem;
  }

  .map-mask {
    height: 150px;
  }

  .whatsapp-fab {
    width: 48px;
    height: 48px;
    bottom: calc(1.5vw + 75px);
    right: calc(1.5vw + 5px);
  }

  .whatsapp-fab svg {
    width: 22px;
    height: 22px;
  }
}

/* === Touch device: hide custom cursors === */
@media (hover: none) and (pointer: coarse) {
  .whatsapp-fab {
    animation: none;
    transform: none;
  }
}
