/* CSS RESET AND 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; }
*, *:before, *:after { box-sizing: inherit; }

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  background: #FAFAF8;
  color: #34443A;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 768px) {
  body { font-size: 15px; }
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
  font-family: 'Merriweather', Georgia, serif;
  color: #31473A;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; line-height: 1.15; margin-bottom: 24px; }
h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 20px; }
h3 { font-size: 1.3rem; line-height: 1.3; margin-bottom: 14px; }
h4 { font-size: 1.07rem; margin-bottom: 8px; }
p, ul, ol { margin-bottom: 18px; }
li { margin-bottom: 8px; }
strong { color: #1B2B21; font-weight: 700; }
em { color: #7A4F33; font-style: italic; }

/* LINK STYLES */
a {
  color: #7A4F33;
  text-decoration: underline;
  transition: color 0.25s;
}
a:hover, a:focus {
  color: #31473A;
  text-decoration: none;
  outline: none;
}

/* LAYOUT: CONTAINER AND SECTIONS */
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 18px;
}
@media (max-width: 600px) {
  .container { padding: 0 8px; }
}

section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFFFFF;
  border-radius: 24px;
  box-shadow: 0 2px 16px 0 rgba(49, 71, 58, 0.06);
}
@media (max-width: 600px) {
  section { padding: 28px 6px; margin-bottom: 36px; }
}
.main section:first-of-type {
  margin-top: 24px;
}

.content-wrapper, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-section {
  flex: 1 1 350px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (max-width: 768px) {
  .content-wrapper, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
}

ul, ol {
  padding-left: 24px;
}

/* CARDS & FLEX WRAPPERS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  border-radius: 18px;
  background: #F2E8DA;
  box-shadow: 0 2px 10px rgba(49, 71, 58, 0.07);
  padding: 28px 22px;
  position: relative;
  transition: transform 0.2s, box-shadow 0.18s;
}
.card:hover, .card:focus {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 6px 22px rgba(49,71,58,0.10);
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* FLEX PATTERNS (MANDATORY) */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
}
@media (max-width: 500px) {
  .card, .testimonial-card { padding: 13px 8px; }
}

/* TESTIMONIALS */
.testimonial-card {
  background: #F7F2EA;
  border-radius: 17px;
  box-shadow: 0px 2px 8px rgba(49,71,58,0.07);
  margin-bottom: 20px;
  flex: 1 1 240px;
  min-width: 220px;
  color: #222D24;
  font-style: italic;
  transition: box-shadow 0.15s;
  border-left: 6px solid #7A4F33;
  align-items: flex-start;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0px 6px 14px 0px rgba(122,79,51,0.13);
}
.testimonial-card p:last-child {
  font-style: normal;
  font-weight: 700;
  margin-top: 8px;
  color: #31473A;
}

/* NAVIGATION */
header {
  background: #F2E8DA;
  box-shadow: 0 2px 10px 0 rgba(49, 71, 58, 0.04);
  position: relative;
  z-index: 20;
}
header nav {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
}
header nav a {
  text-decoration: none;
  color: #31473A;
  font-weight: 600;
  font-size: 1rem;
  background: none;
  border-radius: 9px;
  padding: 8px 14px;
  transition: background 0.23s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  background: #FFFFFF;
  color: #7A4F33;
}
header img {
  height: 45px;
  width: auto;
  margin-right: 20px;
}
@media (max-width: 980px) {
  header nav {
    gap: 10px;
    font-size: 15px;
    flex-wrap: wrap;
  }
}

