/* --- 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,
main, 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 {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  background: #FFF6F0;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: #FFF6F0;
  color: #224046;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  letter-spacing: 0.04em;
}

/* --- Brand Variables as Fallbacks --- */
:root {
  --primary: #A84423;
  --secondary: #224046;
  --accent: #F3ECDF;
  --yellow: #FFF275;
  --blue: #63C7FF;
  --green: #4EE04B;
  --pink: #FF90BB;
  --radius: 18px;
  --shadow: 0 2px 16px rgba(170,68,35,0.12);
  --shadow-strong: 0 6px 32px rgba(170,68,35,0.16);
  --transition: all 0.25s cubic-bezier(0.72,0,0.32,1);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  line-height: 1.17;
  text-shadow: 0 3px 14px #ffd4c2a6;
}
h1 {
  font-size: 2.6rem;
  margin-bottom: 18px;
  animation: popIn 0.7s cubic-bezier(0.7,0,0.32,1);
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 7px;
}
.tagline {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--secondary);
  margin-bottom: 24px;
  animation: bounceIn 0.6s cubic-bezier(0.49,1.64,0.67,1.11);
}
p {
  margin-bottom: 20px;
}
strong {
  color: var(--secondary);
  font-weight: 700;
}
a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover, a:focus {
  color: var(--blue);
  text-decoration: underline;
}

/* --- Layout & Spacing --- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.card-container, .services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition), transform 0.14s cubic-bezier(0.7,0,0.32,1);
  min-width: 250px;
  flex: 1 1 275px;
}
.card:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-8px) scale(1.03) rotate(-0.7deg);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.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: var(--radius);
  margin-bottom: 20px;
  box-shadow: 0 1px 10px rgba(34,64,70,0.12);
  color: #222;
  font-style: italic;
  position: relative;
}
.testimonial-card strong {
  display: block;
  margin-top: 18px;
  font-style: normal;
  color: var(--primary);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
/* UL, OL spacing */
ul, ol {
  margin-bottom: 20px;
  margin-top: 8px;
  padding-left: 26px;
}
ul li,
ol li {
  margin-bottom: 10px;
  line-height: 1.5;
}
ul li img {
  width: 26px;
  height: 26px;
  vertical-align: middle;
  margin-right: 9px;
  margin-bottom: -4px;
}

/* --- Header & Navigation --- */
header {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(168,68,35,0.08);
  position: sticky;
  top: 0;
  z-index: 40;
}
header .container {
  display: flex;
  align-items: center;
  min-height: 72px;
  justify-content: space-between;
  gap: 20px;
}
.logo-link img {
  height: 56px;
  width: auto;
  transition: transform 0.21s cubic-bezier(.71,2.2,.67,1.1);
}
.logo-link:hover img {
  transform: scale(1.07) rotate(-2deg);
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 23px;
  flex-wrap: wrap;
}
.main-nav a {
  color: #fff;
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  border-radius: 14px;
  padding: 7px 15px;
  transition: var(--transition);
  position: relative;
}
.main-nav a::after {
  content: '';
  display: block;
  height: 3px;
  width: 0;
  background: var(--yellow);
  border-radius: 2px;
  transition: width .22s cubic-bezier(.77,.11,.24,1.02);
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--yellow);
  background: rgba(255,242,117,0.16);
}
.main-nav a:hover::after, .main-nav a:focus::after {
  width: 70%;
}

.cta-button {
  background: var(--yellow);
  color: var(--primary);
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 1.08rem;
  border: none;
  border-radius: 30px;
  padding: 11px 34px;
  margin-left: 16px;
  box-shadow: 0 3px 14px #ffd4c288;
  cursor: pointer;
  transition: var(--transition), outline 0.13s;
  text-shadow: none;
  outline: none;
  position: relative;
  z-index: 1;
  letter-spacing: 0.03em;
  text-align: center;
}
.cta-button:hover, .cta-button:focus {
  background: var(--pink);
  color: var(--secondary);
  transform: scale(1.03) rotate(-2.5deg);
  box-shadow: 0 6px 24px #ffd4c2cc,0 1px 14px #63C7FF44;
  outline: 2px solid var(--yellow);
}
/* Burger icon for mobile only */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  padding: 9px 16px;
  margin-left: 10px;
  border-radius: 50%;
  transition: background .2s, box-shadow .2s;
  z-index: 61;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--yellow);
  color: var(--primary);
  box-shadow: 0 1px 8px #A8442336;
}

