/*-----------------------------------------
  CSS RESET / NORMALIZE
------------------------------------------*/
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
input, button, textarea, select { font: inherit; }
button { background: none; border: none; padding: 0; cursor: pointer; }
:focus { outline: 2px solid #1D7F8C; outline-offset: 2px; }

/*-----------------------------------------
  ROOT & TYPOGRAPHY
------------------------------------------*/
body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #FFF;
  color: #3E5362;
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #1D7F8C;
  font-weight: 800;
  line-height: 1.2;
}
h1 { font-size: 2.4rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.5rem; margin-bottom: 14px; }
h4 { font-size: 1.125rem; margin-bottom: 10px; }

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

p, li {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #3E5362;
  margin-bottom: 12px;
}
strong { color: #1D7F8C; font-weight: bold; }
blockquote {
  margin: 16px 0px 16px 0.8em;
  border-left: 4px solid #F7EDE3;
  padding-left: 16px;
  font-style: italic;
  color: #3E5362;
}

/*-----------------------------------------
  BRAND COLORS
------------------------------------------*/
:root {
  --primary: #1D7F8C;
  --secondary: #3E5362;
  --accent: #F7EDE3;
  --highlight: #FABC2A;
  --soft-pink: #FFD8D3;
  --soft-green: #A3D7CA;
  --error: #E93636;
  --neutral: #F9FAFA;
}

/*-----------------------------------------
  LAYOUT UTILS & CONTAINERS
------------------------------------------*/
.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 36px;
    padding: 28px 10px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--accent);
  border-radius: 20px;
  box-shadow: 0 6px 32px rgba(62,83,98,0.09), 0 1.5px 8px rgba(61,127,140,0.13);
  padding: 32px 24px;
  overflow: hidden;
  transition: box-shadow 0.3s cubic-bezier(.3,.7,.4,1);
  display: flex;
  flex-direction: column;
  min-width: 275px;
  max-width: 370px;
  flex: 1 1 275px;
}
.card:hover {
  box-shadow: 0 10px 40px rgba(61,127,140,0.17), 0 3px 12px rgba(62,83,98,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;
}
@media (max-width:768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 24px; }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  background: #FFF;
  border-radius: 16px;
  box-shadow: 0 3px 18px rgba(61,127,140,.11), 0 1.5px 10px rgba(62,83,98,0.09);
  padding: 20px;
  min-width: 230px;
  margin-bottom: 20px;
  border: 2px dashed var(--primary);
  position: relative;
  z-index: 1;
  color: #212529;
}
.testimonial-card strong {
  color: #1D7F8C;
  font-weight: 800;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/*------------------------------------------
  CREATIVE ARTISTIC DECORATIVE STYLE
-------------------------------------------*/
.hero {
  background: var(--accent);
  background-image: linear-gradient(93deg, #F7EDE3 60%, #A3D7CA 120%);
  border-radius: 0 0 40px 40px/0 0 20px 20px;
  box-shadow: 0 10px 60px -20px #A3D7CA30;
  margin-bottom: 40px;
}
.hero h1, .hero h2, .hero h3 {
  text-shadow: 0 4px 24px #A3D7CA70, 0 1.5px 6px #FDBBCAC0;
  color: #1D7F8C;
  letter-spacing: 0.02em;
}
.hero img{
  max-width: 150px;
}
.cta {
  background: var(--primary);
  border-radius: 30px;
  margin-bottom: 48px;
}
.cta .content-wrapper { text-align: center; }
.cta h3,
.cta p {
  color: white;
}

.text-section {
  background: #FFF;
  border-radius: 22px;
  box-shadow: 0 4px 16px rgba(61,127,140,0.07);
  padding: 28px 20px;
}

.team-member-card {
  background: var(--soft-green);
  border-radius: 18px;
  box-shadow: 0 2.5px 12px rgba(29,127,140,0.09);
  padding: 18px 20px;
  color: #2D434F;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 320px;
  flex: 1 1 220px;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 6px solid var(--primary);
  transition: transform 0.18s cubic-bezier(.8,.42,.3,1.15);
}
.team-member-card:hover { transform: translateY(-6px) scale(1.04) rotate(-1.5deg); background: var(--accent); }

.legal {
  background: var(--neutral);
  margin-bottom: 50px;
  border-radius: 20px;
  box-shadow: 0 2px 14px rgba(61,127,140,0.04);
  padding: 42px 0;
}
.confirmation {
  background: var(--soft-pink);
  border-radius: 22px;
  margin-bottom: 56px;
  padding: 48px 18px;
  box-shadow: 0 9px 34px #D1A38C18;
}

/* Decorative SVG shapes & accents would be added as background-image or pseudo-elements in real design */

/*------------------------------------------
  BUTTONS & CTA
-------------------------------------------*/
.cta-btn {
  display: inline-block;
  background: var(--highlight);
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.18rem;
  padding: 14px 32px;
  border-radius: 26px;
  box-shadow: 0 3px 16px #D1A38C24, 0 1px 3.5px #1D7F8C24;
  transition: background 0.2s cubic-bezier(.75,.2,.4,1), color 0.22s cubic-bezier(.41,.85,.5,1.22), transform 0.13s;
  letter-spacing: 0.02em;
  border: none;
  margin-top: 10px;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--primary);
  color: #FFF;
  transform: translateY(-2px) scale(1.04) rotate(-1deg);
}

/* Standard buttons */
button, .btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  background: var(--primary);
  color: #FFF;
  border-radius: 18px;
  border: none;
  transition: background .19s, color .19s, transform .16s;
  padding: 10px 24px;
  font-size: 1rem;
  margin-right: 10px;
  margin-bottom: 6px;
}
button:hover, button:focus, .btn:hover, .btn:focus {
  background: var(--highlight);
  color: #1D7F8C;
}