/* BURGER MENU (MOBILE) */
.mobile-menu-toggle {
  display: none;
  background: #FFFFFF;
  border: none;
  font-size: 2rem;
  color: #31473A;
  border-radius: 10px;
  padding: 6px 13px 6px 10px;
  cursor: pointer;
  margin-left: auto;
  z-index: 50;
  box-shadow: 0 1px 4px 0 rgba(49,71,58,0.05);
  transition: background .17s, box-shadow .18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #F7F2EA;
}
@media (max-width: 900px) {
  .mobile-menu-toggle { display: block; }
  header nav { display: none; }
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(120deg, #F2E8DA 64%, #F6ECE2 100%);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  transform: translateX(100vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(0.5,1,0.5,1.07), opacity 0.2s;
}
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  font-size: 2.3rem;
  color: #31473A;
  padding: 14px 18px;
  margin: 4px 2px 2px 0;
  cursor: pointer;
  z-index: 12;
  transition: color 0.18s, background 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #7A4F33;
  background: #F7F2EA;
  border-radius: 10px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 36px 40px 38px;
}
.mobile-nav a {
  font-size: 1.15rem;
  padding: 14px 0 12px 0;
  color: #31473A;
  font-weight: 500;
  background: none;
  border-radius: 9px;
  margin-bottom: 4px;
  text-decoration: none;
  transition: background 0.2s, color 0.19s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #7A4F33;
  background: #F7F2EA;
}

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

/* BUTTONS */
.btn-primary {
  display: inline-block;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  background: linear-gradient(90deg, #FFEFEB 0%, #E7F4ED 100%);
  color: #31473A;
  border: 1.5px solid #31473A;
  border-radius: 24px;
  padding: 12px 38px;
  margin-top: 14px;
  box-shadow: 0 2px 9px 0 rgba(49,71,58,0.04);
  transition: background 0.27s, color 0.2s, box-shadow 0.18s, border-color 0.21s;
  cursor: pointer;
  text-align: center;
}
.btn-primary:hover, .btn-primary:focus {
  background: #E7F4ED;
  color: #7A4F33;
  border-color: #7A4F33;
  box-shadow: 0 6px 18px 0 rgba(49,71,58,0.11);
  outline: none;
}

/* FOOTER */
footer {
  background: #F7F2EA;
  color: #626262;
  padding: 18px 0 17px 0;
  border-top: 2px solid #E3DFD7;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 4px;
  font-size: 0.98rem;
}
footer nav a {
  color: #7A4F33;
  text-decoration: underline;
  font-weight: 500;
  padding: 2px 4px;
  border-radius: 4px;
  transition: background 0.11s;
}
footer nav a:hover, footer nav a:focus {
  background: #F2E8DA;
}
footer p {
  font-size: 0.93rem;
  text-align: center;
}

/* ICONS IN LISTS ETC */
ul li img, ol li img {
  margin-right: 6px;
  vertical-align: text-bottom;
  height: 26px;
  width: auto;
  display: inline-block;
}

/* FEATURED LISTS (Flex for icons/content) */
ul li, ol li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-height: 28px;
}

/* SPACING BETWEEN COMPONENTS */
.text-section + .text-section,
.text-section + ul,
ul + .text-section {
  margin-top: 16px;
}
.content-wrapper + .content-wrapper {
  margin-top: 24px;
}

