/* CSS RESET AND 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F8FAFB;
  color: #1a2530;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
  border: none;
  background: none;
}

/* BRAND VARIABLES (static, for fallbacks) */
:root {
  --primary: #175E54;
  --secondary: #F5EBDC;
  --secondary-light: #ffffff;
  --accent: #B85C00;
  --text: #18222c;
  --muted: #69707A;
  --border: #E2E7ED;
}

/* TYPOGRAPHY */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: var(--text);
  background: #F8FAFB;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: var(--primary);
}
h1 { font-size: 2.75rem; margin-bottom: 18px; line-height: 1.14; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.35rem; margin-bottom: 12px; }
p, li { font-size: 1rem; margin-bottom: 8px; }
strong { font-weight: 700; color: var(--primary); }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }
}

/* CONTAINER & LAYOUT STRUCTURE */
.container {
  width: 100%;
  max-width: 1160px;
  padding-left: 24px;
  padding-right: 24px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

/* FLEX LAYOUTS BY MANDATORY PATTERN */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--secondary-light);
  border-radius: 18px;
  box-shadow: 0 2px 14px 0 rgba(23,94,84,0.08);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(23,94,84,0.07);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* HEADER */
header {
  background: #fff;
  box-shadow: 0 2px 10px 0 rgba(23,94,84,0.10);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  min-height: 74px;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  gap: 18px;
}
.logo img { height: 44px; }

.main-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 0 6px 0;
  color: var(--primary);
  transition: color 0.1s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--accent);
}

.cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  background: var(--primary);
  color: #fff;
  padding: 12px 30px;
  border-radius: 24px;
  box-shadow: 0 2px 7px 0 rgba(23,94,84,0.07);
  font-size: 1.04rem;
  margin-left: 14px;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  border: none;
  cursor: pointer;
  display: inline-block;
}
.cta-btn:hover,
.cta-btn:focus {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 14px 0 rgba(184,92,0,0.12);
}

.mobile-menu-toggle {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2.1rem;
  display: none;
  cursor: pointer;
  margin-left: 16px;
}

/* HERO SECTIONS */
.hero {
  background: var(--secondary);
  border-radius: 0 0 18px 18px;
  margin-bottom: 36px;
  min-height: 240px;
  display: flex;
  align-items: center;
}
.hero .container {
  min-height: 230px;
  justify-content: center;
}
.hero .content-wrapper {
  max-width: 700px;
  gap: 18px;
}

/* FEATURES */
.features {
  background: #fff;
  margin-bottom: 52px;
  padding: 30px 0 30px 0;
  border-radius: 18px;
}
.features .content-wrapper > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.features .content-wrapper > ul > li {
  flex: 1 1 220px;
  background: var(--secondary);
  border-radius: 14px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px;
  min-width: 172px;
  color: var(--text);
  box-shadow: 0 1px 6px 0 rgba(23,94,84,0.05);
  font-size: 1.01rem;
  transition: box-shadow 0.18s;
}
.features .content-wrapper > ul > li img {
  width: 34px; height: 34px;
  flex: none;
  margin-right: 6px;
}
.features .content-wrapper > ul > li:hover {
  box-shadow: 0 4px 16px 0 rgba(23,94,84,0.10);
}

/* SERVICES BLOCKS */
.services .content-wrapper, .service-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.service-list > div {
  background: #fff;
  border-radius: 14px;
  flex: 1 1 220px;
  min-width: 210px;
  max-width: 290px;
  box-shadow: 0 2px 7px 0 rgba(23,94,84,0.07);
  padding: 22px 17px 18px 17px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.15s;
}
.service-list > div:hover {
  box-shadow: 0 6px 14px 0 rgba(184,92,0,0.09);
}
.service-list img {
  width: 34px; height: 34px;
}
.service-list h3 {
  font-size: 1.18rem;
  margin-bottom: 4px;
}

/* TESTIMONIALS */
.testimonials .testimonial-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.testimonial-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(23,94,84,0.11);
  padding: 24px 22px 20px 22px;
  flex: 1 1 240px;
  max-width: 330px;
  min-width: 210px;
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 142px;
  justify-content: space-between;
  gap: 12px;
  transition: transform 0.16s, box-shadow 0.16s;
  border-left: 6px solid var(--primary);
}
.testimonial-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 24px 0 rgba(23,94,84,0.17);
}
.testimonial-author {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--muted);
  margin-top: 6px;
  font-size: 0.97rem;
  font-style: italic;
}

/* CTA BOTTOM AND CTA SECTIONS */
.cta-bottom, .cta-section {
  background: var(--primary);
  border-radius: 19px;
  box-shadow: 0 4px 32px 0 rgba(23,94,84,0.12);
  color: #fff;
  margin-bottom: 64px;
  padding: 46px 20px;
}
.cta-bottom h2, .cta-section h2, .cta-section h3 {
  color: #fff;
}
.cta-bottom ul {
  padding-left: 20px;
  margin-bottom: 20px;
}
.cta-bottom ul li {
  margin-bottom: 8px;
  position: relative;
  font-size: 1.1rem;
  padding-left: 1em;
}
.cta-bottom ul li:before {
  content: "•";
  color: var(--accent);
  font-size: 1.04em;
  position: absolute;
  left: 0;
  top: 0;
}
.cta-section .cta-btn, .cta-bottom .cta-btn {
  background: var(--accent);
}
.cta-section .cta-btn:hover, .cta-btn:focus {
  background: #9c4800;
}

