/* ---- CSS RESET & NORMALIZATION ---- */
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;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.6;
  background: #fff;
  color: #2D3D49;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  min-height: 100vh;
  font-size: 16px;
  letter-spacing: 0.03em;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
  border: none;
}
a {
  color: #F76530;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #2D3D49;
  text-decoration: underline;
}
ul, ol {
  list-style: none;
}

/* ---- BRAND FONTS (with fallbacks) ---- */
h1, h2, h3, h4, .cta-btn, .cta-btn-secondary {
  font-family: 'Montserrat', 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 700;
}

/* ---- COLOR VARIABLES (with fallbacks) ---- */
:root {
  --primary: #2D3D49;
  --secondary: #F76530;
  --accent: #FFDBB2;
  --bg-light: #fff;
  --bg-light-alt: #FFFBF4;
  --text-dark: #2D3D49;
  --text-light: #fff;
  --shadow: 0 4px 24px rgba(45, 61, 73, 0.09);
  --radius: 18px;
  --fun-color: #FFC700;
  --fun-color2: #62E6D4;
  --fun-color3: #EE6B84;
  --fun-color4: #0ABCF9;
}

/* ---- LAYOUT CONTAINERS & SPACING ---- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
}
.content-wrapper {
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--bg-light-alt);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--bg-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  padding: 24px;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(247,101,48,0.10);
  transform: translateY(-5px) scale(1.025) 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(--accent);
  border-radius: 20px;
  margin-bottom: 20px;
  box-shadow: 0 3px 12px rgba(45,61,73,0.08);
  position: relative;
  color: var(--text-dark);
}
.testimonial-card blockquote {
  font-style: italic;
  font-size: 18px;
  margin: 0 0 0 0;
  color: var(--primary);
  line-height: 1.6;
}
.testimonial-card strong {
  font-weight: 700;
  color: var(--secondary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}


/* ---- TYPOGRAPHY & HEADINGS ---- */
h1 {
  font-size: 32px;
  color: var(--secondary);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  line-height: 1.15;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
}
h2 {
  font-size: 24px;
  color: var(--primary);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
h3 {
  font-size: 18px;
  color: var(--secondary);
  margin-bottom: 7px;
}
h4 {
  font-size: 16px;
  color: var(--primary);
  margin-bottom: 5px;
}
p, li, address {
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.7;
}
.subtitle {
  font-size: 20px;
  color: var(--primary);
  opacity: 0.9;
  margin-bottom: 22px;
  font-style: italic;
}
.text-section h3 {
  color: var(--fun-color3);
  margin-top: 16px;
  font-weight: 700;
}

/* ---- MAIN NAVIGATION ---- */
header {
  background: var(--bg-light);
  box-shadow: 0 2px 16px rgba(45,61,73,.06);
  z-index: 20;
  position: relative;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 16px;
  position: relative;
}
.main-nav > a img {
  height: 46px;
  margin-right: 6px;
  vertical-align: middle;
}
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.main-nav li {
  display: flex;
}
.main-nav li a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  color: var(--primary);
  padding: 6px 10px;
  border-radius: 10px;
  background: none;
  transition: background 0.15s, color 0.18s;
}
.main-nav li a:hover,
.main-nav li a:focus {
  background: var(--accent);
  color: var(--secondary);
}
.cta-btn, .cta-btn-secondary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  border-radius: 16px;
  background: var(--secondary);
  color: var(--text-light);
  letter-spacing: 0.03em;
  padding: 13px 30px;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.2s, background 0.19s, transform 0.13s;
  box-shadow: 0 2px 14px rgba(247,101,48,0.09);
  margin-left: 12px;
  text-shadow: 0 2px 6px rgba(45, 61, 73, 0.09);
  position: relative;
  z-index: 1;
}
.cta-btn:after {
  content: '';
  display: block;
  position: absolute;
  left: -8px; top: -8px; right: -8px; bottom: -8px;
  border-radius: inherit;
  background: rgba(255, 199, 0, 0.10);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
  z-index: -1;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--fun-color3);
  color: var(--text-light);
  transform: translateY(-2px) scale(1.04) rotate(-1.5deg);
  box-shadow: 0 5px 28px rgba(247,101,48,0.15);
}
.cta-btn:hover:after, .cta-btn:focus:after {
  opacity: 1;
}
.cta-btn-secondary {
  background: var(--primary);
  color: var(--accent);
  padding: 13px 28px;
  margin-top: 24px;
  border-radius: 16px;
  border: 2px solid var(--fun-color3);
  margin-left: 0;
  text-shadow: none;
}
.cta-btn-secondary:hover, .cta-btn-secondary:focus {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
  transform: translateY(-1px) scale(1.04) rotate(1deg);
}

