/* ---- 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;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  font-size: 16px;
  background: #F5F3F2;
  color: #2B3A3B;
  font-family: 'Open Sans', Arial, sans-serif;
}
ul, ol {
  list-style-position: outside;
  margin-left: 1.15em;
  margin-bottom: 1em;
}
a {
  color: #821D23;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #D52941;
}
img {
  max-width: 100%;
  height: auto;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}
:root {
  --primary: #821D23;
  --primary-bright: #D52941;
  --secondary: #F5F3F2;
  --white: #FFFFFF;
  --accent: #22383A;
  --accent-bright: #2196F3;
  --yellow: #FFE15A;
  --green: #72C071;

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;

  --shadow-main: 0 6px 36px rgba(130,29,35,0.15);
  --shadow-card: 0 2px 16px rgba(34,56,58,0.08);
}

/* ---- GENERAL CONTAINER & SECTION LAYOUTS ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.text-section {
  margin-bottom: 20px;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}
h1 {
  font-size: 2.7rem;
  line-height: 1.1;
  margin-bottom: 16px;
}
h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
  margin-top: 8px;
}
h3 {
  font-size: 1.4rem;
}
h4 {
  font-size:1.15rem;
}
p, li, span, small {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--accent);
}
p {
  margin-bottom: 10px;
  font-size: 1.1rem;
}
strong {
  color: var(--primary);
  font-weight: 700;
}
small {
  color: #888;
  font-size: 0.9rem;
}

/* Fun font features for playful look */
h1, h2, h3 {
  text-transform: none;
  letter-spacing: 0.01em;
}
h2, h3 {
  position: relative;
}
h2::after, h3::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--yellow);
  border-radius: var(--radius-sm);
  margin-top: 6px;
  animation: playful-line 1.8s cubic-bezier(0.62,0.02,0.28,1.09) infinite alternate;
}
@keyframes playful-line {
  0% { width: 30px; background: var(--yellow); }
  100% { width: 80px; background: var(--primary-bright); }
}


/* ---- HEADER & MAIN NAVIGATION ---- */
header {
  background: var(--white);
  box-shadow: var(--shadow-main);
  min-height: 72px;
  z-index: 10;
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 8px;
  padding-bottom: 8px;
}
header img {
  height: 48px;
  width: auto;
  margin-right: 16px;
  transition: transform 0.26s cubic-bezier(0.7,0.2,0.4,1.7);
}
header img:hover {
  transform: rotate(-6deg) scale(1.07);
}
header nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
header nav a {
  position: relative;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: var(--accent);
  transition: background 0.18s, color 0.18s;
  font-size: 1rem;
}
header nav a:hover,
header nav a:focus {
  background: var(--yellow);
  color: var(--primary);
}
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.16rem;
  background: var(--primary);
  color: var(--white) !important;
  padding: 12px 30px;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(130,29,35,0.10);
  cursor: pointer;
  position: relative;
  transition: background 0.18s, transform 0.16s;
  margin-left: 18px;
  text-decoration: none;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--primary-bright);
  transform: scale(1.045) rotate(-1deg);
  box-shadow: 0 4px 24px rgba(130,29,35,.16);
}
.cta-secondary {
  background: var(--yellow);
  color: var(--primary) !important;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.06rem;
  padding: 12px 28px;
  border-radius: var(--radius-lg);
  margin-top: 10px;
  display: inline-flex;
  transition: background 0.17s, transform 0.17s;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #fff790;
  color: var(--accent) !important;
  transform: scale(1.04);
}

