/* 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,
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;
  min-height: 100vh;
  background: #F9F5F0;
  color: #18304B;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* FONTS */
@font-face {
  font-family: 'Playfair Display';
  src: local('Playfair Display'), local('PlayfairDisplay'),
    url('https://fonts.googleapis.com/css?family=Playfair+Display:700,900&display=swap');
  font-weight: 700 900;
  font-style: normal;
}
@font-face {
  font-family: 'Roboto';
  src: local('Roboto'), url('https://fonts.googleapis.com/css?family=Roboto:400,700&display=swap');
  font-weight: 400 700;
  font-style: normal;
}

/* COLOR VARIABLES (with fallback) */
:root {
  --primary: #18304B;
  --secondary: #7C98B3;
  --accent: #E7DED8;
  --brand-yellow: #FFCB05;
  --brand-turquoise: #4CE0D2;
  --brand-pink: #FF5F95;
  --brand-green: #5EE45D;
  --card-bg: #FFFFFF;
}

body {
  background: #F9F5F0;
  color: var(--primary);
}

/* LAYOUT CONTAINERS */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}
/* Section Spacing */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
}

/* Brand Playful/Dynamic Accent Animation */
@keyframes floaty {
  0% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-8px) scale(1.02); }
  100% { transform: translateY(0px) scale(1); }
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  font-weight: 900;
  line-height: 1.17;
}
h1 { font-size: 2.75rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 16px; color: var(--brand-pink, #FF5F95); }
h3 { font-size: 1.25rem; margin-bottom: 12px; color: var(--brand-yellow, #FFCB05); }
h4, h5, h6 { font-size: 1.1rem; }
p, li {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 16px;
  line-height: 1.6;
}
ul, ol {
  margin-left: 24px;
  margin-bottom: 16px;
}
strong { color: var(--brand-turquoise, #4CE0D2); font-weight: bold; }

blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--brand-pink, #FF5F95);
  margin: 0 0 8px 0;
  border-left: 6px solid var(--brand-yellow, #FFCB05);
  padding-left: 18px;
  font-style: italic;
}

.testimonial-meta {
  font-size: 1rem;
  color: var(--primary);
  margin-left: 10px;
}

.small-text {
  font-size: 0.9rem;
  color: var(--secondary);
  margin: 24px 0 0 0;
  text-align: center;
}

/* LINKS */
a {
  color: var(--brand-pink);
  text-decoration: none;
  transition: color 0.2s;
  font-weight: bold;
  word-break: break-word;
}
a:hover, a:focus {
  color: var(--brand-yellow);
  text-decoration: underline wavy var(--brand-pink);
  outline: none;
}

/* BUTTONS */
.cta-btn, .cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  font-weight: bold;
  background: var(--brand-pink);
  color: #fff;
  border: none;
  border-radius: 32px;
  padding: 14px 34px;
  margin-top: 10px;
  margin-bottom: 14px;
  box-shadow: 0 8px 20px 0 rgba(255, 95, 149, 0.11);
  cursor: pointer;
  transition: background 0.18s, transform 0.14s;
  position: relative;
  z-index: 1;
  animation: floaty 3s ease-in-out infinite;
}
.cta-btn.primary { background: var(--brand-yellow); color: var(--primary); }
.cta-btn.primary:hover { background: var(--brand-green); color: var(--primary); }
.cta-btn:hover, .cta-btn:focus, .cookie-btn:hover, .cookie-btn:focus {
  background: var(--brand-turquoise);
  color: var(--primary);
  transform: scale(1.06) translateY(-2px);
  box-shadow: 0 10px 20px rgba(76,224,210,0.19);
  text-decoration: none;
}

.cookie-btn.accept { background: var(--brand-green); color: #fff; }
.cookie-btn.reject { background: var(--brand-pink); color: #fff; }
.cookie-btn.settings { background: var(--brand-yellow); color: var(--primary); }

.cookie-btn.accept:hover { background: var(--brand-turquoise); color: var(--primary); }

/* HEADER -- Desktop */
header {
  background: #fff;
  box-shadow: 0 6px 24px 0 rgba(28, 62, 90, 0.10);
  padding: 0;
  min-height: 80px;
  z-index: 999;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
}
header img {
  max-height: 52px;
  height: auto;
  margin-right: 10px;
  transition: transform 0.28s cubic-bezier(.51,.65,.78,.79);
}
header img:hover {
  transform: scale(1.04) rotate(-4deg);
}

.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  color: var(--primary);
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  border-radius: 1px;
  font-size: 1rem;
  transition: color 0.15s, border 0.25s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--brand-yellow);
  border-bottom: 2px solid var(--brand-yellow);
  text-decoration: none;
}

.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: var(--brand-pink);
  cursor: pointer;
  margin-left: 18px;
  transition: color 0.24s;
  z-index: 1999;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--brand-yellow);
}

/* MOBILE NAVIGATION MENU */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: rgba(248,245,240,0.98);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-100%);
  transition: transform 0.36s cubic-bezier(.7,1.22,.62,1.03), opacity 0.14s;
}
.mobile-menu.open {
  pointer-events: all;
  opacity: 1;
  transform: translateX(0%);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 30px 0 0;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: var(--brand-pink);
  cursor: pointer;
  z-index: 3333;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 33px;
  width: 100%;
  align-items: flex-start;
  justify-content: flex-start;
  margin: 60px 0 0 36px;
}
.mobile-nav a {
  font-size: 1.55rem;
  color: var(--brand-turquoise);
  font-family: 'Playfair Display', serif;
  background: none;
  padding: 8px 0;
  transition: color 0.12s, background 0.25s;
  border-radius: 6px;
  z-index: 2201;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--brand-yellow);
  background: var(--brand-pink);
  text-decoration: none;
  box-shadow: 0px 4px 16px rgba(255,95,149,0.07);
}

