/* --------------------------------------------------------------
   PETSITCO – Global Styles
   -------------------------------------------------------------- */

/* ---- CSS Variables (easy theming) ---- */
:root {
  --clr-primary: #2b92aa;       /* PPA Blue */
  --clr-accent: #FF9F40;        /* orange */
  --clr-bg: #c4cc2b;           /* PPA Green */
  --clr-dark: #2E2E2E;          /* text */
  --clr-light: #fff;
  --radius: 6px;
  --transition: 0.3s ease;
  --max-width: 1200px;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin:0; padding:0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui;
  color: var(--clr-dark);
  background: var(--clr-bg);
  line-height: 1.6;
}

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; margin-bottom: .5rem; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p, li { margin-bottom: .75rem; }
a { color: var(--clr-primary); text-decoration: none; }
a:hover { color: var(--clr-accent); }

/* ---- Layout Helpers ---- */
.container {
  width: 70%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 1rem;
}
.flex { display: flex; }
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.text-center { text-align: center; }

/* --------------------------------------------------------------
   HEADER / NAVIGATION  (new, drop‑in version)
   -------------------------------------------------------------- */

/* ---- Helper container for the header (mirrors .container used elsewhere) ---- */
.container-nav {
  width:80%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;               /* same side padding you have on other sections */
}

/* ---- Header wrapper ------------------------------------------------------ */
.site-header {
  /* keep the background you already had (uncomment if you want a solid colour) */
  /* background: var(--clr-light); */
  box-shadow: 0 2px 6px rgba(0,0,0,.07);
  position: relative;
  z-index: 100;
}

/* ---- Flex row that holds logo, nav and hamburger -------------------------- */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 0;
  flex-wrap: wrap;               /* prevents overflow on very tiny viewports */
}

/* ---- LOGO --------------------------------------------------------------- */
.logo {
  flex: 1 0 30%;                /* never shrink */
}
.logo img {
  display: block;                /* removes the tiny whitespace under the image */
  max-width: 280px;              /* maximum size on large screens */
  min-width: 200px;
  width: auto;                   /* keep intrinsic width on smaller screens */
  height: auto;
}

/* ---- NAVIGATION (mobile hidden by default) ------------------------------ */
.nav {
  display: none;                 /* will be toggled on mobile */
}

/* ----- When the JS adds .is-open ------------------------------------------ */
.nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;                     /* start right under the header */
  left: 0;
  right: 0;
  background: var(--clr-light); /* same colour as the rest of the page */
  z-index: 99;
  padding: 1rem 0;
  border-top: 1px solid #eaeaea;
}

/* ----- List of links ------------------------------------------------------ */
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;       /* vertical on mobile (overridden at ≥768px) */
  gap: .9rem;
}

/* ----- Individual link styling ------------------------------------------- */
.nav-list a {
  font-weight: 500;
  color: var(--clr-dark);
  text-decoration: none;
  padding: .4rem .8rem;
  white-space: nowrap;          /* prevents the Contact button from wrapping */
  transition: var(--transition);
}
.nav-list a:hover {
  color: var(--clr-primary);
}

/* ----- Primary button (Contact) ------------------------------------------ */
.nav-list a.btn-primary {
  background: var(--clr-primary);
  color: var(--clr-light);
  padding: .5rem 1rem;
  border-radius: var(--radius);
}

/* ----- Hamburger button (mobile) ---------------------------------------- */
.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  display: flex;
  align-items: center;
}

/* Hamburger “bars” */
.hamburger,
.hamburger::before,
.hamburger::after {
  width: 24px;
  height: 3px;
  background: var(--clr-dark);
  display: block;
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger::before,
.hamburger::after {
  content: "";
  position: relative;
}
.hamburger::before { top: -8px; }
.hamburger::after  { top: 5px; }

/* Optional – turn the hamburger into an “X” when the menu is open.
   (Add the attribute aria-expanded="true" via your JS) */
.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: rotate(45deg) translate(5px,5px);
}
.nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: rotate(-45deg) translate(5px,-5px);
}

