/* ============================================================
   DOMÉA — LUXURY INTERIOR STUDIO
   Custom styling beyond Tailwind utilities
   ============================================================ */

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { scroll-behavior: smooth; }
body { cursor: none; }
@media (max-width: 768px) { body { cursor: auto; } .cursor-dot, .cursor-ring { display: none !important; } }

::selection { background: #B8935A; color: #FAF7F2; }

/* ============================================================
   LOADER
   ============================================================ */
#loader {
  transition: opacity 1s cubic-bezier(0.7, 0, 0.3, 1), visibility 1s;
}
#loader.loaded {
  opacity: 0;
  visibility: hidden;
}
.loader-brand {
  transform: translateY(110%);
  animation: loaderReveal 1.4s cubic-bezier(0.7, 0, 0.3, 1) 0.2s forwards;
}
.loader-line {
  width: 0;
  animation: loaderLine 1.2s cubic-bezier(0.7, 0, 0.3, 1) 1.4s forwards;
}
.loader-sub {
  opacity: 0;
  animation: loaderFade 0.8s ease 2s forwards;
}
@keyframes loaderReveal {
  to { transform: translateY(0); }
}
@keyframes loaderLine {
  to { width: 180px; }
}
@keyframes loaderFade {
  to { opacity: 1; }
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}
.cursor-dot {
  width: 4px; height: 4px;
  background: #B8935A;
  border-radius: 50%;
  transition: transform 0.15s ease-out, opacity 0.3s;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(184, 147, 90, 0.5);
  border-radius: 50%;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), width 0.4s, height 0.4s, border-color 0.3s, opacity 0.3s;
}
.cursor-ring.hover {
  width: 60px; height: 60px;
  border-color: rgba(184, 147, 90, 0.9);
  background: rgba(184, 147, 90, 0.06);
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar { color: #FAF7F2; }
#navbar.scrolled {
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #1C1C1C;
  border-bottom: 1px solid rgba(28, 28, 28, 0.06);
}
#navbar.scrolled nav { padding-top: 1rem; padding-bottom: 1rem; }

.nav-link {
  position: relative;
  transition: color 0.4s;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.5s cubic-bezier(0.7, 0, 0.3, 1);
}
.nav-link:hover::after { width: 100%; }

#menuToggle.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); width: 26px; }
#menuToggle.open span:nth-child(2) { transform: rotate(-45deg) translate(4px, -4px); width: 26px; }

#mobileMenu.open { transform: translateX(0); }
.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.7, 0, 0.3, 1);
}
#mobileMenu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}
#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.22s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.29s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.36s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.43s; }
#mobileMenu.open .mobile-link:nth-child(6) { transition-delay: 0.50s; }
#mobileMenu.open .mobile-link:nth-child(7) { transition-delay: 0.57s; }

/* ============================================================
   HERO
   ============================================================ */
.hero-word > span {
  display: block;
  transform: translateY(110%);
}
.hero-title.revealed .hero-word:nth-child(1) > span { animation: heroRise 1.1s cubic-bezier(0.7, 0, 0.3, 1) 0.2s forwards; }
.hero-title.revealed .hero-word:nth-child(2) > span { animation: heroRise 1.1s cubic-bezier(0.7, 0, 0.3, 1) 0.35s forwards; }
.hero-title.revealed .hero-word:nth-child(3) > span { animation: heroRise 1.1s cubic-bezier(0.7, 0, 0.3, 1) 0.5s forwards; }
@keyframes heroRise { to { transform: translateY(0); } }

