/* =========================
   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 {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  box-sizing: border-box;
}
body {
  min-height: 100vh;
  background: #FFF6F0;
  color: #2F3550;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
*, *:before, *:after {
  box-sizing: inherit;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  outline: none;
}
b, strong {
  font-weight: 600;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
}
:focus {
  outline: 2px solid #2F3550;
  outline-offset: 2px;
}

/* =========================
   GEOMETRIC STRUCTURED BASE
   ========================= */
:root {
  --color-primary: #2F3550;
  --color-secondary: #DEB4C2;
  --color-accent: #FFF6F0;
  --color-bg: #FFF6F0;
  --color-dark: #21243a;
  --color-light: #F8F3F6;
  --shadow-card: 0 4px 20px rgba(47,53,80,0.08);
  --border-radius: 16px;
  --transition: 0.22s cubic-bezier(.57,.1,.65,1.36);
  --font-display: 'Montserrat', 'Arial', sans-serif;
  --font-body: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
}

body {
  background: var(--color-bg);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 18px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* =============
   TYPOGRAPHY
   ============= */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -1.25px;
  color: var(--color-primary);
  text-transform: uppercase;
  line-height: 1.1;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 8px;
  line-height: 1.15;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--color-dark);
  text-transform: uppercase;
  margin-bottom: 6px;
  line-height: 1.22;
}
h4, .h4 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.3px;
}
p, li, ul, ol, .text-section {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
}
.text-section {
  margin-top: 16px;
  margin-bottom: 12px;
  font-size: 1.04rem;
  line-height: 1.7;
}
strong {
  font-weight: 700;
  color: var(--color-primary);
}

@media (max-width: 768px) {
  h1, .h1 {
    font-size: 1.55rem;
  }
  h2, .h2 {
    font-size: 1.3rem;
  }
  h3, .h3 {
    font-size: 1rem;
  }
}
/* =============
   HEADER & NAV
   ============= */
header {
  background: var(--color-bg);
  box-shadow: 0 2px 16px rgba(47,53,80,0.07);
  position: relative;
  z-index: 10;
}
.header-content {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: space-between;
  padding: 15px 0;
}
.header-content nav {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
.header-content a img {
  max-height: 44px;
  margin-right: 12px;
}
.header-content .btn.primary {
  margin-left: 24px;
}
header nav a {
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.5px;
  position: relative;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
header nav a:hover, header nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* =======
   MOBILE MENU
   ======= */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 24px;
  top: 24px;
  background: var(--color-primary);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  z-index: 1002;
  transition: background var(--transition);
}
.mobile-menu-toggle:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.mobile-menu {
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-bg);
  box-shadow: 2px 0 24px rgba(56,51,98,0.12);
  z-index: 1001;
  padding: 28px 28px 28px 34px;
  overflow-y: auto;
  transform: translateX(-102vw);
  transition: transform 0.39s cubic-bezier(.2,0,.4,1.12);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: var(--color-primary);
  position: absolute;
  top: 22px;
  right: 22px;
  background: transparent;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  transition: background 0.15s, color 0.15s;
  z-index: 1010;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-secondary);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 44px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--color-primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 16px 0;
  border-radius: 8px;
  background: transparent;
  transition: background 0.17s, color 0.17s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}

@media (max-width: 1020px) {
  .header-content nav,
  .header-content .btn.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (min-width:1021px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none!important;
  }
}
/* =============
   HERO SECTION
   ============= */