/* --------------------------------------------------------------
   Desktop breakpoint (≥768px)
   -------------------------------------------------------------- */
@media (min-width: 800px) {
  /* Show the normal horizontal navigation */
  .nav {
    display: flex;
    flex: 1;                     /* take the remaining space */
    justify-content: flex-end;   /* push items to the right */
  }

  /* No overlay on desktop – reset the mobile overrides */
  .nav.is-open {
    position: static;
    flex-direction: row;
    background: none;
    padding: 0;
    border-top: none;
  }

  .nav-list {
 list-style: none;
  margin: 0;
  padding: 0;

  /* ---- Desktop (≥768px) ---- */
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;               /* keep everything on one line */
  align-items: center;

  /* fluid gap: never smaller than 0.4rem, never larger than 1.5rem */
  gap: clamp(0.1rem, 1vw, 1.5rem);
  }

  .nav-list li {
  flex: 0 1 auto;                  /* allow the item to shrink a little */
}

  .nav-toggle {
    display: none;               /* hide hamburger */
  }
}

/* --------------------------------------------------------------
   OPTIONAL – keep the header background exactly as before
   -------------------------------------------------------------- */
/* If you want a solid colour background for the header, just
   uncomment the line inside .site-header above. */

/* --------------------------------------------------------------
   HERO SECTION (Home)
   -------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
}
.hero picture,
.hero img { width: 100%; height: auto; object-fit: cover; }
.hero::after {
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.4);
}
.hero-text {
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  justify-content:start;
  align-items:center;
  color:var(--clr-light);
  text-align:center;
  padding:2rem;
  z-index: 10;
}
.hero-text h1 { font-size:2.8rem; margin-bottom:.8rem; }
.hero-text p { font-size:1.2rem; max-width:560px; margin-bottom:1.5rem; }
.btn-primary, .btn-secondary {
  display:inline-block;
  padding:.6rem 1.2rem;
  margin: 5px;
  border-radius:var(--radius);
  font-weight:600;
  transition:var(--transition);
}
.btn-primary {
  background:var(--clr-primary);
  color:var(--clr-light);
}
.btn-primary:hover { background:var(--clr-accent); }
.btn-secondary {
  background:transparent;
  border:2px solid var(--clr-light);
  color:var(--clr-light);
}
.btn-secondary:hover { background:var(--clr-light); color:var(--clr-dark); }

/* --------------------------------------------------------------
   SECTION COMMONS
   -------------------------------------------------------------- */
section { padding:4rem 0; }
.section-title {
  font-size:2rem;
  text-align:center;
  margin-bottom:2rem;
  position:relative;
}
.section-title::after {
  content:"";
  width:60px;
  height:3px;
  background:var(--clr-primary);
  position:absolute;
  left:50%;
  bottom:-10px;
  transform:translateX(-50%);
}

/* --------------------------------------------------------------
   INTRO CARDS (Home)
   -------------------------------------------------------------- */
.intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 1.5rem;
}
.intro-card {
  background:var(--clr-light);
  padding:1.5rem;
  border-radius:var(--radius);
  text-align:center;
  box-shadow:0 2px 8px rgba(0,0,0,.07);
  transition:var(--transition);
}
.intro-card:hover { transform:translateY(-4px); }
.intro-icon {
  width:48px; height:48px; margin-bottom:.8rem;
  color:var(--clr-primary);
}

/* --------------------------------------------------------------
   TESTIMONIALS (Home)
   -------------------------------------------------------------- */
.testimonials-slider {
  max-width:720px;
  margin:0 auto;
}
.testimonials-slider blockquote {
  background:var(--clr-light);
  padding:1.5rem;
  border-left:4px solid var(--clr-primary);
  margin-bottom:1rem;
  border-radius:var(--radius);
}
.testimonials-slider cite {
  display:block;
  margin-top:.5rem;
  font-style:normal;
  color:var(--clr-primary);
}

