/* GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

/* VARIABLES */
:root {
  --header-height: 3.5rem;

  /* colors */
  /* Brand Colors from Palette */
  --dark-navy: #0D0846; /* Navy blue */
  --gold-accent: #D7B55D; /* Gold */
  --dark-gold-accent: #766331; /* Darker gold */
  --beige-bg: #F0E5CF; /* Warm beige */
  --soft-gray: #efecec; /* Medium gray */
  --dark-gray: #000000; /* Softer dark gray */
  --white: #FAFAFA; /* Off-white */
  --light-green : #00FF00;

  /* colors */
  --bg-color: var(--beige-bg);
  --bg-color-light: var(--soft-gray);
  --title-color: var(--dark-navy);
  --text-color: var(--dark-gray);
  --text-color-light: var(--dark-gray);
  --body-color: var(--beige-bg);
  --container-color: var(--soft-gray);



/* font and typography */
--body-font: 'Lora', serif;
--title-font: 'Work Sans', sans-serif;

--biggest-font-size: 2.25rem;
--h1-font-size: 1.5rem;
--h2-font-size: 1.25rem;
--h3-font-size: 1.125rem;
--normal-font-size: 1rem;
--small-font-size: 0.875rem;
--smaller-font-size: 0.75rem;

/* font weight */
--font-regular: 400;
--font-medium: 500;
--font-semi-bold: 600;

/* z index */
--z-tooltip: 10;
--z-fixed: 100;

}

/* Responsive typograpy */ 
@media screen and (min-width: 1124px) {
  :root {
    --biggest-font-size: 4.5rem;
    --h1-font-size: 4.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.75rem;
  }
}

/* BASE */
*{
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html{
  scroll-behavior: smooth;
}

body{
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  color: var(--text-color);
  background-color: var(--body-color);
}

h1,h2,h3{
  color: var(--title-color);
  font-weight: var(--font-medium);
}

ul{
  list-style: none;
}

a {
  text-decoration: none;
}

img{
  max-width: 100%;
  height: auto;
}

/* REUSABLE CSS CLASSES */
.container{
  max-width: 1024px;
  margin-right: 1.5rem;
  margin-left: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section{
  padding: 4.5rem 0 2rem; 
}

.section__title{
  font-family: var(--body-font);
  font-weight: 1000;
  color: var(--dark-navy);
  font-size: var(--h1-font-size);
  text-align: center;
  margin-bottom: 3rem;
}

.main {
  overflow: hidden;
}

/* HEADER & NAV */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--body-color);
  z-index: var(--z-fixed);
  transition: 0.4s;
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  color: var(--title-color);
  font-weight: var(--font-medium);
}

.nav__menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__list {
  display: flex;
  gap: 1rem; /* Adjust gap between icons */
  align-items: center;
  flex-wrap: nowrap; /* Prevent items from wrapping to the next line */
}

