/* --- Hero Section --- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--bg-color);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 80%;
  max-width: 1000px;
}

.hero-text {
  font-family: var(--font-body);
  font-size: 4.5rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -2px;
  color: #ffffff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: opacity 0.5s ease-in-out;
}

/* --- Discover Quote --- */
.discover-quote {
  padding: 45px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-color) 0%, rgba(30,30,30,0.5) 50%, var(--bg-color) 100%);
}

.discover-quote h2 {
  font-size: 3rem;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-primary);
}

/* --- Achievements Strip --- */
.achievements {
  padding: 35px 0;
  background: var(--bg-color);
  color: var(--bg-secondary);
  text-align: center;
}

.achievements .container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 30px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.4s ease;
}

.stat-icon-wrapper {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--bg-secondary);
  opacity: 0.75;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.5s ease;
}

.stat-item:hover .stat-icon-wrapper {
  transform: scale(1.15) translateY(-6px);
  opacity: 1;
}

.stat-item h3 {
  font-size: 3.5rem;
  margin-bottom: 5px;
  line-height: 1.1;
}

.stat-item p {
  text-transform: uppercase;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* --- Case Studies --- */
.case-studies {
  padding: 45px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 45px;
}

.section-header h2 {
  font-size: 3rem;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.case-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(17, 48, 37, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.case-card img {
  width: 100%;
  height: 500px;
  object-fit: contain;
  background-color: var(--bg-secondary);
  transition: transform 0.6s ease;
}

.case-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: var(--bg-secondary);
  color: var(--bg-color);
  transform: translateY(0);
  transition: transform 0.4s ease;
}

.case-overlay h3 {
  font-family: var(--font-body);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--bg-color);
  letter-spacing: -1px;
}

.case-overlay p {
  color: var(--bg-color);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
  margin-bottom: 0;
}

.case-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(17, 48, 37, 0.25);
}

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

/* --- Boutique Logo Grid (Static) --- */
.clients-showcase-section {
  padding: 35px 0;
  background-color: var(--bg-secondary);
}

.boutique-logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.brand-box {
  background: #ffffff;
  aspect-ratio: 2.5/1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(17, 48, 37, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(17, 48, 37, 0.02);
  padding: 20px;
}

.brand-box svg {
  width: 100%;
  height: auto;
  max-width: 130px;
  color: var(--bg-color);
  opacity: 0.4;
  transition: all 0.4s ease;
}

.brand-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 70px rgba(17, 48, 37, 0.12);
  background-color: var(--bg-color);
  border-color: var(--bg-color);
}

.brand-box:hover svg {
  color: #ffffff;
  opacity: 1;
  transform: scale(1.05);
}

@media (max-width: 992px) {
  .boutique-logo-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .boutique-logo-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  .brand-box { padding: 15px; }
}

/* --- Brand Promise Section --- */
.brand-promise-section {
  padding: 75px 0;
  background-color: var(--bg-color);
  color: var(--bg-secondary);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.promise-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
}

.promise-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 15rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  text-transform: uppercase;
  letter-spacing: 20px;
  z-index: -1;
  pointer-events: none;
  white-space: nowrap;
}

.promise-title {
  font-size: 4rem;
  line-height: 1.1;
  font-weight: 600;
  margin-bottom: 50px;
  letter-spacing: -2px;
  text-transform: none;
}

.promise-title .highlight-italic {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  display: block;
  margin-top: 15px;
  font-size: 4.5rem;
  color: #ffffff;
}

.promise-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

@media (max-width: 992px) {
  .promise-title { font-size: 2.8rem; }
  .promise-title .highlight-italic { font-size: 3rem; }
  .promise-watermark { font-size: 8rem; letter-spacing: 10px; }
  .promise-actions { flex-direction: column; align-items: center; }
}
.services-preview {
  padding: 45px 0;
  background: var(--bg-secondary);
  color: var(--bg-color);
}

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.service-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-color);
  color: var(--bg-secondary);
  border: 1px solid rgba(230, 221, 212, 0.15);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.service-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.service-content-wrapper {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-item h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--bg-secondary);
  font-family: var(--font-subheading);
}