/* HERO SECTION */
.hero {
  background: linear-gradient(90deg, var(--accent) 70%, var(--brand-yellow) 100%);
  border-radius: 28px;
  box-shadow: 0 12px 32px 0 rgba(76,224,210,.09);
  min-height: 340px;
  animation: floaty 6s ease-in-out infinite;
  margin-top: 30px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.hero .content-wrapper {
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 34px 0;
}

/* CTA Section */
.cta {
  background: var(--brand-turquoise);
  border-radius: 18px;
  box-shadow: 0 6px 22px 0 rgba(28, 62, 90, 0.060);
  color: var(--primary);
  animation: floaty 5.5s ease-in-out infinite;
}
.cta .content-wrapper {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.cta h2, .cta h1 {
  color: var(--brand-pink);
  margin-bottom: 4px;
}

/* FEATURE CARDS (index features) */
.feature_grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-card {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 3px 16px rgba(76, 224, 210, 0.07);
  padding: 28px 22px 20px 22px;
  flex: 1 1 210px;
  max-width: 272px;
  min-width: 220px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 13px;
  transition: transform 0.19s cubic-bezier(.7,1.22,.62,1.03), box-shadow 0.14s;
  cursor: pointer;
}
.feature-card:hover {
  box-shadow: 0 10px 34px rgba(255, 203, 5, 0.11);
  transform: scale(1.055) translateY(-4px) rotate(-2deg);
  background: var(--accent);
}
.feature-card img {
  max-width: 64px;
  margin-bottom: 6px;
  animation: floaty 4.5s alternate infinite;
}

/* CARDS GENERIC */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: 0 2px 20px 0 rgba(44,111,159,0.07);
  padding: 30px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.14s, transform 0.18s;
  position: relative;
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(255,203,5,0.13);
  transform: scale(1.025);
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* TESTIMONIALS */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fffdfc;
  padding: 20px 32px 20px 20px;
  border-radius: 14px;
  box-shadow: 0 2px 18px 0 rgba(28,62,90,0.11);
  margin-bottom: 20px;
  border-left: 5px solid var(--brand-yellow);
  min-width: 260px;
  max-width: 420px;
}
.testimonial-card blockquote {
  color: var(--brand-pink);
  font-size: 1.13rem;
  background: none;
  border: none;
  padding-left: 0;
  margin-bottom: 2px;
}
.testimonial-card .testimonial-meta { color: var(--primary); }

/* LISTS */
.featured-posts-list ul, .categories-overview ul {
  list-style: circle inside;
  margin-bottom: 8px;
  padding-left: 12px;
}
.featured-posts-list li, .categories-overview li {
  margin-bottom: 10px;
  font-size: 1.02rem;
}
.icons-list {
  display: flex;
  gap: 18px;
  margin-top: 12px;
}
.icons-list img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent);
  box-shadow: 0 2px 8px rgba(44,111,159,0.08);
  padding: 4px;
}

