.glass {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, .65)
}

.gradient {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(107, 110, 184, .15), transparent 60%),
    radial-gradient(1200px 600px at 90% 110%, rgba(54, 56, 97, .15), transparent 60%);
}

:root {
  --gold-400: #EBC252;
  --gold-500: #D4AF37;
  --gold-600: #B8902B;
  --slate-900: #0f172a;
}

 /* carousel */
.carousel {
  background:
    radial-gradient(
      1200px 600px at 50% -10%,
      rgba(212, 55, 55, 0.12),
      transparent 60%
    ),
    #fafafa;
  
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 16px;
}

/* Wrapper */
.carousel-wrapper {
  position: relative;
  overflow: clip;
  height: 100%;
  width: 100%;
  display: block;
  padding-bottom: 1rem;
}

/* Track */
.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

/* Images */
.carousel-track img {
  width: 100%;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 16px;
}

/* Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(
    120% 120% at 30% 20%,
    #EBC252,
    #D4AF37 60%,
    #B8902B
  );
  color: #0f172a;
  border: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  border-radius: 999px;
  font-size: 1.5rem;
  z-index: 10;
  opacity: 0.85;
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.carousel-btn:hover {
  opacity: 1;
}

.carousel-btn.prev {
  left: 12px;
}

.carousel-btn.next {
  right: 12px;
}

/* Dots */
.carousel-nav {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
  gap: 0.6rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(15, 23, 42, 0.25); /* slate */
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.carousel-dot:hover {
  transform: scale(1.15);
}

.carousel-dot.active {
  background-color: #D4AF37;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.25);
}

/* overlay */
.carousel-slide {
  position: relative;
  flex-shrink: 0;
  width: 100%;
}

.carousel-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.5rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.15),
    transparent
  );
   border-radius: 16px;
}

.carousel-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

.carousel-subtitle {
  margin-top: 0.5rem;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
}


/* Back-to-top button */
.to-top {
  position: fixed;
  right: clamp(12px, 2vw, 20px);
  bottom: clamp(12px, 2vw, 20px);
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: var(--slate-900);
  background: radial-gradient(120% 120% at 30% 20%, var(--gold-400), var(--gold-500) 60%, var(--gold-600));
  box-shadow: 0 10px 25px rgba(0, 0, 0, .18), inset 0 0 0 1px rgba(255, 255, 255, .25);
  display: grid;
  place-items: center;
  overflow: visible;
  opacity: 0;
  transform: translateY(20px) scale(.9);
  visibility: hidden;
  transition: opacity .3s, transform .3s, visibility .3s;
  z-index: 50
}

.to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible
}

.to-top-ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg)
}

.ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, .25);
  stroke-width: 3
}

.ring-progress {
  fill: none;
  stroke: rgba(255, 255, 255, .85);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 125.66;
  stroke-dashoffset: 125.66;
  transition: stroke-dashoffset .15s linear
}

.to-top-arrow {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: #111827;
  background: rgba(255, 255, 255, .78);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06)
}

.to-top:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .35)
}

html, body {
  overflow-y: auto !important;
  height: auto !important;
}

@media (prefers-reduced-motion:reduce) {

  .to-top,
  .ring-progress {
    transition: none !important
  }
}

.hide-scrollbar::-webkit-scrollbar {
  display: none
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none
}

.heritage-card:hover {
  background: linear-gradient(135deg, rgba(255, 215, 0, .12), #fff);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, .2);
  border-color: rgba(212, 175, 55, .5);
  transition: all .25s ease
}
.email-link {
  color: #2563eb; /* Tailwind blue-600 */
  text-decoration: underline;
}

.email-link:hover {
  color: #1d4ed8; /* blue-700 */
}


/* Services */
.service-section {
  padding: 4rem 0.1rem;
}
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: auto;
  margin: 0 auto;
  align-items: center; /* KEY: matches text height to image */
}

.service-row.reverse {
  direction: rtl;
}

.service-row.reverse > * {
  direction: ltr;
}
.service-image{
  padding: 1rem;
}
.service-image img {
  width: 100%;
  height: auto;
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.service-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #334155; /* slate-700 */
  max-width: auto;
  padding-left: 1rem;
}

.service-content li {
  font-size: 1rem;
  line-height: 1.7;
  color: #334155; /* slate-700 */
  max-width: auto;
  padding-left: 1.6rem;
}

.service-intro {
  font-weight: 500;
  color: #334155;
}

.service-tagline {
  margin-top: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
/* Mobile collapse behavior */
@media (max-width: 768px) {
  .service-text {
    max-height: 9.5rem; /* ~4–5 lines */
    overflow: hidden;
    position: relative;
    transition: max-height 0.35s ease;
  }

  .service-text::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3rem;
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0),
      #ffffff
    );
  }

  .service-text.is-expanded {
    max-height: 1000px;
  }

  .service-text.is-expanded::after {
    display: none;
  }

  .read-more {
    display: inline-block;
    margin-top: 0.75rem;
    font-weight: 500;
    color: #b8902b; /* gold-600 */
    text-decoration: underline;
    cursor: pointer;
    pointer-events: auto;
  }
}

/* Desktop: always fully visible */
@media (min-width: 769px) {
  .service-text {
    max-height: none !important;
  }

  .read-more {
    display: none;    
    pointer-events: auto;

  }
}
@media (max-width: 768px) {
  .service-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-row.reverse {
    direction: ltr;
  }

  .service-content p {
    max-width: 100%;
  }
}

@keyframes glowPulse {
  0% {
    opacity: .4
  }

  50% {
    opacity: .8
  }

  100% {
    opacity: .4
  }
}

.animate-glow {
  animation: glowPulse 4s ease-in-out infinite
}

/* Typewriter -> mobile safe: disable on <640px to avoid overflow */
.quote-text {
  display: inline-block;
  overflow: hidden;
  border-right: 2px solid rgba(212, 175, 55, .75);
  white-space: nowrap;
  width: 0ch;
  animation: typing 6s steps(78, end) forwards, blink 1s step-end infinite
}

@keyframes typing {
  from {
    width: 0ch
  }

  to {
    width: 78ch
  }
}

@keyframes blink {

  0%,
  100% {
    border-color: transparent
  }

  50% {
    border-color: rgba(212, 175, 55, .85)
  }
}

@media (max-width:640px) {
  .quote-text {
    white-space: normal;
    width: auto;
    border-right: none;
    animation: none
  }
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: #fff;
  transition: opacity .5s ease, visibility .5s ease
}

.preloader::before {
  content: "";
  position: absolute;
  width: 60vmin;
  height: 60vmin;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, .12), transparent 60%);
  filter: blur(10px)
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden
}

html.preloader-lock,
body.preloader-lock {
  overflow: hidden
}
