/* Global styles */
html,
body {
  margin: 0;
  padding: 0;
  /* Use modern sans‑serif fonts from Google. Fall back to system fonts if unavailable. */
  font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--text, #333);
  background-color: var(--background, #f8faff);
  line-height: 1.5;
}

/* ============================================================ */
/* Custom additions for cookie banner and responsive layout */

/* Cookie banner styles */
#cookie-banner, #cookie-preferences {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 9999;
  font-size: 14px;
}
#cookie-banner {
  bottom: 0;
  background: #0f2a1f;
  color: #fff;
  box-shadow: 0 -6px 18px rgba(0,0,0,.2);
}
.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.cookie-text {
  flex: 1;
  line-height: 1.4;
}
.cookie-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.cookie-actions button {
  border: 0;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}
.cookie-btn-accept { background: #198754; color: #fff; }
.cookie-btn-reject { background: #6c757d; color: #fff; }
.cookie-btn-manage { background: #fff; color: #0f2a1f; border: 1px solid #cfd6d2; }
#cookie-preferences {
  bottom: 0;
  background: #fff;
  color: #0b1d15;
  border-top: 3px solid #0f2a1f;
}
.cookie-pref-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 18px 16px;
}
.cookie-pref-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #e8edea;
}
.cookie-pref-row:last-child { border-bottom: 0; }
.cookie-pref-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.cookie-toggle { transform: scale(1.2); }
@media (max-width: 640px) {
  .cookie-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-actions {
    justify-content: flex-end;
  }
}

/* Mobile header refinements */
@media (max-width: 768px) {
  header .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
  }
  header .logo {
    margin: 0;
    order: 1;
  }
  .hamburger {
    display: flex;
    order: 2;
  }
  #nav-menu {
    display: none !important;
  }
  #nav-menu.active {
    display: flex !important;
  }
}
  /* Hero + CTA */
  .hero {
    padding: 48px 16px 32px;
    text-align: center;
  }
  .hero .cta {
    display: inline-block;
    margin: 14px auto 0;
  }
  /* Services grid: 2 columns on phones */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

/* Tablet layout: 3 columns */
@media (min-width: 641px) and (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero .cta {
    margin: 14px auto 0;
    display: inline-block;
  }
}

/* Desktop navigation always visible */
@media (min-width: 769px) {
  .hamburger {
    display: none !important;
  }
  #nav-menu {
    display: flex !important;
    position: static !important;
    flex-direction: row !important;
    background-color: transparent !important;
    padding: 0 !important;
    max-height: none !important;
    box-shadow: none !important;
    gap: 16px !important;
  }
  #nav-menu a {
    border-bottom: none !important;
    padding: 0 !important;
    display: inline-block !important;
  }
}

/* Center CTA buttons in hero and pricing sections */
.hero .cta,
.pricing .cta {
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
}

/* Theme colour palette */
:root {
  /* Core palette: refined blues and warm coral for a fresh, modern feel */
  --primary: #0e70d4;
  --secondary: #ff8c5a;
  --background: #f8faff;
  --alt-background: #eef5fd;
  --text: #303030;
  /* Additional colours used for icon backgrounds */
  --icon-bg: #e8effc;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header and navigation */
.header {
  background-color: var(--primary);
  color: #fff;
  padding: 16px 32px;
}
  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative; /* Needed for z-index context */
    z-index: 1001; /* Ensure navbar is above menu when open */
    width: 100%;
  }
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  text-transform: lowercase;
  letter-spacing: 1px;
}
  .navbar nav a {
    margin-left: 16px;
    font-weight: 500;
    white-space: nowrap; /* Prevent menu items from wrapping */
  }
  .navbar nav a.btn-small {
    padding: 8px 20px;
    background-color: var(--secondary);
    color: #fff;
    border-radius: 20px;
    white-space: nowrap; /* Prevent button text from wrapping */
  }
.navbar nav a.btn-small.active {
  background-color: #fff;
  color: var(--primary);
}

/* Hamburger menu button */
  .hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 5px;
    z-index: 1002; /* Ensure hamburger is above everything */
  }
.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile navigation menu */
#nav-menu {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-left: auto; /* Push menu to the right */
}

@media (max-width: 768px) {
  #nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background-color: var(--primary);
    flex-direction: column;
    gap: 0;
    padding: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 100%;
  }
  
  #nav-menu.active {
    max-height: 500px;
  }
  
  #nav-menu a {
    display: block;
    padding: 12px 0;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    text-align: center;
    margin: 0;
  }
  
  #nav-menu a:last-child {
    border-bottom: none;
  }
  
  #nav-menu a.btn-small {
    margin-top: 8px;
    padding: 10px 20px;
    border: none;
    text-align: center;
    display: block;
  }
}

/* Buttons */
.btn {
  display: inline-block;
  background-color: var(--secondary);
  color: #fff;
  padding: 12px 28px;
  border-radius: 28px;
  font-weight: 600;
  transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}
