/* --- Declarations --- */
:root {
  --home-background: #4f8b88;
  --header-color: #e06f34;
  --header-color-background: #fff;
  --body-text-color: #000000;
  --white: #fff;
  --accent-color: #02b0a6;
  --fallback-background: #ffffffb1;
  --button-color: #e06f34;
}

/* --- Global Styles & Typography --- */
body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  color: var(--body-text-color);
  background-color: var(--home-background);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3 {
  font-weight: 700;
  color: var(--header-color);
}

a {
  text-decoration: none;
  color: var(--header-color);
}

.bg-light {
  background-color: var(--fallback-background);
}

/* --- Header & Navigation  --- */
header {
  background-color: var(--white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  position: relative;

  .logo {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--accent-color);
    flex: 1;
  }
}

.logo-pic {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);

  img {
    margin: 1px;
    border-radius: 50%;
    height: 50px;
  }
}

.nav-links {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: flex-end;

  li {
    margin-left: 20px;
  }

  a {
    color: var(--body-text-color);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 5px 0;
    transition: color 0.3s;
  }

  a:hover {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
  }
}

.socials-nav {
  display: flex;
  gap: 20px;
  margin-left: 15px;

  i {
    font-size: 1.5rem;
  }

  #facebook-logo {
    color: blue;
  }

  #instagram-logo {
    color: white;
    border-radius: 5px;
    background: radial-gradient(
      circle at 30% 107%,
      #fdf497 0%,
      #fdf497 5%,
      #fd5949 45%,
      #d6249f 60%,
      #285aeb 90%
    );
    padding-left: 1px;
  }
}

/* Hamburger Styles */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.bar {
  display: block;
  width: 30px;
  height: 4px;
  background-color: var(--accent-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animation for the hamburger lines */
.hamburger.toggle .bar:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 7px);
}

.hamburger.toggle .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.toggle .bar:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -7px);
}

/* --- Footer --- */
footer {
  background-color: var(--body-text-color);
  color: var(--white);
  text-align: center;
  padding: 20px 0;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 10px 25px;
  margin-top: 20px;
  border-radius: 5px;
  text-transform: uppercase;
  font-weight: 600;
  transition: background-color 0.3s, color 0.3s;
  cursor: pointer;
  background-color: var(--button-color);
  color: var(--white);
  border: 2px solid var(--button-color);

  &:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
  }
}

/* --- Lightbox / Modal Styles --- */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.lightbox-wrapper {
  position: relative;
  display: inline-block;
  max-width: 90%;
  max-height: 85vh;
}

/* The Enlarged Image */
.lightbox-content {
  margin: auto;
  display: block;
  width: 100%;
  max-width: 700px; /* Limits width on large screens */
  max-height: 80vh; /* Prevents scrolling if image is tall */
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.2);
  animation-name: zoom;
  animation-duration: 0.2s;
}

/* Close Button (The 'X') */
.close-btn {
  /* Position it top-right of the image */
  position: absolute;
  top: 10px;
  right: 10px;

  /* perfect circle */
  width: 45px;
  height: 45px;
  border-radius: 50%;

  /* Center the X */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0; /* Removing padding prevents stretching */

  /* Visual Styles */
  background-color: rgba(0, 0, 0, 0.6); /* shadow background */
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;

  /* Ensure it sits on top of the image if they overlap on small screens */
  z-index: 2001;
}

.close-btn:hover,
.close-btn:focus {
  color: var(--accent-color);
  text-decoration: none;
  cursor: pointer;
}

/* Add a tiny zoom animation when opening */
@keyframes zoom {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

/* --- Section Styling (Home Page) --- */
.hero {
  background: url("./images/banner_pose.jpeg") no-repeat center 45% / cover;
  background-color: var(--fallback-background); /* Fallback color */
  color: var(--body-text-color);
  text-align: center;
  padding: 150px 20px;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;

  .hero-text {
    background-color: rgba(0, 0, 0, 0.35);
    padding: 10px 50px;
    border-radius: 20px;

    h1 {
      color: rgb(247, 247, 247);
      font-size: 2.5rem;
      margin-bottom: 10px;
      text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    }

    p {
      font-size: 1.2em;
      max-width: 600px;
      color: white;
      text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
      margin: 0 auto;
    }
  }
}

.content-section {
  padding: 30px 40px;
  max-width: 50%;
  margin: 0 auto;
  text-align: center;
  border-radius: 20px;

  h2 {
    text-shadow: 1px 1px 1px rbga(0, 0, 0, 0.3);
    color: var(--header-color-background);
    font-size: 2rem;
  }

  p {
    color: white;
    font-size: 1.3rem;
  }
}

#services {
  h2 {
    color: var(--header-color);
  }

  p {
    color: var(--body-text-color);
  }
}

