﻿* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100%;
  background: #030403;
  overflow-x: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
}

body {
  /* height managed by scroll-space content */
}

.hero-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  background: #030403;
  z-index: 1;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #030403;
}

.scroll-space {
  position: relative;
  z-index: 2;
  height: 1000vh;
  pointer-events: none;
}

.story-block {
  position: absolute;
  right: 7vw;
  top: 50%;
  bottom: auto;
  max-width: 760px;
  opacity: 0;
  transform: translateY(calc(-50% + 44px));
  transition: opacity 1000ms cubic-bezier(.16,1,.3,1), transform 1000ms cubic-bezier(.16,1,.3,1);
  color: #fff8e8;
  text-shadow: 0 6px 24px rgba(0,0,0,.75), 0 18px 70px rgba(0,0,0,.65);
  z-index: 5;
}

.story-block.active {
  opacity: 1;
  transform: translateY(-50%);
}

.story-block h1,
.story-block h2 {
  font-size: clamp(42px, 7vw, 92px);
  font-weight: 800;
  line-height: 1.12;
}

.story-block h2 {
  font-size: clamp(34px, 5vw, 70px);
}

.story-block p {
  margin-top: 14px;
  font-size: clamp(22px, 3vw, 42px);
  font-weight: 500;
  color: #f3d28a;
}

.services-page .story-block[data-scene="0"] {
  top: 62%;
  max-width: 640px;
}

.services-page .story-block[data-scene="0"] h1 {
  font-size: clamp(34px, 4.35vw, 64px);
  line-height: 1.14;
}

.services-page .story-block[data-scene="0"] li {
  font-size: clamp(14px, 1.18vw, 17px);
  padding: 11px 36px 11px 18px;
}

.services-page .story-block[data-scene="4"] {
  top: 64%;
}