/* SOFT PASTEL BACKGROUND EFFECTS + SHADOWS */
body { background: linear-gradient(120deg, #FAFAF8 60%, #F0F6F6 100%); }
section {
  background: linear-gradient(110deg, #FFFFFF 90%, #FFEDE9 100%);
}

/* ELEMENTS: INPUTS & FORMS, if present in future */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 9px;
  border: 1.5px solid #E2D8C9;
  box-shadow: 0 1px 4px rgba(122,79,51,0.04);
  margin-bottom: 14px;
  transition: border-color 0.19s, box-shadow 0.16s;
  width: 100%;
  background: #F7F2EA;
  color: #31473A;
}
input:focus, textarea:focus, select:focus {
  border-color: #7A4F33;
  box-shadow: 0 0 2px 2px #E7F4ED;
  outline: none;
}

/* COOKIE CONSENT BANNER STYLES */
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: linear-gradient(90deg, #F2E8DA 85%, #F6D1C2 100%);
  border-top: 2px solid #E3DFD7;
  box-shadow: 0 -4px 32px 0 rgba(122,79,51,0.07);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px 16px 28px;
  gap: 18px;
  font-size: 1rem;
  color: #31473A;
  transition: transform 0.38s cubic-bezier(0.5,1,0.5,1.07), opacity 0.18s;
  opacity: 1;
  transform: translateY(0);
}
.cookie-consent-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-consent-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-btn {
  border: none;
  border-radius: 16px;
  padding: 9px 24px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  background: #FFFFFF;
  color: #31473A;
  margin-left: 0;
  box-shadow: 0 2px 8px 0 rgba(49,71,58,0.045);
  cursor: pointer;
  transition: background 0.18s, color 0.13s, box-shadow 0.18s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #E7F4ED;
  color: #7A4F33;
}
.cookie-btn.settings {
  background: #F7F2EA;
  color: #7A4F33;
  border: 1.5px solid #E3DFD7;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #FFEDE9;
  color: #31473A;
}

/* COOKIE CONSENT MODAL */
.cookie-modal-overlay {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(49, 71, 58, 0.17);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3300;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.2s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #FCF9F5;
  border-radius: 20px;
  padding: 36px 32px 30px 32px;
  box-shadow: 0 8px 40px 0 rgba(49,71,58,0.17);
  min-width: 320px;
  max-width: 94vw;
  color: #31473A;
  font-size: 1.07rem;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.35rem;
  margin-bottom: 13px;
}
.cookie-modal strong {
  color: #7A4F33;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}
.cookie-category {
  display: flex;
  align-items: center;
  font-size: 1rem;
  gap: 16px;
}
.cookie-toggle {
  width: 40px; height: 24px;
  border-radius: 14px;
  background: #D3E4DA;
  position: relative;
  transition: background 0.15s;
  margin-left: 3px;
}
.cookie-toggle.on { background: #B3D9C6; }
.cookie-toggle-inner {
  content: '';
  display: block;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #FFFFFF;
  position: absolute;
  top: 3px; left: 4px;
  transition: left 0.18s;
}
.cookie-toggle.on .cookie-toggle-inner {
  left: 18px;
}
.cookie-category.always-on .cookie-toggle {
  background: #E2D8C9 !important;
}
.cookie-category.always-on .cookie-toggle-inner {
  background: #D4C6B6 !important;
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.cookie-modal-close {
  position: absolute;
  right: 12px; top: 8px;
  background: none;
  border: none;
  font-size: 2.2rem;
  color: #31473A;
  cursor: pointer;
  padding: 4px 9px;
  border-radius: 12px;
  transition: background .17s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #F7F2EA;
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 768px) {
  .container { max-width: 100vw; }
  section { padding: 22px 7px 24px 7px; }
  .card, .testimonial-card { min-width: 180px; }
  .cookie-modal { min-width: 0; padding: 25px 7vw 22px 7vw; }
}
@media (max-width: 400px) {
  .cookie-modal { padding: 10px 2vw; }
  .cookie-modal h2 { font-size: 1.07rem; }
}

/* SOFT MICRO-ANIMATIONS */
section, .card, .testimonial-card, .btn-primary {
  transition: box-shadow 0.23s, background 0.24s, color 0.17s, transform 0.18s;
}
section:hover, section:focus-within {
  box-shadow: 0 7px 22px rgba(49, 71, 58, 0.07);
}

/* DREAMY PASTEL ATMOSPHERE */
.card-container .card, .feature-item {
  background: linear-gradient(100deg, #F6ECE2 70%, #EAF1EE 100%);
  box-shadow: 0 2px 13px 0 rgba(49,71,58,0.07);
}
.feature-item strong {
  color: #7A4F33;
}

/* VISUAL HIERARCHY & WHITE SPACE */
section + section { margin-top: 36px; }
.text-section h3 { color: #31473A; font-size: 1.10rem; margin-bottom: 9px; }

/* Z-INDEX LAYERING */
.mobile-menu, .mobile-menu.active { z-index: 1200; }
.cookie-consent-banner { z-index: 2000; }
.cookie-modal-overlay { z-index: 3300; }

/* ACCESSIBILITY FOCUS OUTLINES */
a:focus, button:focus, .btn-primary:focus, input:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus, .cookie-btn:focus {
  outline: 2.5px solid #7A4F33;
  outline-offset: 2px;
}

/************************
 * END OF CSS FILE    *
 ************************/