.hero {
  background: linear-gradient(155deg, #DEB4C2 0%, #FFF6F0 100%);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  margin-top: 22px;
  margin-bottom: 48px;
  padding-bottom: 32px;
}
.hero .content-wrapper {
  gap: 20px;
  padding: 32px 0;
  align-items: flex-start;
}
.hero h1 {
  color: var(--color-primary);
  font-size: 2.6rem;
  letter-spacing: -1.5px;
  margin-bottom: 8px;
}
.hero p {
  font-size: 1.16rem;
}

@media (max-width: 768px) {
  .hero {
    border-radius: 10px;
    padding-bottom: 12px;
    margin-top: 10px;
    margin-bottom: 28px;
  }
  .hero .content-wrapper {
    padding: 18px 0;
    gap: 14px;
  }
  .hero h1 {
    font-size: 1.23rem;
  }
}

/* ===================
   FEATURE-LIKE GRIDS
   =================== */
.features-grid, .card-container, .card-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.features-grid > div, .feature-item, .card, .product-list {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 26px 20px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 270px;
  flex: 1 1 270px;
  margin-bottom: 20px;
  position: relative;
}
.features-grid img {
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: var(--color-accent);
  box-shadow: 0 4px 10px rgba(47,53,80,0.11);
  object-fit: contain;
}
.product-list {
  gap: 12px;
  background: var(--color-accent);
  box-shadow: none;
  border: 2px solid #e8dee1;
}
.sidebar {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 24px 18px 14px 20px;
  min-width: 220px;
  max-width: 260px;
  flex: 0 0 240px;
  margin-right: 24px;
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .features-grid, .card-container, .card-grid, .content-grid {
    flex-direction: column;
    gap: 24px;
  }
  .sidebar {
    max-width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
    width: 100%;
  }
}
@media (max-width: 540px) {
  .features-grid > div, .feature-item, .card {
    min-width: 100%;
    padding: 14px 10px;
  }
}

/* ===============
   BUTTONS
   =============== */
.btn, button.btn {
  font-family: var(--font-display);
  font-size: 1.02rem;
  text-transform: uppercase;
  font-weight: 700;
  background: var(--color-primary);
  color: #fff;
  border-radius: 22px;
  padding: 11px 32px;
  margin-top: 8px;
  margin-bottom: 8px;
  box-shadow: 0 3px 12px rgba(47,53,80,0.16);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  letter-spacing: 1px;
  transition: background 0.2s, color 0.2s, box-shadow 0.18s;
  position: relative;
}
.btn.primary {
  background: var(--color-primary);
  color: #fff;
}
.btn.secondary {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.btn:hover, .btn:focus {
  background: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: 0 5px 20px rgba(47,53,80,0.18);
  text-decoration: none;
  outline: none;
}
.btn.secondary:hover, .btn.secondary:focus {
  background: #fff;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}

/* ===============
   CARDS & SPACING
   =============== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 28px 22px 20px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
@media (max-width: 700px) {
  .card-container {
    flex-direction: column;
    gap: 18px;
  }
}
/* ==================
   LAYOUT: CONTENT & FEATURE GRIDS
   ================== */
.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;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
/* ===================
   TESTIMONIALS
   =================== */
.testimonial-card {
  background: #fff;
  color: #2F3550;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  min-height: 84px;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(47,53,80,0.13);
  margin-bottom: 20px;
  border-left: 7px solid var(--color-secondary);
}
.testimonial-card p {
  font-size: 1rem;
  color: #2F3550;
  margin-right: 10px;
  font-style: italic;
}
.testimonial-card strong {
  color: var(--color-primary);
  font-size: 1.02rem;
  font-style: normal;
  background: #fff6f0;
  border-radius: 7px;
  padding: 2px 10px;
}
@media (max-width: 480px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    padding: 12px 8px;
  }
}
/* ===================
   SIDEBAR
   =================== */
.sidebar h3 {
  font-size: 1.11rem;
  margin-bottom: 8px;
}
.sidebar ul {
  margin-bottom: 16px;
  padding-left: 14px;
}
.sidebar li {
  font-size: 1rem;
  padding-bottom: 7px;
  color: #2F3550;
}
/* =================
   FORMS (futureproof)
   ================= */
input[type="text"], input[type="email"], textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 10px 15px;
  border-radius: 10px;
  border: 1.5px solid #c9c1cb;
  background: #fff;
  color: #2F3550;
  margin-bottom: 13px;
  width: 100%;
  transition: border 0.2s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: var(--color-secondary);
}
label {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #2F3550;
  font-weight: 600;
  margin-bottom: 7px;
  display: block;
}
/* ===================
   FOOTER
   =================== */
footer {
  background: #fff;
  border-top: 4px solid var(--color-secondary);
  padding: 40px 0 18px 0;
  margin-top: 44px;
}
.footer-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}
.footer-content nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 12px 0 6px 0;
}
.footer-content nav a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  transition: background 0.13s, color 0.13s;
}
.footer-content nav a:hover, .footer-content nav a:focus {
  background: var(--color-secondary);
  color: #fff;
}
.footer-content img {
  max-height: 48px;
  margin-bottom: 10px;
}
.footer-content p {
  color: #6b6e7e;
  font-size: 0.97rem;
  margin-top: 8px;
}
@media (min-width: 700px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 24px;
  }
  .footer-content nav {
    margin: 0;
  }
}