.nav__link {
  color: var(--text-color-light);
  font-weight: var(--font-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.nav__link i {
  font-size: 1.25rem;
}

.nav__link span {
  font-size: 0.688rem;
}

@media screen and (max-width: 768px) {
  .nav__menu {
    width: 100%; /* Ensure the menu takes full width */
    justify-content: space-between; /* Space items evenly */
  }

  .nav__list {
    width: 100%; /* Ensure the list takes full width */
    justify-content: space-between; /* Space items evenly */
    gap: 0.5rem; /* Adjust gap between icons for smaller screens */
  }
}
/* Change background header */
.scroll-header{
  background-color: var(--body-color);
  box-shadow: 0 1px 4px hsla(220,4%,15%,0.1);
}

/* ACTIVE LINK */
.active-link{
  color: var(--title-color);
}

/* SCROLL BAR */
::-webkit-scrollbar {
  width: 0.6rem;
  border-color: hsl(220, 8%, 76%);
}

::-webkit-scrollbar-thumb {
  background-color: hsl(220, 8%, 64%);
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(220, 8%, 54%);
}

/* BREAKPOINTS */

/* for small devices */
@media screen and (max-width: 340px) {
  .container{
    margin-right: 1rem;
    margin-left: 1rem;
  }
  .footer__content{
    grid-template-columns: max-content;
    row-gap: 2rem;
  }
  .nav__menu{
    padding: 1rem 1.5rem;
  }
  .home__container {
    padding: 2rem 0 1rem;
    row-gap: 6rem;
  }
  .home__description {
    font-size: var(--small-font-size);
  }
  .home__images {
    width: 250px;
  }
  .home__images img:nth-child(1){
    width: 180px;
    top: -7rem;
  }
  .home__images img:nth-child(2){
    width: 150px;
  }
  .precon__img {
    width: 230px;
  }
  .precon__link {
    padding-right: 0;
  }
}

/* for medium devices */
@media screen and (min-width: 341px) and (max-width: 767px) {
  .container{
    margin-right: 1.5rem;
    margin-left: 1.5rem;
  }
  .footer__content{
    grid-template-columns: repeat(2, max-content);
    row-gap: 2rem;
  }
  .nav__menu{
    padding: 1.25rem 2rem;
  }
  .home__container {
    padding: 3rem 0 1rem;
    row-gap: 7rem;
  }
  .home__description {
    font-size: var(--small-font-size);
  }
  .home__images {
    width: 270px;
  }
  .home__images img:nth-child(1){
    width: 200px;
    top: -8rem;
  }
  .home__images img:nth-child(2){
    width: 160px;
  }
  .precon__img {
    width: 250px;
  }
  .precon__link {
    padding-right: 0;
  }
}

/* for large devices */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .container{
    margin-right: 2rem;
    margin-left: 2rem;
  }
  .footer__content{
    grid-template-columns: repeat(3, max-content);
    row-gap: 2rem;
  }
  .nav__menu{
    padding: 1.5rem 3rem;
  }
  .home__container {
    padding: 3.5rem 0 1rem;
    row-gap: 8rem;
  }
  .home__description {
    font-size: var(--small-font-size);
  }
  .home__images {
    width: 290px;
  }
  .home__images img:nth-child(1){
    width: 220px;
    top: -9rem;
  }
  .home__images img:nth-child(2){
    width: 180px;
  }
  .precon__img {
    width: 570px;
  }
  .precon__link {
    padding-right: 0;
  }
}

/* for 2k resolutions (2048 x 1152, 2048 x 1536) */
@media screen and (min-width: 1024px) {
  .container{
    margin-right: auto;
    margin-left: auto;
  }
  .footer__content{
    grid-template-columns: repeat(4, max-content);
    row-gap: 3rem;
  }
  .nav__menu{
    padding: 1.75rem 4rem;
  }
  .home__container {
    padding: 4rem 0 1rem;
    row-gap: 8.5rem;
  }
  .home__description {
    font-size: var(--small-font-size);
  }
  .home__images {
    width: 310px;
  }
  .home__images img:nth-child(1){
    width: 224px;
    top: -9.5rem;
  }
  .home__images img:nth-child(2){
    width: 580px;
  }
  .precon__img {
    width: 270px;
  }
  .precon__link {
    padding-right: 0;
  }
}

/* for 4k resolutions (3840 x 2160) */
@media screen and (min-width: 2048px) {
  .container{
    margin-right: auto;
    margin-left: auto;
  }
  .footer__content{
    grid-template-columns: repeat(4, max-content);
    row-gap: 3rem;
  }
  .nav__menu{
    padding: 1.75rem 4rem;
  }
  .home__container {
    padding: 4rem 0 1rem;
    row-gap: 8.5rem;
  }
  .home__description {
    font-size: var(--small-font-size);
  }
  .home__images {
    width: 310px;
  }
  .home__images img:nth-child(1){
    width: 224px;
    top: -9.5rem;
  }
  .home__images img:nth-child(2){
    width: 180px;
  }
  .precon__img {
    width: 270px;
  }
  .precon__link {
    padding-right: 0;
  }
}

/* HOME */
.home {
  background-color: var(--dark-navy);
  overflow: hidden;
  padding: 4rem 0;
}

.home__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.home__content {
  flex: 1;
}

.home__title {
  font-size: 3rem; /* Increase font size */
  font-weight: 700; /* Make the font bolder */
  color: var(--beige-bg);
}

.home__subtitle {
  font-size: 2rem; /* Increase font size */
  font-weight: 600; /* Make the font bolder */
  color: var(--gold-accent);
}

.home__description {
  color: var(--beige-bg);
  margin: 1rem 0 2rem;
  font-size: 1.25rem; /* Increase font size */
}

.home__image {
  flex: 1;
  display: flex;
  justify-content: center;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% {
      transform: translateY(0);
  }

  50% {
      transform: translateY(-20px);
  }

  100% {
      transform: translateY(0);
  }
}

.home__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .home__container {
    flex-direction: column;
    text-align: center;
  }

  .home__image {
    margin-top: 2rem;
  }

  .home__title {
    font-size: 2.5rem; /* Adjust font size for smaller screens */
  }

  .home__subtitle {
    font-size: 1.75rem; /* Adjust font size for smaller screens */
  }

  .home__description {
    font-size: 1rem; /* Adjust font size for smaller screens */
  }
}