/* ---- MOBILE BURGER MENU ---- */
.mobile-menu-toggle {
  display: none;
  background: var(--yellow);
  color: var(--primary);
  border: none;
  font-size: 2.3rem;
  border-radius: var(--radius-lg);
  position: absolute;
  right: 18px;
  top: 16px;
  padding: 8px 18px;
  z-index: 120;
  transition: background 0.18s, transform 0.18s;
  box-shadow: 0 4px 14px rgba(130,29,35,0.1);
  cursor: pointer;
}
.mobile-menu-toggle:active {
  background: var(--primary-bright);
  color: var(--yellow);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: var(--primary);
  color: var(--white);
  z-index: 250;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.4s cubic-bezier(.61,.03,.41,1.11);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  background: none;
  color: var(--white);
  font-size: 2.2rem;
  border: none;
  position: absolute;
  right: 28px;
  top: 20px;
  cursor: pointer;
  z-index: 251;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: center;
  margin-top: 90px;
  width: 100%;
}
.mobile-nav a {
  color: var(--white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  padding: 14px 0;
  width: 92%;
  text-align: center;
  border-radius: var(--radius-md);
  transition: background 0.15s, color 0.15s, transform 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--yellow);
  color: var(--primary);
  transform: scale(1.05);
}

/* Hide desktop nav on mobile */
@media (max-width: 990px) {
  header nav, header .cta-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* Hide mobile menu on desktop */
@media (min-width: 990px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
}

/* ---- FOOTER ---- */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 30px 0 14px 0;
  margin-top: 40px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
footer nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
footer nav a {
  color: var(--yellow);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 3px 8px;
  border-radius: 6px;
  transition: color 0.11s, background 0.17s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--primary);
  background: var(--yellow);
}
footer small {
  color: #fffbe6;
}


/* ---- MAIN & SECTION CONTENT LAYOUTS ---- */
main {
  min-height: 80vh;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--secondary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

/* .card-container - not used in html, but provided for potential cards layout  */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 14px;
}
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
  transition: box-shadow 0.17s, transform 0.13s;
  position: relative;
}
.card:hover {
  box-shadow: 0 6px 30px rgba(130,29,35,.15);
  transform: translateY(-4px) scale(1.025) rotate(-1.5deg);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.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;
}

/* RESPONSIVE section spacing */
@media (max-width: 768px) {
  section {
    padding: 24px 8px;
    margin-bottom: 36px;
  }
  .content-wrapper {
    gap: 18px;
  }
}

