/* --- 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;
}
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background: #FFFBF7;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  border: none;
}

/* --- BRAND VARIABLES --- */
:root {
  --color-primary: #222130;
  --color-secondary: #E6D0B5;
  --color-accent: #6AB5C4;
  --color-bg: #FFFBF7;
  --color-card-bg: #FFF9F3;
  --color-card-shadow: rgba(217, 155, 96, 0.10);
  --color-accent-dark: #4698ab;
  --color-error: #ec7676;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 4px 20px 0 var(--color-card-shadow);
  --shadow-btn: 0 2px 8px 0 rgba(106,181,196,0.08);
  --font-display: 'Josefin Sans', 'Arial Rounded MT Bold', Arial, sans-serif;
  --font-body: 'Roboto', 'Arial Rounded MT', Arial, sans-serif;
  --transition: .2s cubic-bezier(.39,.46,.57,1.15) all;
}

/* --- IMPORT FONTS --- */
@import url('https://fonts.googleapis.com/css?family=Josefin+Sans:600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

/* --- BASE TYPOGRAPHY --- */
body {
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--color-bg);
  min-height: 100vh;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
h4 {
  font-size: 1.15rem;
}
p, ul li, ol li, address {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-primary);
}
strong {
  font-weight: 700;
}

/* --- BUTTONS --- */
.btn-primary {
  padding: 14px 32px;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-weight: bold;
  font-size: 1.1rem;
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-btn);
  cursor: pointer;
  display: inline-block;
  transition: var(--transition);
  letter-spacing: 0.06em;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 6px 24px 0 rgba(106,181,196,0.15);
  outline: none;
}

.btn-secondary {
  padding: 12px 28px;
  background: #fff;
  color: var(--color-primary);
  border-radius: var(--radius-md);
  border: 2px solid var(--color-secondary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: var(--shadow-btn);
  cursor: pointer;
  margin-top: 12px;
  transition: var(--transition);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* --- CONTAINERS --- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  background: none;
  padding: 0;
  margin: 0 0 0 0;
}

/* --- HEADER & NAVIGATION --- */
header {
  width: 100%;
  background: var(--color-bg);
  box-shadow: 0 1px 10px 0 rgba(217,155,96,.07);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 20px;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 1.02rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  padding: 6px 16px;
  transition: background var(--transition), color var(--transition);
}
header nav a:hover, header nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}
header img {
  height: 44px;
  width: auto;
  border-radius: var(--radius-md);
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 110;
  display: none;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  width: 44px;
  height: 44px;
  font-size: 2rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px 0 rgba(34,33,48,0.09);
  transition: background var(--transition);
}
.mobile-menu-toggle:hover {
  background: var(--color-accent-dark);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(34,33,48,0.22);
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity .22s cubic-bezier(.42,.0,.58,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu nav {
  background: var(--color-card-bg);
  border-radius: var(--radius-lg);
  margin: 64px 22px 24px 22px;
  box-shadow: 0 10px 32px 0 rgba(217,155,96,0.17);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 36px 22px 26px 22px;
  align-self: flex-end;
  max-width: 88vw;
  width: 320px;
  transform: translateX(70vw);
  opacity: 0;
  pointer-events: none;
  transition: transform .26s cubic-bezier(.45,.25,.77,1.05), opacity .22s;
}
.mobile-menu.open nav {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--color-primary);
  padding: 16px 0;
  border-radius: var(--radius-md);
  text-align: left;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
  display: block;
  margin-bottom: 6px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}
.mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 26px;
  background: var(--color-error);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 2rem;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.mobile-menu-close:hover {
  background: #b04848;
}

@media (max-width: 1000px) {
  header .container nav {
    display: none;
  }
  .btn-primary {
    font-size: 1rem;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

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

/* --- MAIN/LAYOUT PATTERN --- */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius-lg);
  background: var(--color-card-bg);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius-lg);
  background: var(--color-card-bg);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 32px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fff;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  min-width: 260px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- TEXT SECTIONS & LISTS --- */
.text-section {
  margin-bottom: 32px;
}
ul, ol {
  margin-bottom: 22px;
  padding-left: 0;
}
section ul li, .text-section ul li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  font-size: 1.08rem;
  padding-left: 0;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 30px;
  justify-content: flex-start;
}
.tabs a {
  background: #fff;
  color: var(--color-accent);
  padding: 8px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: bold;
  transition: background var(--transition), color var(--transition);
}
.tabs a:hover, .tabs a:focus {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  background: #fff;
  color: var(--color-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 20px 28px 16px 28px;
  font-size: 1.07rem;
  margin-bottom: 20px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.testimonial-card p {
  margin-bottom: 8px;
  color: var(--color-primary);
}
.testimonial-card span {
  color: #F0B400;
  font-size: 1.15rem;
  letter-spacing: 2px;
  font-family: var(--font-body);
}
.testimonial-card strong {
  font-size: 1rem;
  color: var(--color-accent);
}

/* --- QUICK IDEAS GRID (using flex) --- */
.quick-ideas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 24px 0;
}
.quick-ideas-grid > div {
  background: var(--color-secondary);
  color: var(--color-primary);
  padding: 15px 25px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 1rem;
  box-shadow: var(--shadow-btn);
  transition: box-shadow var(--transition), background var(--transition);
}
.quick-ideas-grid > div:hover {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 6px 24px 0 rgba(106,181,196,0.19);
}

/* ---- FORMS --- */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1.06rem;
  border: 1px solid var(--color-secondary);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 18px;
  width: 100%;
  transition: border var(--transition);
  background: #fff;
  color: var(--color-primary);
}
input:focus, textarea:focus, select:focus {
  border: 2px solid var(--color-accent);
  outline: none;
}

