/* =====================
    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.5;
    -webkit-font-smoothing: antialiased;
    background: #FDF6ED;
    color: #1A263B;
}
img, picture {
    max-width: 100%;
    display: block;
}
ul, ol {
    list-style: none;
}
a {
    color: inherit;
    text-decoration: none;
}
button, input, select, textarea {
    font-family: inherit;
}

/* ========================
    BRAND COLOR VARIABLES
   ======================== */
:root {
  --primary: #1A263B;
  --secondary: #27C1F4;
  --accent: #FAD42E;
  --background: #FDF6ED;
  --testi-bg: #FFF8DE;
  --light: #FFFFFF;
  --gray: #F0F4FA;
  --danger: #FF7180;
  --success: #00D7A5;
}

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

html {
  font-size: 16px;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  background: var(--background);
  color: var(--primary);
}
h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--primary);
}
h1 { font-size: 2.5rem; line-height: 1.1; margin-bottom: 18px; }
h2 { font-size: 2rem; line-height: 1.15; margin-bottom: 14px; }
h3 { font-size: 1.35rem; line-height: 1.18; margin-bottom: 10px; }
h4 { font-size: 1.16rem; margin-bottom: 6px; }
p, li, span {
  font-size: 1rem;
  line-height: 1.60;
}
strong {
  font-weight: 700;
}

.subheadline,
.tagline {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.18rem;
  color: var(--secondary);
  margin-bottom: 20px;
}

.tagline {
  color: var(--accent);
  font-style: italic;
}

/* ======= FLEX LAYOUTS ======= */
.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}
.content-wrapper,
.text-section {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Mandatory Spacing & Alignment Patterns */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--light);
  border-radius: 18px;
  box-shadow: 0 8px 32px 0 rgba(39, 193, 244, 0.10),0 1.5px 10px 0 rgba(26,38,59,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(250, 212, 46, 0.16),0 2px 15px 0 rgba(39,193,244,0.15);
  transform: translateY(-4px) scale(1.01) rotate(-1deg);
}
.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;
  background: var(--testi-bg);
  border-radius: 16px;
  box-shadow: 0 4px 18px 0 rgba(250, 212, 46, 0.13);
  margin-bottom: 20px;
  color: var(--primary);
  min-height: 80px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =======================================
   PLAYFUL_DYNAMIC VISUAL ELEMENT STYLES
   ======================================= */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  color: var(--primary);
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.12rem;
  padding: 12px 30px;
  border: none;
  border-radius: 26px;
  box-shadow: 0 6px 18px 0 rgba(39, 193, 244, 0.10);
  cursor: pointer;
  transition: background 0.25s, color 0.20s, transform 0.16s, box-shadow 0.21s;
  letter-spacing: 0.03em;
  margin-top: 12px;
  margin-bottom: 14px;
  outline: none;
  position: relative;
  z-index: 1;
  animation: float-bounce 2.4s infinite cubic-bezier(.62,.11,.49,.94);
}
.cta-button:hover, .cta-button:focus {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-2px) scale(1.04) rotate(-2deg);
  box-shadow: 0 4px 16px 0 rgba(250, 212, 46, 0.16),0 2px 9px 0 rgba(39,193,244,0.13);
}
@keyframes float-bounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-3px) scale(1.025); }
  80% { transform: translateY(3px) scale(0.99); }
}

/* Fun icon wiggle */
ul li img, .feature-item img {
  margin-right: 12px;
  width: 28px;
  height: 28px;
  vertical-align: middle;
  animation: playful-wiggle 3s infinite ease-in-out;
  display: inline-block;
}
@keyframes playful-wiggle {
  0%,100%{ transform: rotate(-6deg) scale(1); }
  10% { transform: rotate(6deg) scale(1.06); }
  20% { transform: rotate(-4deg) scale(1.07); }
  30% { transform: rotate(5deg) scale(1.03); }
  40% { transform: rotate(0) scale(1.1); }
  92%{ transform: rotate(-3deg) scale(1.01); }
}

