/* 
? Headings font -  font-family: "Taviraj", serif; 
? body font - font-family: "Figtree", sans-serif; 
* Dark blue: #168EAB
* light blue: #118AB2
* light green: #2a9d8f
* yellow-ish: #FFD166
* orange-ish-header: #dda15e
* notWhite bg: #fefae0
* notBlack bgn and font: #181818
*/
/*! === Base Reset === */

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

/*! --- Body --- */

body {
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: space-between;
   font-family: "Figtree", sans-serif;
   font-size: 1rem;
   background-color: #fefae0; /*? #dfdfdf */
   color: #181818;
   line-height: 1;
   height: 100%;
   width: 100%;
   transition: 0.3s ease-in-out;
}

/*! ----- body dark theme -----  */
body.dark {
   background-color: #181818;
   color: #fefae0;
}
/*! ----------------------------  */

/*! --- Header --- */
header {
   width: 100%;
   height: 3.25rem;
   background-color: #dda15e;
   padding: 0.5rem 1rem;
   box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
   position: sticky;
   top: 0;
   z-index: 100;
}

/*! ----- Header dark theme -----  */
body.dark header {
   background-color: #09131a; /* Dark mode header bg */
}
/*! ----------------------------  */
header,
#logo,
#nav-links,
#nav-links li a,
#navbarAndtheme-toggle {
   display: flex;
   flex-direction: row;
   justify-content: space-between;
   align-items: center;
}
/*! --- left side of the header (logo + h1 + h2) ---  */
#logo {
   height: 100%;
   gap: 0.5rem;
}
#logo-img,
#logo a {
   height: 100%;
}

#logo-img {
   transition: transform 0.3s ease-in-out;
}

/* Hover animation */
#logo-img:hover {
   animation: flap 0.3s ease-in-out infinite alternate;
}

/* Flapping keyframes */
@keyframes flap {
   0% {
      transform: rotateY(0deg) scale(1);
   }
   100% {
      transform: rotateY(40deg) scale(1.1);
   }
}
#logo-text {
   height: 100%;
   display: flex;
   flex-direction: column;
   justify-content: space-between;
}
h1,
h2,
h4,
h5,
h6 {
   font-family: "Taviraj", serif;
   color: #181818;
   font-weight: 300;
}
h3 {
   font-family: "Taviraj", serif;
}

/*! ------ header dark theme colors ------  */
body.dark h1,
body.dark h4,
body.dark h5,
body.dark h6 {
   font-family: "Taviraj", serif;
   color: #fefae0; /* Dark mode header text color */
   font-weight: 300;
}
body.dark h3 {
   color: #2a9d8f;
}
/*! ---------------------------------------------  */
#logo-text h1 {
   font-size: 1.125rem;
   font-weight: 500;
}
#logo-text p {
   font-size: 1rem;
   font-weight: 400;
}
/*! --- Right side of the header (nav + dark mode button) ---  */
nav ul {
   gap: 0.75rem;
}
nav ul li {
   list-style: none;
}
nav ul li a {
   display: flex;
   align-items: center;
   gap: 0.375rem;
   color: #181818;
   font-size: 0.8125rem;
   font-weight: 500;
   text-decoration: none;
   background-color: #ffffff;
   padding: 0.5rem 0.875rem;
   border-radius: 1.5rem;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
   transition: all 0.3s ease;
   border: 1px solid transparent;
}
nav ul li img {
   width: 0.875rem;
   height: 0.875rem;
}

nav ul li a:hover {
   transform: translateY(-2px);
   color: #ffffff;
   background-color: #2a9d8f;
   cursor: pointer;
   box-shadow: 0 6px 12px rgba(60, 225, 206, 0.376);
}
nav ul li a:active {
   transition: 0.3s ease;
   background-color: #2a9d8f;
   box-shadow: inset 0.25rem 0.25rem 0.25rem rgba(0, 0, 0, 0.25);
}
nav ul li.active a {
   background-color: #2a9d8f;
   color: #ffffff;
}
.separator {
   font-size: 1.125rem;
   color: #181818;
   padding: 0 0.5rem;
   opacity: 0.6;
}

/*! ----------- separator dark mode-----------  */
body.dark .separator {
   color: #ffffff;
   opacity: 1;
}
/*! --------------------------------  */
/*! Pill-shaped theme toggle button */
#theme-toggle {
   width: 2.9rem;
   height: 1.5rem;
   background-color: #4b515a;
   border: solid 0.0625rem rgba(122, 122, 122, 0.654);
   box-shadow: 0.25rem 0.25rem 0.25rem rgba(0, 0, 0, 0.25);
   border-radius: 62rem;
   cursor: pointer;
   padding: 0.125rem 0;
   display: flex;
   align-items: center;
   justify-content: space-between;
   transition: all 0.3s ease;
   overflow: hidden;
   position: relative;
}

body.dark #theme-toggle {
   background-color: #bbbbbb;
}

/*! Slider that moves left/right */
.slider {
   background-color: #000000;
   border-radius: 50%;
   width: 1.25rem;
   height: 1.25rem;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: transform 0.4s ease, background-color 0.3s ease;
   position: relative;
   z-index: 1;
   transform: translateX(0);
}
#theme-toggle:hover {
   border: solid 0.0625rem rgba(244, 16, 46, 0.654);
   transform: translateY(-1px);
   color: #ffffff;
   cursor: pointer;
   box-shadow: 0.25rem 0.25rem 0.25rem rgba(0, 0, 0, 0.25);
}
#theme-toggle:active {
   border: solid 0.0625rem rgba(244, 16, 46, 0.654);
   box-shadow: inset 0.25rem 0.25rem 0.25rem rgba(0, 0, 0, 0.25);
}