.home-gallery-grid {
  display: grid;
  /* Auto-fit columns: minimal width 250px, otherwise fill space */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.gallery-img {
  width: 100%;
  height: 250px; /* Forces all images to be the same height */
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border: 3px solid var(--white);
}

/* Hover Effect */
.gallery-img:hover {
  transform: scale(1.03); /* Slight zoom on hover */
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
  border-color: var(--accent-color);
}

/* style on each page header section */
.page-header {
  background: var(--home-background);
  color: var(--header-color-background);
  text-align: center;
  padding: 10px 20px 8px;
  font-size: 1.2rem;

  h1 {
    color: var(--header-color-background);
  }
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
  text-align: left;
}

.service-card {
  background-color: var(--white);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border-top: 5px solid var(--accent-color);

  h3 {
    color: var(--accent-color);
  }

  p {
    font-size: 1.1rem;
  }
}

/* --- About Page (about.html) --- */
/* Layout the Main Container */
.about-page-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
}

/* Style the Text Side */
.specific-page-section {
  max-width: 90%;
  background-color: white;
  font-size: 1.2rem;
  margin: 0;
  padding: 70px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-image-side {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 15px;
}

.about-image-side img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ------- Services (services.html) ------- */
.services-header {
  h1 {
    font-size: 2.5em;
  }
  p {
    font-size: 1.2em;
    color: var(--body-text-color);
    max-width: 600px;
    margin: 0 auto;
  }
}
.services-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px 60px;
}

.service-category {
  background: white;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

  h2 {
    margin-top: 0;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 15px;
    margin-bottom: 25px;
    font-size: 1.8rem;
  }

  p {
    margin-bottom: 25px;
    color: #000000;
  }
}

.package-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.package-card {
  background: #f9f9f9;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;

  .package {
    font-size: 1.7em;
    font-weight: 700;
    color: var(--header-color);
    margin: 15px 0;
  }

  ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    text-align: left;
  }

  ul li {
    padding: 5px 0;
    color: #000000;
  }

  ul li:before {
    content: "✓ ";
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 8px;
  }
  .package-card ul.price-list li:before {
    content: none;
  }
}

.package-card ul.price-list li:before {
  content: none;
}

.package-card .price-list {
  list-style: none;
  padding: 0;

  li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
  }

  ul li:before {
    content: none;
  }

  li span:first-child::before {
    content: "•";
    margin-right: 10px;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2em;
  }
}

.note {
  background: #fff9e6;
  border-left: 4px solid #ffc107;
  padding: 15px 20px;
  margin-top: 30px;
  border-radius: 4px;

  strong {
    color: var(--header-color);
  }
}

.cta-section {
  text-align: center;
  padding: 20px 15px;
  background-color: var(--header-color-background);
  margin-top: 40px;
  border-radius: 12px;
  padding-bottom: 40px;

  h2 {
    font-size: 1.6rem;
  }

  p {
    font-size: 1.2rem;
  }
}

/* ------- Contact Form (contact.html) ------- */
.contact-container {
  margin: 40px auto;
  padding: 0 20px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 70%;
}

.contact-info-section {
  background: var(--white);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

  h2 {
    margin-top: 0;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 15px;
    margin-bottom: 30px;
  }
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.info-card {
  display: flex;
  align-items: center;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  border-left: 4px solid var(--accent-color);
  transition: transform 0.3s;

  &:hover {
    transform: translateX(5px);
  }
  i {
    font-size: 2em;
    color: var(--header-color);
    margin-right: 20px;
    width: 40px;
    text-align: center;
  }
}

.info-card-content {
  h3 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
    color: var(--body-text-color);
  }
  p {
    margin: 0;
    color: #666;
    font-size: 1.1em;
  }
  a {
    color: var(--header-color);
    transition: color 0.3s;
  }
  a:hover {
    color: var(--accent-color);
  }
}

.hours-list {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;

  h3 {
    margin-top: 0;
    color: var(--body-text-color);
  }

  ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  li {
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #e0e0e0;
  }

  li:last-child {
    border-bottom: none;
  }
}

.hours-list .day {
  font-weight: 600;
}

.contact-form-section {
  background: var(--white);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

  h2 {
    margin-top: 0;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 15px;
    margin-bottom: 30px;
  }
}

.contact-form {
  display: grid;
  gap: 15px;
  margin-bottom: 40px;
}