/*------------------------------------------
  NAVIGATION & HEADER
-------------------------------------------*/
header {
  background: #FFF;
  border-bottom: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 20px 11px 20px;
  position: sticky;
  top: 0; z-index: 100;
  box-shadow: 0 3px 14px rgba(61,127,140,0.04);
}
header > a img { max-height: 48px; }
header nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 16px;
  color: var(--secondary);
  transition: background 0.18s, color 0.18s;
}
header nav a:hover, header nav a:focus {
  background: var(--accent);
  color: var(--primary);
}

header .cta-btn {
  margin-left: 22px;
}

.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  width: 44px; height: 44px;
  min-width: 44px;
  min-height: 44px;
  text-align: center;
  justify-content: center;
  align-items: center;
  transition: background .18s;
  z-index: 102;
  border: none;
  margin-left: 18px;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--highlight);
  color: var(--primary);
}

/* Hide standard nav and show burger on mobile */
@media (max-width:1000px) {
  header nav, header .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
}

/*------------------------------------------
  MOBILE MENU
-------------------------------------------*/
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: linear-gradient(120deg,#F7EDE3 80%,#A3D7CA 115%);
  box-shadow: 0 6px 32px #1D7F8C23;
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .29s cubic-bezier(.56,1.14,.31,1);
  will-change: transform;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: var(--primary);
  color: #FFF;
  border-radius: 50%;
  width: 48px; height: 48px;
  font-size: 2.3rem;
  align-self: flex-end;
  margin: 21px 23px 15px 0;
  transition: background .14s;
  border: none;
  z-index: 203;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--highlight);
  color: var(--primary);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--accent);
  padding: 12px 44px;
  margin-bottom: 7px;
  border-radius: 24px;
  transition: background .17s, color .17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--primary);
  color: #FFF;
}

@media (min-width: 1001px) {
  .mobile-menu { display: none !important; }
}

/*------------------------------------------
  FOOTER
-------------------------------------------*/
footer {
  background: var(--neutral);
  border-top: 3px solid var(--accent);
  padding: 35px 0 22px 0;
  box-shadow: 0 -2px 14px #1D7F8C18;
  margin-top: 40px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
}
footer nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  transition: color .17s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--secondary);
  text-decoration: underline;
}
footer span {
  color: var(--secondary);
  font-size: 0.96rem;
}

/*------------------------------------------
  TABLES & FORMS (if any)
-------------------------------------------*/
input[type="search"] {
  border: 2px solid var(--primary);
  border-radius: 20px;
  padding: 10px 18px;
  font-size: 1rem;
  width: 100%;
  max-width: 360px;
  outline: none;
  background: #FFF;
  margin-top: 14px;
  transition: border .14s;
}
input[type="search"]:focus {
  border: 2.5px solid var(--highlight);
}

label, input[type="checkbox"] {
  cursor: pointer;
  font-size: 1rem;
  margin-right: 8px;
}

/*------------------------------------------
  LINKS & LISTS
-------------------------------------------*/
a {
  color: var(--primary);
  text-decoration: underline dotted var(--accent) 1.5px;
  transition: color .15s, text-decoration .15s;
}
a:hover, a:focus {
  color: var(--secondary);
  text-decoration: underline solid var(--highlight) 2px;
}
ul {
  margin-left: 16px;
  margin-bottom: 18px;
  list-style: disc inside;
  color: #3E5362;
}
ul li {
  margin-bottom: 8px;
}

.details summary {
  font-weight: bold;
  cursor: pointer;
  font-family: 'Montserrat', Arial, sans-serif;
}
details {
  margin-bottom: 18px;
  background: var(--accent);
  border-radius: 12px;
  padding: 10px 14px;
}

/*------------------------------------------
  SPACING & GAP RULES ENFORCEMENT
------------------------------------------*/
main > section, .section {
  margin-bottom: 60px;
  padding: 40px 0;
}
.card-container > *, .content-grid > *, .text-image-section > *, .testimonial-card, .feature-item, .team-member-card {
  margin-right: 0 !important;
  margin-bottom: 20px !important;
}
.card-container, .content-grid, .text-image-section {
  gap: 24px;
}
@media (max-width: 768px) {
  .card-container, .content-grid, .text-image-section {
    gap: 14px;
  }
  main > section, .section {
    padding: 20px 0;
    margin-bottom: 36px;
  }
}

