@import url('https://fonts.googleapis.com/css2?family=Aboreto&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
  --primary: #6A1B9A;
  --secondary: #ad9344;
  --accent: #F06292;
  --success: #43A047;
  --info: #1E88E5;
  --warning: #FB8C00;
  --danger: #E53935;
  --grey: #8f8f8f;
  --black: #000000;
  --background-color: #FFFFFF;
  --background-alt-color: #16161F;
  --text-color: #1A1A1A;
  --text-alt-color: #FFFFFF;
  --stroke: #2E3A48;
  --highlight: #8E24AA;
  --secondary-highlight: #FF7043;
  --font-family-headings: "Aboreto", system-ui;
  --font-family-body: "Inter", sans-serif;
  --bs-container-max-width-xxl: 1600px;

  /* Hero Slider Styles */
  --text-on-media: #ffffff;
  --overlay-dark: rgba(0, 0, 0, .38);
  --overlay-grad: linear-gradient(180deg, rgba(0, 0, 0, .30) 0%, rgba(0, 0, 0, .55) 70%);
  --btn-bg: #6A1B9A;
  --btn-bg-hover: #8E24AA;
  --btn-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  height: 100%;
}

body {
  height: 100%;
  font-family: var(--font-family-body);
  font-size: 18px;
  background-color: var(--background-color);
  color: var(--text-color);
  overflow-x: hidden;
}

body.menu-opened {
  overflow: hidden;
}

@media (max-width: 991px) {
  body {
    padding-top: 60px;
  }
}

::-moz-selection {
  color: var(--text-alt-color);
  background: var(--primary);
}

::selection {
  color: var(--text-alt-color);
  background: var(--primary);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background-color);
}

::-webkit-scrollbar-thumb {
  background: var(--background-alt-color);
  border-radius: 8px;
  height: 42px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-color);
}

a {
  color: var(--secondary);
  text-decoration: none;
}

a:active,
a:hover {
  color: var(--secondary-highlight);
  outline: 0;
  text-decoration: none;
}

a:focus {
  outline: none;
}

b,
strong {
  font-weight: 700;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-headings);
  font-weight: 400;
  margin: 0;
  padding: 0 0 30px 0;
}

h1 {
  font-size: 54px;
}

h2 {
  font-size: 40px;
}

h3 {
  font-size: 36px;
}

h4 {
  font-size: 24px;
}

h5 {
  font-size: 18px;
}

@media (max-width: 991px) {
  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 20px;
  }

  h4 {
    font-size: 18px;
  }
}

.xtarget:target {
  margin-top: -12px;
  padding-top: 120px;
}

@media (max-width: 1199px) {
  .xtarget:target {
    padding-top: 60px;
  }
}

@media (max-width: 991px) {
  .xtarget:target {
    padding-top: 40px;
  }
}

/* custom bootstrap css */
@media (min-width: 1400px) {

  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl {
    max-width: 1600px;
  }
}

.btn-primary {
  background-color: var(--highlight) !important;
  border-color: var(--highlight) !important;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background-color: var(--secondary-highlight) !important;
  border-color: var(--secondary-highlight) !important;
}

.btn-secondary:hover {
  opacity: 0.9;
}

.card {
  border-color: var(--stroke);
}

.card-body {
  background-color: var(--primary);
  color: var(--text-color);
}

.card .list-group-item {
  background-color: var(--background-alt-color) !important;
  color: var(--text-color) !important;
  border-color: var(--stroke);
}

.accordion-header {
  padding: 0;
}

.accordion-button {
  font-size: 22px;
  font-family: var(--font-family-body);
  font-weight: 500;
}

.accordion-button:focus {
  outline: none;
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  background-color: var(--background-alt-color);
  color: var(--text-alt-color);
}

.nav-pills .nav-link {
  color: var(--grey);
  font-size: 24px;
  font-family: var(--font-family-body);
  font-weight: 500;
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
  background-color: var(--secondary);
}

@media (max-width: 991px) {
  .nav-pills .nav-link {
    font-size: 18px;
  }
}

.global-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-content: stretch;
}

.content-area {
  flex-grow: 1;
}

.header {
  position: fixed;
  z-index: 99;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background-color: var(--background-color);
  transition: all 0.4s ease;
}