.btn:hover {
  background-color: #e4794f;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12);
}
.btn-lg {
  font-size: 1.1rem;
}
.btn-small {
  font-size: 0.875rem;
  padding: 8px 20px;
}

/* Hero section */
.hero {
  position: relative;
  height: 65vh;
  min-height: 420px;
  background-image: url('../images/hero.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}
.hero-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  /* Blend two colours for a subtle gradient overlay */
  /* Lighten the hero overlay to improve contrast on the first preview design. */
  /* Lighten the hero overlay by reducing alpha values so the illustration beneath remains
     colourful and the text stays readable. */
  background: linear-gradient(135deg,
    rgba(14, 112, 212, 0.25), /* soft blue tint */
    rgba(255, 140, 90, 0.15)  /* warm coral tint */
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 850px;
  padding: 0 24px;
}
  .hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 24px;
    line-height: 1.15;
    /* Add a subtle text shadow to improve readability against the lighter
       hero background.  This helps the white lettering stand out without
       relying on a heavy overlay. */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
    word-wrap: break-word;
  }
  .hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    /* Apply the same shadow to paragraphs for consistency */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    word-wrap: break-word;
  }

/* Sections */
.section {
  padding: 70px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.alt-section {
  background-color: var(--alt-background);
}
.section h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary);
}

/* Service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.service-card {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  padding: 32px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}
.service-card i {
  /* The old icon rule is no longer used because we are switching to emoji icons. */
  display: none;
}
.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.5rem;
  color: var(--primary);
}
.service-card p {
  font-size: 1rem;
  margin-bottom: 16px;
  min-height: 70px;
}
.service-card .price {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  background-color: var(--primary);
  color: #fff;
  border-radius: 22px;
  font-size: 0.95rem;
}

/* Emoji icon used in service cards */
.service-card .icon {
  font-size: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px auto;
  color: #fff;
  background-color: var(--secondary);
  border-radius: 50%;
}

/* Features and steps */
.features, .how-works {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}
.feature, .step {
  flex: 1 1 220px;
  max-width: 260px;
  text-align: center;
  padding: 20px;
}
/* Give feature and step icons a colourful circular background for a playful feel */
 .feature i,
 .step i {
  font-size: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  color: #fff;
  background-color: var(--secondary);
  border-radius: 50%;
 }
 .feature h4,
 .step h4 {
  margin-bottom: 8px;
  font-size: 1.25rem;
  color: var(--primary);
 }
 .feature p,
 .step p {
  font-size: 1rem;
 }

/* About / Contact */
.about-text {
  max-width: 800px;
  margin: 0 auto 32px auto;
  text-align: center;
  font-size: 1rem;
}
.contact-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  font-size: 1rem;
}
.contact-details div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0b3d91;
}
.contact-details i {
  font-size: 1.25rem;
}

/* Footer */
.footer {
  background-color: var(--primary);
  color: #fff;
  padding: 32px 20px;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}
.footer-links a {
  color: #fff;
  margin-left: 16px;
  font-size: 0.875rem;
}

/* Booking page */
.booking-page h2 {
  text-align: center;
  color: #0b3d91;
  margin-bottom: 40px;
}
.booking-form {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background-color: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
.form-row {
  display: flex;
  flex-direction: column;
}
.form-row label {
  margin-bottom: 6px;
  font-weight: 600;
}
.form-row input,
.form-row select,
.form-row textarea {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}
.form-row textarea {
  resize: vertical;
}
.card-element {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #fafafa;
}
.card-errors {
  color: #d9534f;
  margin-top: 8px;
  font-size: 0.9rem;
}
.alert {
  padding: 16px;
  margin-bottom: 24px;
  border-radius: 4px;
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}
.alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border-color: #ffeeba;
}

/* Success page */
.success-message, .error-message {
  max-width: 600px;
  margin: 40px auto;
  text-align: center;
  background-color: #fff;
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.success-icon {
  color: #28a745;
  font-size: 3rem;
  margin-bottom: 16px;
}
.error-icon {
  color: #dc3545;
  font-size: 3rem;
  margin-bottom: 16px;
}
.booking-summary ul {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  text-align: left;
}
.booking-summary li {
  margin-bottom: 8px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .navbar nav a {
    margin-left: 12px;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .feature, .step {
    max-width: 180px;
  }
  .booking-form {
    padding: 24px;
  }
}

/*
 * Mobile navigation layout tweaks
 *
 * On very small screens the default horizontal navigation layout causes
 * overflow and misalignment of the logo and nav links. To improve
 * readability and accessibility, stack the logo and navigation links
 * vertically and centre them when the viewport width is 600px or less.
 */
@media (max-width: 600px) {
  /* stack the logo and nav items */
  .navbar {
    flex-direction: column;
    align-items: center;
  }
  /* centre the nav list and allow wrapping */
  .navbar nav {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }
  /* remove the default left margin on links and add a small right margin */
  .navbar nav a {
    margin-left: 0;
    margin-right: 8px;
    /* Prevent link text from breaking in the middle on small screens. */
    white-space: nowrap;
  }
}