/* BUTTON */
.button__link{
  color: var(--title-color);
  font-weight: var(--font-medium);
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
}

.button__link i{
  font-size: 1rem;
  transition: 0.3s;
}

.button__link:hover i{
  transform: translateX(0.25rem);
}

/* PRECONSTRUCTIONS */

.preconstructions {
  background-color: var(--gold-accent);
}

.precon__container {
  row-gap: 2.5rem;
  padding-bottom: 1.5rem;
}

.precon__card {
  justify-self: center;
  overflow: hidden; /* Ensure child elements respect the border radius */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow for a modern look */
  border-radius: 1rem; /* Add rounded corners to the card */
  background-color: var(--white);
}

.precon__img {
  width: 50%; /* Ensure the image takes the full width of the card */
  margin-bottom: 1rem;
  border-top-left-radius: 1rem; /* Ensure the image respects the card's border radius */
  border-top-right-radius: 1rem; /* Ensure the image respects the card's border radius */
}

.precon__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--title-color);
  padding: 1rem; /* Add padding for better spacing */
  border-bottom-left-radius: 1rem; /* Ensure the link respects the card's border radius */
  border-bottom-right-radius: 1rem; /* Ensure the link respects the card's border radius */
}

.precon__link i {
  font-size: 1.25rem;
  transition: 0.3s;
}

.precon__title {
  font-family: var(--title-font);
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 0.5rem;
}

.precon__subtitle {
  font-size: var(--smaller-font-size);
  color: var(--text-color);
}

.precon__subtitle2 {
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--dark-navy);
  margin-bottom: 0.5rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.precon__subtitle2 i {
  margin-left: 0.5rem;
  font-size: 1.25rem;
}

.precon__description {
  font-size: var(--small-font-size);
  color: var(--dark-gray);
  font-weight: var(--font-semi-bold);
  margin-bottom: 1rem;
}


.precon__link:hover i {
  transform: translateX(0.25rem);
}

.precon__data__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Adjust to fit three links */
  gap: 1rem;
  margin-top: 1rem;
}

/* Responsive adjustments for precon__data__links */
@media screen and (max-width: 768px) {
  .precon__data__links {
    grid-template-columns: 1fr; /* Stack items vertically on smaller screens */
    gap: 1rem; /* Adjust gap between items */
  }
}

@media screen and (max-width: 480px) {
  .precon__data__links {
    grid-template-columns: 1fr; /* Stack items vertically on smaller screens */
    gap: 1.5rem; /* Increase gap between items for better spacing */
  }
}

