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

/* colors */
:root {
    --primary-color: #ebdcdc;
    --secondary-color: #ebdcdc;
    --third-color: #e29494;
    --green: #808e5d;
    --green-dark: #6a744b;
    --pink: #f2cdc5;
    --pink-dark: #e0b4aa;
    --text-light: #fffaf5;
    --text-dark: #4b4b4b;
}

body {
  font-family: arial, helvetica, sans-serif;
  background-color: #fff;
}

/* ==== HEADER SECTION ===== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0);
  backdrop-filter: blur(6px);            /* optional blur */
  padding: 18px 0;
  box-shadow: none;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

header .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 90px;
}

#logoText {
  width: 180px;
}

/* desktop nav */
.navbar ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.navbar a {
  text-decoration: none;
  color: var(--pink);
  font-size: 18px;
  font-weight: 500;

}

.navbar a:hover {
  color: #ffffff;
}

.nav-btn {
  background-color: var(--pink);
  color: var(--green-dark) !important;
  padding: 8px 16px;
  border-radius: 14px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.nav-btn:hover {
  background-color: var(--pink-dark);
}

/* HAMBURGER BUTTON (hidden on desktop) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: 16px;
  z-index: 1100; /* above overlay nav */
}

/* the 3 bars */
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background-color: var(--pink);
  transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.25s ease;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top:  7px; }

/* X state when menu is open */
.nav-toggle.open span {
  background-color: transparent;
}
.nav-toggle.open span::before {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* SCROLLED HEADER EFFECT */
header.scrolled {
  background-color: rgba(128, 142, 93, 0.75);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* when mobile menu is open, lock background scroll */
body.nav-open {
  overflow: hidden;
}

/* ===== MOBILE NAV OVERLAY ===== */
@media (max-width: 850px) {
  header .container {
    width: 94%;
  }

  /* show hamburger */
  .nav-toggle {
    display: block;
  }

  /* full-screen overlay nav */
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--green);
    background-image: url("./img/hero-bg.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    z-index: 1050;

    /* layout */
    display: flex;
    justify-content: flex-start;   /* start from top */
    align-items: flex-start;
    padding-top: 100px;            /* space under logo / header */

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .navbar ul {
    flex-direction: column;
    gap: 24px;
    width: 100%;
    align-items: center;
  }

  .navbar li {
    width: 100%;
    text-align: center;
  }

  .navbar a {
    font-size: 24px;
    color: var(--pink);
  }

  /* show overlay when body has nav-open */
  body.nav-open .navbar {
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-open header {
    background-color: transparent;
    box-shadow: none;
  }

  /* hide hero content when mobile menu is open */
  body.nav-open .hero-text,
  body.nav-open .hero-img {
    opacity: 0;
    pointer-events: none; /* just in case */
  }
}

/* ==== HERO SECTION ==== */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;

  /* fallback color + image */
  background-color: var(--green);
  background-image: url("./img/hero-bg.webp");
  background-repeat: no-repeat;    /* or "repeat" if you want tiling */
  background-size: cover;          /* make it fill the hero area */
  background-position: center;     /* keep it centered */

  padding: 140px 10% 70px;
  min-height: 100vh;
}

.hero-text {
  flex: 1;
  max-width: 550px;
  min-width: 300px;
}

.hero-text h1 {
  font-size: 62px; /* slightly bigger for prominence */
  color: var(--pink);
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-text p {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 35px;
  line-height: 1.6;
}

.btn {
  background-color: var(--pink);
  color: var(--green-dark);
  padding: 14px 32px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  border: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.btn:hover {
  background-color: var(--pink-dark);
  transform: translatey(-2px);
}

.hero-img img {
  width: 420px; /* larger dog image */
  border: none; 
  transition: transform 0.4s ease;
}

.hero-img img:hover {
  transform: scale(1.05);
}

/* ----- TABLET FIX ----- */
@media (max-width: 900px) {
  .hero {
    padding: 130px 7% 50px;
    text-align: center;
    flex-direction: column;
  }

  .hero-img {
    order: -1;
  }

  .hero-text {
    max-width: 90%;
  }

  .hero-text h1 {
    font-size: 44px;
  }
  .hero-img img {
    width: 75%;
    margin-top: 0;
  }

}

/* ----- SMALL PHONE FIX ----- */
@media (max-width: 480px) {
  .hero {
    padding: 110px 5% 40px;
  }

  .hero-text h1 {
    font-size: 32px;
  }

  .hero-text p {
    font-size: 16px;
  }

  .hero-img {
    marin-bottom: 0px;
  }
  
  .hero-img img {
    width: 65%;
  }
}

/* ==== ABOUT SECTION ==== */

.about {
  background-color: var(--pink);
  padding: 80px 10%;
}

.last {
  padding-bottom: 10px;
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  max-width: 500px;
}

.about-text h2 {
  color: var(--green-dark);
  font-size: 38px;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-dark);
  font-size: 18px;
  margin-bottom: 20px;
}

.about-img img {
  width: 280px;
  border-radius: 50%;
  background-color: #ffd7e0;
  padding: 20px;
}

/* about responsiveness */
@media (max-width: 900px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-img img {
    margin-top: 44px;
  }
}

@media (max-width: 600px) {
  .about-text h2 {
    text-align: center;
  }

  .about-text p {
    font-size: 16px;
    text-align: center;
  }
  .about-img img {
    margin-top: 44px;
  } 
}

/* ==== SERVICES SECTION ==== */
.services {
  background-color: var(--green);
  background-image: url("./img/hero-bg.webp");
  padding: 80px 10%;
  text-align: center;
}

.services h2 {
  color: var(--pink);
  font-size: 40px;
  margin-bottom: 40px;
}

.service-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.card {
  background-color: white;
  border-radius: 20px;
  padding: 25px;
  width: 280px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  transition: transform 0.3;
}

.card:hover {
  transform: translatey(-5px);
}

.card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 15px;
}

.card h3 {
  color: var(--green-dark);
  font-size: 22px;
  margin-bottom: 10px;
}

.card p {
  font-size: 15px;
  color: #555;
  margin-bottom: 24px;
}

/* services responsive */
@media (max-width: 900px) {
  .card h3 {
    font-size: 20px;
  }
}

@media (max-width: 600px) {
  .card h3 {
    font-size: 20px;
  }
}

/* ===== SERVICE MODAL ===== */
.service-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 9998; /* just under booking if both existed (they won’t) */
}

.service-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.service-modal-card {
  background: #ffffff;
  max-width: 520px;
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  border: 3px solid var(--green);
  position: relative;
  padding: 28px 24px 24px;
}

.service-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--green);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  line-height: 30px;
  font-size: 22px;
  font-weight: 600;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.service-close:hover {
  background: var(--green-dark);
}