/* --- Mobile Menu Overlay --- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  right:0;
  bottom: 0;
  background: #fff;
  box-shadow: 0 14px 30px #22404640;
  transform: translateX(-110vw);
  z-index: 2000;
  padding: 32px 28px 24px 24px;
  transition: transform 0.32s cubic-bezier(.77,.11,.24,1.02), background 0.25s;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2.2rem;
  position: absolute;
  right: 32px;
  top: 26px;
  cursor: pointer;
  z-index: 2050;
  padding: 6px;
  border-radius: 50%;
  transition: background .15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--yellow);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 60px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Merriweather', serif;
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 700;
  padding: 16px 0;
  border-radius: 14px;
  text-align: left;
  transition: var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--yellow);
  color: var(--secondary);
  padding-left: 14px;
}
/* Hide main nav on mobile, show burger */
@media (max-width: 990px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  .cta-button {
    padding: 11px 22px;
    font-size: 1rem;
    margin-left: 4px;
  }
}
@media (max-width: 580px) {
  .mobile-menu {
    padding: 12px 11px 15px 10px;
  }
}

/* --- Hero, Cards, Features, Lists --- */
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  width: 100%;
}
.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 22px;
}
.services-list > div {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 20px 22px 20px;
  min-width: 235px;
  flex: 1 1 230px;
  margin-bottom: 20px;
  position: relative;
  transition: var(--transition), transform 0.13s cubic-bezier(.73,1.8,.67,1.23);
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 2px solid #fff2ed;
}
.services-list > div:hover {
  border: 2px solid var(--pink);
  box-shadow: var(--shadow-strong);
  transform: translateY(-7px) scale(1.02);
}
.services-list strong {
  font-size: 1.1rem;
  color: var(--secondary);
}

/* --- Footer --- */
footer {
  background: #224046;
  color: #fff;
  padding: 38px 0 0 0;
  box-shadow: 0 -2px 10px rgba(34,64,70,0.09);
}
.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto 18px auto;
  align-items: flex-start;
  justify-content: space-between;
}
.contact-details {
  min-width: 220px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-details img {
  width: 34px;
  margin-bottom: 8px;
  margin-right: 8px;
}
.contact-details p {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1rem;
  margin-bottom: 13px;
  color: #fff;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 160px;
  margin-top: 4px;
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  transition: color .16s;
  padding: 6px 0;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--yellow);
  text-decoration: underline;
}
.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 3px;
  align-items: center;
}
.footer-social a {
  display: flex;
  background: #fff2ed;
  padding: 7px;
  border-radius: 50%;
  transition: background .17s, transform .11s;
}
.footer-social a:hover, .footer-social a:focus {
  background: var(--pink);
  transform: scale(1.1) rotate(-7deg);
}
.footer-social img {
  width: 24px;
  height: 24px;
}
.copyright {
  text-align: center;
  font-size: 0.97rem;
  color: #ededed;
  margin: 18px 0 0 0;
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fffbed;
  box-shadow: 0 -2px 22px #A844231e;
  color: var(--primary);
  z-index: 3000;
  padding: 20px 15px 18px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  gap: 20px;
  animation: floatInUp .7s cubic-bezier(.7,0,.32,1);
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cookie-banner button {
  min-width: 98px;
  padding: 10px 24px;
  font-family: 'Merriweather', serif;
  border: none;
  border-radius: 20px;
  background: var(--yellow);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.98rem;
  margin-right: 3px;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: 0 0.5px 6px #22404612;
}
.cookie-banner .settings-btn {
  background: var(--blue);
  color: white;
  margin-left: 3px;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--pink);
  color: var(--secondary);
}
.cookie-banner .settings-btn:hover, .cookie-banner .settings-btn:focus {
  background: var(--green);
  color: var(--secondary);
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -45%) scale(0.92);
  background: #fff;
  color: var(--primary);
  border-radius: var(--radius);
  box-shadow: 0 4px 48px rgba(34,64,70,0.22);
  z-index: 4000;
  min-width: 315px;
  max-width: 96vw;
  padding: 36px 30px 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s, transform .22s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1.02);
}
.cookie-modal h3 {
  color: var(--secondary);
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.21rem;
}
.cookie-modal .category {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 13px;
}
.cookie-modal .category label {
  font-size: 1.03rem;
  color: var(--primary);
  font-weight: 600;
}
.cookie-modal .category input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--yellow);
}
.cookie-modal .essential {
  color: var(--secondary);
  font-weight: bold;
}
.cookie-modal .modal-actions {
  margin-top: 13px;
  display: flex;
  gap: 13px;
}
.cookie-modal button {
  min-width: 115px;
  font-size: 1rem;
  background: var(--yellow);
  color: var(--primary);
  border: none;
  border-radius: 24px;
  padding: 11px 0;
  font-family: 'Merriweather', serif;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}