/* FOOTER */
footer {
  background: #fff;
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 40px 0 30px 0;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.footer-logo img {
  height: 46px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: var(--primary);
  font-size: 1.01rem;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color 0.18s;
}
.footer-nav a:hover {
  color: var(--accent);
}
.footer-contact p,
.footer-contact a {
  font-size: .98rem;
  color: #454c5d;
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-contact img {
  height: 18px;
  width: 18px;
  margin-right: 4px;
}

/* GENERAL SECTIONS */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 820px;
  font-size: 1.06rem;
}
.opening-hours ul, .visit-us-info ul, .next-steps-info ul {
  margin-left: 18px;
  margin-bottom: 4px;
}

/* LEGAL SECTIONS */
.legal {
  background: #fff;
  border-radius: 14px;
  margin-top: 38px;
}
.legal .text-section ul, .legal .text-section ol {
  padding-left: 19px;
  margin-bottom: 14px;
  color: #253649;
}
.legal .text-section li {
  margin-bottom: 7px;
  font-size: 1.01rem;
}

/* PRICING TABLE */
.pricing-table {
  background: var(--secondary);
  padding: 20px 15px;
  border-radius: 14px;
  box-shadow: 0 1px 5px 0 rgba(23,94,84,0.07);
  margin-bottom: 18px;
  max-width: 420px;
  width: 100%;
}
.pricing-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
.pricing-table th, .pricing-table td {
  padding: 8px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.pricing-table th {
  background: #f6f8fb;
  color: var(--primary);
  font-weight: 700;
}
.pricing-table tr:last-child td {
  border-bottom: none;
}

/* MODIFIERS & UTILITY */
strong {
  font-weight: bold;
  color: var(--primary);
}
::-webkit-scrollbar {
  width: 10px;
  background: #e9efed;
}
::-webkit-scrollbar-thumb {
  background: #cddcdc;
  border-radius: 12px;
}

/* MOBILE MENU STYLES */
.mobile-menu-toggle {
  display: none;
}
@media (max-width: 1024px) {
  .main-nav, .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: fixed;
  z-index: 1100;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.8,.32,.32,1);
  box-shadow: 6px 0 26px 0 rgba(23,94,84,.14);
  padding-top: 0;
  overflow-y: auto;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.4rem;
  color: var(--primary);
  align-self: flex-end;
  margin: 25px 25px 8px 0;
  cursor: pointer;
  z-index: 1102;
  transition: color 0.13s;
}
.mobile-menu-close:hover {
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  align-items: flex-start;
  padding: 20px 38px;
  margin-top: 10px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.28rem;
  color: var(--primary);
  font-weight: 600;
  border-radius: 9px;
  padding: 13px 4px 12px 0;
  transition: background 0.18s, color 0.18s;
  margin-right: 12px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--secondary);
  color: var(--accent);
}