/* Hamburger toggle (mobile) */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: #fff;
  font-size: 32px;
  border: none;
  border-radius: 40px;
  padding: 9px 18px 12px 18px;
  margin-left: 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(247,101,48,0.18);
  transition: background 0.12s, transform 0.13s;
  position: relative;
  z-index: 21;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--fun-color3);
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: var(--bg-light);
  box-shadow: 0 8px 50px rgba(45,61,73,0.22);
  z-index: 200;
  transition: transform 0.38s cubic-bezier(.4,1.35,.54,1), opacity 0.28s;
  opacity: 0;
  transform: translateX(-100vw);
  padding: 0;
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--fun-color3);
  color: #fff;
  border: none;
  position: absolute;
  top: 18px; right: 22px;
  font-size: 38px;
  line-height: 1;
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(238,107,132,.13);
  transition: background 0.16s, color 0.16s;
  z-index: 201;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--secondary);
  color: #FFDBB2;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  justify-content: center;
  align-items: flex-start;
  margin: 110px 0 0 44px;
}
.mobile-nav a {
  font-family: 'Montserrat',Arial,sans-serif;
  font-size: 22px;
  color: var(--primary);
  padding: 10px 0 10px 8px;
  border-radius: 10px;
  background: none;
  font-weight: 700;
  min-width: 170px;
  transition: background 0.11s, color 0.19s, transform 0.11s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--fun-color);
  color: var(--secondary);
  transform: translateX(5px) scale(1.03) rotate(-2deg);
}


/* ---- LAYOUT/LISTS STYLES ---- */
section {
  padding: 0 0 24px 0;
  margin: 0 auto 0 auto;
}
ul li {
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
}
ul li img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  margin-right: 10px;
}
.text-section ul li {
  gap: 8px;
  font-size: 16px;
  margin-bottom: 9px;
}
.text-section {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 0;
  background: transparent;
}
.text-section h3, .text-section h2 {
  margin-bottom: 2px;
}

/* ---- FOOTER ---- */
footer {
  background: var(--primary);
  color: var(--text-light);
  padding: 34px 0 26px 0;
  margin-top: 60px;
  position: relative;
}
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 22px;
  align-items: center;
}
.footer-nav li a {
  color: var(--accent);
  font-size: 15px;
  padding: 7px 13px;
  border-radius: 8px;
  background: none;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: background 0.14s, color 0.15s;
}
.footer-nav li a:hover {
  background: var(--fun-color2);
  color: var(--secondary);
  text-decoration: none;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
  justify-content: center;
  margin-top: 9px;
}
.footer-contact img {
  width: 52px;
  height: 52px;
  margin-right: 16px;
}
.footer-contact address {
  font-style: normal;
  color: var(--accent);
  font-size: 15px;
  margin-left: 11px;
}
.footer-contact a {
  color: var(--fun-color);
  text-decoration: none;
}
.footer-contact a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