.precon__description {
  font-size: var(--normal-font-size);
  color: var(--text-color);
  font-weight: var(--font-semi-bold);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.precon__amenities {
  margin-bottom: 2rem; /* Add margin at the bottom for spacing */
}

.precon__amenities-title {
  font-size: var(--h2-font-size);
  font-weight: var(--font-medium);
  font-family: var(--title-font);
  margin-bottom: 1rem; /* Add margin at the bottom for spacing */
}

.precon__amenities-list {
  list-style: none;
  padding: 0;
}

.precon__amenity {
  font-size: var(--normal-font-size);
  color: var(--text-color);
  margin-bottom: 0.5rem; /* Add margin at the bottom for spacing */
  display: flex;
  align-items: center;
}

.precon__amenity i {
  margin-right: 0.5rem; /* Add margin to the right of the icon */
}



/* SPECIFIC PRECON SECTION */
.precon2__section .precon__card,
.precon__section .precon__card {
  overflow: hidden; /* Ensure child elements respect the border radius */
  box-shadow: none; /* Remove shadow for a cleaner look */
}

.precon2__section .precon__img,
.precon__section .precon__img {
  width: 100%; /* Ensure the image takes the full width of the card */
  margin-bottom: 0; /* Remove margin */
}

.precon2__section .precon__link,
.precon__section .precon__link {
  display: none; /* Hide the subtitle card */
}

/* DIFFERENT BACKGROUND COLORS FOR SECTIONS */
.precon__section {
  background-color: var(--white); /* Light background color for precon section */
}

.precon2__section {
  background-color: var(--soft-gray); /* Different background color for precon2 section */
}

/* Ensure the parent container has position: relative */
.precon__container {
  position: relative;
}

/* SWIPER CLASS (SLIDER) */
.swiper-button-prev::after,
.swiper-button-next::after {
  content: none; /* Remove the default arrow */
}

.swiper-button-prev,
.swiper-button-next {
  display: none;
}

/* Remove rounded corners from images */
.precon__img {
  width: 100%; /* Ensure the image takes the full width of the card */
  margin-bottom: 1rem;
  border-radius: 1rem; /* Add rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a subtle shadow for a modern look */
}

/* SPECIFIC PRECON SECTION */
.precon2__section .precon__img,
.precon__section .precon__img {
  width: 100%; /* Ensure the image takes the full width of the card */
  margin-bottom: 0; /* Remove margin */
  border-radius: 1rem; /* Add rounded corners */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add a subtle shadow for a modern look */
}

/* Responsive adjustments */

/* for small devices */
@media screen and (max-width: 340px) {
  .swiper-button-prev,
  .swiper-button-next {
    font-size: 1rem; /* Adjust font size for smaller screens */
  }

  .swiper-button-prev {
    left: -0.5rem; /* Adjust position for smaller screens */
  }

  .swiper-button-next {
    right: -0.5rem; /* Adjust position for smaller screens */
  }

  .precon__img {
    border-radius: 0.5rem; /* Adjust rounded corners for smaller screens */
  }
}

/* for medium devices */
@media screen and (min-width: 341px) and (max-width: 767px) {
  .swiper-button-prev,
  .swiper-button-next {
    font-size: 1.5rem; /* Adjust font size for smaller screens */
  }

  .swiper-button-prev {
    left: -1rem; /* Adjust position for smaller screens */
  }

  .swiper-button-next {
    right: -1rem; /* Adjust position for smaller screens */
  }

  .precon__img {
    border-radius: 0.75rem; /* Adjust rounded corners for medium screens */
  }
}

/* for large devices */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .swiper-button-prev,
  .swiper-button-next {
    font-size: 2rem; /* Adjust font size for smaller screens */
  }

  .swiper-button-prev {
    left: -2rem; /* Adjust position for smaller screens */
  }

  .swiper-button-next {
    right: -2rem; /* Adjust position for smaller screens */
  }

  .precon__img {
    border-radius: 1rem; /* Adjust rounded corners for large screens */
  }
}

/* Leads Form Section */
.leads {
  background-color: var(--bg-color);
  padding: 4.5rem 0 2rem;
}

.leads__container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.leads__form {
  width: 100%;
  max-width: 600px;
  background-color: var(--white);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.leads__form-group {
  margin-bottom: 1.5rem;
}

.leads__label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: var(--normal-font-size);
  color: var(--title-color);
}

