/* 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;
}

html { box-sizing: border-box; font-size: 16px; }
*, *:before, *:after { box-sizing: inherit; }
body { line-height: 1.6; background: var(--color-secondary, #ffffff); color: var(--color-primary, #243b55); }

/* BRAND AND THEME VARIABLES */
:root {
  --color-primary: #243b55;
  --color-secondary: #fff;
  --color-accent: #e07a5f;
  --color-accent2: #b84c26;
  --color-text: #22243b;
  --color-bg: #f2e9e4;
  --color-pink: #f870b7;
  --color-yellow: #ffe066;
  --color-green: #59d49e;
  --color-blue: #51aeea;
  --shadow-elevate: 0 6px 24px 0 rgb(36 59 85 / 8%), 0 1.5px 4px 0 rgb(36 59 85 / 12%);
}

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

body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  background: var(--color-bg);
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--color-primary);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.35rem; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1.1rem; }

p, li, blockquote {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  color: var(--color-text, #22243b);
  margin-bottom: 16px;
}

ul, ol { padding-left: 1.1em; margin-bottom: 20px; }
li { margin-bottom: 8px; }
strong { font-weight: 700; }

/* PLAYFUL FONT FOR headings and buttons */
@media (min-width: 600px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.5rem; }
}

/* LINKS */
a { color: var(--color-accent); text-decoration: none; transition: color 0.18s; }
a:hover, a:focus { color: var(--color-accent2); text-decoration: underline; }

/* CONTAINER & CONTENT */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  background: #fff;
  border-radius: 26px;
  box-shadow: var(--shadow-elevate);
  padding: 36px 22px;
  display: flex;
  flex-direction: column;
  margin-bottom: 36px;
}

@media (max-width: 600px) {
  .container { padding: 0 8px; }
  .content-wrapper { padding: 22px 8px; }
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
}