/*------------------------------------------
  CARDS (General)
-------------------------------------------*/
/* Already covered in .card and .testimonial-card above */

/*------------------------------------------
  TESTIMONIALS
  (high contrast, artistic style per requirements)
-------------------------------------------*/
.testimonial-card {
  background: #FFF;
  color: #1D2C33;
  border-left: 6px solid var(--highlight);
  position: relative;
  overflow: visible;
}
.testimonial-card:after {
  content: '\201C';
  position: absolute;
  top: -18px;
  left: 22px;
  color: var(--soft-pink);
  font-size: 3.7rem;
  z-index: 0;
  opacity: 0.16;
  font-family: 'Montserrat', Arial, sans-serif;
}

/*------------------------------------------
  VISUAL EFFECTS, SHADOWS, ROUNDS, ANIMATIONS
-------------------------------------------*/
.card, .testimonial-card, .team-member-card, .confirmation, .text-section {
  box-shadow: 0 3.5px 20px #1D7F8C09, 0 1.5px 12px #F7EDE366;
  border-radius: 18px;
  transition: box-shadow .23s, transform .23s;
}
.card:hover, .testimonial-card:hover, .team-member-card:hover {
  box-shadow: 0 6px 32px #1D7F8C19, 0 3px 18px #F7EDE359;
  transform: translateY(-2px) scale(1.025) rotate(-1deg);
}

/*------------------------------------------
  RESPONSIVE LAYOUTS w/ FLEXBOX
-------------------------------------------*/
@media (max-width: 900px) {
  .content-grid, .card-container, .text-image-section {
    flex-direction: column;
    gap: 14px;
  }
  .team-member-card, .card { min-width: 180px; max-width: none; }
}

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

/*------------------------------------------
  COOKIE CONSENT BANNER & MODAL
-------------------------------------------*/
.cookie-consent-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  background: #FFF2E7;
  color: #1D7F8C;
  box-shadow: 0 -3px 18px rgba(61,127,140,0.08);
  z-index: 250;
  padding: 26px 16px 16px 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  border-radius: 18px 18px 0 0;
  animation: slideInBanner 0.42s cubic-bezier(.53,1.18,.4,1) forwards;
}
@keyframes slideInBanner {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner p {
  flex: 1 1 190px;
  font-size: 1rem;
  margin-bottom: 0;
}
.cookie-consent-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-btn {
  background: var(--primary);
  color: #FFF;
  border-radius: 20px;
  padding: 10px 24px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border: none;
  box-shadow: 0 1.5px 7px #A3D7CA24;
  transition: background .17s, color .17s, transform .17s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--highlight);
  color: var(--primary);
  transform: translateY(-2px) scale(1.05);
}
.cookie-btn.cookie-settings {
  background: var(--accent);
  color: var(--primary);
  border: 1.7px solid var(--primary);
}
.cookie-btn.cookie-settings:hover {
  background: #fff;
  border-color: var(--highlight);
  color: var(--highlight);
}

/* Cookie Settings Modal */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #1D7F8C44;
  z-index: 299;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.cookie-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 14px 64px #1D7F8C2A;
  padding: 36px 36px 24px 36px;
  max-width: 375px;
  width: 98vw;
  color: #1D7F8C;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 19px;
  animation: fadeInCookieModal 0.38s cubic-bezier(.57,1.01,.38,1.19) forwards;
}
@keyframes fadeInCookieModal {
  from { transform: translateY(30%) scale(.94); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.cookie-modal-close {
  position: absolute;
  top: 21px; right: 27px;
  font-size: 2rem;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  width: 38px; height: 38px;
  text-align: center;
  cursor: pointer;
  transition: background .14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--primary);
  color: #FFF;
}

.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 13px;
}
.cookie-toggle {
  width: 38px; height: 22px;
  background: #E8ECEC;
  border-radius: 14px;
  border: none;
  position: relative;
  transition: background .16s;
}
.cookie-toggle[data-checked="true"] {
  background: var(--primary);
}
.cookie-toggle-switch {
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left .17s cubic-bezier(.6,.78,.63,1.12);
}
.cookie-toggle[data-checked="true"] .cookie-toggle-switch {
  left: 19px;
}
.cookie-modal-category label {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
}

/*------------------------------------------
  ARTISTIC FONTS (use from Google Fonts or locally) - fallback handled at head
-------------------------------------------*/
/* Fallbacks handled in font-family */

/*------------------------------------------
  SPECIAL CLASSES/UTILITIES
-------------------------------------------*/
.bg-accent { background: var(--accent); }
.bg-primary { background: var(--primary); color: #FFF; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.rounded { border-radius: 20px; }
.shadow { box-shadow: 0 4px 24px #1D7F8C22; }

/* Hide visually but accessible for screen readers */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

/*------------------------------------------
   END OF STYLE SHEET
-------------------------------------------*/