/* ===================================================
   ORIVA — Custom Styles
   =================================================== */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: #FBF8F3;
  color: #0B1220;
}

::selection { background: #C8A96A; color: #FBF8F3; }

/* ------- LOADER ------- */
#loader .loader-mark span {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: loaderIn 0.8s forwards;
}
#loader .loader-mark span:nth-child(1){ animation-delay: 0.05s; }
#loader .loader-mark span:nth-child(2){ animation-delay: 0.15s; }
#loader .loader-mark span:nth-child(3){ animation-delay: 0.25s; }
#loader .loader-mark span:nth-child(4){ animation-delay: 0.35s; }
#loader .loader-mark span:nth-child(5){ animation-delay: 0.45s; }
@keyframes loaderIn {
  to { opacity: 1; transform: translateY(0); }
}
.loader-fill {
  width: 0%;
  animation: loaderFill 1.4s 0.3s forwards cubic-bezier(0.65,0,0.35,1);
}
@keyframes loaderFill {
  to { width: 100%; }
}
#loader.hide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease, visibility 0.6s;
  visibility: hidden;
}

/* ------- CURSOR GLOW ------- */
#cursorGlow {
  background: radial-gradient(circle, rgba(200,169,106,0.35), transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, opacity 0.3s;
  mix-blend-mode: multiply;
}

/* ------- NAVBAR ------- */
#navbar.scrolled {
  background: rgba(251, 248, 243, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(11, 18, 32, 0.06);
}
#navbar.scrolled .py-5 { padding-top: 0.9rem; padding-bottom: 0.9rem; }

.nav-link {
  position: relative;
  transition: color 0.4s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%;
  height: 1px;
  background: #C8A96A;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s cubic-bezier(0.77,0,0.175,1);
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-link:hover { color: #0B1220; }

#mobileMenu.open { transform: translateX(0); }
#menuToggle.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
#menuToggle.open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}
#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.20s; }
#mobileMenu.open .mobile-link:nth-child(3){ transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(4){ transition-delay: 0.30s; }
#mobileMenu.open .mobile-link:nth-child(5){ transition-delay: 0.35s; }
#mobileMenu.open .mobile-link:nth-child(6){ transition-delay: 0.40s; }
#mobileMenu.open .mobile-link:nth-child(7){ transition-delay: 0.45s; }

/* ------- BUTTONS ------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: #0B1220;
  color: #FBF8F3;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.77,0,0.175,1);
  cursor: pointer;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #C8A96A;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.77,0,0.175,1);
  z-index: 0;
}
.btn-primary:hover::before { transform: translateY(0); }
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover { color: #0B1220; }
.btn-primary .arrow { transition: transform 0.4s; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border: 1px solid rgba(11,18,32,0.25);
  color: #0B1220;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all 0.4s;
  cursor: pointer;
  background: transparent;
}
.btn-ghost:hover {
  background: #0B1220;
  color: #FBF8F3;
  border-color: #0B1220;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  background: #25D366;
  color: white;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: all 0.4s;
}
.btn-whatsapp:hover {
  background: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

/* ------- HERO ------- */
.hero-bg img {
  animation: kenburns 20s ease-in-out infinite alternate;
}
@keyframes kenburns {
  0% { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.15) translate(-1%, -1%); }
}

.hero-kicker, .hero-title, .hero-sub, .hero-cta, .hero-stats {
  opacity: 0;
  transform: translateY(24px);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
}
.orb-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(200,169,106,0.25), transparent);
  top: -100px; right: -100px;
  animation: float 20s ease-in-out infinite;
}
.orb-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(74,127,167,0.2), transparent);
  bottom: -50px; left: 20%;
  animation: float 25s ease-in-out infinite reverse;
}
.orb-3 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(200,169,106,0.18), transparent);
  top: 40%; left: -80px;
  animation: float 30s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -40px) scale(1.1); }
}

.scroll-ind .scroll-dot {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 40%;
  background: #C8A96A;
  animation: scrollDot 2.2s infinite ease-in-out;
}
@keyframes scrollDot {
  0% { top: -40%; }
  100% { top: 100%; }
}

.side-link {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.3em;
  font-size: 10px;
  color: rgba(11,18,32,0.5);
  text-transform: uppercase;
  transition: color 0.4s, transform 0.4s;
}
.side-link:hover {
  color: #C8A96A;
  transform: rotate(180deg) translateY(-4px);
}