/* LAYOUT REQUIREMENT: .text-image-section & ALIGNS */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.service-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  justify-content: flex-start;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* FOOTER */
footer {
  background: var(--primary);
  color: #fffaf4;
  padding: 38px 0 12px 0;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  margin-top: 50px;
}
.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.footer-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fffaf4;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #fffaf4;
  font-size: 1rem;
  font-weight: 500;
  background: none;
  transition: color 0.19s;
}
.footer-nav a:hover { color: var(--brand-yellow); }
.footer-contact span, .footer-contact img { vertical-align: middle; }
.footer-contact img {
  width: 22px;
  margin-right: 7px;
  position: relative;
  top: 2px;
}
.social-links {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 6px;
}
.social-links a img {
  width: 30px; height: 30px;
  transition: transform 0.12s;
  border-radius: 50%;
  box-shadow: 0 2px 10px 0 rgba(255,203,5,0.04);
}
.social-links a:hover img {
  transform: scale(1.13) rotate(-12deg);
  background: var(--brand-yellow);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 9000;
  background: #fff1e6;
  border-top: 4px solid var(--brand-yellow);
  box-shadow: 0 -4px 22px 0 rgba(255,95,149,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 21px 16px;
  font-size: 1rem;
  animation: slideup 0.7s cubic-bezier(.51,.65,.78,.79);
}
@keyframes slideup {
  0% { transform: translateY(60px); opacity: 0; }
  52% { opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: var(--primary);
  margin: 0;
  flex: 1 1 220px;
}
.cookie-banner .cookie-btn {
  margin-left: 9px;
  min-width: 94px;
}

/* Cookie Modal -- backdrop */
.cookie-modal-backdrop {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(24,48,75,0.28);
  animation: fadeinbg 0.24s;
}
@keyframes fadeinbg { from { opacity: 0; } to { opacity: 1; } }
.cookie-modal-backdrop.open { display: block; }

/* Cookie Modal */
.cookie-modal {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 10050;
  background: #fffaf4;
  border-radius: 20px;
  box-shadow: 0 5px 40px 0 rgba(28,62,90,0.19);
  transform: translate(-50%, -50%) scale(1.03);
  min-width: 92vw;
  max-width: 415px;
  padding: 38px 28px 20px 28px;
  transition: box-shadow 0.15s;
  animation: fadeinModal 0.22s;
}
@keyframes fadeinModal { from { opacity: 0; transform: translate(-50%,-45%) scale(0.96); } to { opacity: 1; } }
.cookie-modal.open { display: block; }

.cookie-modal h2 {
  color: var(--brand-pink);
  margin-bottom: 8px;
}
.cookie-category-list {
  margin: 20px 0 14px 0;
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.cookie-category label {
  font-size: 1.05rem;
  color: var(--primary);
}
.cookie-toggle {
  width: 42px; height: 26px;
  background: var(--accent);
  border-radius: 20px;
  position: relative;
  outline: none;
  border: none;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-toggle:checked {
  background: var(--brand-green);
}
.cookie-toggle::-webkit-slider-thumb,
.cookie-toggle::-moz-range-thumb {
  width: 22px; height: 22px;
  background: white;
  border-radius: 19px;
  margin: 2px;
  box-shadow: 0 2px 8px 0 rgba(44,111,159,0.09);
}

.cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 18px;
}
.cookie-modal .cookie-btn {
  padding: 10px 22px;
  font-size: 1rem;
}

/* FORMS (future proof) */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border: 1.5px solid var(--secondary);
  border-radius: 12px;
  padding: 10px 16px;
  margin-bottom: 10px;
  outline: none;
  background: #fff;
  transition: border 0.17s;
  width: 100%;
  box-sizing: border-box;
}
input:focus, textarea:focus, select:focus {
  border: 2px solid var(--brand-pink);
}
label {
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 6px;
}

/* ---------- RESPONSIVE DESIGN ---------- */
@media (max-width: 1060px) {
  .container { max-width: 98vw; }
  .footer-columns { gap: 16px; flex-wrap: wrap; }
  .feature_grid, .content-grid, .testimonials { flex-wrap: wrap; gap: 14px; }
}

@media (max-width: 900px) {
  .main-nav { gap: 12px; }
  .footer-columns { flex-direction: column; align-items: flex-start; gap: 22px; }
  .feature-grid { gap: 16px; }
}

@media (max-width: 768px) {
  header .container, footer .container { flex-direction: row; }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .content-wrapper, .feature_grid, .card-container, .content-grid, .footer-columns, .service-list {
    flex-direction: column !important;
    align-items: flex-start;
    gap: 18px;
  }
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 18px; }
  .cta .content-wrapper { align-items: flex-start; text-align: left; }
  section, .section { padding: 24px 10px; margin-bottom: 42px; }
  .hero, .cta { border-radius: 0 0 26px 26px; margin-top: 0px; }
}

@media (max-width: 600px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.08rem; }
  .footer-columns { flex-direction: column; gap: 16px; }
  .testimonial-card { max-width: 97vw; }
}