body.dark .slider {
   transform: translateX(1.5rem);
   background-color: #ffffff;
}

/*! Both icons exist, but only one is shown at a time */
.sun-icon,
.moon-icon {
   padding: 0.0625rem;
   width: 1.25rem;
   height: 1.25rem;
   position: absolute;
   transition: opacity 0.3s ease;
   pointer-events: none;
}

.sun-icon {
   opacity: 0;
}

body.dark .sun-icon {
   opacity: 1;
}

body.dark .moon-icon {
   opacity: 0;
}

/*! --- main --- */
main {
   flex: 1;
   width: 100%;
   max-width: 1200px;
   margin: 0 auto;
   padding: 2rem 1rem;
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 1.5rem;
}
main h3 {
   color: #2a9d8f;
   font-size: 2rem;
   font-weight: 500;
   text-align: center;
}
main p {
   font-size: 1.125rem;
   margin-bottom: 1rem;
   text-align: center;
}
fieldset {
   width: 100%;
   max-width: 37.5rem;
   background-color: #ffffff;
   padding: 1.5rem;
   border-radius: 1.25rem;
   box-shadow: 0.25rem 0.25rem 0.25rem rgba(0, 0, 0, 0.25);
   margin-bottom: 1rem;
}

/*! fieldset dark theme */
body.dark fieldset {
   background-color: #000000;
   color: #fefae0;
   border: 1px solid #2a9d8f;
}
legend {
   padding: 0 0.5rem;
   font-family: "Taviraj", serif;
   font-size: 1.25rem;
   font-weight: 500;
   color: #2a9d8f;
   margin-bottom: 0.5rem;
}
#booking-form {
   display: flex;
   flex-direction: column;
   gap: 0.75rem;
   font-family: "Figtree", sans-serif;
}
#booking-form label {
   color: #2a9d8f;
   display: block;
   font-weight: 500;
}
#booking-form input,
#booking-form select,
#booking-form textarea {
   font-family: "Figtree", sans-serif;
   width: 100%;
   padding: 0.5rem;
   margin-bottom: 0.25rem;
   border: 1px solid #ccc;
   border-radius: 0.25rem;
   font-size: 1rem;
   transition: all 0.3s ease;
}
#booking-form input:focus,
#booking-form select:focus,
#booking-form textarea:focus {
   outline: none;
   border-color: #2a9d8f;
   box-shadow: 0 0 0 3px rgba(42, 157, 143, 0.1);
   transform: translateY(-1px);
}
#booking-form select option {
   background-color: #ffffff; /*? #dfdfdf */
   color: #181818;
}
#booking-form select {
   cursor: pointer;
   background-color: #ffffff; /*? #dfdfdf */
   color: #181818;
}

#booking-form textarea {
   resize: vertical;
   min-height: 7rem;
}
#booking-form button[type="submit"] {
   background-color: #2a9d8f;
   color: #ffffff;
   padding: 0.75rem 1.5rem;
   border: none;
   border-radius: 0.5rem;
   font-size: 1rem;
   font-weight: 500;
   cursor: pointer;
   transition: all 0.3s ease;
   box-shadow: 0 4px 15px rgba(42, 157, 143, 0.2);
}
#booking-form button[type="submit"]:hover {
   transform: translateY(-2px);
   box-shadow: 0 8px 25px rgba(42, 157, 143, 0.3);
}

#booking-form button[type="submit"]:active {
   transform: translateY(0);
   box-shadow: 0 4px 15px rgba(42, 157, 143, 0.2);
}

footer {
   width: 100%;
   height: fit-content;
   background-color: #dda15e;
   padding: 0.5rem 1rem;
   box-shadow: 0 -0.25rem 0.25rem rgba(0, 0, 0, 0.25);
   display: flex;
   flex-direction: row;
   justify-content: space-between;
   align-items: center;
}
#footer-links {
   font-size: 1.125rem;
   display: flex;
   flex-direction: row;
   align-items: center;
   justify-content: center;
   gap: 1rem;
}
#footer-links img {
   height: 1.25rem;
}

/*! ---------- footer dark mode ------  */
body.dark footer {
   background-color: #09131a; /* Dark mode footer bg */
}
/*! --------------------------------  */

@media screen and (max-width: 768px) {
   .desktop {
      display: none;
   }
   .mobile {
      display: block;
   }
   .mobile {
      width: 90%;
      margin: 1rem auto;
   }

   /*! ---- header for mobile ----  */
   header {
      height: auto;
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
   }
   #logo-text {
      justify-content: space-around;
   }

   #logo img {
      height: 3rem;
   }
   nav ul {
      gap: 0.25rem;
   }
   nav ul li a {
      padding: 0.25rem 0.5rem;
      font-size: 0.75rem;
   }

   /*! ---- main for mobile ----  */
   main h3 {
      font-size: 1.5rem;
   }

   footer {
      flex-direction: column;
      align-items: space-between;
      gap: 1rem;
      padding: 1rem;
      text-align: center;
   }
   #footer-links {
      font-size: 1rem;
      align-items: center;
      justify-content: center;
   }
}