/* HEADER */
header {
  background: linear-gradient(90deg, #ffe066 30%, #f870b7 100%);
  border-bottom: 5px solid var(--color-accent);
  box-shadow: 0px 4px 22px 0 rgb(36 59 85 / 9%);
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 14px;
}
header img {
  height: 48px;
  margin-right: 20px;
  transition: transform 0.23s cubic-bezier(0.62, -0.31, 0.47, 1.3);
}
header img:hover { transform: scale(1.10) rotate(-4deg); }

header nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
header nav a {
  color: var(--color-primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 12px;
  transition: background 0.18s, color 0.18s, box-shadow 0.2s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 2px 12px 0 #e07a5f27;
}

.btn-primary {
  background: linear-gradient(90deg, #e07a5f 72%, #f870b7 100%);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.13rem;
  font-weight: 800;
  padding: 15px 32px;
  border-radius: 23px;
  border: none;
  box-shadow: 0 4px 18px 0 #e07a5f2d;
  cursor: pointer;
  margin-left: 16px;
  margin-top:0;
  transition: transform 0.15s, box-shadow 0.18s, background 0.22s;
  letter-spacing: 1px;
  outline: none;
}
.btn-primary:hover, .btn-primary:focus {
  transform: translateY(-2px) scale(1.04) rotate(-1.5deg);
  background: linear-gradient(90deg, #b84c26 0%, #ffe066 85%);
  box-shadow: 0 7px 24px 0 #b84c2642;
}

/* HAMBURGER MOBILE-MENU */
.mobile-menu-toggle {
  display: none;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 2.2rem;
  width: 52px;
  height: 52px;
  margin-left: 18px;
  box-shadow: 0 2px 16px 0 #e07a5f2a;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, transform 0.15s;
  outline: none;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #f870b7;
  transform: scale(1.08);
}

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

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  z-index: 55;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: linear-gradient(117deg, #ffe066 65%, #51aeea 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 0 0;
  transform: translateX(-120%);
  transition: transform 0.46s cubic-bezier(0.73, -0.10, 0.22, 1.15);
  box-shadow: 0 4px 60px #22243b38;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu nav {
  margin-top: 70px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  padding-left: 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.5rem;
  color: var(--color-primary);
  font-weight: 900;
  background: transparent;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  border-radius: 9px;
  transition: color 0.2s, background 0.22s, border 0.2s;
  margin-bottom: 2px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #fff;
  background: var(--color-accent);
  border-bottom: 2px dashed #fff;
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: var(--color-accent2);
  color: #fff;
  border: none;
  border-radius: 40px;
  font-size: 2.4rem;
  width: 44px;
  height: 44px;
  cursor: pointer;
  box-shadow: 0 2px 8px 0 #e07a5f27;
  transition: background 0.18s, transform 0.15s;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { background: #f870b7; transform: scale(1.08); }

@media (max-width: 900px) {
  .mobile-menu { display: flex; }
}

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

/* MAIN LAYOUT */
main {
  margin-top: 0px;
  min-height: 60vh;
}

/* CARDS & FLEXBOX LAYOUTS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 36px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-elevate);
  padding: 28px 20px;
  margin-bottom: 20px;
  position: relative;
  min-width: 260px;
  flex: 1 1 250px;
  transition: transform 0.19s, box-shadow 0.16s;
}
.card:hover, .card:focus {
  transform: translateY(-2px) scale(1.02) rotate(-0.5deg);
  box-shadow: 0 8px 32px 0 #e07a5f34;
  z-index: 1;
}

.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;
  margin-bottom: 36px;
}

@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 24px;
  }
  .card-container {
    flex-direction: column;
    gap: 16px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: #fffbe7;
  border-radius: 22px;
  box-shadow: 0 3px 16px 0 #ffe0661a;
  margin-bottom: 20px;
  margin-top: 18px;
  border-left: 6px solid var(--color-accent2);
  max-width: 650px;
}
.testimonial-card blockquote {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.11rem;
  color: #292941;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}
.testimonial-card p {
  margin-bottom: 2px;
  color: #4a4837;
}

/* Ensure text readability for testimonials */
@media (max-width: 600px) {
  .testimonial-card { max-width: 99%; }
}

/* FEATURES */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: space-between;
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px #b84c2613;
  padding: 22px 18px 22px 18px;
  min-width: 180px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  transition: transform 0.16s, box-shadow 0.18s;
  position: relative;
  overflow: visible;
}
.feature img {
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
  background: linear-gradient(90deg, #e07a5f 25%, #ffe066 80%);
  border-radius: 9px;
  padding: 6px;
  transition: transform 0.18s;
  box-shadow: 0 1.5px 8px #e07a5f29, 0 0.5px 1.5px #243b5516;
}
.feature:hover, .feature:focus {
  transform: scale(1.028) rotate(-1.5deg);
  box-shadow: 0 8px 36px #ffe06647;
  z-index: 2;
}
.feature:hover img, .feature:focus img {
  transform: rotate(-10deg) scale(1.11);
}

@media (max-width: 768px) {
  .feature-grid { flex-direction: column; gap: 18px; }
  .feature { min-width: unset; }
}

/* SERVICES LISTS AND MORE */
.service-list, .feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}
.service-list li {
  background: #fff;
  box-shadow: 0 3px 14px #e07a5f14;
  border-radius: 14px;
  padding: 22px 16px;
  margin-bottom: 8px;
  transition: transform 0.11s, box-shadow 0.13s;
  position: relative;
}
.service-list li:hover, .service-list li:focus {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 22px #e07a5f22;
}
.service-list h3 {
  color: var(--color-accent2);
  margin-bottom: 5px;
  font-size: 1.2rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
.feature-list li {
  background: #f870b714;
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--color-primary);
}

/* SEARCH BAR STYLING (mockup) */
.search-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 12px 0;
  align-items: center;
}
.search-bar input[type="search"] {
  border: 2px solid #ffc107;
  border-radius: 13px;
  padding: 12px 18px;
  font-size: 1.15rem;
  font-family: 'Roboto', 'Montserrat', Arial, sans-serif;
  width: 260px;
  background: #fffbe7;
  color: #b3b3b3;
  outline: none;
  margin-right: 6px;
}
.search-bar button {
  background: var(--color-accent2);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  border: none;
  border-radius: 12px;
  padding: 12px 22px;
  font-size: 1.13rem;
  cursor: not-allowed;
  opacity: 0.5;
}

/* CONTACT DETAILS */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 20px;
}
.contact-details a { color: var(--color-accent2); font-weight: 800; transition: color 0.17s; }
.contact-details a:hover { color: var(--color-accent); }

/* FOOTER */
footer {
  background: linear-gradient(90deg, #51aeea 10%, #f870b7 80%);
  color: #fff;
  margin-top: 38px;
  box-shadow: 0 -2px 20px #22243b18;
  border-top: 5px solid var(--color-accent2);
}
footer .container {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 12px;
}
footer img {
  height: 54px;
  margin-bottom: 18px;
}
footer nav {
  display: flex;
  gap: 22px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
footer nav a {
  color: #fff;
  font-family: 'Montserrat';
  font-weight: 700;
  font-size: 1rem;
  background: rgba(255,255,255,0.06);
  padding: 5px 15px;
  border-radius: 12px;
  transition: background 0.21s, color 0.16s;
}
footer nav a:hover, footer nav a:focus { background: #ffe066; color: var(--color-accent2); }
footer p {
  color: #fff;
  font-size: 1rem;
  margin-top: 5px;
}

/* ANIMATION: Energetic float for main page cards & features */
@keyframes floaty {
  0% { transform: translateY(0); }
  40% { transform: translateY(-7px) rotate(-2deg) scale(1.011); }
  100% { transform: translateY(0); }
}
.feature:hover,
.card:hover { animation: floaty 0.8s 1; }

@media (max-width: 900px) {
  .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  .service-list, .feature-list {
    gap: 14px;
  }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  width: 100vw;
  left: 0;
  background: linear-gradient(90deg, #ffe066 62%, #f870b7 100%);
  color: var(--color-primary);
  box-shadow: 0 -2px 22px #243b5517;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1100;
  padding: 18px 10px 18px 10px;
  animation: cookie-fadein 0.51s;
}
@keyframes cookie-fadein {
  from { transform: translateY(90px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  font-size: 1.07rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--color-primary);
  margin-bottom: 11px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-bottom: 0;
}
.cookie-banner button {
  border: none;
  outline: none;
  border-radius: 16px;
  padding: 10px 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-right: 0;
  cursor: pointer;
  transition: background 0.18s, color 0.16s, box-shadow 0.17s;
}
.cookie-banner .cookie-accept {
  background: var(--color-accent2);
  color: #fff;
  box-shadow: 0 1.5px 9px #b84c260e;
}
.cookie-banner .cookie-accept:hover, .cookie-banner .cookie-accept:focus {
  background: var(--color-accent);
  color: #fff;
}
.cookie-banner .cookie-reject {
  background: #fff;
  color: var(--color-accent2);
  border: 1.5px solid var(--color-accent2);
  box-shadow: 0 1.5px 9px #b84c260e;
}
.cookie-banner .cookie-reject:hover, .cookie-banner .cookie-reject:focus {
  background: #ffe066;
  color: var(--color-primary);
}
.cookie-banner .cookie-settings {
  background: none;
  color: var(--color-primary);
  text-decoration: underline dotted;
  transition: color 0.16s;
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  color: var(--color-accent);
}

/* COOKIE SETTINGS MODAL */
.cookie-modal {
  position: fixed;
  z-index: 1200;
  left: 0;
  top: 0;
  width: 100vw; height: 100vh;
  background: rgba(36, 59, 85, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-modal-fadein 0.49s;
}
@keyframes cookie-modal-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  border-radius: 18px;
  max-width: 410px;
  box-shadow: 0 9px 38px #22243b36;
  padding: 30px 25px 22px 25px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 17px;
  animation: cookie-modal-in 0.62s cubic-bezier(0.72,-0.28,0.32,1.49);
}
@keyframes cookie-modal-in {
  from { transform: scale(0.91) translateY(60px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-content h2 {
  font-size: 1.5rem;
  color: var(--color-accent2);
  margin-bottom: 2px;
}
.cookie-modal-content ul {
  list-style: none;
  margin-bottom: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.07rem;
  margin-bottom: 6px;
}
.cookie-category label {
  font-weight: 600;
  color: var(--color-primary);
}
.cookie-category input[type='checkbox'] {
  accent-color: var(--color-accent2);
  width: 20px; height: 20px; cursor: pointer;
}
.cookie-category .cookie-essential {
  color: #e07a5f;
  font-weight: bold;
  font-size: 1rem;
  margin-left: 1px;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 15px;
  margin-top: 8px;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: #b3b3b3;
  font-size: 2rem;
  position: absolute;
  top: 18px; right: 18px;
  cursor: pointer;
  transition: color 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--color-accent2);
}

@media (max-width: 500px) {
  .cookie-modal-content { max-width: 99vw; padding: 17px 5px 12px 5px; }
}

/* UTILITIES */
.text-section {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Ensure all cards and section wrappers have breathing room */
.section > .container > .content-wrapper:not(:last-child) { margin-bottom: 36px; }

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .section { padding: 24px 7px; margin-bottom: 32px; }
  .feature, .card, .testimonial-card { padding: 15px 7px; }
  .btn-primary { padding: 13px 16px; font-size: 1rem; }
}

@media (max-width: 600px) {
  h1, h2, h3 { word-break: break-word; }
  .feature, .card, .testimonial-card { min-width: unset; }
  footer .container { padding: 22px 5px; }
}

/* MICRO-INTERACTIONS & DECORATIVE */
.btn-primary:active,
.cookie-banner button:active,
.mobile-menu-toggle:active,
.mobile-menu-close:active {
  transform: scale(0.98);
}

/* Misc accessibility & focus states */
*:focus-visible {
  outline: 3px dashed var(--color-accent);
  outline-offset: 2px;
}

/* Hide scrollbars in modals, menu on mobile for aesthetics: */
.mobile-menu, .cookie-modal {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.mobile-menu::-webkit-scrollbar,
.cookie-modal::-webkit-scrollbar {
  display: none;
}
