/* ===================================================================
   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, 
main, 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;
}
footer span {
  color: white;
}
/* HTML5 display-role reset */
article, aside, details, figcaption, figure, 
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body { line-height: 1.5; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote:before, blockquote:after, q:before, q:after {
  content: ''; content: none;
}
table { border-collapse: collapse; border-spacing: 0; }
img { max-width: 100%; display: block; border: 0; }
button, input, select, textarea { font-family: inherit; font-size: inherit; outline: none; }

/* ===================================================================
   Brand Colors & Font Variables + Base
=================================================================== */
:root {
  --color-primary: #193153;
  --color-secondary: #D1E3ED;
  --color-accent: #F5C842;
  --color-success: #47E084;
  --color-error: #F55442;
  --color-white: #fff;
  --color-black: #10121f;
  --color-dark: #1e2130;
  --color-grey: #F3F6F9;
  --color-link: #204C9D;
  --shadow-card: 0 4px 16px 0 rgba(25,49,83,0.07), 0 2px 8px 0 rgba(245,200,66,0.10);
  --radius: 22px;
  --radius-small: 12px;
  --radius-btn: 30px;
  --font-display: 'Roboto Slab', serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

body {
  background: var(--color-secondary);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

/* Typography
---------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.8rem; line-height: 1.15; margin-bottom: 24px; }
h2 { font-size: 2rem;   margin-bottom: 20px; }
h3 { font-size: 1.3rem; margin-bottom: 18px; }
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }
}
p, li, span, label {
  font-size: 1rem;
  color: var(--color-dark);
  line-height: 1.7;
}
strong {
  color: var(--color-accent);
  font-weight: 800;
  font-family: var(--font-display);
}
a {
  color: var(--color-link);
  text-decoration: underline;
  transition: color .2s;
}
a:hover,
a:focus {
  color: var(--color-accent);
}

/* ===================================================================
   Layout Containers & Sections
=================================================================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

/* Section Spacing (MANDATORY) */
section {
  background: var(--color-white);
  border-radius: var(--radius);
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: var(--shadow-card);
  animation: fadeInUp .9s cubic-bezier(.47,1.64,.41,.8);
}
@keyframes fadeInUp {
  from { opacity:0; transform: translateY(36px); }
  to { opacity:1; transform: translateY(0); }
}

/* ===================================================================
   Header & Navigation
=================================================================== */
header {
  background: var(--color-primary);
  color: var(--color-secondary);
  position: sticky;
  top: 0;
  z-index: 1001;
  box-shadow: 0 2px 12px 0 rgba(25,49,83,0.13);
}
header .container {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.logo img { height: 44px; width: auto; }

/* Desktop nav */
.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}
.main-nav a {
  color: var(--color-secondary);
  font-weight: 600;
  padding: 7px 9px;
  border-radius: 12px;
  text-decoration: none;
  transition: background .18s, color .2s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
  text-decoration: none;
}

/* Burger Button (MOBILE) */
.mobile-menu-toggle {
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  border-radius: var(--radius-btn);
  font-size: 2rem;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 6px #e9eaeb;
  margin-left: 16px;
  transition: box-shadow .22s;
  z-index: 1010;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  box-shadow: 0 4px 20px #f5c84244;
}

@media (min-width: 1025px) {
  .mobile-menu-toggle { display: none; }
}

/* Hide nav & show burger on mobile */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .btn-primary { margin-left: auto; }
}

/* ===================================================================
   MOBILE SLIDE MENU
=================================================================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-white);
  box-shadow: 0 8px 48px rgba(25,49,83,.33);
  z-index: 1200;
  transform: translateX(-100vw);
  transition: transform .38s cubic-bezier(.54,1.6,.37,.88);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 28px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  font-size: 2rem;
  border-radius: var(--radius-btn);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  position: absolute;
  top: 22px; right: 28px;
  z-index: 1201;
  cursor: pointer;
  transition: background .22s;
}
.mobile-menu-close:hover {
  background: var(--color-error);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  margin-top: 70px;
  align-items: flex-start;
}
.mobile-nav a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.33rem;
  padding: 10px 0 10px 6px;
  border-radius: 12px 32px 32px 12px;
  text-decoration: none;
  transition: background .15s, color .18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--color-accent);
  background: var(--color-secondary);
}

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

/* ===================================================================
   Buttons & Links
=================================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.13rem;
  padding: 12px 30px;
  border: none;
  outline: none;
  margin-left: 30px;
  border-radius: var(--radius-btn);
  box-shadow: 0 1px 6px #f5c84277;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, box-shadow .19s, transform .16s;
}
.btn-primary:hover, .btn-primary:focus {
  background: #ffd900;
  color: var(--color-primary);
  transform: scale(1.045) rotate(-2deg) skewX(-4deg);
  box-shadow: 0 6px 28px #f5c84299;
  text-decoration: none;
}

/* Playful badge/circle (decorative use) */
.badge-accent {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: bold;
  padding: 5px 18px;
  border-radius: 22px 8px 19px 19px;
  box-shadow: 0 2px 8px #f5c84233;
  margin-right: 8px;
  letter-spacing: 0.05em;
}


/* ===================================================================
   SECTIONS & Flex Layout Patterns (MANDATORY)
=================================================================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 22px;
  min-width: 260px;
  flex: 1 1 265px;
  transition: box-shadow .22s, transform .22s;
}
.card:hover {
  box-shadow: 0 8px 32px #f5c84277;
  transform: translateY(-4px) rotate(-1deg) scale(1.01);
}
.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: 20px 24px;
  background: var(--color-grey);
  border-radius: var(--radius);
  margin-bottom: 20px;
  min-width: 300px;
  box-shadow: 0 2px 12px #d1e3ed88;
  border-left: 7px solid var(--color-accent);
  color: var(--color-primary);
  font-weight: 500;
}
.testimonial-card p {
  color: var(--color-primary);
  font-size: 1.05rem;
}
.testimonial-card span {
  font-size: .95rem;
  color: var(--color-accent);
  font-weight: 700;
}

/* Ensure spacing between all 'testimonials' */
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 14px;
}

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

.services-list, .team-list, .blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 20px;
}
.service-card, .team-member, .blog-list article {
  background: var(--color-grey);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px #19315313;
  padding: 28px 20px;
  margin-bottom: 20px;
  min-width: 245px;
  flex: 1 1 260px;
  transition: box-shadow .18s, transform .18s;
}
.service-card:hover,
.team-member:hover,
.blog-list article:hover {
  transform: scale(1.03) rotate(-0.6deg);
  box-shadow: 0 10px 32px #f5c84255;
}
.price {
  font-family: var(--font-display);
  color: var(--color-primary);
  background: var(--color-accent);
  padding: 7px 16px;
  border-radius: 19px;
  font-size: 1.08rem;
  font-weight: 700;
  margin-top: 14px;
  display: inline-block;
}

