/* ======================
   CSS RESET & NORMALIZE
   ====================== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F7F8FA;
  color: #274C61;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #274C61;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #8CC6A1;
}
ul, ol {
  list-style: none;
}
strong { font-weight: 700; }

/* ===============================
   FONT IMPORTS (LOCAL FALLBACK)
   =============================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #274C61;
  margin-bottom: 16px;
  line-height: 1.15;
}
h1 { font-size: 2.25rem; margin-bottom: 24px; }
h2 { font-size: 1.75rem; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 14px; }

p, li, span, em {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #274C61;
}

em { font-style: italic; }

/* ===============================
   COLORS & BRAND VARIABLES
   =============================== */
:root {
  --primary: #274C61;
  --secondary: #8CC6A1;
  --accent: #F7F8FA;
  --card-bg: #fff;
  --border-radius: 16px;
  --shadow: 0 4px 16px 0 rgba(39,76,97,0.07);
}
/* =====================================
   GLOBAL CONTAINER & FLEXBOX LAYOUTS
   ===================================== */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}
/* --------------------------------
   Spacing/Section Rules (MANDATORY)
----------------------------------- */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 230px;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 6px 24px 0 rgba(39,76,97,0.15); }
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 28px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 12px;
  border: 2.5px solid var(--secondary);
  box-shadow: 0 2px 10px 0 rgba(39,76,97,0.07);
  max-width: 530px;
  position: relative;
  transition: box-shadow 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px 0 rgba(39,76,97,0.14);
  border-color: var(--primary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--card-bg);
  border-radius: 14px;
  box-shadow: var(--shadow);
  gap: 15px;
  padding: 24px 22px;
  min-width: 220px;
  width: 100%;
  border-bottom: 4px solid var(--secondary);
  transition: border-color 0.2s;
}
.feature-item img {
  width: 48px; height: 48px;
  margin-bottom: 8px;
}
.feature-item:hover {
  border-color: var(--primary);
}
/* ===========
   HERO AREA
   =========== */
.hero {
  background: var(--primary);
  color: #fff;
  border-radius: 0 0 56px 56px / 0 0 48px 48px;
  padding: 60px 0 54px 0;
  margin-bottom: 48px;
  box-shadow: 0 10px 36px 0 rgba(39,76,97,0.07);
}
.hero h1,
.hero p {
  color: #fff;
}
.hero .btn-primary {
  background: #fff;
  color: var(--primary);
  border: 2px solid #fff;
}
.hero .btn-primary:hover {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--secondary);
}
.hero .content-wrapper {
  align-items: flex-start;
}
/* ========
   HEADER
 ========= */
header {
  background: var(--accent);
  box-shadow: 0 2px 16px 0 rgba(39,76,97,0.09);
  position: sticky;
  top: 0;
  z-index: 1020;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  gap: 26px;
}
header img {
  height: 54px;
  width: auto;
  margin-right: 20px;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.03em;
  color: var(--primary);
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.16s, color 0.16s;
}
header nav a:hover, header nav a:focus {
  background: var(--secondary);
  color: #fff;
}
.btn-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  margin-left: 20px;
  box-shadow: 0 2px 10px 0 rgba(140,198,161,0.07);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: background 0.18s, color 0.16s, transform 0.13s, box-shadow 0.18s;
  outline: none;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 6px 18px 0 rgba(39,76,97,0.16);
}

/* Hides default button border on focus for a cleaner geometric look, keeps accessibility. */
.btn-primary:focus {
  box-shadow: 0 0 0 3px var(--secondary);
}