/* --------------------------------------------------------------
   ABOUT PAGE
   -------------------------------------------------------------- */
.about-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap:.5rem;
  align-items:center;
}
.about-hero .about-img img { border-radius:var(--radius); width:100%; }
@media (min-width:768px) {
  .about-hero { grid-template-columns: .8fr .6fr; }
}

/* --------------------------------------------------------------
   SERVICES PAGE
   -------------------------------------------------------------- */
.services-grid { gap:2rem; }
.service-card {
  background:#ffffffaa;
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:0 2px 8px rgba(0,0,0,.07);
  display:flex;
  flex-direction:column;
  margin-top: 40px;
}
.service-card img {
    width: 70%;
    height: 400px;
    object-fit: cover;
    display: block;
    margin: auto;
    padding: 15px; 
}

.service-card h2, h3, h4 { padding:1rem 1rem 0; }

.service-card p, .service-card li, .service-card ul {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
   }

.service-card .service-features { padding:0 1.2rem; }
.service-card .service-features { list-style: disc inside; margin-top:.5rem; }
.service-card a { margin:1rem; align-self:start; }

/* --------------------------------------------------------------
   PRICING TABLE
   -------------------------------------------------------------- */
.price-table {
  width:100%;
  border-collapse:collapse;
  margin-top:2rem;
  background-color: #ffffffaa;
  
}
.price-table th,
.price-table td {
  border: 1px solid var(--clr-dark);
  padding:.8rem;
  text-align:center;
}
.price-table th { background:var(--clr-primary); color:#fff; }

/* --------------------------------------------------------------
   CONTACT PAGE
   -------------------------------------------------------------- */

.contact-page{
    background-color: #ffffff88;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr;
  gap:2rem;

}
.contact-info p,
.contact-info a { display:flex; align-items:center; gap:.5rem; }
.contact-info i { color:var(--clr-primary); }
.contact-form label {
  display:flex;
  flex-direction:column;
  margin-bottom:1rem;
}
.contact-form input,
.contact-form textarea {
  padding:.6rem;
  border:1px solid #ccc;
  border-radius:var(--radius);
  font-family:inherit;
}
.contact-form button {
  background:var(--clr-primary);
  color:#fff;
  border:none;
  padding:.8rem 1.5rem;
  border-radius:var(--radius);
  cursor:pointer;
  transition:var(--transition);
}
.contact-form button:hover { background:var(--clr-accent); }
@media (min-width:768px) {
  .contact-section { grid-template-columns: 1fr 1fr; }
}

/* --------------------------------------------------------------
   GALLERY PAGE
   -------------------------------------------------------------- */

/* Simple fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}


.gallery-container {
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}

.gallery-container h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  color: #1f2933;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}


.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: white;
  cursor: pointer;
  user-select: none;
  z-index: 1001;
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

.nav-arrow:hover {
  opacity: 0.8;
}


/* --------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------- */
.site-footer {
  background:var(--clr-dark);
  color:#ab1a1a;
  padding:2rem 0;
}
.footer-inner { display:flex; flex-direction:column; align-items:center; gap:.8rem; }
.footer-inner .social a {
  color:#fff;
  margin:0 .4rem;
}
.footer-inner .social a:hover { color:var(--clr-accent); }

/* --------------------------------------------------------------
   ANIMATIONS – Fade In Up on Scroll
   -------------------------------------------------------------- */
.fade-in-up {
  opacity:0;
  transform:translateY(20px);
  animation: fadeInUp 0.6s forwards;
  animation-delay: var(--delay, 0s);
}
@keyframes fadeInUp {
  to {
    opacity:1;
    transform:translateY(0);
  }
}

/* --------------------------------------------------------------
   RESPONSIVE BREAKPOINTS (additional tweaks)
   -------------------------------------------------------------- */
@media (max-width: 600px) {
  h1 { font-size:2rem; }
  .hero-text h1 { font-size:2rem; }
  .hero-text p { font-size:1rem; }
}