.hero-tag.revealed { animation: fadeInUp 0.9s ease 0.1s forwards; }
.hero-sub.revealed { animation: fadeInUp 1s ease 0.9s forwards; }
.hero-cta.revealed { animation: fadeInUp 1s ease 1.1s forwards; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 40%;
  background: #D4B684;
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-luxury {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  background: #FAF7F2;
  color: #1C1C1C;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all 0.5s cubic-bezier(0.7, 0, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.btn-luxury::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #1C1C1C;
  transform: translateY(101%);
  transition: transform 0.5s cubic-bezier(0.7, 0, 0.3, 1);
  z-index: 0;
}
.btn-luxury:hover::before { transform: translateY(0); }
.btn-luxury:hover { color: #FAF7F2; }
.btn-luxury > * { position: relative; z-index: 1; }

.btn-luxury-light {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  background: transparent;
  color: #FAF7F2;
  border: 1px solid #D4B684;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all 0.5s cubic-bezier(0.7, 0, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.btn-luxury-light::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #D4B684;
  transform: translateY(101%);
  transition: transform 0.5s cubic-bezier(0.7, 0, 0.3, 1);
  z-index: 0;
}
.btn-luxury-light:hover::before { transform: translateY(0); }
.btn-luxury-light:hover { color: #1C1C1C; }
.btn-luxury-light > * { position: relative; z-index: 1; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 1rem 1.75rem;
  border: 1px solid rgba(250, 247, 242, 0.35);
  color: #FAF7F2;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: all 0.5s cubic-bezier(0.7, 0, 0.3, 1);
}
.btn-ghost:hover {
  border-color: #D4B684;
  color: #D4B684;
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #8A7F6E;
  position: relative;
  padding-left: 40px;
  display: inline-block;
}
.section-eyebrow::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 28px; height: 1px;
  background: #B8935A;
  transform: translateY(-50%);
}
.section-eyebrow.text-gold-light { color: #D4B684; }
.section-eyebrow.text-gold-light::before { background: #D4B684; }

.section-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: #1C1C1C;
  letter-spacing: -0.01em;
}

.section-heading-light {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: #FAF7F2;
  letter-spacing: -0.01em;
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  animation: marqueeScroll 40s linear infinite;
  will-change: transform;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   PROJECTS
   ============================================================ */
.filter-btn {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.7rem 1.25rem;
  border: 1px solid rgba(28, 28, 28, 0.12);
  background: transparent;
  color: #2D2A26;
  transition: all 0.4s cubic-bezier(0.7, 0, 0.3, 1);
  cursor: none;
}
.filter-btn:hover { border-color: #B8935A; color: #B8935A; }
.filter-btn.active {
  background: #1C1C1C;
  color: #FAF7F2;
  border-color: #1C1C1C;
}

.project-card {
  opacity: 1;
  transition: opacity 0.5s, transform 0.5s;
}
.project-card.hidden-filter {
  display: none;
}

.project-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #E8DFD1;
}
.project-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.6s;
  transform: scale(1);
  filter: saturate(0.95);
}
.project-card:hover .project-img-wrap img {
  transform: scale(1.08);
  filter: saturate(1.1);
}
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 28, 28, 0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.5s;
}
.project-card:hover .project-overlay { opacity: 1; }

.project-meta {
  margin-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
}
.project-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: #1C1C1C;
  line-height: 1.2;
}
.project-desc {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #8A7F6E;
  font-weight: 300;
  line-height: 1.6;
  max-width: 380px;
}
.project-tag {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #B8935A;
  white-space: nowrap;
  padding-top: 0.5rem;
}

/* ============================================================
   SERVICES
   ============================================================ */
.service-card {
  position: relative;
  padding: 3rem 2rem;
  border-right: 1px solid rgba(28, 28, 28, 0.1);
  border-bottom: 1px solid rgba(28, 28, 28, 0.1);
  transition: background 0.5s;
  min-height: 320px;
}
.service-card:hover { background: rgba(250, 247, 242, 0.7); }
@media (min-width: 1024px) {
  .service-card:nth-child(3n) { border-right: none; }
}
@media (max-width: 1023px) and (min-width: 768px) {
  .service-card:nth-child(2n) { border-right: none; }
}
@media (max-width: 767px) {
  .service-card { border-right: none; }
}

.service-num {
  position: absolute;
  top: 2rem; right: 2rem;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: #B8935A;
}
.service-icon {
  width: 40px; height: 40px;
  color: #1C1C1C;
  margin-bottom: 2.5rem;
  transition: transform 0.6s cubic-bezier(0.7, 0, 0.3, 1), color 0.4s;
}
.service-card:hover .service-icon {
  transform: rotate(-6deg) scale(1.05);
  color: #B8935A;
}
.service-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  font-weight: 400;
  color: #1C1C1C;
  margin-bottom: 1rem;
}
.service-desc {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.7;
  color: #5A5248;
}

/* ============================================================
   PROCESS
   ============================================================ */
.process-step {
  padding: 3.5rem 2rem;
  border-right: 1px solid rgba(250, 247, 242, 0.15);
  border-bottom: 1px solid rgba(250, 247, 242, 0.15);
  position: relative;
  transition: background 0.5s;
}
.process-step:hover { background: rgba(250, 247, 242, 0.03); }
@media (min-width: 1024px) {
  .process-step:last-child { border-right: none; }
}
@media (max-width: 1023px) and (min-width: 768px) {
  .process-step:nth-child(2n) { border-right: none; }
}
@media (max-width: 767px) {
  .process-step { border-right: none; }
}

.process-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 300;
  color: #D4B684;
  display: block;
  margin-bottom: 1.5rem;
  line-height: 1;
}
.process-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  font-weight: 400;
  color: #FAF7F2;
  margin-bottom: 1rem;
}
.process-desc {
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(250, 247, 242, 0.65);
}

/* ============================================================
   EXPERIENCE (LUXURY FEATURES)
   ============================================================ */
.experience-item {
  padding-top: 2rem;
  border-top: 1px solid rgba(28, 28, 28, 0.12);
  transition: border-color 0.4s;
}
.experience-item:hover { border-top-color: #B8935A; }
.exp-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-style: italic;
  color: #B8935A;
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 1rem;
}
.experience-item p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.4;
  color: #1C1C1C;
}

/* ============================================================
   BEFORE / AFTER SLIDER
   ============================================================ */