/* ===================
   COOKIE CONSENT BANNER & MODAL
   =================== */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  z-index: 1200;
  padding: 18px 24px;
  font-family: var(--font-body);
  font-size: 1rem;
  box-shadow: 0 -2px 12px rgba(47,53,80,0.13);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  transition: transform 0.35s;
}
.cookie-banner p {
  margin: 0;
  flex: 1 1 0%;
  font-size: 1rem;
  color: #fff;
}
.cookie-btns {
  display: flex;
  gap: 14px;
}
.cookie-banner .btn {
  min-width: 110px;
  padding: 8px 17px;
  border-radius: 10px;
  box-shadow: none;
  font-size: 1rem;
}
.cookie-banner .btn.primary {
  background: #fff;
  color: var(--color-primary);
  border: 2px solid #fff;
}
.cookie-banner .btn.primary:hover {
  background: var(--color-secondary);
  color: #fff;
  border: 2px solid var(--color-secondary);
}
.cookie-banner .btn.secondary {
  background: var(--color-secondary);
  color: #fff;
  border: 2px solid var(--color-secondary);
}
.cookie-banner .btn.secondary:hover {
  background: #fff;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}
/* Hide banner when closed */
.cookie-banner.closed {
  transform: translateY(120%);
}

/* === Cookie Modal === */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 1300;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(47,53,80,0.20);
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.cookie-modal-overlay.open {
  display: flex;
  animation: fade-in-bg 0.23s ease;
}
@keyframes fade-in-bg {
  from { background: rgba(47,53,80,0.01); }
  to { background: rgba(47,53,80,0.20); }
}
.cookie-modal {
  background: #fff;
  width: 96vw;
  max-width: 450px;
  border-radius: 20px;
  box-shadow: 0 10px 38px rgba(47,53,80,0.18);
  padding: 30px 28px 20px 28px;
  min-height: 200px;
  animation: bounceIn 0.37s cubic-bezier(.36,1.64,.44,1);
  display: flex;
  flex-direction: column;
  gap: 23px;
  position: relative;
}
@keyframes bounceIn {
  0% { transform: scale(0.87) translateY(40px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.21rem;
  margin-bottom: 12px;
  color: var(--color-primary);
}
.cookie-modal label {
  font-size: 1.02rem;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 0;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  margin-bottom: 17px;
  gap: 12px;
}
.cookie-switch {
  position: relative;
  width: 50px; height: 26px;
}
.cookie-switch input {
  opacity: 0;
}
.cookie-switch span {
  background: #d8d6f0;
  border-radius: 14px;
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  transition: background 0.19s;
}
.cookie-switch input:checked + span {
  background: var(--color-secondary);
}
.cookie-switch:after {
  content: '';
  display: block;
  position: absolute;
  left: 4px; top: 4px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 7px #e5dde7;
  transition: left 0.19s;
}
.cookie-switch input:checked + span + .ball {
  left: 28px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-modal .btn {
  border-radius: 11px;
  padding: 9px 14px;
  min-width: 105px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 17px; right: 17px;
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: 50%;
  font-size: 1.4rem;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: none;
  border: none;
  cursor: pointer;
  transition: background .11s;
}
.cookie-modal .close-modal:hover {
  background: var(--color-secondary);
  color: #fff;
}

/* ===================
   OTHER UTILITIES
   =================== */
.flex-center {
  display: flex!important;
  align-items: center!important;
  justify-content: center!important;
}

@media (max-width: 850px) {
  .container {
    max-width: 100vw;
    padding: 0 10px;
  }
  .footer-content {
    flex-direction: column;
    gap: 14px;
  }
}
@media (max-width: 510px) {
  header .container, .footer .container, main .container {
    padding: 0 5px;
  }
  .hero {
    padding-bottom: 0;
  }
}

/* ================
   VISUAL, CARDS, EFFECTS
   ================ */
.card::after {
  content: '';
  display: block;
  position: absolute;
  top: 14px; right: 18px;
  width: 34px; height: 34px;
  background: var(--color-secondary);
  border-radius: 9px 15px 7px 20px/15px 11px 30px 17px;
  opacity: 0.10;
  z-index: 0;
}
.card-content > * {
  position: relative;
  z-index: 1;
}

/* ==============
   SPACING UTILITIES
   ============== */
.mt-16 { margin-top: 16px; }
.mb-24 { margin-bottom: 24px; }
.gap-20 { gap: 20px; }

/* ==============
   VISUAL ANIMATION FX
   ============== */
.fade-in {
  opacity: 0;
  animation: fadeIn 1.0s forwards;
}
@keyframes fadeIn {
  to { opacity: 1; }
}

/* ==============
   A11Y EXTRAS
   ============== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  background: #fff;
  color: #2F3550;
  z-index: 2001;
  padding: 12px 20px;
  font-size: 1.08rem;
}

/* =============
   PRINT safety (for static pages)
   ============= */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  .container { max-width: unset; padding: 0; }
  body { color: #000; }
}