.header .logo-spectrum {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 50px;
  display: inline-block;
  height: 150px;
  width: 300px;
  margin-left: -150px;
  text-indent: -9999px;
  overflow: hidden;
  background: url(../img/spectrum-logo.svg) no-repeat center;
  background-color: #FFF;
  background-size: 90%;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.header .icon-spectrum {
  position: absolute;
  z-index: 1;
  left: 10px;
  top: 0;
  display: none;
  height: 60px;
  width: 60px;
  text-indent: -9999px;
  overflow: hidden;
  background: url(../img/spectrum-icon.svg) no-repeat center;
  background-size: 90%;
}

.logo-all-mobile {
  position: absolute;
  z-index: 1;
  left: 10px;
  top: 0;
  display: none;
  height: 90px;
  width: 420px;
  text-indent: -9999px;
  overflow: hidden;
  background: url(../img/spectrum-ramky-logos.svg) no-repeat center;
  background-size: 90%;
}

.header .logo-ramyestates {
  display: inline-block;
  height: 100px;
  width: 125px;
  text-indent: -9999px;
  overflow: hidden;
  background: url(../img/ramkyestates-logo.svg) no-repeat center;
}

.header .logo-ramkyviha {
  display: inline-block;
  height: 100px;
  width: 125px;
  text-indent: -9999px;
  overflow: hidden;
  background: url(../img/ramkyviha-logo.svg) no-repeat center;
}

.header.scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  height: 60px;
}

.header.scrolled .logo-spectrum,
.header.scrolled .logo-ramyestates,
.header.scrolled .logo-ramkyviha,
.header.scrolled .logo-all-mobile {
  display: none;
}

.header.scrolled .icon-spectrum {
  display: inline-block;
}

@media (max-width: 1199px) {

  .header .logo-spectrum,
  .header .logo-ramyestates,
  .header .logo-ramkyviha {
    display: none;
  }

  .header .logo-all-mobile {
    display: inline-block;
  }
}

@media (max-width: 576px) {

  .header {
    height: 60px;
  }

  .header .logo-all-mobile {
    height: 69px;
    width: 322px;
    background-color: #FFF;
    background-size: 90%;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
  }
}

.main-nav ul,
.main-nav li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav ul li {
  display: inline-block;
  vertical-align: top;
  position: relative;
  z-index: 97;
}

.main-nav ul li a {
  display: inline-block;
  height: 60px;
  line-height: 30px;
  padding: 15px 8px;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--text-color);
  transition: all 0.3s ease-out;
  pointer-events: all;
}

.main-nav ul li a:hover {
  color: var(--primary);
}

.main-nav ul li a.active {
  color: var(--secondary-highlight);
}

.sub-nav {
  display: none;
  position: fixed;
  z-index: 98;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  background-color: rgba(0, 0, 0, 0.5);
  font-size: 24px;
  text-align: center;
}

.sub-nav::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: 89px;
  height: 1px;
}

.sub-nav.show {
  display: block;
}

.sub-nav .content {
  background-color: var(--background-color);
  padding-top: 90px;
}

.sub-nav a {
  display: block;
  color: var(--text-color);
  margin-bottom: 10px;
}

.sub-nav a:hover {
  color: var(--primary);
}

.sub-nav a.main-link {
  font-size: 24px;
  display: block;
  padding: 10px 15px;
}

/* mobile view nav */
@media (max-width: 1199px) {
  .main-nav {
    display: none;
  }

  .sub-nav::before {
    top: 60px;
  }

  .sub-nav .content {
    padding: 120px 0 40px 0;
    height: 100%;
    overflow-y: auto;
  }

  .sub-nav .border-right {
    border-right: none;
  }

  .sub-links {
    display: none;
  }
}

.mobile-nav-icon {
  display: none;
  position: absolute;
  z-index: 1;
  right: 16px;
  top: 16px;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.mobile-nav-icon div {
  display: block;
  text-indent: -9999px;
  overflow: hidden;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  margin: 8px 0;
  transition: all 0.3s ease-out;
}

.mobile-nav-icon.nav-icon-close div:nth-child(1) {
  margin-top: 15px;
  transform: rotate(45deg);
}

.mobile-nav-icon.nav-icon-close div:nth-child(2) {
  margin-top: -10px;
  transform: rotate(-45deg);
}

@media (max-width: 1199px) {
  .mobile-nav-icon {
    display: block;
  }
}

.footer {
  background-color: var(--black);
  padding: 30px 15px;
  color: var(--text-alt-color);
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 90px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  line-height: 44px;
  text-align: center;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.back-to-top:active {
  transform: translateY(0);
}

.text-lg {
  font-size: 24px;
}

.text-sm {
  font-size: 13px;
}

.icon-lg {
  width: 60px;
  margin-bottom: 10px;
}

.icon-sm {
  width: 50px;
  margin-bottom: 10px;
}

.text-white {
  color: var(--text-alt-color);
}

.section-container {
  position: relative;
  padding: 120px 0;
}

.section-container.alt-bg {
  background-image: url(../img/bg-pattern.png);
}

@media (max-width: 1199px) {
  .section-container {
    padding: 60px 0;
  }
}

@media (max-width: 991px) {
  .section-container {
    padding: 40px 0;
  }
}

.section-content {
  position: relative;
  z-index: 1;
}

.hero-slider {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

.slides,
.slide {
  position: absolute;
  inset: 0;
}

.slide {
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

/* The always-running zoom layer */
.slide .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform-origin: center center;
  animation: zoomslow 16s ease-in-out infinite;
}

/* Continuous one-way zoom (no reset jerk) */
@keyframes zoomslow {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }

  /* loops seamlessly */
}

/* Overlay text remains the same */
.hero-overlay {
  position: relative;
  z-index: 3;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .35), rgba(0, 0, 0, .65));
}

