/* --- CSS RESET, NORMALIZE & BASE STYLES --- */
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.6;
  background: #FFFFFF;
  color: #3f240e;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
}
a {
  color: #224C6D;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #5E819D;
}
ul, ol {
  padding-left: 1.3em;
  margin-bottom: 1em;
}
img {
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}
::-webkit-input-placeholder { color: #888; }
::-moz-placeholder { color: #888; }
:-ms-input-placeholder { color: #888; }
::placeholder { color: #888; }

/* --- BRAND FONT IMPORTS (GOOGLE FONTS) --- */
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700,900&family=Roboto:wght@400;500;700&display=swap');

/* --- LAYOUT CONTAINERS & SPACING --- */
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 6px 24px 0 rgba(34,76,109,0.07),0 2px 2px 0 rgba(101,67,33,0.04);
  transition: box-shadow 0.3s, transform 0.15s;
}
.card:hover {
  box-shadow: 0 10px 36px 0 rgba(34,76,109,0.17),0 4px 8px 0 rgba(101,67,33,0.09);
  transform: translateY(-4px) scale(1.02);
}

.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #E6D2B5;
  border-radius: 18px;
  box-shadow: 0 4px 18px 0 rgba(34,76,109,0.10);
  color: #3f240e;
  font-size: 1.1em;
  margin-bottom: 24px;
  transition: box-shadow 0.3s, background 0.3s;
  border: 2px solid #fff5e1;
}
.testimonial-card:hover {
  background: #fffbe8;
  box-shadow: 0 8px 24px 0 rgba(94,129,157,0.16);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- BRAND COLORS --- */
:root {
  --brand-primary: #654321;
  --brand-secondary: #E6D2B5;
  --brand-accent: #224C6D;
  --brand-light: #fffbe8;
  --brand-bright-1: #FFD64E;
  --brand-bright-2: #FF7F50;
  --brand-bright-3: #09d6a4;
  --brand-fun-pink: #ffb5eb;
}

/* --- TYPOGRAPHY & HEADINGS --- */
h1, .h1 {
  font-family: 'Merriweather', serif;
  font-weight: 900;
  font-size: 2.3rem;
  color: var(--brand-accent);
  letter-spacing: 0.03em;
  margin-bottom: 12px;
  line-height: 1.15;
}
h2, .h2 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--brand-primary);
  letter-spacing: 0.01em;
  margin-bottom: 10px;
  line-height:1.2;
}
h3, .h3 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--brand-accent);
  letter-spacing: 0;
  margin-bottom: 7px;
}
p, li {
  font-size: 1.02rem;
  color: #3f240e;
  font-family: 'Roboto', Arial, sans-serif;
}
p.subheadline {
  font-size: 1.2rem;
  color: var(--brand-bright-2);
  font-weight: 500;
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
ul.feature-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
ul.feature-grid > li {
  flex: 1 1 240px;
  background: var(--brand-light);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(255,214,78, 0.08);
  padding: 20px 20px 24px 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.25s, transform 0.18s, background 0.22s;
  min-width: 230px;
  margin-bottom: 20px;
  position: relative;
}
ul.feature-grid > li:hover {
  background: var(--brand-fun-pink);
  box-shadow: 0 8px 36px 0 rgba(255,127,80,.19);
  transform: translateY(-5px) scale(1.03) rotate(-1deg);
}
ul.feature-grid img {
  height: 38px;
  width: auto;
  margin-bottom: 15px;
}
li strong {
  color: var(--brand-accent);
}

.text-section ul {
  margin-bottom: 16px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-list li {
  display: flex;
  align-items: center;
  font-size: 1.04rem;
  gap: 12px;
}
.contact-list img {
  width: 22px;
  height: 22px;
  margin-right: 6px;
}

.info-section {
  background: var(--brand-light);
  border-radius: 14px;
  padding: 16px 20px 14px 20px;
  margin-top: 10px;
}
.info-section ul {
  margin-bottom: 0;
}

/* --- BUTTONS --- */
.button-primary,
.button-primary:visited {
  display: inline-block;
  padding: 0.9em 2.1em;
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 1.06em;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(90deg, #FFD64E 0%, #FF7F50 80%, #09d6a4 100%);
  border-radius: 58px;
  text-decoration: none;
  position: relative;
  box-shadow: 0 4px 18px 0 rgba(34,76,109,.13);
  border: none;
  cursor: pointer;
  transition: background 0.17s, transform 0.13s, box-shadow 0.14s;
}
.button-primary:hover,
.button-primary:focus {
  background: linear-gradient(90deg, #FF7F50 5%, #FFD64E 100%);
  color: var(--brand-primary);
  transform: scale(1.06) translateY(-2px) rotate(-1.5deg);
  box-shadow: 0 5px 22px 4px rgba(255,127,80,.18);
}
.button-primary:active {
  background: linear-gradient(90deg, #FFD64E 0%, #09d6a4 100%);
}
/* Styles for unstyled links as buttons */
.content-wrapper a.button-primary {
  margin-top: 14px;
}

/* --- NAVBAR & HEADER --- */
header {
  background: #fff;
  border-bottom: 3px solid var(--brand-secondary);
  box-shadow: 0 2px 10px 0 rgba(101,67,33,0.06);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
header img {
  height: 54px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 0 18px;
}
.main-nav a {
  color: var(--brand-primary);
  font-weight: 700;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.04rem;
  letter-spacing: 0.01em;
  padding: 7px 0;
  border-radius: 8px;
  position: relative;
  transition: color 0.2s, background 0.22s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: var(--brand-bright-1);
  color: var(--brand-accent);
  text-shadow: 0 1px 0 #fffbe8;
}
/* burger */
.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  background: var(--brand-bright-2);
  border-radius: 12px;
  padding: 5px 15px;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 10px 0 rgba(255,127,80,.09);
  margin-left: 18px;
  z-index: 1700;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #FFD64E;
  color: var(--brand-accent);
}

/* --- MOBILE NAVIGATION MENU --- */
.mobile-menu {
  position: fixed;
  z-index: 1800;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  overflow-y: auto;
  transform: translateX(-105vw);
  transition: transform 0.37s cubic-bezier(.71,.17,.25,1.09);
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: flex-start;
  padding: 38px 28px 18px 30px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #FFD64E;
  color: var(--brand-accent);
  font-size: 2.2rem;
  border: none;
  position: absolute;
  top: 26px;
  right: 32px;
  cursor: pointer;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1900;
  transition: background 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #FF7F50;
  color: #fff;
}
.mobile-nav {
  width: 100%;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mobile-nav a {
  display: block;
  padding: 16px 0;
  font-size: 1.24rem;
  font-weight: 900;
  color: var(--brand-accent);
  border-radius: 8px;
  background: none;
  transition: color 0.19s, background 0.17s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--brand-fun-pink);
  color: var(--brand-primary);
}

/* --- MAIN: HERO SECTIONS & CARDS --- */
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  background: none;
}
section:nth-child(even) {
  background: #fffbe8;
}

/* --- FOOTER --- */
footer {
  background: #654321;
  color: #fffbe8;
  padding: 34px 0 16px 0;
  border-top: 4px solid #FFD64E;
  box-shadow: 0 -2px 15px 0 rgba(34,76,109,.08);
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #FFD64E;
  font-family: 'Merriweather', serif;
  font-weight: 500;
  font-size: 1.07em;
  border-radius: 7px;
  padding: 4px 10px;
  transition: background 0.13s,color 0.16s;
}
.footer-nav a:hover {
  color: #FF7F50;
  background: #fff;
}
footer p {
  font-size: 0.99em;
  color: #fffbe8;
  text-align: center;
}

/* --- ANIMATIONS/MICRO-INTERACTIONS --- */
@keyframes pop {
  from { transform: scale(0.97); }
  to { transform: scale(1); }
}
.card:hover,
ul.feature-grid > li:hover,
.button-primary:hover,
.button-primary:focus {
  animation: pop 0.22s;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
ul.feature-grid > li:hover img {
  animation: float 0.7s ease-in-out;
}

/* --- COOKIE CONSENT BANNER & MODAL --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 2500;
  width: 100vw;
  background: #fffbe8;
  color: #3f240e;
  box-shadow: 0 -2px 14px 0 rgba(101,67,33,.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 22px 17px 20px;
  font-size: 1.08em;
  flex-wrap: wrap;
  border-top: 2px solid #FFD64E;
  transition: transform 0.3s;
}
.cookie-banner.hide {
  transform: translateY(140%);
  pointer-events: none;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 17px;
  flex-wrap: wrap;
}
.cookie-banner button {
  border: none;
  cursor: pointer;
  border-radius: 38px;
  font-size: 1em;
  font-family: 'Merriweather', serif;
  font-weight: 700;
  padding: 9px 22px;
  box-shadow: 0 2px 8px 0 rgba(255,127,80,.14);
  transition: background 0.19s, color 0.15s;
}
.cookie-accept {
  background: #FFD64E;
  color: #224C6D;
}
.cookie-accept:hover {
  background: #FF7F50;
  color: #fff;
}
.cookie-reject {
  background: #FF7F50;
  color: #fff;
}
.cookie-reject:hover {
  background: #FFD64E;
  color: #654321;
}
.cookie-settings {
  background: #224C6D;
  color: #fff;
}
.cookie-settings:hover {
  background: #ffd64e;
  color: #224C6D;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2600;
  background: rgba(34,76,109,0.14);
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
  animation: fadeInModalBg 0.15s;
}
@keyframes fadeInModalBg { from { opacity: 0; } to { opacity: 1; } }
.cookie-modal-inner {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 38px 0 rgba(255,127,80,0.13),0 1px 10px 0 rgba(34,76,109,0.10);
  padding: 38px 32px 26px 32px;
  max-width: 94vw;
  width: 380px;
  color: #3f240e;
  font-size: 1.08em;
  animation: pop 0.18s;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: #FFD64E;
  color: #224C6D;
  font-weight: 700;
  font-size: 1.5rem;
  border: none;
  border-radius: 8px;
  min-width: 37px;
  height: 37px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.19s;
}
.cookie-modal-close:hover { background: #FF7F50; color: #fff; }
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 10px;
}
.cookie-category label {
  font-weight: 700;
  color: #224C6D;
}
.cookie-toggle {
  width: 44px;
  height: 24px;
  border-radius: 15px;
  background: #FFD64E;
  position: relative;
  transition: background 0.17s;
  margin-left: 12px;
}
.cookie-toggle input {
  opacity: 0;
  width: 44px;
  height: 24px;
  cursor: pointer;
  margin: 0;
  position: absolute;
  left: 0; top: 0;
}
.cookie-toggle span {
  position: absolute;
  left: 3px;
  top: 2.5px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(255,127,80,.12);
  transition: left 0.17s, background 0.19s;
}
.cookie-toggle input:checked + span {
  left: 22px;
  background: #FF7F50;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1080px) {
  .container {
    max-width: 940px;
  }
  ul.feature-grid > li {
    min-width: 180px;
  }
}
@media (max-width: 900px){
  .main-nav { gap: 15px; }
  .container { max-width: 99vw; }
}
@media (max-width: 768px) {
  .container {
    max-width: 99vw;
    padding: 0 7px;
  }
  header .container {
    padding: 8px 7px;
  }
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
  }
  .button-primary {
    font-size: 1em;
    padding: 0.76em 1.6em;
  }
  .feature-item, .testimonial-card {
    font-size: 1em;
  }
  section {
    padding: 28px 0 32px 0;
    margin-bottom: 37px;
  }
  .content-wrapper {
    gap: 17px;
  }
  .footer-nav {
    gap: 18px;
    font-size: 0.99em;
  }
  h1,.h1 { font-size: 1.52rem;}
  h2,.h2 { font-size: 1.17rem;}
  h3,.h3 { font-size: 1.04rem;}
  ul.feature-grid {
    flex-direction: column;
    gap: 15px;
  }
  ul.feature-grid > li {
    min-width: auto;
    width: 100%;
    padding: 18px 11px 18px 11px;
  }
  .testimonial-card {
    font-size: 1em;
    padding: 16px 9px;
    gap: 9px;
  }
  .contact-list {
    gap: 8px;
    font-size: 1em;
  }
  .text-image-section {
    flex-direction: column !important;
    gap: 18px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 13px 7px;
    font-size: 0.98em;
    gap: 10px;
  }
  .cookie-banner .cookie-buttons {
    gap: 10px;
  }
  .cookie-modal-inner {
    padding: 20px 8px 24px 14px;
    width: 97vw;
  }
}

@media (max-width: 480px) {
  .container{
    padding:0 3px;
  }
  .mobile-menu-inner,
  .mobile-menu {
    padding: 30px 10px 10px 10px;
  }
}

/* --- PLAYFUL DYNAMIC EXTRAS --- */
/* Fun underline wiggle for main headlings on hover */
h1,.h1,h2,.h2 {
  position: relative;
}
h1:hover::after, .h2:hover::after {
  content: '';
  display: block;
  width: 60px;
  height: 6px;
  background: linear-gradient(90deg,#FFD64E 8%, #FF7F50 60%, #09d6a4 100%);
  border-radius: 6px;
  position: absolute;
  left: 0;
  bottom: -4px;
  animation: underlineWiggle .32s cubic-bezier(.45,.37,.38,1.39);
}
@keyframes underlineWiggle {
  0% {width: 0; opacity: 0.2;}
  60% {width: 60px; opacity: 1;}
  80% {transform: scaleX(1.13);}
  100% {width:60px; opacity:1; transform: none;}
}
/* Fun font for certain highlighted words */
strong, .highlight, mark {
  color: #FF7F50;
  font-family: 'Merriweather', serif;
  background: none;
  font-weight: bold;
  font-style: italic;
}

/* Decorative, non-overlapping accent shape example */
.feature-grid > li::before {
  content:"";
  display: block;
  height: 5px;
  width: 50px;
  background: linear-gradient(90deg,#FFD64E,#FF7F50 80%,#09d6a4 100%);
  border-radius: 12px 6px 20px 20px;
  margin-bottom: 9px;
}

/* --- VISUAL ENHANCEMENT (SHADOWS, RADIUS, BREATHING SPACE) --- */
.card, ul.feature-grid > li, .testimonial-card, .content-wrapper, .cookie-modal-inner {
  box-shadow: 0 2px 17px 0 rgba(94,129,157,0.09);
  border-radius: 15px;
}

/*--- FOCUSED ACCESSIBILITY STATES ---*/
a:focus-visible,
.button-primary:focus-visible,
.mobile-menu-close:focus-visible, .cookie-modal-close:focus-visible, .cookie-banner button:focus-visible {
  outline: 3px solid #FF7F50;
  outline-offset: 2px;
}

/* --- CARD CONTENT FLEXBOX ALIGNMENT --- */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* --- SPACING FOR CARD AND SECTION COMPONENTS --- */
.card, ul.feature-grid > li, .testimonial-card {
  margin-bottom: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* --- AVOID OVERLAPPING --- */
main > section {
  margin-bottom: 60px !important;
}
.content-wrapper > * {
  margin-bottom: 0;
}

/* --- PRINT STYLES --- */
@media print {
  .mobile-menu,
  .mobile-menu-toggle,
  .cookie-banner,
  .cookie-modal {
    display: none !important;
  }
  body { background: white; }
  header,
  footer,
  section,
  .container {
    box-shadow: none !important;
    background: none !important;
    border: none !important;
  }
}