@media (max-width: 768px) {
  .hero .content-wrapper, .features .content-wrapper, .services .content-wrapper, .cta-bottom .content-wrapper, .card-container, .service-list, .testimonial-cards, .content-grid, .footer .container {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .section, .cta-bottom, .cta-section {
    padding: 28px 8px;
  }
  footer .container {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .footer-logo {
    margin-bottom: 8px;
  }
}

@media (max-width: 648px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* RESPONSIVE FLEX DIRECTION */
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .features .content-wrapper > ul {
    flex-direction: column;
    gap: 14px;
  }
  .service-list {
    flex-direction: column;
    gap: 14px;
  }
  .testimonial-cards {
    flex-direction: column;
    gap: 14px;
  }
}

/* HOVER EFFECTS & INTERACTIONS */
a, .cta-btn, button, .main-nav a {
  transition: color 0.18s, background 0.18s, box-shadow 0.18s, border-color 0.16s;
}
.features .content-wrapper > ul > li:focus-within,
.features .content-wrapper > ul > li:hover {
  box-shadow: 0 4px 22px 0 rgba(23,94,84,0.13);
}

.card:hover {
  box-shadow: 0 8px 23px 0 rgba(23,94,84,0.16);
}

/* MODALS & OVERLAYS (for Cookie) */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  border-top: 2px solid var(--primary);
  box-shadow: 0 -4px 24px 0 rgba(23,94,84,0.13);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 32px 22px 32px;
  flex-wrap: wrap;
  animation: bannerIn .6s cubic-bezier(.83,.09,.44,.96);
}
@keyframes bannerIn {
  from { transform: translateY(90px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  font-size: 0.97rem;
  color: #263850;
  margin-bottom: 4px;
  flex: 1 1 280px;
}
.cookie-banner .cookie-btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 10px 28px;
  font-size: 1.02rem;
  border-radius: 16px;
  border: none;
  background: var(--secondary);
  color: var(--primary);
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 2px 7px 0 rgba(23,94,84,0.08);
  transition: background 0.15s, color 0.15s, box-shadow 0.14s;
}
.cookie-btn.accept {
  background: var(--primary);
  color: #fff;
}
.cookie-btn.accept:hover {
  background: var(--accent);
}
.cookie-btn.reject {
  background: #e9ecef;
  color: var(--primary);
}
.cookie-btn.reject:hover {
  background: var(--secondary);
}
.cookie-btn.settings {
  background: var(--accent);
  color: #fff;
}
.cookie-btn.settings:hover {
  background: #FFF4EA;
  color: var(--accent);
}

.cookie-modal-overlay {
  position: fixed;
  z-index: 1300;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(14, 22, 29, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  animation: fadeInModal .32s cubic-bezier(.46, .03, .52, 1);
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  max-width: 400px;
  width: 92vw;
  box-shadow: 0 6px 41px 0 rgba(23,94,84,0.17);
  padding: 34px 32px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  animation: slideInModal .47s cubic-bezier(.38,.07,.5,1.04);
  position: relative;
}
@keyframes slideInModal {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.25rem; color: var(--primary);
  margin-bottom: 8px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.04rem;
  margin-bottom: 13px;
}
.cookie-modal .cookie-toggle {
  margin-left: auto;
  width: 42px; height: 24px;
  background: #e5ece9;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background 0.15s;
  display: flex; align-items: center;
}
.cookie-modal .cookie-toggle[data-checked="true"] {
  background: var(--primary);
}
.cookie-modal .cookie-toggle span {
  display: block;
  width: 19px; height: 19px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: 2px; top: 2.5px;
  transition: left 0.18s, background 0.18s;
}
.cookie-modal .cookie-toggle[data-checked="true"] span {
  left: 21px;
  background: var(--accent);
}
.cookie-modal .cookie-desc {
  font-size: 0.93rem;
  color: #48516B;
  margin: 4px 0 10px 0;
}
.cookie-modal-close {
  position: absolute;
  top: 13px; right: 17px;
  background: none;
  border: none;
  font-size: 1.9rem;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.13s;
  z-index: 15;
}
.cookie-modal-close:hover { color: var(--accent); }

@media (max-width: 500px) {
  .cookie-banner { flex-direction: column; padding: 15px 10px; gap: 10px;}
  .cookie-modal { padding: 19px 10px 10px 12px; }
}

/* FORMS */
input, select, textarea {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 13px;
  margin-bottom: 16px;
  outline: none;
  background: #f8fafb;
  font-size: 1rem;
  transition: border-color 0.17s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
}

/* LINK STYLE */
a {
  color: var(--primary);
  transition: color 0.18s;
}
a:hover {
  color: var(--accent);
}

/* ANIMATIONS */
.cta-btn, .cookie-btn {
  transition: background 0.2s, color 0.18s, transform 0.16s, box-shadow 0.2s;
}
.cta-btn:active, .cookie-btn:active {
  transform: scale(.97);
}

/* SPACING FIX FOR CONTENT */
.section, .hero, .features, .services, .cta-bottom, .cta-section, .testimonials, .legal, .about, .contact, .success {
  margin-bottom: 60px;
}
@media (max-width: 480px) {
  .section, .hero, .features, .services, .cta-bottom, .cta-section, .testimonials, .legal, .about, .contact, .success {
    margin-bottom: 34px;
    padding: 0 4px 0 4px;
  }
}

/* MISC ELEMENTS */
.comfort-safety-info, .behaviorist-info, .location-map, .visit-us-info {
  background: var(--secondary);
  border-radius: 11px;
  padding: 16px 14px;
  margin-bottom: 10px;
  font-size: 1.03rem;
}
.wellness-icons {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-top: 10px;
}
.wellness-icons img { width: 28px; height: 28px; }

/* Accessibility: High contrast for review/testimonial text */
.testimonial-card, .testimonial-card p {
  background: #fff;
  color: #20272d;
  border-left: 6px solid var(--primary);
}
.testimonial-card strong { color: var(--accent); }

/* ENSURE MINIMUM SPACING BETWEEN CARDS */
.card, .testimonial-card, .feature-item, .service-list > div {
  margin-bottom: 20px;
}

/* OVERLAP PROTECTION */
.card, .testimonial-card, .service-list > div,
.features .content-wrapper > ul > li {
  z-index: 1;
}

/* Prevent unwanted user selection highlighting on buttons */
button, .cta-btn, .cookie-btn { user-select: none; }

/* FOCUS INDICATORS FOR ACCESSIBILITY */
.cta-btn:focus, .main-nav a:focus, .mobile-nav a:focus,
.cookie-btn:focus, .mobile-menu-close:focus, .cookie-modal-close:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

@media (max-width: 400px){
  .cta-btn { padding: 10px 12px; font-size: .97rem; }
}

/* Hide scroll when mobile menu or modal open */
body.mobile-menu-open,
body.modal-open {
  overflow: hidden;
}