/* ------- MARQUEE ------- */
.marquee {
  animation: marquee 40s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ------- REVEAL ------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s cubic-bezier(0.22,1,0.36,1), transform 1.2s cubic-bezier(0.22,1,0.36,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger service cards when the grid reveals */
#services .service-card.reveal { transition-delay: 0s; }
#services .service-card.reveal:nth-child(2){ transition-delay: 0.08s; }
#services .service-card.reveal:nth-child(3){ transition-delay: 0.16s; }
#services .service-card.reveal:nth-child(4){ transition-delay: 0.24s; }
#services .service-card.reveal:nth-child(5){ transition-delay: 0.04s; }
#services .service-card.reveal:nth-child(6){ transition-delay: 0.12s; }
#services .service-card.reveal:nth-child(7){ transition-delay: 0.20s; }
#services .service-card.reveal:nth-child(8){ transition-delay: 0.28s; }

/* ------- ABOUT / WHY CARDS ------- */
.why-card {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(11,18,32,0.12);
  transition: border-color 0.4s;
}
.why-card:hover { border-top-color: #C8A96A; }
.why-icon {
  width: 40px; height: 40px;
  color: #8C7035;
  transition: transform 0.6s cubic-bezier(0.77,0,0.175,1);
}
.why-card:hover .why-icon { transform: rotate(-6deg) scale(1.1); color: #C8A96A; }

/* ------- SERVICES ------- */
.service-card {
  position: relative;
  padding: 40px 32px;
  background: #FFFFFF;
  border: 1px solid rgba(11,18,32,0.06);
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1), box-shadow 0.6s, border-color 0.6s;
  cursor: pointer;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #FBF8F3 0%, #F2ECE1 100%);
  transform: translateY(100%);
  transition: transform 0.7s cubic-bezier(0.77,0,0.175,1);
  z-index: 0;
}
.service-card:hover::before { transform: translateY(0); }
.service-card > * { position: relative; z-index: 1; }
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -20px rgba(11,18,32,0.15);
  border-color: rgba(200,169,106,0.4);
}
.service-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  color: #C8A96A;
  letter-spacing: 0.2em;
  margin-bottom: 24px;
}
.service-icon {
  width: 48px; height: 48px;
  color: #8C7035;
  margin-bottom: 24px;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.service-card:hover .service-icon {
  transform: rotate(-8deg) scale(1.1);
  color: #C8A96A;
}
.service-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 500;
  color: #0B1220;
  line-height: 1.15;
  margin-bottom: 14px;
}
.service-desc {
  font-size: 13px;
  color: rgba(11,18,32,0.6);
  line-height: 1.7;
  min-height: 62px;
}
.service-arrow {
  margin-top: 24px;
  font-size: 18px;
  color: #C8A96A;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.5s, transform 0.5s;
}
.service-card:hover .service-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ------- PARALLAX ------- */
.parallax-wrap { will-change: transform; }

/* ------- BEFORE / AFTER ------- */
.ba-slider {
  position: relative;
  cursor: ew-resize;
  user-select: none;
}
.ba-before {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
  pointer-events: none;
}
.ba-before img {
  width: 200%;
  max-width: none;
  height: 100%;
  object-fit: cover;
}
/* Before/After color grade — same photo, two states */
.ba-before-img {
  filter: sepia(0.55) saturate(0.75) brightness(0.88) contrast(0.9) hue-rotate(-6deg);
}
.ba-after-img {
  filter: brightness(1.06) contrast(1.05) saturate(1.08);
}
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 4px;
  margin-left: -2px;
  pointer-events: none;
}
.ba-line {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
}
.ba-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #C8A96A;
  color: #C8A96A;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  animation: knobPulse 2.4s infinite ease-in-out;
}
@keyframes knobPulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(0,0,0,0.2), 0 0 0 0 rgba(200,169,106,0.5); }
  50% { box-shadow: 0 10px 30px rgba(0,0,0,0.2), 0 0 0 14px rgba(200,169,106,0); }
}

.gal-tile {
  overflow: hidden;
  aspect-ratio: 1;
}
.gal-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.22,1,0.36,1), filter 0.6s;
  filter: grayscale(20%);
}
.gal-tile:hover img {
  transform: scale(1.12);
  filter: grayscale(0%);
}

/* ------- TESTIMONIALS ------- */
.testimonial-track-wrap {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.testimonial-track {
  display: flex;
  gap: 28px;
  animation: scrollT 50s linear infinite;
  width: max-content;
}
@keyframes scrollT {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.testimonial-track-wrap:hover .testimonial-track {
  animation-play-state: paused;
}
.tcard {
  width: 420px;
  flex-shrink: 0;
  padding: 40px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(200,169,106,0.15);
  backdrop-filter: blur(10px);
  transition: all 0.5s;
}
.tcard:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(200,169,106,0.4);
  transform: translateY(-4px);
}
.tstars {
  color: #C8A96A;
  letter-spacing: 4px;
  font-size: 14px;
  margin-bottom: 20px;
}
.tquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-style: italic;
  line-height: 1.55;
  color: #FBF8F3;
  margin-bottom: 32px;
}
.tauthor {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(200,169,106,0.2);
}
.tauthor img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(200,169,106,0.4);
}
.tname {
  font-size: 14px;
  color: #FBF8F3;
  letter-spacing: 0.05em;
}
.trole {
  font-size: 11px;
  color: rgba(251,248,243,0.5);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-top: 4px;
}

/* ------- BLOG ------- */
.blog-card {
  cursor: pointer;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}