.service-item p {
  color: var(--bg-secondary);
  opacity: 0.8;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 25px;
  flex: 1;
}

.service-item .btn {
  align-self: flex-start;
  padding: 10px 20px;
  font-size: 0.8rem;
  border-color: rgba(255, 255, 255, 0.2);
}

.service-item:hover {
  transform: translateY(-10px);
  background: var(--bg-color);
  border-color: var(--bg-color);
  box-shadow: 0 15px 30px rgba(17, 48, 37, 0.2);
}

/* --- Insta Grid --- */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-bottom: 30px; /* Reduced bottom padding */
}

.insta-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 1/1;
}

.insta-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), 
              filter 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.insta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 48, 37, 0.85); /* Deep RHOE green overlay */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  color: var(--text-primary);
  z-index: 2;
}

.insta-overlay-icon {
  width: 28px;
  height: 28px;
  color: var(--text-primary);
  transform: translateY(10px);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.insta-overlay span {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transform: translateY(10px);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) 0.05s;
}

/* Hover States */
.insta-item:hover img {
  filter: grayscale(0%) scale(1.08);
}

.insta-item:hover .insta-overlay {
  opacity: 1;
}

.insta-item:hover .insta-overlay-icon,
.insta-item:hover .insta-overlay span {
  transform: translateY(0);
}

.insta-follow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  background: transparent;
  color: var(--text-primary); /* Beige text for green background visibility */
  border: 1.5px solid var(--text-primary); /* Beige border */
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  margin-top: 5px;
}

.insta-follow-btn:hover {
  background: var(--text-primary); /* Fill with beige on hover */
  color: var(--bg-color) !important; /* Dark green text */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.insta-overlay .overlay-username {
  font-size: 0.8rem !important;
  opacity: 0.8;
  font-weight: 500 !important;
  text-transform: lowercase !important;
  letter-spacing: 0.5px !important;
  margin-top: -4px;
}

/* --- Clients Logo Slider --- */
.clients-section {
  padding: 60px 0;
  background: var(--bg-secondary);
  color: var(--bg-color);
  overflow: hidden;
}

.logo-slider-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  margin-top: 40px;
}

.logo-slider-container {
  overflow: hidden;
  width: 100%;
  padding: 15px 0; /* Clear room for hover translate shadow */
  position: relative;
  mask-image: linear-gradient(to right, transparent, rgba(0, 0, 0, 1) 10%, rgba(0, 0, 0, 1) 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, rgba(0, 0, 0, 1) 10%, rgba(0, 0, 0, 1) 90%, transparent);
}

.logo-slider-track {
  display: flex;
  gap: 20px;
  will-change: transform;
}

.logo-slide {
  flex: 0 0 200px;
  background: #ffffff;
  height: 125px; /* Fixed height for image + badge space */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 14px 8px 8px 8px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(17, 48, 37, 0.03);
  border: 1px solid rgba(17, 48, 37, 0.03);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
  user-select: none;
  cursor: grab;
}

.logo-slide:active {
  cursor: grabbing;
}

.logo-slide img {
  max-width: 85%;
  max-height: 55px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  pointer-events: none;
  margin-bottom: auto;
}

.logo-slide:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(17, 48, 37, 0.08);
}

.logo-badge {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: rgba(17, 48, 37, 0.09);
  color: var(--bg-color);
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  margin-top: 6px;
}

.logo-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(17, 48, 37, 0.08);
  box-shadow: 0 4px 12px rgba(17, 48, 37, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: var(--bg-color);
  transition: all 0.3s ease;
}

.logo-slider-btn:hover {
  background: var(--bg-color);
  color: #ffffff;
  border-color: var(--bg-color);
}

.logo-slider-prev {
  left: -22px;
}