/* ================
   MOBILE NAV MENU
 ================= */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  font-size: 2rem;
  border-radius: 7px;
  padding: 6px 16px;
  margin-left: 12px;
  cursor: pointer;
  z-index: 2001;
  transition: background 0.16s, color 0.16s, box-shadow 0.15s;
}
.mobile-menu-toggle:hover {
  background: var(--primary);
  color: #fff;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 8px 40px 0 rgba(39,76,97,0.16);
  z-index: 3000;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.65,0,0.35,1);
  display: flex;
  flex-direction: column;
  padding: 0 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.4rem;
  margin: 20px 34px 0 0;
  background: none;
  color: var(--primary);
  border: none;
  cursor: pointer;
  z-index: 3010;
  transition: color 0.12s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  margin-top: 32px;
  margin-left: 48px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 6px 0;
  border-radius: 4px;
  width: 80vw;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: #fff;
  padding-left: 8px;
}
@media (max-width: 1050px) {
  header .container nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .btn-primary {
    margin-left: 0;
  }
}
@media (max-width: 650px) {
  .mobile-nav {
    margin-left: 22px;
  }
}
/* ===============================
   FOOTER
 =============================== */
footer {
  background: #F7F8FA;
  color: var(--primary);
  border-top: 1.5px solid var(--secondary);
  padding: 32px 0 18px 0;
  margin-top: 40px;
  box-shadow: 0 -2px 16px 0 rgba(39,76,97,0.05);
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 16px;
}
footer nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1em;
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
  letter-spacing: 0.02em;
}
footer nav a:hover, footer nav a:focus {
  color: var(--secondary);
  background: none;
}
.footer-contact, .brand-tagline {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1em;
  color: var(--primary);
  line-height: 1.4;
  padding-bottom: 2px;
}
.brand-tagline em {
  font-size: 1.05em;
  color: var(--secondary);
}

/* =============================
   FORMS & INPUTS (if any)
 ============================= */
input[type="text"], input[type="email"], textarea {
  font-family: 'Roboto', Arial, sans-serif;
  border: 2px solid var(--secondary);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 1em;
  margin-bottom: 18px;
  width: 100%;
  box-shadow: 0 1px 4px 0 rgba(39,76,97,0.07);
  transition: border 0.14s, box-shadow 0.16s;
}
input:focus, textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 2px var(--secondary);
}

/* ========================
   PRICING TABLE
 ======================== */
.pricing-table table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
  overflow: hidden;
}
.pricing-table th, .pricing-table td {
  font-family: 'Montserrat', Arial, sans-serif;
  border-bottom: 1.5px solid var(--accent);
  padding: 16px 20px;
  text-align: left;
  font-size: 1.1em;
}
.pricing-table th {
  background: var(--secondary);
  color: var(--primary);
}
.pricing-table tr:last-child td {
  border-bottom: none;
}

.notes-section, .appointment-notes {
  margin-top: 18px;
  padding: 14px 18px;
  background: #f5f6f9;
  border-radius: 8px;
  color: #274C61;
  font-size: 0.98em;
}

/* ========================
   QUALIFICATIONS & LISTS
 ======================== */
.qualifications ul, .text-section ul, .star-reviews ul, .offers ul,.pet-care-experts ul {
  list-style: none;
  padding-left: 0;
}
.qualifications ul li, .text-section ul li, .star-reviews ul li, .offers ul li, .pet-care-experts ul li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 14px;
  font-size: 1rem;
  line-height: 1.5;
}
.qualifications ul li:before, .text-section ul li:before, .offers ul li:before, .pet-care-experts ul li:before, .star-reviews ul li:before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--secondary);
  position: absolute;
  left: 5px;
  top: 4px;
  transform: rotate(15deg);
}

/* =========================
   MAP EMBED AND CONTACTS
 ========================= */
.map-embed {
  margin: 12px 0 0 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1.5px 7px 0 rgba(39,76,97,0.10);
}
.text-section span img,
.text-section img {
  vertical-align: middle;
  width: 22px;
  height: 22px;
  margin-right: 8px;
}
.text-section span {
  display: inline-flex;
  align-items: center;
  margin-bottom: 6px;
  font-weight: 500;
}

/* =========================
   CTA Section
 ========================= */
.cta .btn-primary, .contact-cta .btn-primary {
  margin-top: 24px;
  min-width: 242px;
}

/* ============
   RESPONSIVE
 ============ */