.hero-content {
  max-width: 920px;
  width: min(92vw, 920px);
  margin-inline: auto;
}

.hero-content h1 {
  font: 400 clamp(28px, 6vw, 66px)/1.1 var(--font-family-headings);
  letter-spacing: -0.01em;
  margin: 0 0 .6rem;
  text-wrap: balance;
  text-shadow: 0 3px 20px rgba(0, 0, 0, .5);
}

.hero-content p {
  font: 400 clamp(15px, 2.2vw, 28px)/1.6 var(--font-family-body);
  opacity: .98;
  margin: 0 0 1.25rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .45);
}

@media (max-width: 576px) {
  .hero-content {
    width: min(70vw, 920px);
  }
}

/* CTA button */
.btn-cta {
  display: inline-block;
  padding: .85rem 1.25rem;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--text-alt-color);
  text-decoration: none;
  font: 600 15px/1 var(--font-family-body);
  box-shadow: var(--btn-shadow);
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.btn-cta:hover {
  color: var(--text-alt-color);
  background: var(--btn-bg-hover);
  transform: translateY(-1px);
}

.btn-cta:active {
  transform: translateY(0);
}

/* Dots */
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: clamp(14px, 4vh, 28px);
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 4;
}

.hero-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease;
}

.hero-dots button.is-active {
  background: #fff;
  transform: scale(1.15);
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
  .hero-slider .slide {
    transition: opacity .2s linear !important;
    transform: none !important;
  }
}

/* Small devices fine tuning */
@media (max-width: 480px) {
  .hero-content p {
    margin-bottom: 1rem;
  }
}

.fixed-action-icons {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 99;
}

.action-icon {
  width: 50px;
  height: 50px;
  background: var(--secondary);
  color: var(--text-alt-color);
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.action-icon:hover {
  background: var(--secondary-highlight);
  transform: scale(1.1);
}

.action-icon img {
  width: 28px;
}


.section-overview {
  background-color: var(--background-alt-color);
  color: var(--grey);
  overflow: hidden;
}

.section-overview .text-lg {
  font-family: var(--font-family-headings);
  font-size: 28px;
  color: var(--text-alt-color);
}

.section-overview::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 50%;
  aspect-ratio: 1 / 1;
  background: url("../img/bg-orn-dark.png") no-repeat center;
  background-size: contain;
  transform: rotate(-90deg);
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 768px) {
  .section-overview::after {
    display: none;
  }
}

.section-location {
  position: relative;
  overflow: hidden;
}

.section-location::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30%;
  aspect-ratio: 1 / 1;
  background: url("../img/bg-orn.png") no-repeat center;
  background-size: contain;
  pointer-events: none;
  z-index: 0;
  transform: scaleX(-1);
  transform-origin: center;
}

@media (max-width: 768px) {
  .section-location::after {
    display: none;
  }
}

.section-plans {
  background-color: var(--background-alt-color);
  color: var(--grey);
  overflow: hidden;
}

.section-plans::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 35%;
  aspect-ratio: 1 / 1;
  background: url("../img/bg-orn-dark.png") no-repeat center;
  background-size: contain;
  transform: rotate(180deg);
  pointer-events: none;
  z-index: 0;
}

.section-specifications {
  position: relative;
  background-color: var(--background-alt-color);
  color: var(--grey);
  overflow: hidden;
}

.section-specifications::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/specs-bg.jpg") no-repeat center bottom;
  background-size: cover;
  opacity: 0.2;
  z-index: 0;
}

.section-specifications>* {
  position: relative;
  z-index: 1;
}

.section-gallery {
  position: relative;
  overflow: hidden;
}

.section-gallery::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30%;
  aspect-ratio: 1 / 1;
  background: url("../img/bg-orn.png") no-repeat center;
  background-size: contain;
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 768px) {
  .section-gallery::after {
    display: none;
  }
}

.section-contact {
  background-color: var(--background-alt-color);
  color: var(--grey);
  overflow: hidden;
}