.blog-card:hover { transform: translateY(-6px); }
.blog-img {
  overflow: hidden;
  margin-bottom: 24px;
  aspect-ratio: 4 / 3;
}
.blog-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.22,1,0.36,1);
}
.blog-card:hover .blog-img img { transform: scale(1.08); }
.blog-meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(11,18,32,0.5);
}
.blog-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  line-height: 1.2;
  color: #0B1220;
  margin: 14px 0;
  transition: color 0.4s;
}
.blog-card:hover .blog-title { color: #8C7035; }
.blog-excerpt {
  font-size: 14px;
  color: rgba(11,18,32,0.6);
  line-height: 1.7;
  margin-bottom: 20px;
}
.blog-link {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: #8C7035;
  position: relative;
  display: inline-block;
}
.blog-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 100%; height: 1px;
  background: #C8A96A;
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.77,0,0.175,1);
}
.blog-card:hover .blog-link::after { transform: scaleX(1); }

/* ------- APPOINTMENT FORM ------- */
.glass-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 10px 40px rgba(11,18,32,0.08);
}

.input-wrap {
  position: relative;
}
.input-wrap input,
.input-wrap textarea {
  width: 100%;
  padding: 18px 0 8px;
  font-size: 15px;
  color: #0B1220;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(11,18,32,0.2);
  outline: none;
  transition: border-color 0.4s;
  font-family: inherit;
  resize: none;
}
.input-wrap input:focus,
.input-wrap textarea:focus {
  border-color: #C8A96A;
}
.input-wrap label {
  position: absolute;
  left: 0;
  top: 18px;
  font-size: 14px;
  color: rgba(11,18,32,0.5);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 11px;
}
.input-wrap input:focus + label,
.input-wrap input:not(:placeholder-shown) + label,
.input-wrap input:valid:not([value=""]) + label,
.input-wrap textarea:focus + label,
.input-wrap textarea:not(:placeholder-shown) + label {
  top: 0;
  font-size: 10px;
  color: #8C7035;
  letter-spacing: 0.25em;
}
/* Always-raised label for date inputs (since they have implicit values) */
.input-wrap input[type="date"] + label,
.input-wrap input[type="date"]:focus + label {
  top: 0;
  font-size: 10px;
  color: #8C7035;
}
.input-wrap input[type="date"] {
  color: rgba(11,18,32,0.85);
}

.input-wrap input::placeholder,
.input-wrap textarea::placeholder { color: transparent; }

/* Success overlay */
#successOverlay.show {
  opacity: 1;
  pointer-events: auto;
}
.success-card {
  background: #FBF8F3;
  padding: 60px 50px;
  max-width: 440px;
  text-align: center;
  border-radius: 2px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.2);
  transform: scale(0.9);
  transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
#successOverlay.show .success-card { transform: scale(1); }

.success-check {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  color: #C8A96A;
}
.success-circle {
  stroke-dasharray: 170;
  stroke-dashoffset: 170;
  animation: drawCircle 0.8s forwards ease-out;
}
.success-tick {
  stroke-dasharray: 45;
  stroke-dashoffset: 45;
  animation: drawTick 0.5s 0.6s forwards ease-out;
}
@keyframes drawCircle {
  to { stroke-dashoffset: 0; }
}
@keyframes drawTick {
  to { stroke-dashoffset: 0; }
}

/* ------- CONTACT ------- */
.contact-item {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(11,18,32,0.1);
}
.contact-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: #8C7035;
  margin-bottom: 12px;
}
.contact-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  line-height: 1.5;
  color: #0B1220;
}
.social-dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(11,18,32,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(11,18,32,0.6);
  transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
}
.social-dot svg { width: 16px; height: 16px; }
.social-dot:hover {
  background: #0B1220;
  color: #C8A96A;
  border-color: #0B1220;
  transform: translateY(-2px);
}

.map-frame {
  filter: grayscale(80%) contrast(1.1);
  transition: filter 0.6s;
  overflow: hidden;
}
.map-frame:hover { filter: grayscale(0%) contrast(1); }

/* ------- ARROW ------- */
.arrow { display: inline-block; transition: transform 0.4s; }

/* ------- RESPONSIVE ADJUSTMENTS ------- */
@media (max-width: 640px) {
  .tcard { width: 300px; padding: 28px; }
  .tquote { font-size: 17px; }
  .service-card { padding: 32px 24px; }
  .service-desc { min-height: auto; }
}

/* ------- CREDIT BADGE ------- */
.credit-badge {
  display: flex;
  justify-content: center;
}

.credit-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.85rem;
}

.credit-link:hover {
  border-color: #d4af37;
  background: rgba(212, 175, 55, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -12px rgba(212, 175, 55, 0.4);
}

.credit-label {
  color: #999;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.credit-name {
  font-weight: 500;
  color: rgb(200 169 106);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.credit-link:hover .credit-name {
  color: #f4d97a;
}

/* ------- SCROLLBAR ------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #FBF8F3; }
::-webkit-scrollbar-thumb { background: rgba(11,18,32,0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #C8A96A; }