/* ---- FOOTER ---- */
footer {
  background: var(--color-bg);
  border-top: 1px solid #f0e4d1;
  padding: 36px 0 20px 0;
  width: 100%;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px 24px;
}
footer nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
footer nav a {
  color: var(--color-primary);
  font-size: 1rem;
  padding: 4px 12px;
  border-radius: var(--radius-md);
  transition: background var(--transition), color var(--transition);
  font-family: var(--font-display);
}
footer nav a:hover {
  background: var(--color-secondary);
  color: #fff;
}
footer address {
  font-size: 0.98rem;
  font-style: normal;
  color: #55463A;
  line-height: 1.55;
}
footer img {
  height: 42px;
}
footer small {
  color: #aa9074;
  padding-top: 12px;
  font-size: 0.89rem;
  width: 100%;
  display: block;
  text-align: left;
}

@media (max-width: 1000px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 25px 0;
  }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 14px 20px 14px;
  background: var(--color-card-bg);
  box-shadow: 0 -2px 22px 0 rgba(217,155,96,0.16);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: 9999;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 24px;
  justify-content: space-between;
  transition: transform .34s cubic-bezier(.44,.19,.26,1.12);
  transform: translateY(0);
  width: 100%;
}
.cookie-banner.hide {
  transform: translateY(120%);
  pointer-events: none;
  opacity: 0;
}
.cookie-banner p {
  font-size: 1rem;
  flex: 1 1 60%;
  margin-bottom: 0;
  color: var(--color-primary);
  font-family: var(--font-body);
}
.cookie-btn-group {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-banner .btn-primary, .cookie-banner .btn-secondary {
  font-size: 0.98rem;
  padding: 9px 22px;
  margin-top: 0;
  min-width: 110px;
}

/* Cookie Preferences Modal */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,33,48,0.15);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity .18s;
}
.cookie-modal-backdrop.open {
  display: flex;
  opacity: 1;
}
.cookie-modal {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px 0 rgba(217,155,96,0.18);
  padding: 36px 28px 32px 28px;
  min-width: 320px;
  max-width: 96vw;
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 10111;
  animation: fadeInCookieModal .24s;
  position: relative;
}
@keyframes fadeInCookieModal {
  from { opacity:0; transform: scale(.94); }
  to { opacity:1; transform: scale(1); }
}
.cookie-modal h3 {
  font-size: 1.25rem;
  font-family: var(--font-display);
  margin-bottom: 14px;
}
.cookie-modal-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0;
}
.cookie-modal-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--color-secondary);
  padding-bottom: 12px;
  margin-bottom: 7px;
}
.cookie-modal-row label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
  flex: 1 1 70%;
}
.cookie-modal-row input[type=checkbox] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-accent);
}
.cookie-modal-close {
  position: absolute;
  top: 15px;
  right: 18px;
  background: #e6d0b5;
  color: var(--color-primary);
  border: none;
  font-size: 1.35rem;
  border-radius: var(--radius-sm);
  padding: 4px 9px;
  cursor: pointer;
  transition: background var(--transition);
}
.cookie-modal-close:hover {
  background: var(--color-accent);
  color: #fff;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 10px;
}