.story-block ul {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.story-block li {
  position: relative;
  width: max-content;
  max-width: min(100%, 760px);
  padding: 13px 38px 13px 18px;
  color: #fff8e8;
  font-size: clamp(15px, 1.4vw, 20px);
  line-height: 1.45;
  border: 1px solid rgba(216, 183, 106, 0.24);
  border-radius: 999px;
  background: rgba(20, 24, 14, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.story-block li::before {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d8b76a;
  transform: translateY(-50%);
}

/* --- PREMIUM PILL NAVBAR --- */
.premium-navbar {
  position: fixed;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: rgba(20, 20, 20, 0.15);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.premium-navbar:hover {
  background: rgba(25, 25, 25, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.premium-navbar .nav-item {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 24px;
  border-radius: 100px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.premium-navbar .nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.premium-navbar .nav-item.active {
  color: #000;
  background: #d8b76a;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(216, 183, 106, 0.3);
}

@media (max-width: 600px) {
  .premium-navbar {
    top: 20px;
    padding: 6px 8px;
    gap: 4px;
    width: 94vw;
    justify-content: center;
  }
  .premium-navbar .nav-item {
    flex: 1;
    padding: 8px 8px;
    font-size: 12px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .story-block {
    right: 20px;
    left: 20px;
    max-width: none;
    text-align: right;
    transition:
      opacity 1000ms cubic-bezier(.16,1,.3,1),
      transform 1000ms cubic-bezier(.16,1,.3,1),
      top 700ms cubic-bezier(.16,1,.3,1);
  }

  .story-block h2 {
    font-size: clamp(28px, 8vw, 46px);
    text-wrap: balance;
  }

  .story-block ul {
    gap: 10px;
    margin-top: 18px;
  }

  .story-block li {
    width: 100%;
    padding: 12px 34px 12px 14px;
    font-size: clamp(14px, 3.6vw, 17px);
    border-radius: 18px;
  }

  .story-block[data-scene="5"] h2 {
    width: 72%;
    margin-right: 0;
    margin-left: auto;
  }

  /* Character-aware mobile placement: each scene gets its own safe area. */
  .story-block[data-scene="0"] {
    top: 40%;
    right: auto;
    left: 50%;
    width: min(76vw, 370px);
    translate: -50% 0;
    text-align: center;
  }

  .story-block[data-scene="1"] {
    top: 43%;
  }

  .story-block[data-scene="2"] {
    top: auto;
    bottom: 20px;
    right: 18px;
    left: 18px;
  }

  .story-block[data-scene="2"] h2 {
    max-width: 92%;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
  }

  .story-block[data-scene="3"] {
    top: 47%;
    right: 18px;
    left: auto;
    width: min(66vw, 330px);
  }

  .services-page .story-block[data-scene="4"] {
    top: 32%;
    right: auto;
    left: 18px;
    width: min(70vw, 350px);
  }

  .story-block[data-scene="4"] h2 {
    margin-right: auto;
  }

  .story-block[data-scene="5"] {
    top: 24%;
    right: 18px;
    left: 18px;
  }

  .story-block[data-scene="5"] h2 {
    width: 100%;
    margin: 0;
    text-align: center;
    font-size: clamp(20px, 5.5vw, 32px); /* ØªØµØºÙŠØ± Ø§Ù„Ø¹Ù†ÙˆØ§Ù† */
  }

  .story-block[data-scene="5"] ul {
    gap: 8px; /* ØªØµØºÙŠØ± Ø§Ù„Ù…Ø³Ø§ÙØ§Øª Ø¨ÙŠÙ† Ø§Ù„Ø¹Ù†Ø§ØµØ± */
  }

  .story-block[data-scene="5"] li {
    font-size: clamp(12px, 3.2vw, 15px); /* ØªØµØºÙŠØ± Ø§Ù„Ù‚Ø§Ø¦Ù…Ø© */
    padding: 8px 24px 8px 12px; /* ØªØµØºÙŠØ± Ø§Ù„Ù‡ÙˆØ§Ù…Ø´ */
  }

  .story-block[data-scene="6"] {
    top: 38%;
  }
}

/* --- LOADER --- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #030403;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}

.loader-ring {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255,255,255,.1);
  border-left-color: #f3d28a;
  border-radius: 50%;
  animation: loader-spin 1s linear infinite;
}

@keyframes loader-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- FARMS LIST --- */
.farms-list-container {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 90vw;
  max-width: 550px;
  margin-top: 100vh; /* Starts after the initial scroll */
  margin-bottom: 20vh;
  margin-right: 5vw; /* Positioned on the right side */
}

.farm-card-horizontal {
  display: flex;
  flex-direction: row-reverse; /* Image on the left in RTL */
  align-items: stretch;
  background: rgba(15, 20, 15, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.farm-card-horizontal:hover {
  transform: translateY(-5px);
  border-color: rgba(212, 175, 55, 0.5);
}

.farm-image-slider {
  width: 40%;
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  min-height: 140px;
  background: rgba(0, 0, 0, 0.3);
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
  font-size: 14px;
}

.slider-btn:hover {
  background: rgba(212, 175, 55, 0.8);
}

.prev-btn { right: 10px; }
.next-btn { left: 10px; }

.slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: #d4af37;
}

.farm-info-container {
  width: 60%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.farm-name {
  color: #d4af37;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.farm-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.5;
}

.farm-text strong {
  color: #fff;
  font-weight: 700;
  margin-left: 4px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .farms-list-container {
    margin-right: auto;
    margin-left: auto;
    width: 92vw;
  }
  .farm-card-horizontal {
    flex-direction: column-reverse; /* Image on top on mobile */
  }
  .farm-image-slider {
    width: 100%;
    min-height: 180px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .farm-info-container {
    width: 100%;
    padding: 16px;
  }
}

/* --- REDESIGNED FARMS CASE STUDIES --- */
.farms-section {
  position: relative;
  z-index: 5;
  width: min(900px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: 112vh;
  padding-bottom: 60px;
}

.farms-section-heading {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
  color: #fff8e8;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.65);
}

.section-eyebrow,
.farm-label {
  display: inline-flex;
  align-items: center;
  color: #d8b76a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: "";
  width: 26px;
  height: 1px;
  margin: 0 10px;
  background: rgba(216, 183, 106, 0.55);
}

.farms-section-heading h2 {
  margin-top: 9px;
  color: #fff8e8;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 750;
  line-height: 1.08;
}

.farms-section-heading p {
  margin-top: 12px;
  color: rgba(255, 248, 232, 0.78);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.7;
}

.farms-list-container {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.farm-card-horizontal {
  position: relative;
  display: flex;
  flex-direction: row-reverse; /* Image on left in RTL */
  min-width: 0;
  overflow: hidden;
  background: #252820;
  border: 1px solid rgba(216, 183, 106, 0.2);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.farm-card-horizontal:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  border-color: rgba(216, 183, 106, 0.4);
}

.farm-image-slider {
  position: relative;
  width: 45%;
  flex: 0 0 45%;
  min-height: 260px;
  overflow: hidden;
  background: #10140d;
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 650ms cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}

.slide-img {
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
  object-fit: cover;
  object-position: center;
}

.slider-gradient-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(to right, transparent 30%, #252820 95%);
  pointer-events: none;
  z-index: 2;
}

.card-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(114, 140, 70, 0.35);
  border: 1px solid rgba(114, 140, 70, 0.6);
  color: #c9d8a3;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
}

.card-badge i {
  color: #c9d8a3;
}

.slider-btn, .slider-dots {
  display: none; /* Hide slider controls for cleaner look */
}

.farm-info-container {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  gap: 12px;
  text-align: right;
  z-index: 3;
}

.farm-name {
  margin: 0;
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
}

.farm-location {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
}

.farm-location i {
  color: #90a66d;
}

.farm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 5px;
  margin-bottom: 5px;
}

.tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  border: 1px solid rgba(216, 183, 106, 0.25);
  border-radius: 20px;
  font-size: 14px;
}

.tag i {
  color: #728c46;
}

.farm-subtitle {
  color: #ffffff;
  font-size: 16px;
  margin: 0 0 10px 0;
}

.btn-details {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  color: #d8b76a;
  background: transparent;
  border: 1px solid rgba(216, 183, 106, 0.4);
  border-radius: 20px;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-details:hover {
  background: rgba(216, 183, 106, 0.1);
}

.btn-details i {
  font-size: 12px;
}

.reveal-card {
  opacity: 0;
  transform: translateY(28px);
}

.reveal-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 800ms cubic-bezier(.16, 1, .3, 1), transform 800ms cubic-bezier(.16, 1, .3, 1), border-color 500ms ease, box-shadow 500ms ease;
}

.farm-card-horizontal.is-visible:hover {
  transform: translateY(-7px);
}

@media (max-width: 768px) {
  .farms-section {
    width: min(100% - 28px, 560px);
    padding-top: 108vh;
  }

  .farms-section-heading {
    margin-bottom: 28px;
  }

  .farms-list-container {
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    margin: 0;
  }

  .farm-card-horizontal {
    flex-direction: column;
    border-radius: 24px;
  }

  .farm-image-slider {
    width: 100%;
    height: 300px;
    min-height: auto;
    flex: none;
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  }
  
  .slider-gradient-overlay {
    display: none;
  }
  
  .farm-info-container {
    width: 100%;
    padding: 0 24px 24px;
    margin-top: -85px;
    align-items: center;
    text-align: center;
    gap: 8px;
    z-index: 5;
    position: relative;
    background: transparent;
  }
  
  .farm-name {
    font-size: 22px;
    margin-bottom: 2px;
  }

  .farm-location {
    font-size: 13px;
    margin-bottom: 8px;
  }

  .farm-tags {
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 4px;
  }
  
  .farm-tags::-webkit-scrollbar {
    display: none;
  }

  .tag {
    padding: 4px 10px;
    font-size: 11px;
    white-space: nowrap;
  }

  .farm-subtitle {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 12px;
    max-width: 95%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .btn-details {
    align-self: center;
    padding: 8px 24px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-card,
  .reveal-card.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .slider-track,
  .farm-card-horizontal {
    transition: none;
  }
}

/* --- FULL-WIDTH FARMS LAYOUT + PARTNERS --- */
.farms-section {
  width: min(1600px, calc(100% - 64px));
}

.farms-section .farms-section-heading {
  margin-bottom: 46px;
}

.farms-section .farms-section-heading h2 {
  margin-top: 0;
  font-size: clamp(56px, 6vw, 92px);
}

/* End of card specific overrides */

.partners-section {
  width: 100%;
  margin-top: 96px;
  overflow: hidden;
}

.partners-section h2 {
  margin-bottom: 30px;
  color: #fff;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800;
  text-align: center;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8), 0 2px 5px rgba(0, 0, 0, 1);
}

.partners-marquee {
  position: relative;
  width: 100%;
  margin-inline: auto;
  overflow: hidden;
  direction: ltr;
  padding: 4px 0 16px;
  mask-image: linear-gradient(to right, transparent 0, #000 250px, #000 calc(100% - 250px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 250px, #000 calc(100% - 250px), transparent 100%);
}

.partners-track {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  will-change: transform;
  animation: rayaan-partners-marquee 34s linear infinite;
}

.partners-marquee:hover .partners-track,
.partners-marquee:focus-within .partners-track {
  animation-play-state: paused;
}

.partners-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 240px;
  height: 130px;
  padding: 8px;
  border: 1.5px solid rgba(216, 183, 106, 0.4);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
}

.partner-card img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: contain;
  mix-blend-mode: multiply;
  box-sizing: border-box;
  transform: scale(1.15);
}

@keyframes rayaan-partners-marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-50% - 9px), 0, 0); }
}

@media (max-width: 768px) {
  .farms-section {
    width: min(100% - 28px, 560px);
  }

  .farms-section .farms-section-heading {
    margin-bottom: 28px;
  }

  .farms-section .farms-section-heading h2 {
    font-size: clamp(40px, 11vw, 58px);
  }

  /* Redundant card styles removed */

  .partners-section {
    margin-top: 68px;
  }

  .partners-section h2 {
    margin-bottom: 22px;
  }

  .partners-marquee {
    width: 100%;
    mask-image: linear-gradient(to right, transparent 0, #000 150px, #000 calc(100% - 150px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 150px, #000 calc(100% - 150px), transparent 100%);
  }

  .partners-track,
  .partners-group {
    gap: 8px;
  }

  .partners-track {
    animation-duration: 28s;
  }

  .partner-card {
    width: 150px;
    height: 90px;
    padding: 6px;
    border: 1px solid rgba(216, 183, 106, 0.4);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
  }

  .partner-card img {
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    transform: scale(1.15);
  }

  @keyframes rayaan-partners-marquee {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(calc(-50% - 6px), 0, 0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .partners-track {
    animation: none;
    will-change: auto;
  }
}

/* =========================================
   RAYAAN PREMIUM FOOTER - OUR FARMS TRIAL
   ========================================= */
.site-footer {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 48px 24px 28px;
  margin-top: 20px;
  color: #fff8e8;
  background:
    radial-gradient(circle at 16% 22%, rgba(216, 183, 106, 0.12), transparent 30%),
    radial-gradient(circle at 86% 28%, rgba(78, 126, 76, 0.16), transparent 34%),
    linear-gradient(135deg, #06100d 0%, #0a1712 46%, #03100c 100%);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 4, 3, 0.18), rgba(3, 4, 3, 0.78)),
    url('../assets/images/footer_bg.png');
  background-size: cover;
  background-position: center top;
  opacity: 0.18;
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 160px;
  background:
    radial-gradient(ellipse at 10% 100%, rgba(216, 183, 106, 0.13), transparent 34%),
    radial-gradient(ellipse at 88% 100%, rgba(216, 183, 106, 0.1), transparent 34%);
  opacity: 0.9;
  pointer-events: none;
}

.footer-shell {
  position: relative;
  z-index: 2;
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 58px) clamp(18px, 4vw, 64px) 24px;
  border: 1px solid rgba(216, 183, 106, 0.22);
  border-radius: 34px;
  background: rgba(2, 13, 10, 0.72);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}

.footer-glow {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(216, 183, 106, 0.16);
  filter: blur(72px);
  pointer-events: none;
}

.footer-glow-right {
  top: -90px;
  right: -80px;
}

.footer-glow-left {
  left: -70px;
  bottom: 10px;
  background: rgba(67, 113, 63, 0.18);
}

.footer-main {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr;
  gap: clamp(26px, 4vw, 64px);
  align-items: center;
}

.footer-main > section:not(:last-child) {
  border-left: 1px solid rgba(216, 183, 106, 0.18);
  padding-left: clamp(24px, 4vw, 52px);
}

.footer-brand {
  text-align: center;
}

.footer-logo-img {
  display: block;
  width: min(250px, 72%);
  max-height: 170px;
  margin: 0 auto 14px;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55));
}

.footer-brand h2,
.footer-contact h3,
.footer-action h3 {
  margin: 0;
  color: #d8b76a;
  font-size: clamp(20px, 1.7vw, 28px);
  font-weight: 800;
  line-height: 1.4;
}

.footer-brand p {
  max-width: 420px;
  margin: 20px auto 0;
  color: rgba(255, 248, 232, 0.86);
  font-size: clamp(16px, 1.3vw, 21px);
  line-height: 2;
}

.footer-contact {
  display: grid;
  gap: 14px;
}

.footer-contact h3,
.footer-action h3 {
  margin-bottom: 12px;
  text-align: center;
}

.footer-contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 12px 16px;
  color: rgba(255, 248, 232, 0.92);
  text-decoration: none;
  border: 1px solid rgba(216, 183, 106, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.footer-contact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(216, 183, 106, 0.42);
  background: rgba(216, 183, 106, 0.08);
}

.footer-contact-card i {
  display: inline-grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  color: #d8b76a;
  font-size: 20px;
  border: 1px solid rgba(216, 183, 106, 0.45);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
}

.footer-contact-card span {
  direction: ltr;
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 750;
  letter-spacing: 0.01em;
}

.footer-location span {
  direction: rtl;
  color: #d8b76a;
}

.footer-action {
  display: grid;
  justify-items: center;
  gap: 24px;
}

.footer-social-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.footer-social-icons a {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #d8b76a;
  text-decoration: none;
  border: 1px solid rgba(216, 183, 106, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  transition: transform 220ms ease, color 220ms ease, background 220ms ease, border-color 220ms ease;
}

.footer-social-icons a:hover {
  transform: translateY(-4px);
  color: #06100d;
  border-color: #d8b76a;
  background: linear-gradient(135deg, #f0d27e, #b99034);
}

.footer-social-icons i {
  font-size: 24px;
}

.footer-cta-card {
  position: relative;
  width: min(390px, 100%);
  padding: 26px 24px 24px;
  text-align: center;
  border: 1px solid rgba(216, 183, 106, 0.2);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    radial-gradient(circle at 100% 100%, rgba(216, 183, 106, 0.12), transparent 42%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.footer-cta-card::before {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -34px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(216, 183, 106, 0.18), transparent 62%);
  border-radius: 50%;
}

.footer-cta-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  color: #06100d;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0d27e, #b99034);
  box-shadow: 0 12px 24px rgba(216, 183, 106, 0.2);
}

.footer-cta-card p {
  margin: 12px 0 18px;
  color: rgba(255, 248, 232, 0.84);
  font-size: 16px;
  line-height: 1.8;
}

.footer-cta-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(250px, 100%);
  min-height: 52px;
  color: #06100d;
  text-decoration: none;
  font-weight: 900;
  border-radius: 16px;
  background: linear-gradient(135deg, #f4d984, #caa04d);
  box-shadow: 0 12px 26px rgba(216, 183, 106, 0.25);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.footer-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(216, 183, 106, 0.32);
}

.footer-bottom {
  position: relative;
  margin-top: clamp(32px, 4vw, 54px);
  padding-top: 28px;
  text-align: center;
  border-top: 1px solid rgba(216, 183, 106, 0.16);
}

.footer-palm-mark {
  position: absolute;
  top: -19px;
  left: 50%;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  transform: translateX(-50%);
  border: 1px solid rgba(216, 183, 106, 0.28);
  border-radius: 50%;
  background: #07130f;
  box-shadow: 0 0 0 10px rgba(7, 19, 15, 0.92);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 248, 232, 0.76);
  font-size: clamp(14px, 1.2vw, 17px);
  line-height: 1.8;
}

.footer-bottom strong {
  color: #d8b76a;
}

@media (max-width: 1100px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-main > section:not(:last-child) {
    border-left: 0;
    padding-left: 0;
  }

  .footer-brand {
    border-bottom: 1px solid rgba(216, 183, 106, 0.16);
    padding-bottom: 26px;
  }
}

@media (max-width: 720px) {
  .site-footer {
    padding: 28px 12px 18px;
  }

  .footer-shell {
    padding: 28px 16px 20px;
    border-radius: 26px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand,
  .footer-contact {
    border-bottom: 1px solid rgba(216, 183, 106, 0.14);
    padding-bottom: 24px;
  }

  .footer-logo-img {
    width: min(210px, 78%);
  }

  .footer-contact-card {
    min-height: 54px;
    padding: 10px 12px;
  }

  .footer-contact-card i {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .footer-social-icons a {
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 900px) {
  body.services-page .site-footer {
    padding: 112px 10px 70px;
  }

  body.services-page .footer-main {
    gap: 14px;
  }

  body.services-page .footer-brand {
    position: relative;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: center;
    justify-items: stretch;
    width: min(100%, 420px);
    margin: 18px auto 0;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 0;
    border: 1px solid rgba(216, 183, 106, 0.18);
    border-radius: 20px;
    background:
      linear-gradient(90deg, rgba(216, 183, 106, 0.12), transparent 34%),
      rgba(3, 13, 9, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  body.services-page .footer-logo-img {
    width: 78px;
    max-height: 82px;
    margin-bottom: 0;
    padding: 3px;
  }

  body.services-page .footer-brand h2 {
    max-width: none;
    font-size: clamp(16px, 4.2vw, 20px);
    line-height: 1.35;
    text-align: right;
  }

  body.services-page .footer-contact {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    width: min(100%, 380px);
    margin: 0 auto;
    padding: 12px 10px 10px;
    border: 1px solid rgba(216, 183, 106, 0.24);
    border-radius: 20px;
    background:
      radial-gradient(circle at 8% 0%, rgba(216, 183, 106, 0.16), transparent 34%),
      linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.018)),
      rgba(3, 13, 9, 0.74);
    box-shadow:
      0 22px 54px rgba(0, 0, 0, 0.34),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  body.services-page .footer-contact::before {
    content: "";
    position: absolute;
    top: 0;
    right: 18px;
    left: 18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(216, 183, 106, 0.75), transparent);
  }

  body.services-page .footer-contact h3 {
    grid-column: 1 / -1;
    margin-bottom: 2px;
    padding-bottom: 9px;
    font-size: clamp(16px, 4.2vw, 19px);
  }

  body.services-page .footer-contact .footer-contact-card {
    grid-template-columns: 34px minmax(0, 1fr);
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 7px 8px;
    color: #fff8e8;
    border: 1px solid rgba(216, 183, 106, 0.16);
    border-radius: 14px;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  body.services-page .footer-contact .footer-contact-card:first-of-type {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  body.services-page .footer-contact .footer-contact-card i {
    width: 34px;
    height: 34px;
    color: #06100d;
    font-size: 14px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #f1d47f, #caa04d);
  }

  body.services-page .footer-contact .footer-contact-card span {
    color: #fff8e8;
    font-size: clamp(12px, 3.15vw, 14px);
    font-weight: 800;
  }

  body.services-page .footer-action {
    display: grid;
    justify-items: center;
    width: min(100%, 380px);
    margin: 0 auto;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(216, 183, 106, 0.16);
    border-radius: 20px;
    background: rgba(3, 13, 9, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  body.services-page .footer-action > h3 {
    grid-column: auto;
    margin-bottom: 0;
    padding-bottom: 10px;
    font-size: 17px;
    white-space: nowrap;
    text-align: center;
  }

  body.services-page .footer-action > h3::after {
    display: block;
  }

  body.services-page .footer-social-icons {
    grid-column: auto;
    justify-content: center;
    gap: 10px;
    margin: 0;
  }

  body.services-page .footer-social-icons a {
    width: 38px;
    height: 38px;
  }

  body.services-page .footer-cta-card {
    grid-column: auto;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.services-page .footer-cta-icon {
    display: none;
  }

  body.services-page .footer-cta-card h3,
  body.services-page .footer-cta-card p {
    display: none;
  }

  body.services-page .footer-cta-button {
    min-height: 42px;
    border-radius: 13px;
  }
}

/* Premium contact section - services page */
body.services-page .site-footer {
  min-height: 720px;
  margin-top: -96px;
  padding: 176px clamp(24px, 5vw, 84px) 78px;
  color: #f7f3e8;
  background:
    linear-gradient(180deg, rgba(6, 17, 11, 0.08) 0%, rgba(6, 17, 11, 0.46) 36%, rgba(6, 17, 11, 0.78) 100%),
    url('../assets/images/footer_bg.png') center bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.2) 14%, #000 34%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.2) 14%, #000 34%);
}

body.services-page .site-footer::before {
  background:
    radial-gradient(ellipse at 18% 24%, rgba(216, 183, 90, 0.11), transparent 34%),
    linear-gradient(120deg, rgba(6, 17, 11, 0.36), rgba(10, 35, 23, 0.22) 48%, rgba(6, 17, 11, 0.42));
}

body.services-page .site-footer::after {
  opacity: 0.07;
}

body.services-page .footer-shell {
  width: min(1240px, 100%);
}

body.services-page .footer-main {
  display: grid;
  grid-template-columns: minmax(270px, 0.95fr) minmax(360px, 1.1fr) minmax(300px, 0.95fr);
  grid-template-areas: "action contact brand";
  align-items: center;
  gap: clamp(32px, 4vw, 72px);
  min-height: 430px;
}

body.services-page .footer-brand {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  justify-items: stretch;
  gap: 18px;
  margin: 0;
  padding: 0;
  text-align: right;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.services-page .footer-logo-img {
  width: 112px;
  max-width: 112px;
  max-height: 116px;
  height: auto;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  object-fit: contain;
  filter:
    brightness(0) invert(1)
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.28))
    drop-shadow(0 0 18px rgba(255, 255, 255, 0.12));
}

body.services-page .footer-brand h2 {
  max-width: 430px;
  margin: 0;
  color: #d8b75a;
  font-size: clamp(26px, 2.4vw, 42px);
  line-height: 1.22;
  text-align: right;
  text-shadow: 0 3px 18px rgba(6, 17, 11, 0.38);
}

body.services-page .footer-contact {
  display: grid;
  gap: 16px;
  justify-items: stretch;
  width: min(430px, 100%);
  margin: 0 auto;
  padding: 28px;
  border: 1px solid rgba(216, 183, 90, 0.28);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.018)),
    rgba(10, 35, 23, 0.62);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body.services-page .footer-contact::before {
  display: none;
}

body.services-page .footer-contact h3,
body.services-page .footer-action > h3 {
  margin: 0 0 8px;
  padding-bottom: 14px;
  color: #f0d37a;
  font-size: clamp(19px, 1.55vw, 25px);
  font-weight: 850;
  text-align: center;
}

body.services-page .footer-contact h3::after,
body.services-page .footer-action > h3::after {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f0d37a, transparent);
}

body.services-page .footer-contact .footer-contact-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 62px;
  margin: 0;
  padding: 9px 12px;
  color: #f7f3e8;
  text-decoration: none;
  border: 1px solid rgba(216, 183, 90, 0.18);
  border-radius: 20px;
  background: rgba(6, 17, 11, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
  direction: ltr;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

body.services-page .footer-contact .footer-contact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 211, 122, 0.42);
  background: rgba(10, 35, 23, 0.76);
}

body.services-page .footer-contact .footer-contact-card i {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #06110b;
  font-size: 18px;
  border: 1px solid rgba(240, 211, 122, 0.36);
  border-radius: 16px;
  background: linear-gradient(135deg, #f0d37a, #d8b75a);
  box-shadow: 0 8px 18px rgba(216, 183, 90, 0.13);
}

body.services-page .footer-contact .footer-contact-card span {
  color: #f7f3e8;
  direction: ltr;
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 850;
  text-align: left;
  overflow-wrap: anywhere;
}

body.services-page .footer-action {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 24px;
  width: min(360px, 100%);
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.services-page .footer-social-icons {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 0;
}

body.services-page .footer-social-icons a {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  color: #f0d37a;
  border: 1px solid rgba(216, 183, 90, 0.42);
  border-radius: 50%;
  background: rgba(10, 35, 23, 0.28);
  box-shadow: none;
  transition: transform 220ms ease, background 220ms ease, color 220ms ease, border-color 220ms ease;
}

body.services-page .footer-social-icons a:hover {
  transform: translateY(-3px);
  color: #06110b;
  border-color: #f0d37a;
  background: linear-gradient(135deg, #f0d37a, #d8b75a);
}

body.services-page .footer-cta-card {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.services-page .footer-cta-card::before,
body.services-page .footer-cta-card::after,
body.services-page .footer-cta-icon,
body.services-page .footer-cta-card h3,
body.services-page .footer-cta-card p {
  display: none;
}

body.services-page .footer-cta-button {
  width: 100%;
  min-height: 56px;
  color: #06110b;
  border-radius: 18px;
  background: linear-gradient(135deg, #f0d37a, #d8b75a 58%, #b98f38);
  box-shadow: 0 14px 28px rgba(216, 183, 90, 0.18);
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

body.services-page .footer-cta-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 18px 34px rgba(216, 183, 90, 0.24);
}

@media (max-width: 900px) {
  body.services-page .site-footer {
    min-height: 100svh;
    margin-top: -86px;
    padding: 128px 14px 72px;
    background:
      linear-gradient(180deg, rgba(6, 17, 11, 0.08) 0%, rgba(10, 35, 23, 0.34) 28%, rgba(6, 17, 11, 0.72) 100%),
      url('../assets/images/footer_bg.png') center bottom / cover no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.18) 10%, #000 28%);
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.18) 10%, #000 28%);
  }

  body.services-page .footer-shell {
    width: min(430px, 100%);
  }

  body.services-page .footer-main {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "contact"
      "action";
    align-content: center;
    gap: 24px;
    min-height: calc(100svh - 200px);
  }

  body.services-page .footer-brand {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 14px;
    width: 100%;
    margin: 0;
    padding: 0 10px;
  }

  body.services-page .footer-logo-img {
    width: 86px;
    max-width: 86px;
    max-height: 90px;
  }

  body.services-page .footer-brand h2 {
    font-size: clamp(20px, 5.4vw, 26px);
  }

  body.services-page .footer-contact {
    width: 100%;
    gap: 13px;
    padding: 22px 16px;
    border-radius: 30px;
  }

  body.services-page .footer-contact .footer-contact-card {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 58px;
    padding: 7px 9px;
    border-radius: 18px;
  }

  body.services-page .footer-contact .footer-contact-card i {
    width: 44px;
    height: 44px;
    font-size: 16px;
    border-radius: 15px;
  }

  body.services-page .footer-contact .footer-contact-card span {
    font-size: clamp(13px, 3.55vw, 16px);
  }

  body.services-page .footer-action {
    width: 100%;
    gap: 18px;
  }

  body.services-page .footer-social-icons a {
    width: 46px;
    height: 46px;
  }

  body.services-page .footer-cta-button {
    min-height: 52px;
    border-radius: 16px;
  }
}
