/* CSS RESET & BASE TYPOGRAPHY */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: #264653;
  background: #fff;
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture {
  max-width: 100%;
  display: block;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
li {
  margin-bottom: 8px;
}
a {
  color: #2A9D8F;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F4A261;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
h1 {font-size: 2.5rem; margin-bottom: 24px;}
h2 {font-size: 2rem; margin-bottom: 20px;}
h3 {font-size: 1.4rem; margin-bottom: 16px;}
h4 {font-size: 1.15rem;font-weight:600;}
p, ul, ol {font-size: 1rem; margin-bottom: 16px;}
strong {font-weight: bold;}

/* BRANDING COLOR PALETTE (playful_dynamic accents) */
:root {
  --primary: #264653;
  --secondary: #2A9D8F;
  --accent: #F4A261;
  --bright-yellow: #FFD166;
  --bright-pink: #EF476F;
  --white: #FFF;
  --grey-bg: #F5F8FA;
  --shadow: rgba(38, 70, 83, 0.11);
  --radius-card: 22px;
  --radius-btn: 36px;
}

/* CONTAINER AND GLOBAL FLEX PATTERNS */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background-color: var(--grey-bg);
  border-radius: var(--radius-card);
  box-shadow: 0 3px 24px var(--shadow);
}

/* HEADER & NAVIGATION */
header {
  background: var(--primary);
  color: var(--white);
  padding: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 18px 12px 18px;
}
header img {
  height: 48px;
}
nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
nav a {
  color: var(--white);
  font-weight: 600;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.2px;
  padding: 6px 4px;
  position: relative;
  transition: color 0.2s;
}
nav a::after {
  content: '';
  display: block;
  height: 3px;
  width: 0;
  background: var(--accent);
  border-radius: 2px;
  position: absolute;
  left: 0;
  bottom: -4px;
  transition: width 0.2s;
}
nav a:hover, nav a:focus {
  color: var(--bright-yellow);
}
nav a:hover::after, nav a:focus::after {
  width: 100%;
}
.cta-btn {
  background: linear-gradient(90deg, var(--accent) 80%, var(--bright-pink) 100%);
  color: var(--white);
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  outline: none;
  border-radius: var(--radius-btn);
  padding: 11px 34px;
  margin-left: 12px;
  cursor: pointer;
  box-shadow: 0 3px 12px var(--shadow);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
  position: relative;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, var(--bright-pink) 70%, var(--accent) 100%);
  color: var(--primary);
  transform: scale(1.04) rotate(-2deg);
  box-shadow: 0 8px 36px var(--shadow);
}

/* Burger Menu (MOBILE NAVIGATION) */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: var(--white);
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-left: 16px;
  cursor: pointer;
  z-index: 102;
  transition: background 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--bright-pink);
  color: var(--white);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  z-index: 1005;
  left: 0;
  top: 0;
  height: 100vh;
  width: 89vw;
  max-width: 340px;
  background: var(--primary);
  transform: translateX(-105%);
  transition: transform 0.35s cubic-bezier(0.45,1.2,0.35,1);
  box-shadow: 3px 0 24px var(--shadow);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: var(--white);
  border: none;
  font-size: 2.1rem;
  margin: 16px 16px 8px 8px;
  cursor: pointer;
  align-self: flex-end;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--bright-yellow);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0 34px;
  margin-top: 18px;
  width: 100%;
}
.mobile-nav a {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 12px 0;
  border-bottom: 2px solid rgba(244,162,97,0.1);
  transition: color 0.15s, background 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: var(--primary);
  border-radius: 10px;
}

@media (max-width: 1020px) {
  header nav {display:none;}
  .cta-btn {display: none;}
  .mobile-menu-toggle {display: flex;}
}

/* Show/hide desktop/main nav on mobile/desktop */
@media (min-width: 1021px) {
  .mobile-menu, .mobile-menu-toggle {display: none!important;}
  nav {display: flex!important;}
  .cta-btn {display: inline-block!important;}
}

/* HERO SECTION */
.hero {
  background: linear-gradient(90deg, var(--bright-yellow) 60%, var(--accent) 100%);
  border-radius: var(--radius-card);
  padding: 56px 0 42px 0;
  margin-bottom: 52px;
}
.hero .container {
  flex-direction: column;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}
.hero h1 {
  font-size: 2.7rem;
  color: var(--primary);
  font-family: 'Roboto Slab', serif;
  margin-bottom: 16px;
  text-shadow: 1px 2px 1px #ffe3b0, 0 4px 18px #ffd16630;
}
.hero p {
  color: var(--primary);
  font-size: 1.15rem;
  margin-bottom: 18px;
}
.hero .cta-btn {
  margin-top: 10px;
  background: linear-gradient(90deg, var(--bright-pink) 50%, var(--accent) 100%);
}