/* --- IMAGES & ICONS --- */
img, svg {
  border-radius: var(--radius-sm);
}
section ul img,
.text-section ul img {
  width: 30px;
  height: 30px;
}

/* --- SPACING HANDLES --- */
h1, h2, h3, h4, h5, h6 { margin-top: 0; }
.content-wrapper > *:not(:last-child) { margin-bottom: 20px; }
section > .container > .content-wrapper > *:not(:last-child) { margin-bottom: 20px; }

/* --- MICRO-INTERACTIONS & TRANSITIONS --- */
.card, .testimonial-card, .quick-ideas-grid > div {
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .testimonial-card:hover {
  box-shadow: 0 8px 32px 0 rgba(217,155,96,0.19);
  transform: translateY(-2px) scale(1.015);
}

a { transition: color var(--transition), background var(--transition); }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 900px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  section, .section {
    padding: 32px 10px;
  }
  .container {
    padding: 0 6px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 2vw;
    max-width: 100vw;
  }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.15rem; }
  .btn-primary {
    width: 100%;
    display: block;
    padding: 14px;
  }
  section, .section {
    padding: 16px 4px;
    margin-bottom: 40px;
  }
  .footer .container {
    gap: 14px 0;
  }
  .testimonial-card {
    min-width: 0;
    padding: 14px 8px 10px 12px;
    font-size: 0.98rem;
  }
  .card-container, .quick-ideas-grid {
    gap: 12px;
  }
  .content-grid {
    gap: 12px;
  }
}
@media (max-width: 700px) {
  .container {
    padding: 0 2vw;
    max-width: 100vw;
  }
  header img, footer img {
    height: 33px;
  }
  .mobile-menu nav {
    min-width: 0;
    width: 99vw;
    margin: 64px 3vw 20px 3vw;
    padding: 18px 5vw 18px 5vw;
  }
  .mobile-menu-toggle {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
  }
}
@media (max-width: 768px) {
  .text-image-section, .content-grid, .feature-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* --- ACCENT FOCUS STATES --- */
a:focus, button:focus, .btn-primary:focus, input:focus, textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* --- CUSTOM SCROLLBAR (Webkit only, non-breaking fallback) --- */
::-webkit-scrollbar {
  width: 10px;
  background: var(--color-card-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: var(--radius-lg);
}

/* --- UTILITY CLASSES (Padding/Margins for Spacing Enforcement) --- */
.mt-16 { margin-top: 16px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mt-24 { margin-top: 24px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mt-32 { margin-top: 32px !important; }
.mb-32 { margin-bottom: 32px !important; }
.m-0 { margin: 0 !important; }
.p-0 { padding: 0 !important; }

/* --- Z-INDEX ENFORCEMENT --- */
header, .mobile-menu, .cookie-banner, .cookie-modal-backdrop, .cookie-modal { z-index: 999; }