/* ---- SERVICE LIST / FEATURE ITEMS ---- */
.service-list,
.features {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.service-item, .feature-item {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 22px 20px 20px 20px;
  margin-bottom: 20px;
  min-width: 220px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  position: relative;
  transition: transform 0.15s, box-shadow 0.18s;
  cursor: pointer;
  overflow: visible;
  z-index: 1;
}
.service-item:hover, .feature-item:hover {
  transform: translateY(-5px) scale(1.04) rotate(1.5deg);
  box-shadow: 0 8px 32px rgba(130,29,35,.16);
  background: var(--yellow);
}
.service-item h3 {
  margin-bottom: 3px;
  font-size: 1.17rem;
  color: var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
}
.service-item p {
  color: var(--accent);
  margin-bottom: 2px;
  font-size: 1rem;
}
.service-price {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 1.07rem;
  font-weight: bold;
  padding: 6px 17px 6px 14px;
  margin-top: 7px;
  align-self: flex-end;
  letter-spacing: 0.03em;
  transition: background 0.17s, color 0.14s;
}
.service-item:hover .service-price {
  background: var(--primary-bright);
}

@media (max-width:900px) {
  .service-list,
  .features {
    flex-direction: column;
    gap: 18px;
  }
  .service-item, .feature-item {
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
  }
}

/* ---- TESTIMONIAL CARD ---- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: #fffbe0;
  border-radius: var(--radius-lg);
  box-shadow: 0 3px 18px rgba(130,29,35,0.13);
  padding: 20px;
  margin-bottom: 20px;
  margin-top: 8px;
  transition: box-shadow 0.17s, transform 0.14s;
  border: 2px dashed var(--primary);
  font-family: 'Montserrat', Arial, sans-serif;
}
.testimonial-card p {
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}
.testimonial-card span {
  color: var(--primary);
  font-size: 0.98rem;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
}
.testimonial-card:before {
  content:'"';
  font-size: 3.1rem;
  font-family: 'Montserrat', cursive;
  color: var(--primary);
  opacity: 0.2;
  margin-bottom: -20px;
  position: relative;
  left: -8px;
  pointer-events: none;
}
.testimonial-card:hover {
  box-shadow: 0 8px 40px rgba(34,56,58,.17);
  transform: translateY(-2px) scale(1.025) rotate(-3deg);
}

/* ---- BUTTONS & INTERACTIONS ---- */
button, .cta-primary, .cta-secondary {
  outline: none;
}
button:focus-visible, .cta-primary:focus-visible, .cta-secondary:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

/* ---- ANIMATIONS / MICRO-INTERACTIONS ---- */
.cta-primary, .cta-secondary, .service-item, .feature-item, .testimonial-card, .card {
  transition: box-shadow 0.16s, background 0.16s, color 0.15s, transform 0.17s;
}

a.fade-link {
  opacity: 1;
  transition: opacity 0.18s;
}
a.fade-link:active {
  opacity: 0.5;
}

/* playful color hover for links in text-section */
.text-section a {
  color: var(--primary);
  border-bottom: 2px dashed var(--yellow);
  padding-bottom: 1px;
  transition: color 0.15s, border 0.15s;
  font-weight: 600;
}
.text-section a:hover {
  color: var(--primary-bright);
  border-bottom: 2px solid var(--primary);
}


/* ---- RESPONSIVE DESIGN ---- */
@media (max-width:900px) {
  header .container {
    flex-wrap: wrap;
    gap: 9px;
  }
  .content-grid,
  .card-container,
  .service-list {
    flex-direction: column;
    gap: 16px;
  }
  .card {
    width: 100%;
  }
  .testimonial-card {
    width: 100%;
  }
}
@media (max-width:768px) {
  h1 {font-size: 2.1rem;}
  h2 {font-size: 1.45rem;}
  .container {
    padding-left: 8px; padding-right: 8px;
  }
  .card, .testimonial-card, .service-item, .feature-item {
    padding: 14px 8px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
}

/* ---- UTILITIES & SHADOWS ---- */
.mt-0 {margin-top: 0px !important;}
.mb-0 {margin-bottom: 0px !important;}
.mb-1 {margin-bottom: 8px !important;}
.mb-2 {margin-bottom: 16px !important;}
.mb-3 {margin-bottom: 24px !important;}

.text-center {text-align: center;}
.text-left {text-align: left;}
.text-right {text-align: right;}

/* ---- COOKIE CONSENT BANNER ---- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fffbe0;
  color: var(--primary);
  box-shadow: 0 -3px 24px rgba(34,56,58,.14);
  z-index: 5000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  font-family: 'Montserrat', Arial, sans-serif;
  gap: 18px;
  transition: transform 0.3s;
}
.cookie-banner .cookie-banner-buttons {
  display: flex;
  gap: 16px;
}
.cookie-banner button {
  min-width: 92px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  padding: 9px 21px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: background 0.14s, transform 0.14s;
}
.cookie-banner .accept {
  background: var(--primary);
  color: var(--white);
}
.cookie-banner .accept:hover {
  background: var(--primary-bright);
}
.cookie-banner .reject {
  background: #eaeaea;
  color: var(--primary);
}
.cookie-banner .reject:hover {
  background: var(--yellow);
}
.cookie-banner .settings {
  background: var(--yellow);
  color: var(--primary);
}
.cookie-banner .settings:hover {
  background: var(--white);
}

@media (max-width:600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 8px;
    gap: 10px;
    font-size: 0.97rem;
  }
  .cookie-banner .cookie-banner-buttons {
    gap: 7px;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .cookie-banner button {
    padding: 8px 11px;
    width: 98px;
    font-size: 0.97rem;
  }
}

/* Cookie Settings Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; width:100vw; height:100vh;
  background: rgba(34,56,58,0.44);
  z-index: 5010;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.cookie-modal-overlay.open {
  opacity:1;
  pointer-events: all;
}
.cookie-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 48px rgba(34, 56, 58, 0.19);
  width: 95vw;
  max-width: 420px;
  padding: 30px 25px 22px 25px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: slideUpModal .8s cubic-bezier(.32,.59,.43,1.16);
}
@keyframes slideUpModal {
  0% { transform: translateY(80px) scale(0.88); opacity: 0.2; }
  100% { transform: none; opacity: 1; }
}
.cookie-modal-title {
  font-weight: bold;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.31rem;
  color: var(--primary);
}
.cookie-modal .close-modal {
  position: absolute;
  right: 15px; top: 13px;
  font-size: 1.6rem;
  background: none;
  color: var(--primary);
  border: none;
  cursor: pointer;
}
.cookie-modal-toggles {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.cookie-modal-row {
  display: flex;
  align-items: center;
  gap: 18px;
}
.cookie-modal-row label{
  font-size: 1.04rem;
  color: var(--accent);
}
.cookie-toggle {
  width: 44px;
  height: 24px;
  background: #DDD;
  border-radius: 99px;
  position: relative;
  display: inline-block;
}
.cookie-toggle input {
  display: none;
}
.cookie-toggle .slider {
  position: absolute;
  left: 3px; top: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.17s, background 0.2s;
  box-shadow: 0 1px 6px #bbb8;
}
.cookie-toggle input:checked + .slider {
  left: 21px;
  background: var(--green);
}
.cookie-toggle.essential {
  background: var(--green);
}
.cookie-toggle.essential .slider {
  background: var(--green);
  left: 21px;
}
.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 14px;
}
.cookie-modal-actions button {
  font-size: 1rem;
  border: none;
  outline: none;
  border-radius: var(--radius-sm);
  padding: 9px 19px;
  background: var(--primary);
  color: var(--white);
  font-weight: bold;
  cursor: pointer;
  transition: background 0.14s;
}
.cookie-modal-actions .save {
  background: var(--primary);
}
.cookie-modal-actions .save:hover {
  background: var(--primary-bright);
}
.cookie-modal-actions .cancel {
  background: #eee;
  color: var(--primary);
}
.cookie-modal-actions .cancel:hover {
  background: var(--yellow);
}

/* ---- FORMS ---- */
input[type=text], input[type=email], textarea, select {
  background: #fff;
  border: 2px solid #ddd;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 1rem;
  color: #22383A;
  margin-bottom: 14px;
}
input[type=text]:focus, input[type=email]:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fffbe0;
}
label {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
  display:block;
}

/* ---- SPECIAL - FUN/PLAYFUL DECORATIVE ELEMENTS ---- */

/* Fun rotating stars/circle for playful accent corners */
.section::before {
  content: '';
  display: block;
  position: absolute;
  width: 38px;
  height: 38px;
  left: -26px;
  top: -26px;
  background: var(--yellow);
  border-radius: 50%;
  opacity: 0.23;
  z-index: 1;
  pointer-events: none;
  animation: floatSpot 2.6s infinite alternate;
}
@keyframes floatSpot {
  0% { transform: scale(1) translateY(0); }
  100% { transform: scale(1.17) translateY(14px);}
}
/* Only show the playful spot on desktop */
@media (max-width:800px) {
  .section::before { display: none; }
}

/* ---- LISTS ---- */
ul, ol {
  padding-left: 1.4em;
  margin-bottom: 1.1em;
}
ul li, ol li {
  margin-bottom: 6px;
  line-height: 1.7;
  color: var(--accent);
  position: relative;
}
ul li::marker, ol li::marker {
  color: var(--primary);
}
ul li strong {
  color: var(--primary);
}

/* ---- END ---- */
