/* ============================
   1. GLOBAL & VARIABLES
   ============================ */
/* Bringing in a signature font from Google to match "Amsterdam" vibes */
@import url("https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap");

:root {
  /* The Freesia Palette - Light Mode */
  --freesia-blue: rgb(225, 244, 253); /* Your requested base color */
  --fresh-white: #ffffff;
  --leaf-green: #56ab2f; /* Fresh green for buttons */
  --leaf-green-hover: #458a25;
  --text-dark: #333333;
  --text-grey: #666666;
  --shadow-color: rgba(0, 0, 0, 0.1);

  /* Typography */
  /* Aptos is a Microsoft font, so we provide backups like Arial or Helvetica */
  --font-body: "Aptos", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-heading: "Amsterdam Signature", "Great Vibes", cursive;
}

/* Dark Mode Variables */
body:has(#dark-mode-toggle:checked) {
  --freesia-blue: #1a1a2e; /* Dark background */
  --fresh-white: #2d2d44; /* Dark card background */
  --text-dark: #e8e8e8; /* Light text */
  --text-grey: #b0b0b0; /* Light grey text */
  --shadow-color: rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box; /* Makes padding calculate correctly */
  margin: 0;
  padding: 0;
}
.nav-logo {
  width: 30%;
}
body {
  font-family: var(--font-body);
  background-color: var(--freesia-blue);
  color: var(--text-dark);
  line-height: 1.6;
  transition:
    background-color 0.3s,
    color 0.3s;
}

img {
  max-width: 100%; /* Prevents images from overflowing screens */
  border-radius: 8px;
}

/* ============================
   2. NAVIGATION BAR (Flexbox)
   ============================ */
header {
  background-color: var(--fresh-white);
  box-shadow: 0 2px 5px var(--shadow-color); /* Subtle shadow */
  padding: 1rem 0;
  position: sticky; /* Keeps nav at top when scrolling */
  top: 0;
  z-index: 1000;
  transition:
    background-color 0.3s,
    box-shadow 0.3s;
}

nav {
  display: flex; /* Makes items sit in a row */
  justify-content: space-between; /* Pushes logo left, links right */
  align-items: center;
  max-width: 1100px;
  margin: 0 auto; /* Centers the navbar container */
  padding: 0 20px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--leaf-green);
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 25px; /* Space between links */
}

nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--leaf-green);
}

/* Dark Mode Toggle Styles */
.theme-toggle {
  position: relative;
}

.toggle-checkbox {
  display: none; /* Hide the actual checkbox */
}

.toggle-label {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.5rem;
  user-select: none;
  transition: transform 0.3s;
}

.toggle-label:hover {
  transform: scale(1.1);
}

.toggle-icon {
  display: inline-block;
}

#dark-mode-toggle:checked ~ .toggle-label .toggle-icon::before {
  content: "☀️";
}

.toggle-label .toggle-icon::before {
  content: "🌙";
}

/* ============================
   3. LAYOUT CONTAINERS
   ============================ */
main {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
  min-height: 80vh; /* Ensures footer stays at bottom even on empty pages */
}

section {
  margin-bottom: 60px;
}

h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  text-align: center;
  color: var(--leaf-green);
  margin-bottom: 20px;
}

h2 {
  color: var(--text-dark);
  margin-bottom: 15px;
}

/* ============================
   4. HOME PAGE (Hero)
   ============================ */
.hero {
  text-align: center;
  background-color: var(--fresh-white);
  padding: 80px 40px;
  border-radius: 15px;
  box-shadow: 0 4px 15px var(--shadow-color);
  transition:
    background-color 0.3s,
    box-shadow 0.3s;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-grey);
  margin-bottom: 30px;
}

/* THE BUTTONS */
.btn-book,
button[type="submit"] {
  display: inline-block;
  background-color: var(--leaf-green);
  color: white;
  padding: 12px 30px;
  border-radius: 30px; /* Rounded pill shape */
  text-decoration: none;
  font-weight: bold;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition:
    transform 0.2s,
    background-color 0.3s;
}

.btn-book:hover,
button[type="submit"]:hover {
  background-color: var(--leaf-green-hover);
  transform: translateY(-3px); /* Button moves up slightly */
  box-shadow: 0 5px 15px rgba(86, 171, 47, 0.4);
}

/* ============================
   5. SERVICES PAGE (Grid)
   ============================ */
/* We use Grid here to create rows of cards automatically */
main:has(.service-package) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
/* Note: The h1 and p on services page need to span full width, 
   so we wrap the services in a div in HTML or use this trick: */

.service-package {
  background-color: var(--fresh-white);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #e0f0f9;
  transition:
    transform 0.3s,
    background-color 0.3s,
    box-shadow 0.3s;
}

body:has(#dark-mode-toggle:checked) .service-package {
  border-color: #404060;
}

.service-package:hover {
  transform: scale(1.02); /* Slight zoom on hover */
  box-shadow: 0 10px 20px var(--shadow-color);
}

.service-package ul {
  margin-left: 20px;
  margin-top: 15px;
  color: var(--text-grey);
}