@media (max-width: 1024px) {
  .container {
    max-width: 96vw;
    padding: 0 12px;
  }
  .feature-item { min-width: 160px; }
}
@media (max-width: 900px) {
  .feature-grid, .content-grid {
    flex-direction: column !important;
    gap: 24px;
  }
  .card-container {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 800px) {
  h1 { font-size: 1.66rem; }
  h2 { font-size: 1.35rem; }
  .feature-item { min-width: 140px; }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .testimonials .container, .contact-cta .container {
    padding: 0 8px;
  }
  .card, .feature-item, .testimonial-card {
    padding: 18px 12px;
    min-width: unset;
    width: 100%;
  }
  .hero { padding: 36px 0 32px 0; }
  section, .section { padding: 32px 4px; }
}
@media (max-width: 650px) {
  .container {
    padding: 0 3vw;
  }
  .footer-contact, .brand-tagline {
    font-size: 0.98em;
  }
  .feature-item h3 { font-size: 1em; }
  .cta .btn-primary, .contact-cta .btn-primary {
    padding: 12px 12px;
    font-size: 0.99em;
    width: 100%;
  }
  header img {
    height: 38px;
  }
  .testimonials .testimonial-card {
    padding: 14px 5px;
  }
}
@media (max-width: 480px) {
  h1 { font-size: 1.12rem; }
  h2 { font-size: 1.02rem; }
  .btn-primary { padding: 12px 6px; font-size: 0.93rem; }
}

/* ================================
   GEOMETRIC STRUCTURED ACCENTS
 ================================ */
section, .card, .testimonial-card, .feature-item {
  border-radius: var(--border-radius);
}
section {
  box-shadow: 0 2px 16px 0 rgba(39,76,97,0.05);
  background: var(--accent);
}
.content-wrapper, .feature-grid {
  gap: 30px;
}
.card, .feature-item, .testimonial-card {
  border-radius: 14px 14px 0 14px;
  /* Geometric Notch */
  border-top-left-radius: 4px;
  border-bottom-right-radius: 28px;
}

/* Subtle zigzag angle on h2 underline for geometric identity */
h2 {
  position: relative;
  padding-bottom: 8px;
}
h2:after {
  content: "";
  display: block;
  position: absolute;
  left: 0; bottom: 0;
  width: 62px; height: 4px;
  background: var(--secondary);
  clip-path: polygon(0 0, 100% 0, 80% 100%, 10% 100%);
  border-radius: 2px;
}

/* ================================
   TESTIMONIAL COLORS & ACCESSIBILTY
 ================================ */
.testimonial-card {
  background: #fff;
  color: #2a2a2a;
  font-size: 1.05em;
  border: 2.5px solid var(--secondary);
}
.testimonial-card p {
  color: #274C61;
  font-style: italic;
}
.testimonial-card span {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1em;
  font-weight: 700;
}

/* ================================
   BUTTON MICRO-INTERACTIONS
 ================================ */
.btn-primary {
  transition: background 0.18s, color 0.16s, transform 0.13s, box-shadow 0.18s;
}
.btn-primary:active {
  transform: translateY(1.5px) scale(0.98);
  box-shadow: none;
}

/* ================================
   COOKIE CONSENT BANNER + MODAL
 ================================ */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  color: #274C61;
  border-top: 3px solid var(--secondary);
  box-shadow: 0 -2px 16px 0 rgba(39,76,97,0.10);
  z-index: 4030;
  padding: 26px 10vw 20px 10vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: transform 0.36s cubic-bezier(0.68,0.01,0.36,1);
  transform: translateY(0);
}
.cookie-banner.hidden {
  transform: translateY(150%);
  pointer-events: none;
}
.cookie-banner p {
  color: #274C61;
  font-size: 1em;
  margin-bottom: 0;
  text-align: center;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 8px;
}
.cookie-btn-accept, .cookie-btn-reject, .cookie-btn-settings {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  font-size: 0.97em;
  border-radius: 8px;
  border: none;
  padding: 10px 24px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: 0 1px 6px 0 rgba(140,198,161,0.13);
  transition: background 0.16s, color 0.16s, box-shadow 0.14s, transform 0.11s;
  margin: 0;
}
.cookie-btn-accept {
  background: var(--secondary);
  color: var(--primary);
  border: 2px solid var(--secondary);
}
.cookie-btn-accept:hover, .cookie-btn-accept:focus {
  background: var(--primary);
  color: #fff;
}
.cookie-btn-reject {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.cookie-btn-reject:hover, .cookie-btn-reject:focus {
  background: #d1e5df;
  color: var(--primary);
}
.cookie-btn-settings {
  background: #f7f8fa;
  color: var(--primary);
  border: 2px dashed var(--secondary);
  font-weight: 700;
}
.cookie-btn-settings:hover, .cookie-btn-settings:focus {
  background: var(--secondary);
  color: #fff;
  border-style: solid;
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(39,76,97,0.30);
  z-index: 4100;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal.open {
  display: flex;
  animation: fadeInModal 0.21s ease-in;
}
@keyframes fadeInModal {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  padding: 32px 28px 28px 28px;
  border-radius: 21px 3px 20px 10px;
  box-shadow: 0 8px 40px 0 rgba(39,76,97,0.13);
  min-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  position: relative;
}
.cookie-modal-content h2 {
  font-size: 1.15em;
  color: var(--primary);
  margin-bottom: 6px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
}
.cookie-toggle {
  width: 42px;
  height: 24px;
  border-radius: 14px;
  background: var(--secondary);
  position: relative;
  cursor: pointer;
  transition: background 0.15s;
  vertical-align: middle;
  border: 1.5px solid var(--primary);
}
.cookie-toggle.disabled, .cookie-toggle[aria-disabled="true"] {
  opacity: 0.5;
  background: #e4e6ea;
  border: 1.5px solid #b9c3c6;
  pointer-events: none;
}
.cookie-toggle .toggle-knob {
  position: absolute;
  top: 2.5px;
  left: 3px;
  width: 17px;
  height: 17px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1.5px 6px 0 rgba(39,76,97,0.10);
  transition: left 0.16s;
}
.cookie-toggle.active .toggle-knob {
  left: 22px;
  background: var(--secondary);
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 22px;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.85em;
  cursor: pointer;
  transition: color 0.13s;
}
.cookie-modal-close:hover {
  color: var(--secondary);
}
.cookie-modal .btn-primary {
  margin-top: 18px;
}
@media (max-width: 600px) {
  .cookie-modal-content { min-width: unset; width: 94vw; }
  .cookie-banner { padding-left: 5vw; padding-right: 5vw; font-size: 0.95em; }
}

/* ===========================
   ACCESSIBLE FOCUS STYLES
 =========================== */
:focus-visible {
  outline: 2.5px solid var(--secondary) !important;
  outline-offset: 2px;
}

/* ==========================
   MICRO-ANIMATIONS & EFFECTS
 ========================== */
[data-animate], .btn-primary, .feature-item, .testimonial-card, .card {
  transition: box-shadow 0.18s, border 0.13s, background 0.15s, color 0.16s, transform 0.15s;
}
[data-animate="fade-up"] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s, transform 0.5s;
}
[data-animate="fade-up"].animated {
  opacity: 1 !important;
  transform: none !important;
}

/* ===========================
   PAGE TYPE SPECIFIC STYLES
 =========================== */
.about-preview a, .services-preview a,
.text-section a, .card a, .offers a,
.star-reviews a, .pet-care-experts a {
  color: var(--secondary);
  font-family: 'Montserrat', Arial, sans-serif;
  text-decoration: underline;
  font-weight: 700;
  margin-top: 8px;
}
.about-preview a:hover, .services-preview a:hover, .text-section a:hover, .card a:hover,
.offers a:hover, .star-reviews a:hover, .pet-care-experts a:hover {
  color: var(--primary);
}

/****** END OF CSS ******/