/* ---- ANIMATIONS & MICRO-INTERACTIONS ---- */
@keyframes bounceInFade {
  0% { opacity: 0; transform: scale(0.96) translateY(25px) rotate(0.6deg); }
  70% { opacity: 1; transform: scale(1.05) translateY(-8px) rotate(-1.6deg); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes floatWiggle {
  0% { transform: translateY(0) rotate(-2deg); }
  60% { transform: translateY(-5px) rotate(3deg); }
  100% { transform: translateY(0) rotate(-1deg); }
}
.card, .cta-btn, .cta-btn-secondary {
  animation: bounceInFade .75s cubic-bezier(.4,.9,.65,1.27) both;
}
.testimonial-card {
  animation: floatWiggle 2.7s ease-in-out infinite alternate;
}

/* ---- PLAYFUL/WHIMSICAL TOUCHES ---- */
h1, h2, h3 {
  position: relative;
}
h1::after {
  content: '';
  display: block;
  width: 68px;
  height: 7px;
  background: var(--fun-color2);
  border-radius: 20px;
  position: absolute;
  left: 0; bottom: -10px;
  opacity: 0.36;
  z-index: 0;
}
h2::after {
  content: '';
  display: block;
  width: 52px;
  height: 5px;
  background: var(--fun-color3);
  border-radius: 10px;
  position: absolute;
  left: 0; bottom: -8px;
  opacity: 0.26;
  z-index: 0;
}
h3::before {
  content: '\2605'; /* Star */
  display: inline-block;
  color: var(--fun-color4);
  margin-right: 6px;
  font-size: 18px;
  vertical-align: bottom;
  transform: rotate(-7deg);
}

/* --- FOR ICON TEXT-SECTION (Contacts Page) --- */
.text-section img {
  width: 28px;
  height: 28px;
  margin-right: 7px;
  vertical-align: middle;
  display: inline;
}

/* ---- RESPONSIVE DESIGN (MOBILE FIRST) ---- */
@media (max-width: 1200px) {
  .container {
    max-width: 99vw;
  }
}
@media (max-width: 990px) {
  .main-nav ul {
    gap: 11px;
  }
}
@media (max-width: 850px) {
  .main-nav {
    flex-direction: column;
    gap: 8px;
    padding: 10px 10px;
  }
}
@media (max-width: 768px) {
  :root { font-size: 15px; }
  h1 { font-size: 26px; }
  h2 { font-size: 20px; }
  h3 { font-size: 17px; }
  .main-nav ul {
    display: none;
  }
  .main-nav .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .section,
  section {
    padding: 29px 10px;
    margin-bottom: 32px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .footer-contact {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .card {
    padding: 16px;
  }
  .text-image-section { flex-direction: column; gap: 18px; }
}
/* Further compact on small screens */
@media (max-width: 550px) {
  .container { padding-left: 6px; padding-right: 6px; }
  h1 { font-size: 20px; }
  h2 { font-size: 16px; }
  .testimonial-card blockquote {
    font-size: 15px;
  }
}

/* ---- COOKIE CONSENT BANNER ---- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fffbe9;
  color: var(--primary);
  box-shadow: 0 -2px 18px rgba(45,61,73,0.08);
  z-index: 3000;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  padding: 18px 26px;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  animation: bounceInFade .52s cubic-bezier(.47,1.19,.42,1.25);
}
.cookie-banner__text {
  font-size: 15px;
  color: var(--primary);
  line-height: 1.5;
  max-width: 540px;
}
.cookie-banner__actions {
  display: flex;
  gap: 11px;
  align-items: center;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 15px;
  border: none;
  border-radius: 13px;
  padding: 10px 21px;
  cursor: pointer;
  background: var(--secondary);
  color: #fff;
  font-weight: 700;
  transition: background 0.13s, transform 0.12s;
}
.cookie-banner button.cookie-settings {
  background: var(--fun-color4);
  color: var(--primary);
}
.cookie-banner button.cookie-settings:hover,
.cookie-banner button.cookie-settings:focus {
  background: var(--fun-color3);
  color: #fff;
}
.cookie-banner button.accept {
  background: var(--secondary);
}
.cookie-banner button.accept:hover,
.cookie-banner button.accept:focus {
  background: var(--fun-color2);
  color: var(--primary);
  transform: scale(1.06);
}
.cookie-banner button.reject {
  background: var(--fun-color3);
}
.cookie-banner button.reject:hover, .cookie-banner button.reject:focus {
  background: var(--primary);
  color: var(--accent);
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center; justify-content: center;
  background: rgba(45,61,73,0.36);
  z-index: 3200;
  transition: opacity 0.27s;
  opacity: 0;
  pointer-events: none;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
  animation: bounceInFade .50s cubic-bezier(.4,1.13,.58,1.17) both;
}
.cookie-modal__box {
  background: #ffffff;
  border-radius: 32px;
  box-shadow: 0 10px 42px rgba(45,61,73,0.14);
  padding: 32px 32px 22px 32px;
  min-width: 333px;
  max-width: 94vw;
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: relative;
  animation: bounceInFade 0.44s both;
}
.cookie-modal__title {
  font-size: 21px;
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  margin-bottom: 3px;
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--accent);
  border-radius: 14px;
  padding: 11px 16px;
}
.cookie-category label {
  font-size: 15px;
  margin-left: 9px;
  color: var(--primary);
  font-weight: 700;
}
.cookie-category input[type=checkbox] {
  accent-color: var(--secondary);
  width: 20px;
  height: 20px;
}
.cookie-category.disabled label {
  color: #9ca7b6;
  opacity: 0.6;
}
.cookie-modal__actions {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 10px;
}
.cookie-modal-close {
  position: absolute;
  top: 15px; right: 15px;
  width: 36px; height: 36px;
  background: var(--fun-color3);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 1px 7px rgba(238,107,132,0.13);
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--secondary);
  color: var(--accent);
}

@media (max-width: 700px) {
  .cookie-modal__box { min-width: 0; padding: 19px 8px 19px 10px; }
}
@media (max-width: 540px) {
  .cookie-banner { flex-direction: column; gap: 11px; align-items: flex-start; padding: 10px 5vw; }
}

/* ---- MISCELLANEOUS ---- */
::-webkit-scrollbar { width: 11px; background: #fae0c2; border-radius: 8px; }
::-webkit-scrollbar-thumb { background: var(--fun-color3); border-radius: 7px; }

hr {
  border: none;
  border-bottom: 1px dashed #ffd1a7;
  margin: 34px 0 24px 0;
}

/* ---- SECTION & PAGE SPECIFIC ADJUSTMENTS ---- */
/* Features list with icons (index, about) */
.feature-list, .content-wrapper > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 18px;
  margin-top: 16px;
  margin-bottom: 9px;
}
.feature-list li, .content-wrapper > ul li {
  flex: 1 1 260px;
  background: var(--accent);
  border-radius: 14px;
  padding: 16px 14px 16px 14px;
  box-shadow: 0 2px 13px rgba(247,101,48,0.08);
  display: flex;
  align-items: flex-start;
  gap: 13px;
  min-width: 225px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.23s;
}
.feature-list li:hover, .content-wrapper > ul li:hover {
  box-shadow: 0 5px 21px rgba(247,101,48,0.17);
  transform: scale(1.035) rotate(-1.2deg);
  background: #ffd1a7;
}

/* Contact Page Enhancement */
.text-section p strong {
  color: var(--fun-color3);
}

/* Accessibility for focus states */
a:focus, button:focus, .cta-btn:focus, .cta-btn-secondary:focus {
  outline: 2px solid var(--fun-color4);
  outline-offset: 2px;
}

/* Modal/backdrop disables scroll */
body.modal-open {
  overflow: hidden !important;
}

/* --- Hide visually but keep accessible --- */
.sr-only {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