/* List playful dots */
ul li::before {
  content: '•';
  display: inline-block;
  color: var(--secondary);
  font-weight: bold;
  margin-right: 9px;
  font-size: 1.13em;
  vertical-align: middle;
  position: relative;
  top: -1.2px;
}
ul li img + *::before {
  content: '' !important;
}

/* Service Grid and Overview */
.service-grid, .service-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
  margin-bottom: 16px;
}
.service-grid > div, .service-overview > div {
  flex: 1 1 240px;
  background: var(--light);
  border-radius: 15px;
  box-shadow: 0 4px 15px 0 rgba(39,193,244,0.10);
  padding: 22px 18px 20px 18px;
  margin-bottom: 20px;
  transition: box-shadow 0.19s, transform 0.15s;
  position: relative;
  min-width: 210px;
}
.service-grid > div:hover, .service-overview > div:hover {
  box-shadow: 0 12px 36px 0 rgba(39, 193, 244, 0.16),0 5px 18px 0 rgba(250, 212, 46, 0.14);
  transform: translateY(-3px) scale(1.03) rotate(1deg);
}
.service-grid h3, .service-overview h3 {
  color: var(--secondary);
  font-size: 1.21rem;
  margin-bottom: 7px;
}
.service-grid strong, .service-overview strong {
  color: var(--primary);
  background: var(--accent);
  border-radius: 8px;
  padding: 2px 10px;
  margin-top: 6px;
  font-weight: 700;
  font-size: 1.13em;
}

/* Newsletter, CTA section etc. */
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  background: transparent;
  position: relative;
}
section:last-child {
  margin-bottom: 0;
}

.section-accent {
  background: var(--accent);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 5px 32px 0 rgba(250, 212, 46, 0.06);
}

.text-section {
  padding: 28px 0;
  background: var(--gray);
  border-radius: 18px;
  box-shadow: 0 2px 14px 0 rgba(26,38,59,0.08);
}

/* ========== HEADER & NAVIGATION ========== */
header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 3px 20px 0 rgba(26, 38, 59,0.09);
  min-height: 68px;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
header a img {
  height: 38px;
}
.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: var(--light);
  font-weight: 700;
  transition: color 0.18s, background 0.18s;
  padding: 7px 10px;
  border-radius: 6px;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--primary);
  background: var(--accent);
  outline: none;
}
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 12px;
  transition: background 0.2s, transform 0.14s;
  z-index: 20;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--secondary);
}