/* FAQ & List styling */
ul {
  margin-bottom: 18px;
  margin-top: 8px;
}
ul li {
  margin-bottom: 12px;
  line-height: 1.7;
  position: relative;
  padding-left: 23px;
}
ul li:before {
  content: '\2022';
  color: var(--color-accent);
  font-size: 1.3em;
  position: absolute;
  left: 0;
  top: 2px;
  line-height: 1;
}
.section ul li:before { color: var(--color-primary); }

/* ========================
   Responsive Flex (mobile-first!)
======================== */
@media (max-width: 768px) {
  .container { padding: 0 9px; }
  .content-wrapper { gap: 11px; }
  section { padding: 24px 7px; }
  .testimonial-card, .service-card, .team-member, .blog-list article, .card {
    min-width: 0;
    width: 100%;
    flex-basis: 100%;
    padding: 18px 10px;
  }
  .services-list, .team-list, .testimonial-list, .blog-list {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 15px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  .main-nav { display: none; }
  .btn-primary { margin-left: 0; width: 100%; justify-content: center; }
}

/* CTA Section tweak for mobile */
.cta-section, .cta-section .btn-primary {
  margin: 20px 0 0 0;
}

/* ===================================================================
   Footer
=================================================================== */
footer {
  background: var(--color-primary);
  color: var(--color-secondary);
  margin-top: 40px;
  padding: 44px 0 0 0;
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: 1.02rem;
  box-shadow: 0 -3px 18px #19315317;
}
.footer-brand {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: bold;
  color: var(--color-accent);
  margin-bottom: 18px;
  gap: 10px;
}
.footer-brand img {
  width: 34px; height: 34px;
  margin-right: 7px;
  vertical-align: middle;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  margin-top: 10px;
  margin-bottom: 24px;
}
.footer-content > div {
  flex: 1 1 190px;
  min-width: 170px;
}
.footer-content a {
  color: var(--color-secondary);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 7px;
  display: block;
  transition: color .15s;
}
.footer-content a:hover,
.footer-content a:focus {
  color: var(--color-accent);
}
.footer-legal, .footer-nav, .footer-contact, .footer-desc {
  margin-bottom: 1em;
}
.footer-desc p {
  color: var(--color-secondary);
  font-size: .96rem;
}
@media (max-width: 960px) {
  .footer-content {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
}
@media (max-width: 600px) {
  footer {
    padding: 28px 0 0 0;
    font-size: .97rem;
  }
  .footer-content > div { min-width: 0; }
}

/* ===================================================================
   Cookie Consent Banner & Modal
=================================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--color-primary);
  color: var(--color-secondary);
  z-index: 1800;
  width: 100vw;
  box-shadow: 0 -2px 16px #2a375d44;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 22px 16px;
  animation: fadeInUp .28s cubic-bezier(.64,1.4,.34,.84);
}
.cookie-banner p {
  font-size: 1.04rem;
  flex-basis: 220px;
  color: #fff;
}
.cookie-btn, .cookie-settings-btn {
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: var(--radius-btn);
  padding: 9px 23px;
  font-size: 1rem;
  margin: 0 8px;
  cursor: pointer;
  transition: background .16s, color .16s, transform .12s;
}
.cookie-btn:hover, .cookie-btn:focus, .cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #ffd900;
  color: var(--color-primary);
  transform: scale(1.05);
}

.cookie-modal-backdrop {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top:0;left:0;width:100vw;height:100vh;
  background: rgba(25,49,83,0.45);
  z-index: 1900;
  pointer-events: auto;
  opacity: 1;
  animation: fadeIn .3s cubic-bezier(.56,0,.89,1);
}
@keyframes fadeIn {
  from { opacity:0; }
  to   { opacity:1; }
}
.cookie-modal {
  background: var(--color-white);
  color: var(--color-dark);
  border-radius: var(--radius);
  box-shadow: 0 12px 44px #19315333;
  padding: 34px 28px 28px 28px;
  min-width: 300px;
  max-width: 96vw;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.cookie-modal h3 {
  font-size:1.1rem; color: var(--color-primary); margin-bottom:8px;
}
.cookie-modal label,
.cookie-modal .category { display: flex; align-items: center; gap: 8px; }
.cookie-modal .category { margin-bottom: 11px; }
.cookie-modal input[type="checkbox"] {
  accent-color: var(--color-accent);
  width: 1.3em; height: 1.3em;
}
.cookie-modal .cookie-modal-close {
  position: absolute; top: 10px; right: 14px;
  background: #fff;
  color: var(--color-primary);
  border: none;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  width: 32px; height: 32px;
}
.cookie-modal .cookie-modal-close:hover { background: var(--color-accent); color: var(--color-primary); }
.cookie-modal-actions {
  display: flex; gap: 14px; margin-top: 18px;
}
@media (max-width:600px) {
  .cookie-modal { padding: 14px 7px 12px 7px; }
}

/* Animate cookie consent banner */
@media (max-width: 630px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 13px 7px;
    gap: 11px;
  }
  .cookie-banner p { margin-bottom: 7px; }
}

/* ===================================================================
   Playful + Dynamic Decorative Animations
=================================================================== */
.btn-primary, .cookie-btn, .team-member, .service-card, .testimonial-card, .card {
  transition: box-shadow .23s, transform .19s, background .13s, color .17s;
}
.card, .service-card, .testimonial-card, .team-member, .blog-list article {
  box-shadow: 0 2px 16px #d1e3ed2a;
  background: linear-gradient(120deg, #fff 89%, #f5c8420f 100%);
}
.card:hover, .testimonial-card:hover, .service-card:hover, .team-member:hover, .blog-list article:hover {
  box-shadow: 0 7px 27px #f5c84242, 0 2px 7px #D1E3ED33;
  transform: rotate(-2.7deg) scale(1.018);
  background: linear-gradient(120deg, #fffbe6 83%, #d1e3ed 100%);
}
.badge-accent {
  animation: bounceColors 2.8s infinite cubic-bezier(.56,1.68,.52,.9);
}
@keyframes bounceColors {
  0%,100% { filter: saturate(1.1) brightness(1); }
  50% { filter: saturate(1.7) brightness(1.08); transform: scale(1.13) skewX(5deg); }
}
/* Subtle floating animation for fun cards */
.card, .service-card, .team-member {
  animation: floaty 4.9s ease-in-out infinite alternate;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  30% { transform: translateY(-2px) rotate(-0.5deg); }
  60% { transform: translateY(5px) rotate(0.8deg); }
  75% { transform: translateY(-3px) rotate(-0.9deg); }
}

/* Playful Underline animated for h2 */
h2 {
  position: relative;
  padding-bottom: 3px;
}
h2:after {
  content: '';
  display: block;
  width: 72px;
  height: 7px;
  background: var(--color-accent);
  border-radius: 9px;
  position: absolute;
  bottom: -7px; left: 0;
  opacity: 0.34;
  animation: playfulUnder 2.2s infinite alternate cubic-bezier(.65,1.18,.57,1.01);
}
@keyframes playfulUnder {
  0% { width: 72px; left: 0; }
  40% { width: 88px; left: 0; opacity: 0.42; }
  100% { width: 59px; left: 19px; }
}

/* ===================================================================
   Forms (if present in future)
=================================================================== */
input, textarea, select {
  border: 2px solid var(--color-secondary);
  border-radius: var(--radius-small);
  padding: 10px 14px;
  font-size: 1rem;
  background: var(--color-grey);
  color: var(--color-dark);
  transition: border .18s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-accent);
}

/* ===================================================================
   Misc
=================================================================== */
::-webkit-scrollbar { width: 9px; background: var(--color-secondary); }
::-webkit-scrollbar-thumb { background: var(--color-accent); border-radius: 9px; }

::selection {
  color: var(--color-primary);
  background: var(--color-accent);
}

/* ===================================================================
   Utilities
=================================================================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.flex { display: flex; }
.flex-center { justify-content: center; align-items: center; }
.gap-20 { gap: 20px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }


/* ===================================================================
   ENSURE NEAT SPACING & NO OVERLAPS
=================================================================== */
section, .card, .testimonial-card, .service-card, .team-member, .blog-list article {
  margin-bottom: 24px;
  margin-top: 0;
}

@media (max-width:480px) {
  h1 { font-size: 1.25rem; }
  h2 { font-size: 1.05rem; }
  .btn-primary { font-size: .98rem; padding: 11px 15px; }
  .card, .service-card, .team-member { padding: 13px 6px; }
}