.leads__input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--soft-gray);
  border-radius: 0.25rem;
  font-size: var(--normal-font-size);
  color: var(--text-color);
  background-color: var(--bg-color-light);
}

.leads__input:focus {
  border-color: var(--gold-accent);
  outline: none;
}

.button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background-color: var(--gold-accent);
  color: var(--dark-navy);
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.button__link:hover {
  background-color: var(--beige-bg);
}

.button__link i {
  margin-left: 0.5rem;
  font-size: 1.25rem;
}


/* FOOTER */
.footer {
  background-color: var(--gold-accent);
  color: var(--dark-navy);
}

.footer__container {
  display: grid;
  row-gap: 3rem;
  padding: 2rem 1.5rem;
}

.footer__logo {
  color: var(--title-color);
  font-size: var(--h2-font-size);
  font-weight: var(--font-medium);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer__content,
.footer__links {
  display: grid;
}

.footer__content {
  grid-template-columns: repeat(2, max-content);
  gap: 3.5rem 3rem;
}

.footer__title {
  font-size: var(--h3-font-size);
  margin-bottom: 1.25rem;
}

.footer__links {
  row-gap: 0.75rem;
}

.footer__links,
.footer__information {
  font-size: var(--small-font-size);
}

.footer__link {
  color: var(--text-color);
  transition: 0.3s;
}

.footer__link:hover {
  text-decoration: underline;
  color: var(--title-color);
}

.footer__social {
  display: flex;
  column-gap: 0.5rem;
}

.footer__social-link {
  display: inline-flex;
  color: var(--dark-navy);
  padding: 0.4rem;
  background-color: var(--gold-accent);
  font-size: 1.25rem;
  transition: background-color 0.3s;
}

.footer__social-link:hover {
  background-color: var(--beige-bg);
}

.footer__info {
  margin-top: 6rem;
  padding-bottom: 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 0.75rem;
}

.footer__copy,
.footer__privacy {
  font-size: var(--smaller-font-size);
  color: var(--dark-navy);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .footer__content {
    grid-template-columns: 1fr; /* Stack items vertically on smaller screens */
    gap: 2rem;
  }

  .footer__container {
    padding: 1.5rem; /* Adjust padding for smaller screens */
  }
}

@media screen and (max-width: 480px) {
  .footer__content {
    grid-template-columns: 1fr; /* Stack items vertically on smaller screens */
    gap: 1.5rem;
  }

  .footer__container {
    padding: 1rem; /* Adjust padding for smaller screens */
  }

  .footer__logo {
    font-size: var(--h3-font-size); /* Adjust logo size for smaller screens */
  }

  .footer__title {
    font-size: var(--normal-font-size); /* Adjust title size for smaller screens */
  }
}

.footer__logo {
  font-size: var(--h3-font-size); /* Adjust logo size for smaller screens */
}

.footer__title {
  font-size: var(--normal-font-size); /* Adjust title size for smaller screens */
}

/* Collapsible sections */
.collapsible {
  background-color: var(--gold-accent);
  color: var(--dark-navy);
  cursor: pointer;
  padding: 1rem;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: var(--smaller-font-size);
  transition: background-color 0.3s;
}

.collapsible:hover {
  background-color: var(--beige-bg);
}

.collapsible:after {
  content: '\002B'; /* Unicode character for "plus" sign (+) */
  color: var(--dark-navy);
  font-weight: bold;
  float: right;
  margin-left: 5px;
}

.collapsible.active:after {
  content: "\2212"; /* Unicode character for "minus" sign (−) */
}

.content {
  padding: 1rem 1.5rem; /* Add more padding for spacing */
  display: none;
  overflow: hidden;
  background-color: var(--gold-accent);
  color: var(--dark-navy);
  font-size: var(--small-font-size);
}

.content p {
  margin-bottom: 1rem; /* Add margin to paragraphs for spacing */
}

.content h2 {
  margin-top: 1.5rem; /* Add margin to headings for spacing */
  margin-bottom: 1rem;
}