.cookie-modal button:hover, .cookie-modal button:focus {
  background: var(--pink);
  color: var(--secondary);
}
.cookie-modal .close-btn {
  background: transparent;
  color: var(--secondary);
  font-size: 2rem;
  position: absolute;
  top: 14px;
  right: 14px;
  border: none;
  cursor: pointer;
  padding: 7px;
  border-radius: 50%;
}
.cookie-modal .close-btn:hover, .cookie-modal .close-btn:focus {
  background: var(--pink);
}

/* --- Playful, Dynamic, Fun UI Effects --- */
@keyframes bounceIn {
  0% { transform: translateY(-40px) scale(0.85); opacity: 0; }
  60% { transform: translateY(10px) scale(1.05); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
@keyframes popIn {
  0% { opacity: 0; transform: scale(0.8) rotate(-8deg); }
  60% { opacity: 1; transform: scale(1.03) rotate(1deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes wiggle {
  25% { transform: rotate(-6deg); }
  50% { transform: rotate(7deg); }
  75% { transform: rotate(-2deg); }
  100% { transform: none; }
}
@keyframes floatInUp {
  0% { opacity: 0; transform: translateY(80px); }
  100% { opacity:1; transform: none; }
}

.cta-button, .main-nav a, .services-list > div, .card {
  will-change: transform, box-shadow;
}
.card:hover, .services-list > div:hover {
  animation: wiggle 0.49s ease-in-out 1;
}

.cta-button {
  animation: bounceIn 0.61s cubic-bezier(.52,1.8,.67,1.23);
}

/* --- Responsive Design (Mobile-first) --- */
@media (max-width: 820px) {
  .container {
    padding: 0 11px;
  }
  .services-list, .footer-wrapper {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 700px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.28rem; }
  .container { padding: 0 5vw; }
  .services-list > div {
    min-width: 120px;
    padding: 18px 10px 16px 10px;
  }
  .footer-wrapper { gap: 12px; }
}
@media (max-width: 580px) {
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    min-height: 44px;
    padding: 6px 3vw;
  }
  .logo-link img { height: 43px; }
  .cta-button { padding: 10px 9vw; margin-left: 0; }
  section, .section { padding: 17px 0 17px 0; }
  .footer-wrapper { flex-direction: column; gap: 12px; align-items: stretch; }
  .copyright { font-size: 0.93rem; }
}
@media (max-width: 768px) {
  .content-grid, .card-container, .services-list, .footer-wrapper {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    font-size: 1.01rem;
  }
}

/* --- Utility Classes & Details --- */
img { max-width: 100%; height: auto; display: inline-block; border-radius: 8px; }
b, strong { color: var(--primary); }
hr { border: none; border-top: 1.5px dashed var(--pink); margin: 33px 0 23px 0; }

::-webkit-input-placeholder { color: #aaa; opacity: 1; }
::-moz-placeholder { color: #aaa; opacity: 1; }
:-ms-input-placeholder { color: #aaa; opacity: 1; }
::placeholder { color: #aaa; opacity: 1; }

/* --- Focus Styles --- */
a, button, .cta-button, .main-nav a, .mobile-nav a {
  outline: none;
  box-shadow: none;
}
a:focus-visible, .cta-button:focus-visible, .main-nav a:focus-visible, .mobile-nav a:focus-visible {
  outline: 2px dashed var(--blue);
  outline-offset: 2px;
}

/* --- Card-specific styles for any .card, .card-container, .card-content --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  position: relative;
  transition: var(--transition), transform 0.14s cubic-bezier(0.7,0,0.32,1);
  min-width: 250px;
  flex: 1 1 275px;
}

/* --- Hide Cookie and Menu overlays by default --- */
.cookie-banner, .cookie-modal { display: none; }
.cookie-banner.show, .cookie-modal.active { display: flex; }

/* --- Prevent overlapping content --- */
section, .section, .card, .card-container, .testimonial-card, .feature-item, .newsletter-section, .services-list > div {
  margin-bottom: 20px;
}
section:last-child, .section:last-child {
  margin-bottom: 0;
}

/* --- End --- */