.form-group {
  display: flex;
  flex-direction: column;

  label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--body-text-color);

    span {
      content: "*";
      color: red;
    }
  }
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-family: "Poppins", sans-serif;
  font-size: 1em;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.map-section {
  grid-column: 1 / -1;
  background: var(--white);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

  h2 {
    margin-top: 0;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 15px;
    margin-bottom: 30px;
    text-align: center;
  }
}

.map-placeholder {
  background: linear-gradient(135deg, #e6f0ff 0%, #f0f0f0 100%);
  border-radius: 8px;
  padding: 60px 20px;
  text-align: center;
  color: #666;
  border: 2px dashed #ccc;

  i {
    font-size: 3em;
    color: var(--header-color);
    margin-bottom: 15px;
  }

  p {
    font-size: 1.1em;
    margin: 10px 0;
  }
}

.map-placeholder iframe {
  width: 60%;
  max-width: 90%;
  height: 400px;
  border: 0;
  border-radius: 8px;
}

/* --- Success Modal Styles --- */
.success-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.success-modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    border-top: 5px solid var(--accent-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: slideDown 0.4s ease-out;
}

/* Success Icon */
.success-modal-content i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.success-modal-content h2 {
    margin-top: 0;
    color: var(--header-color);
}

.success-modal-content p {
    color: #555;
    margin-bottom: 25px;
}

/* Close 'X' button */
.close-success {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s;
}

.close-success:hover {
    color: var(--header-color);
}

/* Animation */
@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* --- Mobile --- */
@media (max-width: 1158px) {
  /* Contact Page Adjustments*/
  .contact-header h1 {
    font-size: 2em;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 100%;
    padding: 0px 20px 60px;
  }

  .info-card {
    flex-direction: column;
    text-align: center;
  }

  .info-card i {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .hours-list li {
    flex-direction: column;
    text-align: center;
    gap: 5px;
  }

  .map-section {
    margin: 0 -5px;
  }

  .map-placeholder {
    padding: 40px 10px;
  }

  .map-placeholder iframe {
    width: 100%;
    height: 300px;
    max-width: 100%;
  }
}

@media (max-width: 880px) {
  nav {
    flex-direction: row;
    justify-content: space-between;
    padding: 15px 20px;
  }

  .socials-nav {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin-left: 0;

    i {
      font-size: 1.6rem;
    }
  }

  /* Show the hamburger on mobile */
  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .logo {
    font-size: 1rem;
  }

  .logo-pic {
    position: sticky;
    height: 40px;
    width: auto;
    transform: none;
    margin: 0 auto;
    margin-top: -10px;
  }

  /* The Pop-out Menu */
  .nav-links {
    position: fixed;
    top: 67px;
    right: -100%;
    height: auto;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: start;
    transition: right 0.12s ease-in-out;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin: 18px 0;
  }

  .hero {
    padding: 25px 20px;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;

    .hero-text {
      padding: 5px 15px;
      padding-bottom: 50px;

      h1 {
        font-size: 1.6em;
      }
    }
  }

  .content-section {
    max-width: 71%;
  }
  /* Mobile adjustment for lightbox */
  .lightbox-content {
    width: 95%;
  }
  .close-btn {
    top: 10px;
    right: 20px;
  }

  /* about page */
  .service-category {
    padding: 20px;
  }

    .about-page-main {
    grid-template-columns: 1fr;
  }

  .about-image-side {
    width: 100%;
    height: auto;
    min-height: 25vh;
    order: -1;
    margin-bottom: 20px;
    margin-top: 20px;
  }

  .about-image-side img {
    position: static;
    width: 100%;
    height: auto;
  }

  .specific-page-section {
    padding: 30px;
  }
}

@media (max-width: 470px) {
  .home-gallery-grid {
    grid-template-columns: repeat(
      auto-fit,
      minmax(150px, 1fr)
    );
    gap: 10px;
  }

  .gallery-img {
    height: 180px;
  }

  .logo span {
    font-size: 1.4rem;
  }

  .logo-pic {
    margin-left: 30px;
  }

  .contact-info-section,
  .contact-form-section,
  .map-section {
    padding: 20px 15px;
    margin: 0 5px;
  }
}

@media (max-width: 400px) {
  .hero {
    .hero-text {
      max-height: 20vh;
      padding: none;
      h1 {
        font-size: 1.6;
        line-height: 2rem;
        margin-bottom: none;
      }
      p {
        display: none;
      }
      btn {
        padding: 5px 18px;
      }
    }
  }

    .contact-container {
    padding: 0px;
  }
}

@media (max-width: 350px) {
  .hamburger {
    padding-left: 20px;
  }

  .logo {
    font: 0.9rem;
  }

  .logo-pic {
    display: none;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 0px;
  }

  .service-card {
    padding: 10px;
  }
}