/* MOBILE NAV MENU OVERLAY */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: var(--primary);
  z-index: 99;
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(0.68,-0.24, 0.34, 1.41);
  box-shadow: 0 6px 60px 0 rgba(26,38,59,0.24);
  will-change: transform;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  margin: 22px 18px 10px 12px;
  align-self: flex-end;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 9999;
}
.mobile-menu-close:focus,
.mobile-menu-close:active {
  background: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 36px 32px 0 32px;
  align-items: flex-start;
}
.mobile-nav a {
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 800;
  padding: 8px 0;
  border-radius: 10px;
  transition: background 0.16s, color 0.16s;
  width: 100%;
  font-family: 'Montserrat', sans-serif;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--accent);
  color: var(--primary);
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 13px;
  }
}
@media (max-width: 920px) {
  .main-nav {
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header .cta-button {
    display: none;
  }
  .container {
    max-width: 100vw;
    padding: 0 14px;
  }
}

/* ========================
    RESPONSIVE SECTIONS
   ======================== */
@media (max-width: 900px) {
  .service-grid > div, .service-overview > div {
    min-width: 150px;
  }
  .section, section {
    padding: 32px 0;
    margin-bottom: 36px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.23rem; }
  h3 { font-size: 1.08rem; }
  .section, section {
    padding: 23px 0;
    margin-bottom: 27px;
  }
  .content-wrapper, .text-section {
    padding: 13px 0;
    gap: 15px;
  }
  .service-grid, .service-overview {
    flex-direction: column;
    gap: 14px;
  }
  .service-grid > div, .service-overview > div {
    width: 100%;
    min-width: unset;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 11px;
    padding: 13px 11px;
  }
  .mobile-nav {
    margin: 22px 7vw 0 7vw;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 480px) {
  .cta-button {
    min-width: 90vw;
    padding-right: 0; padding-left: 0;
    font-size: 1rem;
  }
  header .container {
    gap: 6px;
  }
  .service-grid > div, .service-overview > div {
    padding-left: 11px;
    padding-right: 11px;
  }
  .mobile-menu {
    min-width: 100vw;
  }
}

/* ==================
   FOOTER STYLES
   ================== */
footer {
  background: var(--primary);
  color: var(--light);
  box-shadow: 0 -4px 30px 0 rgba(26, 38, 59,0.07);
  padding-top: 32px;
  padding-bottom: 20px;
  position: relative;
  z-index: 5;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 8px;
  justify-content: center;
}
.footer-nav a {
  color: var(--accent);
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 8px 10px;
  border-radius: 8px;
  transition: color 0.14s, background 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--accent);
  color: var(--primary);
}
.contact-info {
  color: var(--gray);
  font-size: 1rem;
  text-align: center;
  margin-bottom: 0;
}
.contact-info a {
  color: var(--secondary);
  font-weight: 700;
}
.social-links {
  display: flex;
  flex-direction: row;
  gap: 22px;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
}
.social-links a {
  color: var(--secondary);
  border-radius: 50%;
  background: transparent;
  transition: background 0.19s, transform 0.17s;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
}
.social-links a:hover {
  background: var(--accent);
  transform: scale(1.11) rotate(-8deg);
}
.social-links img {
  width: 22px;
  height: 22px;
}
@media (max-width: 650px) {
  footer .container { gap: 10px; }
  .footer-nav { gap: 12px; }
  .social-links { gap: 9px; }
  .contact-info p { font-size: 0.92rem; }
}

/* ============ TESTIMONIAL CARDS ============ */
.testimonial-card {
  background: var(--testi-bg);
  color: var(--primary);
  font-size: 1.04rem;
  box-shadow: 0 3px 18px 0 rgba(250, 212, 46, 0.11);
  border-radius: 14px;
  gap: 18px;
  margin-bottom: 20px;
}
.testimonial-card blockquote {
  font-family: 'Roboto', sans-serif;
  font-style: italic;
  font-size: 1.06rem;
  color: var(--primary);
  margin-right: 8px;
  border-left: 4px solid var(--accent);
  padding-left: 13px;
}
.testimonial-card span {
  font-family: 'Montserrat', sans-serif;
  color: var(--secondary);
  font-size: .99em;
  margin-left: 4px;
}
.testimonial-card:hover {
  background: var(--accent);
  color: var(--primary);
  transform: scale(1.015) rotate(-1deg);
  box-shadow: 0 6px 34px 0 rgba(250, 212, 46, 0.13);
}

/* ============ BLOG CATEGORY LABELS ============ */
span {
  display: inline-block;
  padding: 2px 12px;
  background: var(--secondary);
  color: var(--primary);
  border-radius: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.94em;
  margin-right: 5px;
  margin-bottom: 2px;
  letter-spacing: 0.01em;
}

/* ============ THANK-YOU PAGE BUTTON ============ */
.text-section a.cta-button {
  margin: 20px auto 0 auto;
  min-width: 190px;
}

/* ============ COOKIES CONSENT BANNER ============ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: var(--accent);
  color: var(--primary);
  font-family: 'Montserrat', sans-serif;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -3px 22px 0 rgba(26,38,59,0.13);
  z-index: 2000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 8vw 18px 5vw;
  gap: 18px;
  opacity: 1;
  transform: translateY(0);
  transition: transform .44s cubic-bezier(0.23,1,0.32,1), opacity 0.25s;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(140%);
}
.cookie-banner .cookie-text {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  color: var(--primary);
  flex: 1 1 350px;
  margin-right: 18px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}
.cookie-btn {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 8px 20px;
  border: none;
  border-radius: 25px;
  outline: none;
  cursor: pointer;
  margin-right: 4px;
  transition: background .17s, color .18s, transform .15s;
}
.cookie-btn.accept {
  background: var(--success);
  color: var(--primary);
}
.cookie-btn.reject {
  background: var(--danger);
  color: var(--light);
}
.cookie-btn.settings {
  background: var(--secondary);
  color: var(--primary);
  font-size: 0.97rem;
  padding: 7px 13px;
}
.cookie-btn:hover, .cookie-btn:focus {
  filter: brightness(1.10);
  transform: translateY(-2px) scale(1.05) rotate(-2deg);
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 5vw 12px 4vw;
    border-radius: 15px 15px 0 0;
  }
  .cookie-banner .cookie-text {
    margin: 0 0 5px 0;
    font-size: 0.98rem;
  }
  .cookie-banner .cookie-actions {
    gap: 7px;
  }
}

/* ============ COOKIE PREFERENCES MODAL ============ */
.cookie-modal {
  position: fixed;
  z-index: 2100;
  left: 0; right: 0;
  top: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(26,38,59, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  animation: fadeInBg 0.35s cubic-bezier(.32,.72,.38,.99);
}
@keyframes fadeInBg {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal.hide {
  display: none;
  pointer-events: none;
  opacity: 0;
}
.cookie-modal .modal-content {
  background: var(--light);
  color: var(--primary);
  padding: 32px 30px 24px 30px;
  border-radius: 20px;
  max-width: 420px;
  box-shadow: 0 16px 60px 0 rgba(39,193,244, 0.18),0 0.5px 6px 0 rgba(26,38,59,0.09);
  animation: fadeInPanel 0.41s cubic-bezier(.32,.72,.38,.99);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
@keyframes fadeInPanel {
  from { opacity: 0; transform: translateY(-64px) scale(0.97);}
  to   { opacity: 1; transform: translateY(0) scale(1);}
}
.cookie-modal h3 {
  font-size: 1.26rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 7px;
}
.cookie-modal ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  padding: 0;
}
.cookie-modal li {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cookie-modal label {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  color: var(--primary);
  font-size: 1.025rem;
  letter-spacing: 0.01em;
}
.cookie-toggle {
  appearance: none;
  width: 36px; height: 20px;
  border-radius: 12px;
  background: var(--gray);
  outline: none;
  border: 1px solid var(--secondary);
  cursor: pointer;
  position: relative;
  transition: background .17s;
}
.cookie-toggle:checked {
  background: var(--secondary);
  border: 1.5px solid var(--secondary);
}
.cookie-toggle::after {
  content: '';
  position: absolute;
  left: 3.5px; top: 2.3px;
  width: 15px; height:15px;
  border-radius: 50%;
  background: var(--primary);
  transition: left .19s, background .18s;
  box-shadow: 0 2px 8px 0 rgba(26,38,59,0.10);
}
.cookie-toggle:checked::after {
  left: 16px;
  background: var(--accent);
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 11px;
  margin-top: 18px;
}
.cookie-modal .close-btn {
  position: absolute;
  top: 13px; right: 13px;
  background: var(--secondary);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  width: 35px; height: 35px;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.16s;
}
.cookie-modal .close-btn:hover,
.cookie-modal .close-btn:focus {
  background: var(--accent);
}
@media (max-width: 540px) {
  .cookie-modal .modal-content {
    max-width: 94vw;
    padding: 22px 7vw 15px 7vw;
  }
}

/* ============ MISC + PAGE-SPECIFIC ============ */
blockquote {
  quotes: "\201C" "\201D";
}
blockquote:before {
  content: open-quote;
}
blockquote:after {
  content: close-quote;
}
.text-section ul {
  margin-top: 10px;
  margin-bottom: 14px;
}
.text-section ul li {
  margin-bottom: 11px;
  margin-left: 3px;
}
dt {
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  color: var(--secondary);
  margin-bottom: 3px;
}
dd {
  padding-left: 24px;
  margin-bottom: 8px;
}

/* Visually hidden for a11y */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* =====================
   ACCESSIBILITY FOCUS
   ===================== */
*:focus {
  outline: 2.5px dashed var(--secondary);
  outline-offset: 2px;
}

/* ================
   UTILITIES
   ================ */
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.p-2 { padding: 16px; }

/* ===========================
   PRINTING (OPTIONAL)
   =========================== */
@media print {
  .mobile-menu, .cookie-banner, .cookie-modal, header, footer { display: none !important; }
}