.service-modal-header h3 {
  color: #e29494;
  font-size: 1.5rem;
  margin-bottom: 20px;
  padding-bottom: 4px;
  border-bottom: 2px solid #e29494;
  display: inline-block;
}

.service-modal-body p {
  font-size: 0.98rem;
  color: #555;
  line-height: 1.6;
}

/* ===== BOOKING MODAL OVERLAY ===== */
.booking-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* dark transparent bg behind popup */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 9999; /* above everything */
}

.booking-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* ===== BOOKING MODAL CARD ===== */
.booking-modal-card {
  background: #ffffff;
  max-width: 900px;
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25);
  border: 3px solid var(--green);
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden; /* round corners clip iframe */
}

/* close (x) button */
.booking-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--green);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  line-height: 32px;
  font-size: 24px;
  font-weight: 600;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.booking-close:hover {
  background: var(--green-dark);
}

/* header text inside popup */
.booking-header {
  background: var(--pink);
  padding: 32px 24px 16px 24px;
  text-align: center;
  border-bottom: 1px solid var(--pink-dark);
}

.booking-header h2 {
  color: var(--green-dark);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.booking-header p {
  color: #5b5b5b;
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0 auto;
  max-width: 420px;
}

/* calendly iframe area */
.booking-body {
  background: #ffffff;
  padding: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1; /* take available vertical space */
}

.calendly-inline-widget {
  width: 100%;
  min-height: 600px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid #ffd7e6;
  background-color: #fff5f7; /* behind iframe load flash */
}

/* footer of popup */
.booking-footer {
  background: #fff5f7;
  border-top: 1px solid #ffe4ef;
  padding: 16px 24px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); /* extra for iOS */

  display: flex;
  flex-direction: column;
  align-items: center;   /* center horizontally */
  justify-content: center; 
  gap: 10px;             /* spacing between elements */
}

.booking-footer .btn {
  width: auto;
  min-width: 240px;      /* keeps button width consistent */
  text-align: center;
}

/* Animate the consent button when text changes */
.consent-btn {
  display: inline-block;
  text-align: center;
  min-width: 250px;
  transition: 
    background-color 0.35s ease,
    padding 0.35s ease,
    min-width 0.35s ease,
    color 0.35s ease,
    opacity 0.25s ease;
}

/* Fade-out effect when changing text */
.consent-btn.fade-out {
  opacity: 0;
}

/* Fade-in effect after text is replaced */
.consent-btn.fade-in {
  opacity: 1;
}

/* Optional: style when switched to "Submit" */
.consent-btn.submitting {
  background-color: var(--green-dark);
  color: var(--pink);
}

/* booking modal – phones full-screen */
@media (max-width: 600px) {
  .booking-modal-overlay {
    padding: 0;                     /* no gap around card */
    align-items: stretch;           /* let card stretch vertically */
    justify-content: flex-start;    /* start at the top */
  }

  .booking-modal-card {
    width: 100vw;
    max-width: 100vw;

    /* let the card size to the real viewport */
    max-height: 100vh;
    height: auto;
    height: 100dvh; /* Safari & modern browsers use this instead of buggy 100vh */

    border-radius: 0;
    border: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .booking-body {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0; /* important for Safari flexbox scroll */
  }

  .booking-header {
    padding: 40px 24px 16px 24px;   /* a bit of top spacing */
  }

  .booking-close {
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    font-size: 20px;
    line-height: 30px;
    z-index: 99999;                 /* keep close button above iframe */
  }

  .booking-header h2 {
    font-size: 1.25rem;
  }

  .booking-header p {
    font-size: 0.9rem;
  }
}

/* button in navbar can look special if you want */
.schedule-btn {
  background-color: #ff5fa2;
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}

.schedule-btn:hover {
  background-color: #e29494;
  color: #fff;
}

/* ==== CONTACT SECTION ==== */
.contact-section {
  background-color: var(--pink);
  padding: 80px 10%;
  text-align: center;
  border-top: none;
}

.contact-inner {
  max-width: 600px;
  margin: 0 auto; /* centers the whole block */
}

.contact-section h2 {
  color: var(--green-dark);
  font-size: 32px;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.contact-section p {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.contact-section .btn {
  display: inline-block;
  margin-top: 25px; /* space above button */
  padding: 14px 34px;
  font-size: 16px;
  border-radius: 30px;
  background-color: var(--green-dark);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(255, 95, 162, 0.3);
  transition: all 0.3s ease;
}

.contact-section .btn:hover {
  background-color: var(--green);
  transform: translatey(-3px);
}

/* global tiny-screen tweak */
@media (max-width: 400px) {
  section {
    padding-left: 5%;
    padding-right: 5%;
  }
}