@media (max-width: 440px) {
  .container { padding: 0 7px; }
  .cta-btn, .cookie-btn { font-size: 0.92rem; padding: 12px 20px; }
}

/* Misc Spacing & Alignment */
ul, ol { margin-bottom: 20px; }
.text-section ul, .text-section ol {margin-bottom: 14px;}
.content-wrapper > * { min-width: 0; }

/* Hide scroll for mobile-menu when closed */
body.mobile-menu-open {
  overflow: hidden;
}

/* PLAYFUL DECORATIVE ACCENTS (pseudo) */
.feature-card::after {
  content: '';
  display: block;
  position: absolute;
  top: -16px; right: -16px;
  width: 24px; height: 24px;
  background: var(--brand-yellow);
  border-radius: 70% 30% 81% 19% / 42% 69% 31% 58%;
  opacity: 0.14;
  z-index: 0;
  pointer-events: none;
  animation: floaty 5s ease-in-out infinite;
}

/* Animate icons in .icons-list */
.icons-list img {
  animation: floaty 3.7s infinite alternate-reverse;
}

/* Playful hover on .card and .feature-card */
.card:hover, .testimonial-card:hover {
  box-shadow: 0 13px 32px rgba(92,204,222,0.14);
  transform: scale(1.013) rotate(1deg);
}

/* Transition for all buttons and links */
.cta-btn, .cookie-btn, a, .feature-card, .card, .footer-nav a, .main-nav a {
  transition: background 0.22s, color 0.16s, box-shadow 0.12s, border 0.12s, transform 0.18s;
}

/* Hide visually but keep for a11y */
.sr-only {
  position: absolute !important;
  left: -10000px; top: auto; width: 1px; height: 1px;
  overflow: hidden;
}
