/* Root color variables and basic resets */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background: #ede7db;
  color: #212B33;
}

/* Loader overlay and spinner */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: #212B33;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: opacity 0.5s ease;
}

#loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Header styling */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: #ede7db;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

header .top-bar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  font-size: 14px;
}

header .top-bar .cta {
  font-weight: 600;
}

header .top-bar .phone {
  color: #212B33;
  text-decoration: none;
  font-weight: 700;
}

header .logo {
  font-family: 'Georgia', serif;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  flex-grow: 1;
}

nav {
  position: relative;
}

nav .nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

nav ul li a {
  color: #212B33;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #a9764c;
}

/* Mobile navigation */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
  }
  nav .nav-toggle {
    display: block;
    margin-left: auto;
  }
  nav ul {
    flex-direction: column;
    gap: 10px;
    display: none;
  }
  nav ul.open {
    display: flex;
  }
}

/* Hero section styling */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  clip-path: inset(35% 35% 35% 35%);
  transition: clip-path 0.3s ease, object-position 0.3s ease;
  z-index: -1;
}

.hero-text-1 {
  position: absolute;
  top: 11vh;
  left: 50%;
  transform: translateX(-50%);
  font-size: 3rem;
  font-family: 'Georgia', serif;
  text-align: center;
  max-width: 80%;
}

.hero-down-arrow {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  cursor: pointer;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,20%,50%,80%,100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -10px); }
  60% { transform: translate(-50%, -5px); }
}

.hero-container-2 {
  position: relative;
  padding-top: 80vh;
  text-align: center;
}

.hero-text-2-1,
.hero-text-2-2 {
  font-family: 'Georgia', serif;
  font-size: 2rem;
  margin: 10px 0;
  opacity: 0;
}

.hero-button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  background: #212B33;
  color: #ede7db;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(1000px) scale(0.5);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Testimonials section */
.testimonial-section {
  background: #fff;
  padding: 80px 0;
}

.testimonial-slider {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.testimonial-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-slide {
  flex-shrink: 0;
  min-width: 70%;
  padding: 20px;
  opacity: 0.5;
  transition: all 0.5s ease;
}

.testimonial-slide.active {
  opacity: 1;
}

.testimonial-inner {
  background: #f7f7f7;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  min-height: 200px;
}

.testimonial-inner p {
  max-height: 90px;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin: 0 0 10px;
}

.testimonial-slide.expanded .testimonial-inner p {
  max-height: 1000px;
}

.view-all-link {
  color: #a9764c;
  cursor: pointer;
  text-decoration: underline;
}

.author {
  font-weight: 700;
  margin-bottom: 5px;
}

.badge {
  height: 24px;
  margin-left: 10px;
}

.testimonial-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
}

.testimonial-slider:hover .testimonial-arrow {
  opacity: 0.6;
}

.prev-arrow {
  left: 0;
}

.next-arrow {
  right: 0;
}

/* Lightbox */
.no-scroll {
  overflow: hidden;
}

.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 4px;
}

.lightbox-close-icon {
  position: absolute;
  top: -40px;
  right: -40px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
}

.lightbox-prev {
  left: -60px;
}

.lightbox-next {
  right: -60px;
}

/* Contact section */
.contact-section {
  background: #212B33;
  color: #ede7db;
  padding: 60px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.contact-section h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.contact-section a {
  color: #ede7db;
  text-decoration: none;
}

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

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav ul li a {
  color: #ede7db;
  text-decoration: none;
}

.social-info {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.social-info img {
  width: 40px;
  height: auto;
}

/* Footer */
footer {
  background: #212B33;
  color: #ede7db;
  text-align: center;
  padding: 20px 10px;
  font-size: 14px;
}

/* Scroll up arrow */
.scroll-up-arrow {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 40px;
  height: 40px;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
  z-index: 100;
}

.scroll-up-arrow.visible {
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 1300px) {
  .testimonial-slide {
    min-width: 90%;
  }
}

@media (max-width: 768px) {
  .hero-text-1 {
    font-size: 2rem;
  }
  .hero-text-2-1,
  .hero-text-2-2 {
    font-size: 1.5rem;
  }
  .testimonial-section {
    padding: 60px 20px;
  }
  .testimonial-slide {
    min-width: 100%;
  }
}