/* FEATURES:
   - features-grid (multiple), feature-item
   - .service-tile used in services.html
*/
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
  margin-top: 12px;
}
.feature-item, .service-tile {
  flex: 1 1 200px;
  min-width: 180px;
  max-width: 268px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 22px 20px 20px 20px;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: 0 4px 18px var(--shadow);
  margin-bottom: 20px;
  transition: transform 0.23s, box-shadow .23s, background 0.17s;
  position: relative;
}
.feature-item img, .service-tile img {
  width: 40px;
  height: 40px;
  margin-bottom: 3px;
}
.feature-item h3, .service-tile strong {
  font-size: 1.25rem;
  color: var(--primary);
}
.feature-item p, .service-tile p {
  font-size: 1rem;
  color: var(--primary);
}
.feature-item:hover, .service-tile:hover {
  transform: translateY(-7px) scale(1.033) rotate(-2deg);
  box-shadow: 0 8px 34px var(--shadow);
  background: var(--bright-yellow);
}

/* CARD CONTAINERS -- FLEXBOX for all cards */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.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: 20px;
  }
}

/* TESTIMONIALS */
.testimonial-slider, .testimonial-card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 28px 20px 28px;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: 0 3px 20px var(--shadow);
  min-width: 240px;
  max-width: 340px;
  margin-bottom: 20px;
  border-left: 6px solid var(--accent);
  transition: box-shadow 0.19s, border-left 0.23s;
  word-break: break-word;
}
.testimonial-card:hover {
  box-shadow: 0 7px 34px var(--shadow);
  border-left: 6px solid var(--bright-pink);
}
.testimonial-card p {
  color: var(--primary);
  font-size: 1.1rem;
}
.testimonial-card strong {
  color: var(--secondary);
  font-size: 1.03rem;
}

/* List of projects
   .project-summary (references)
*/
.project-summary {
  background: var(--bright-yellow);
  margin-bottom: 20px;
  padding: 22px 18px;
  border-radius: 17px;
  box-shadow: 0 2px 10px var(--shadow);
  color: var(--primary);
  font-size: 1.04rem;
}
.project-summary h3 {font-size: 1.12rem; color: var(--bright-pink)!important;margin-bottom:7px;}

/* FAQ ACCORDION */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: var(--grey-bg);
  border-radius: 15px;
  box-shadow: 0 2px 8px var(--shadow);
  padding: 20px 18px;
  color: var(--primary);
  margin-bottom: 20px;
  transition: box-shadow 0.17s;
}
.faq-item:hover {
  box-shadow: 0 8px 29px var(--shadow);
}
.faq-item h3 {
  font-size: 1.08rem;
  font-family: 'Roboto Slab', serif;
  color: var(--bright-pink);
  margin-bottom: 6px;
}
.faq-item p {
  font-size: 1rem;
}

.helpful-links ul {
  list-style: disc inside;
  margin-left: 10px;
}
.helpful-links a {
  text-decoration: underline;
  color: var(--secondary);
}

/* Feature item flex (from requirements) */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* CONTENT & TYPOGRAPHY */
.text-section {
  font-size: 1.13rem;
  color: var(--primary);
}
.text-section ul, .text-section ol {
  margin-bottom: 18px;
}
.text-section ul li, .text-section ol li {
  font-size: 1rem;
}

/* CONTACT DETAILS */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
  font-size: 1.07rem;
}
.map-placeholder {
  background: var(--grey-bg);
  border-radius: 14px;
  padding: 17px 14px;
  color: var(--primary);
}

/* BUTTONS */
button, .cta-btn {
  transition: background 0.2s, color 0.2s, transform 0.17s;
}
button:focus, .cta-btn:focus {
  outline: 2px solid var(--bright-pink);
}

/* FOOTER */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 38px 0 22px 0;
  margin-top: 70px;
}
footer .container {
  flex-direction: row;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.footer-brand img {
  height: 48px;
  margin-bottom: 11px;
}
.footer-nav, .footer-legal, .footer-social {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}
.footer-nav a, .footer-legal a {
  color: var(--bright-yellow);
  font-size: 1.01rem;
  font-weight: 700;
}
.footer-nav a:hover, .footer-legal a:hover {
  color: var(--accent);
}
.footer-contact {
  color: var(--white);
  font-size: 0.98rem;
  margin-bottom: 14px;
  line-height: 1.7;
}
.footer-contact a {
  color: var(--bright-yellow);
  font-size: inherit;
}
.footer-contact a:hover {color: var(--bright-pink);}
.footer-social a {
  margin-right: 10px;
  display: inline-block;
}
.footer-social img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--white);
  padding: 4px;
  box-shadow: 0 3px 12px var(--shadow);
  transition: filter 0.2s, background 0.2s;
  filter: hue-rotate(3deg) saturate(1.2);
}
.footer-social img:hover {
  background: var(--bright-yellow);
  filter: hue-rotate(-16deg) saturate(1.3);
}

@media (max-width: 1050px) {
  footer .container {
    flex-wrap: wrap;
    gap: 32px;
    flex-direction: column;
  }
}