.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  user-select: none;
  cursor: ew-resize;
  border: 1px solid rgba(28, 28, 28, 0.08);
}
.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}
.ba-before-wrap {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 50%;
  overflow: hidden;
  will-change: width;
}
.ba-before-wrap img {
  width: 100vw; max-width: calc(100% * (100 / 50));
  position: absolute;
  left: 0;
}
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: #FAF7F2;
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}
.ba-handle-line { height: 100%; width: 1px; background: #D4B684; position: absolute; left: 0.5px; }
.ba-handle-circle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 50px; height: 50px;
  background: #FAF7F2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1C1C1C;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.ba-label {
  position: absolute;
  bottom: 1.5rem;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #FAF7F2;
  padding: 0.5rem 1rem;
  background: rgba(28, 28, 28, 0.5);
  backdrop-filter: blur(8px);
}
.ba-label-before { left: 1.5rem; }
.ba-label-after { right: 1.5rem; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-card {
  padding: 3rem 2.5rem;
  background: #FAF7F2;
  border: 1px solid rgba(28, 28, 28, 0.06);
  transition: transform 0.6s cubic-bezier(0.7, 0, 0.3, 1), box-shadow 0.6s;
}
.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -20px rgba(28, 28, 28, 0.12);
}

/* ============================================================
   BLOG
   ============================================================ */
.blog-card {
  cursor: none;
  display: block;
}
.blog-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  margin-bottom: 1.75rem;
  background: #E8DFD1;
}
.blog-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.blog-card:hover .blog-img img { transform: scale(1.07); }
.blog-cat {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #B8935A;
  display: inline-block;
  margin-bottom: 1rem;
}
.blog-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: #1C1C1C;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  transition: color 0.4s;
}
.blog-card:hover .blog-title { color: #B8935A; }
.blog-excerpt {
  font-size: 0.92rem;
  font-weight: 300;
  color: #5A5248;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.blog-read {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #1C1C1C;
  position: relative;
  padding-bottom: 4px;
}
.blog-read::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform-origin: right;
  transform: scaleX(1);
  transition: transform 0.5s cubic-bezier(0.7, 0, 0.3, 1);
}
.blog-card:hover .blog-read::after {
  transform-origin: left;
  transform: scaleX(0);
  animation: underlineSlide 0.8s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}
@keyframes underlineSlide {
  0% { transform-origin: right; transform: scaleX(1); }
  50% { transform-origin: right; transform: scaleX(0); }
  51% { transform-origin: left; transform: scaleX(0); }
  100% { transform-origin: left; transform: scaleX(1); }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #1C1C1C;
  transition: gap 0.4s;
}
.link-arrow:hover { gap: 1.25rem; color: #B8935A; }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.form-field {
  position: relative;
  padding-top: 1rem;
}
.form-field label {
  position: absolute;
  top: 1.85rem; left: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.5);
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.7, 0, 0.3, 1);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(250, 247, 242, 0.2);
  padding: 0.85rem 0;
  color: #FAF7F2;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.4s;
  appearance: none;
  border-radius: 0;
}
.form-field textarea { resize: none; }
.form-field select option { color: #1C1C1C; background: #FAF7F2; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-bottom-color: #D4B684;
}
.form-field input::placeholder,
.form-field textarea::placeholder { opacity: 0; }

.form-field:has(input:focus) label,
.form-field:has(select:focus) label,
.form-field:has(textarea:focus) label,
.form-field:has(input:not(:placeholder-shown)) label,
.form-field:has(textarea:not(:placeholder-shown)) label,
.form-field.filled label {
  top: 0;
  font-size: 9px;
  color: #D4B684;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer-link {
  position: relative;
  transition: color 0.4s;
}
.footer-link:hover { color: #D4B684; }
.footer-link::before {
  content: '→';
  position: absolute;
  left: -18px; top: 0;
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.4s;
  color: #D4B684;
}
.footer-link:hover::before { opacity: 1; transform: translateX(0); }

.social-icon {
  width: 40px; height: 40px;
  border: 1px solid rgba(250, 247, 242, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s cubic-bezier(0.7, 0, 0.3, 1);
}
.social-icon svg { width: 18px; height: 18px; }
.social-icon:hover {
  border-color: #D4B684;
  color: #D4B684;
  transform: translateY(-3px);
}

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.7, 0, 0.3, 1), transform 1s cubic-bezier(0.7, 0, 0.3, 1);
}
.reveal-up.in-view { opacity: 1; transform: translateY(0); }

.reveal-img {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.4s cubic-bezier(0.7, 0, 0.3, 1);
}
.reveal-img.in-view { clip-path: inset(0 0 0 0); }

/* Parallax images on scroll (slight) */
.parallax-img { will-change: transform; }

/* ============================================================
   RESPONSIVE REFINEMENT
   ============================================================ */
@media (max-width: 767px) {
  .section-heading, .section-heading-light { font-size: 2.5rem; }
  .hero-title { font-size: 3.5rem !important; }
  .btn-luxury, .btn-luxury-light, .btn-ghost { padding: 0.9rem 1.4rem; }
}