.logo-slider-next {
  right: -22px;
}

@media (max-width: 768px) {
  .logo-slide {
    flex: 0 0 150px;
    height: 115px;
    padding: 10px 6px 6px 6px;
  }
  .logo-badge {
    font-size: 0.58rem;
    padding: 3px 10px;
    margin-top: 4px;
  }
  .logo-slider-btn {
    width: 36px;
    height: 36px;
  }
  .logo-slider-prev {
    left: -10px;
  }
  .logo-slider-next {
    right: -10px;
  }
}

@media (max-width: 900px) {
  .hero-text { font-size: 3rem; }
  .discover-quote h2 { font-size: 2rem; }
  .insta-grid { grid-template-columns: repeat(2, 1fr); }
}
/* --- Testimonial Slider --- */
.testimonial-slider-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 60px;
}

.testimonial-slider {
  position: relative;
  min-height: 200px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
}

.testimonial-slide {
  grid-area: 1 / 1 / 2 / 2;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.testimonial-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.testimonial-text {
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-body);
}

.testimonial-author {
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 2px;
  font-size: 0.85rem;
  opacity: 0.8;
}

.slider-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  width: 100%;
  pointer-events: none;
  z-index: 10;
}

.slider-arrow {
  background: none;
  border: 1px solid rgba(17, 48, 37, 0.15);
  color: var(--bg-color);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  pointer-events: auto;
}

.slider-arrow:hover {
  background: var(--bg-color);
  color: var(--bg-secondary);
  border-color: var(--bg-color);
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .hero {
    height: 80vh;
    min-height: 500px;
  }
  .hero-text {
    font-size: 2.8rem;
  }
  .testimonial-slider-container {
    padding: 0 40px;
  }
  .testimonial-text {
    font-size: 1.1rem;
  }
  .slider-arrow {
    width: 35px;
    height: 35px;
  }
  .slider-arrow svg {
    width: 18px;
    height: 18px;
  }
}

/* --- Our Mission Section Animations --- */
.mission-item {
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.mission-letter-box {
  position: relative;
  overflow: hidden;
  border: 1.5px solid rgba(17, 48, 37, 0.05);
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1) !important;
  will-change: transform, background-color, border-color, box-shadow;
}

.mission-letter-box span {
  display: inline-block;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), color 0.4s ease, text-shadow 0.4s ease;
  will-change: transform;
}

/* Hover effects */
.mission-item:hover {
  transform: translateY(-8px);
}

.mission-item:hover .mission-letter-box {
  background-color: var(--bg-color) !important;
  border-color: #c5a367 !important; /* Elegant gold border on hover */
  box-shadow: 0 15px 35px rgba(17, 48, 37, 0.15), 0 0 0 1.5px rgba(197, 163, 103, 0.3);
}

.mission-item:hover .mission-letter-box span {
  transform: scale(1.15);
  color: #ffffff !important; /* Shimmer/glow color shift */
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.mission-item h3 {
  transition: color 0.3s ease;
}

.mission-item:hover h3 {
  color: #c5a367 !important; /* Gold title shift on hover */
}

/* --- Featured In (Media & Press) Section --- */
.featured-section {
  padding: 50px 0;
  background-color: var(--bg-color); /* Deep green brand color */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.featured-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.featured-card {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid rgba(17, 48, 37, 0.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  width: 140px;
  height: 52px;
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}

.featured-card img {
  max-width: 100%;
  max-height: 26px; /* Super small, elegant, HD clarity */
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  transition: transform 0.3s ease;
  pointer-events: none;
}

.featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  border-color: var(--bg-secondary);
}

.featured-card:hover img {
  transform: scale(1.03);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .featured-section {
    padding: 40px 0;
  }
  .featured-grid {
    gap: 12px;
  }
  .featured-card {
    width: 120px;
    height: 46px;
    padding: 8px 12px;
    border-radius: 6px;
  }
  .featured-card img {
    max-height: 22px;
  }
}