/* COOKIE BANNER (fixed bottom) */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--accent);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 34px 18px 24px;
  box-shadow: 0 -2px 22px var(--shadow);
  z-index: 1100;
  font-size: 1rem;
  gap: 24px;
  border-radius: 17px 17px 0 0;
  animation: cookieBannerIn 0.4s cubic-bezier(0.42,0,0.6,1.13);
}
@keyframes cookieBannerIn {
  from {transform: translateY(120%);} to {transform: translateY(0);}
}
.cookie-banner p {
  flex: 1 1 260px;
  font-size: 1.07rem;
  color: var(--primary);
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 10px;
}
.cookie-banner button {
  background: var(--secondary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-btn);
  padding: 8px 19px;
  font-size: 0.99rem;
  font-family: 'Roboto Slab', serif;
  font-weight: bold;
  box-shadow: 0 1px 6px var(--shadow);
  cursor: pointer;
  transition: background 0.2s, color 0.14s, transform 0.14s;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--bright-pink);
  color: var(--bright-yellow);
}
.cookie-banner .cookie-settings-btn {
  background: var(--white);
  color: var(--secondary);
  box-shadow: 0 2px 10px var(--shadow);
  border: 2px solid var(--secondary);
}
.cookie-banner .cookie-settings-btn:hover {
  background: var(--secondary);
  color: var(--white);
}

/* COOKIE MODAL POPUP */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(38, 70, 83, 0.74);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.5s;
}
@keyframes fadeIn {from {opacity: 0;} to {opacity: 1;}}
.cookie-modal {
  background: var(--white);
  color: var(--primary);
  border-radius: 24px;
  box-shadow: 0 4px 36px var(--shadow);
  max-width: 420px;
  padding: 38px 26px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: relative;
  z-index: 2100;
  animation: popupIn 0.44s cubic-bezier(0.42,0,0.6,1.13);
}
@keyframes popupIn {from{transform:scale(0.7);} to{transform:scale(1);}}
.cookie-modal h2 {
  font-size: 1.34rem;
  color: var(--primary);
  margin-bottom: 2px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
  font-size: 1rem;
}
.cookie-modal .category-desc {
  font-size: 0.95rem;
  color: #55657e;
  margin-bottom: 7px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 15px;
  right: 19px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--secondary);
  cursor: pointer;
  transition: color 0.21s;
  z-index: 2110;
}
.cookie-modal .cookie-modal-close:hover {color: var(--bright-pink);}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 9px;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 21px;
  background: var(--grey-bg);
  border-radius: 21px;
  position: relative;
  outline: none;
  transition: background 0.2s;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: var(--secondary);
}
.cookie-toggle::before {
  content: '';
  position: absolute;
  top: 2.5px; left: 3px;
  width: 16px; height: 16px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 1px 6px var(--shadow);
  transition: transform 0.25s;
}
.cookie-toggle:checked::before {
  transform: translateX(15px);
  background: var(--bright-pink);
}

/* RESPONSIVE LAYOUTS */
@media (max-width: 840px) {
  h1 { font-size: 2rem; }
  .hero h1 { font-size: 2rem; }
}
@media (max-width: 768px) {
  html {font-size:15px;}
  .container {
    padding: 0 7px;
  }
  .section {padding: 32px 7px;}
  .hero {padding: 36px 0 18px 0;}
  footer {padding: 26px 0 20px 0;}
  .testimonial-slider, .features-grid {
    gap: 13px;
  }
}
@media (max-width: 600px) {
  html {font-size: 14px;}
  .hero {padding: 21px 0 10px 0;}
  .section {
    padding: 15px 3px;
    border-radius: 7px;
  }
}

/* --- PLAYFUL DYNAMIC MICRO-ANIMATIONS --- */
.section, .card, .feature-item, .service-tile, .testimonial-card, .project-summary {
  transition: box-shadow 0.17s, background 0.21s, transform 0.17s, border-left 0.21s;
}
.card:hover, .feature-item:hover, .service-tile:hover, .project-summary:hover {
  background: var(--bright-yellow);
  transform: scale(1.02) rotate(-1deg);
  box-shadow: 0 9px 30px var(--shadow);
}

/* Typography - playful touch: headings, buttons, accent text */
h1, h2, h3, .cta-btn, .footer-nav a, .footer-legal a, .mobile-nav a {
  font-family: 'Roboto Slab', cursive, serif;
  letter-spacing: 0.025em;
}
h1, h2, .cta-btn {
  text-shadow: 1px 3px 0px #ffd16650;
}
h3, .feature-item h3, .service-tile strong, .faq-item h3 {
  color: var(--bright-pink);
}

/* Spacing enforcement for content cards/blocks */
.content-wrapper > *:not(:last-child) {
  margin-bottom: 20px;
}
.card + .card, .testimonial-card + .testimonial-card, .feature-item + .feature-item, .service-tile + .service-tile, .project-summary + .project-summary {
  margin-left: 0 !important;
  margin-top: 0 !important;
}

/* Hide scroll on popup/modal open */
body.modal-open {
  overflow: hidden;
}

/* Hide visually for accessibility */
.sr-only {position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap;}

/* Misc/Accessibility */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--bright-pink) !important;
  outline-offset: 1px;
}

/* Print adjustments */
@media print {
  header, nav, .mobile-menu, footer, .cookie-banner, .cookie-modal-overlay {display:none!important;}
  body {color: #222 !important; background: #fff !important;}
}