/* ============================
   6. CONTACT FORM
   ============================ */
.contact-form form {
  background: var(--fresh-white);
  padding: 40px;
  border-radius: 12px;
  max-width: 600px;
  margin: 0 auto; /* Centers the form */
  transition: background-color 0.3s;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: var(--font-body);
  background-color: var(--fresh-white);
  color: var(--text-dark);
  transition:
    background-color 0.3s,
    color 0.3s,
    border-color 0.3s;
}

body:has(#dark-mode-toggle:checked) input,
body:has(#dark-mode-toggle:checked) select,
body:has(#dark-mode-toggle:checked) textarea {
  border-color: #404060;
}

input:focus,
textarea:focus {
  outline: 2px solid var(--leaf-green);
  border-color: transparent;
}

/* ============================
   7. FOOTER
   ============================ */
footer {
  background-color: var(--text-dark);
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: auto;
  transition: background-color 0.3s;
}

body:has(#dark-mode-toggle:checked) footer {
  background-color: #0f0f1e;
}

/* ============================
   8. RESPONSIVE DESIGN (Mobile First)
   ============================ */

/* Mobile Phones (iPhone, Samsung - up to 480px) */
@media (max-width: 480px) {
  .nav-logo {
    width: 40%;
  }

  nav {
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 10px;
  }

  nav ul {
    gap: 10px;
    font-size: 0.9rem;
    order: 3;
    width: 100%;
  }

  nav a {
    font-size: 0.95rem;
  }

  .toggle-label {
    font-size: 1.2rem;
  }

  h1 {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  h2 {
    font-size: 1.3rem;
  }

  main {
    margin: 20px auto;
    padding: 0 10px;
  }

  section {
    margin-bottom: 40px;
  }

  .hero {
    padding: 40px 20px;
    border-radius: 10px;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .btn-book,
  button[type="submit"] {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .service-package {
    padding: 20px;
    border-radius: 10px;
  }

  .service-package ul {
    margin-left: 15px;
    font-size: 0.95rem;
  }

  .contact-form form {
    padding: 20px;
    max-width: 100%;
  }

  input,
  select,
  textarea {
    padding: 10px;
    font-size: 1rem;
  }

  label {
    font-size: 0.95rem;
  }

  footer {
    padding: 15px 10px;
    font-size: 0.9rem;
  }
}

/* Tablets (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .nav-logo {
    width: 35%;
  }

  nav {
    gap: 15px;
    padding: 0 15px;
  }

  nav ul {
    gap: 15px;
    font-size: 0.95rem;
  }

  nav a {
    font-size: 1rem;
  }

  .toggle-label {
    font-size: 1.3rem;
  }

  h1 {
    font-size: 2.5rem;
    margin-bottom: 18px;
  }

  h2 {
    font-size: 1.4rem;
  }

  main {
    margin: 30px auto;
    padding: 0 15px;
    max-width: 1100px;
  }

  section {
    margin-bottom: 50px;
  }

  .hero {
    padding: 60px 30px;
    border-radius: 12px;
  }

  .hero p {
    font-size: 1.1rem;
    margin-bottom: 25px;
  }

  .btn-book,
  button[type="submit"] {
    padding: 11px 25px;
    font-size: 0.95rem;
  }

  main:has(.service-package) {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }

  .service-package {
    padding: 25px;
    border-radius: 12px;
  }

  .service-package ul {
    margin-left: 18px;
    font-size: 0.98rem;
  }

  .contact-form form {
    padding: 35px;
    max-width: 550px;
  }

  input,
  select,
  textarea {
    padding: 11px;
    font-size: 1rem;
  }

  label {
    font-size: 0.98rem;
  }

  footer {
    padding: 18px;
    font-size: 0.95rem;
  }
}

/* Large Tablets & Small Laptops (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .nav-logo {
    width: 32%;
  }

  nav {
    gap: 20px;
    padding: 0 20px;
  }

  nav ul {
    gap: 20px;
  }

  h1 {
    font-size: 3rem;
    margin-bottom: 20px;
  }

  main {
    margin: 35px auto;
    padding: 0 20px;
  }

  .hero {
    padding: 70px 35px;
  }

  .hero p {
    font-size: 1.15rem;
    margin-bottom: 28px;
  }

  main:has(.service-package) {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
  }

  .contact-form form {
    padding: 38px;
    max-width: 580px;
  }
}

/* Large Desktops & Laptops (1025px and above) */
@media (min-width: 1025px) {
  .nav-logo {
    width: 30%;
  }

  nav {
    gap: 25px;
    padding: 0 20px;
  }

  nav ul {
    gap: 25px;
  }

  h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
  }

  main {
    margin: 40px auto;
    padding: 0 20px;
  }

  .hero {
    padding: 80px 40px;
  }

  .hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
  }

  main:has(.service-package) {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
  }

  .contact-form form {
    padding: 40px;
    max-width: 600px;
  }
}

/* Print Styles */
@media print {
  header,
  nav,
  .theme-toggle,
  button,
  .btn-book {
    display: none;
  }

  body {
    background-color: white;
    color: black;
  }

  main {
    max-width: 100%;
  }
}
