/* ==== 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, 
figcaption, figure, 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 {
  height: 100%;
}
body {
  min-height: 100vh;
  background: #F5F0E6;
  color: #2B3143;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.02em;
  scroll-behavior: smooth;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}
a {
  color: #2B3143;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus, a:hover {
  color: #C19A6B;
  outline: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  margin: 0;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}
button {
  cursor: pointer;
}

*, *:before, *:after {
  box-sizing: inherit;
}

/* ==== FONT IMPORTS ==== */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Playfair+Display:wght@400;700&display=swap');

/* ==== BRAND COLORS ==== */
:root {
  --primary: #2B3143;
  --secondary: #F5F0E6;
  --accent: #C19A6B;
  --brand-cream: #FAF8F5;
  --section-bg: #FFFFFF;
  --card-shadow: 0 2px 16px rgba(43,49,67,0.08);
  --radius-lg: 18px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --transition: 0.3s cubic-bezier(0.4,0.2,0.2,1);
  --text-heading: 'Playfair Display', serif;
  --text-body: 'Lato', Arial, sans-serif;
}

/* ==== GENERAL CONTAINERS ==== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--section-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

/* ==== TYPOGRAPHY ==== */
h1, .h1 {
  font-family: var(--text-heading);
  font-size: 2.5rem;
  line-height: 1.15;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}
h2, .h2 {
  font-family: var(--text-heading);
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary);
}
h3, .h3 {
  font-family: var(--text-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary);
}
p, ul, ol, blockquote {
  font-family: var(--text-body);
  font-weight: 400;
  font-size: 1rem;
  margin-bottom: 10px;
  color: var(--primary);
}
blockquote {
  font-style: italic;
  color: #444;
  background: #FAF8F5;
  border-left: 4px solid var(--accent);
  padding: 14px 24px;
  border-radius: var(--radius-md);
  margin: 10px 0 18px 0;
}
strong {
  font-weight: 700;
  color: var(--primary);
}
em {
  color: #555;
}

/* ==== HEADER & NAV ==== */
header {
  background: var(--brand-cream);
  border-bottom: 1px solid #E6E1D4;
  box-shadow: 0 2px 16px rgba(43,49,67,0.04);
  z-index: 100;
  position: relative;
}
header .container {
  padding: 16px 20px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 32px;
  align-items: center;
}
header nav a {
  font-family: var(--text-body);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
  color: var(--primary);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-bottom var(--transition);
}
header nav a:hover, header nav a:focus {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}
header img {
  height: 38px;
  width: auto;
  margin-right: 42px;
}

.cta.primary {
  display: inline-block;
  background: var(--primary);
  color: var(--secondary);
  font-family: var(--text-heading);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 13px 32px;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 16px rgba(43,49,67,0.07);
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  margin-left: 30px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  outline: none;
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 6px 24px #c19a6b26;
}

/* Hamburger menu toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  margin-left: 20px;
  cursor: pointer;
  z-index: 200;
}
.mobile-menu-toggle:focus {
  color: var(--accent);
}

/* ==== MOBILE NAV MENU ==== */
.mobile-menu {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--secondary);
  box-shadow: 0 12px 40px rgba(43,49,67,0.12);
  z-index: 2500;
  overflow-y: auto;
  transition: transform var(--transition), opacity var(--transition);
  transform: translateX(-100%);
  opacity: 0;
}
.mobile-menu.active {
  display: flex;
  transform: translateX(0);
  opacity: 1;
  animation: slideInRight 0.36s cubic-bezier(0.53, 0.03, 0.37, 0.98);
}
@keyframes slideInRight {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}
.mobile-menu-close {
  background: none;
  color: var(--primary);
  font-size: 2rem;
  border: none;
  align-self: flex-end;
  margin: 24px 24px 12px 0;
  transition: color var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--accent);
}
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px 32px 32px 38px;
}
.mobile-nav a {
  font-family: var(--text-heading);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--primary);
  padding: 12px 0;
  border-bottom: 1px solid #e9e3d7;
  transition: color var(--transition), background var(--transition);
  border-radius: 0;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: var(--accent);
  background: #faf8f5;
}

/* ==== HERO ==== */
.hero {
  background: var(--brand-cream);
  border-radius: var(--radius-lg);
  padding: 56px 0 64px 0;
  box-shadow: var(--card-shadow);
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
}
.hero .content-wrapper {
  max-width: 690px;
  margin: 0 auto;
  text-align: center;
  align-items: center;
  gap: 24px;
  padding: 0 10px;
}
.hero h1 {
  font-size: 2.7rem;
  font-family: var(--text-heading);
  color: var(--primary);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
.hero p {
  font-size: 1.18rem;
  color: var(--primary);
}
.hero .cta.primary {
  margin-top: 18px;
}

/* ==== FLEX UTILITY CLASSES ==== */
.card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--section-bg);
  box-shadow: var(--card-shadow);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  position: relative;
  min-width: 240px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 32px rgba(193, 154, 107,0.18);
  transform: translateY(-2px) scale(1.01);
}

.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: #FAF8F5;
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  margin-bottom: 20px;
  font-size: 1.03rem;
  color: #191C24;
  line-height: 1.6;
}
.testimonial-card p {
  color: #2B3143;
  font-size: 1.07rem;
  margin-bottom: 4px;
  flex: 1;
}
.testimonial-card div {
  font-size: 0.96rem;
  font-style: normal;
  color: #91734e;
  font-family: var(--text-body);
  font-weight: 700;
}

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

/* ==== LISTS ==== */
ul, ol {
  margin-left: 18px;
  margin-bottom: 10px;
}
ul li, ol li {
  margin-bottom: 10px;
  font-size: 1.04rem;
  padding-left: 6px;
}
ul li strong, ol li strong {
  font-family: var(--text-heading);
  font-weight: 700;
}
ol {
  list-style: decimal inside;
}
ul {
  list-style: disc inside;
}

/* ==== BUTTONS ==== */
button, .cta {
  font-family: var(--text-heading);
  font-weight: 600;
  background: var(--accent);
  color: var(--primary);
  border-radius: var(--radius-md);
  border: none;
  padding: 12px 30px;
  font-size: 1rem;
  margin: 6px 7px 6px 0;
  box-shadow: 0 2px 8px rgba(193, 154, 107,0.04);
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  outline: none;
}
button:hover, .cta:hover, button:focus, .cta:focus {
  background: var(--primary);
  color: var(--secondary);
  box-shadow: 0 8px 28px #B1A48D38;
}

.cta.primary {
  background: var(--primary);
  color: var(--secondary);
  border-radius: var(--radius-lg);
  margin: 0;
  padding: 13px 32px;
}
.cta.primary:hover, .cta.primary:focus {
  background: var(--accent);
  color: var(--primary);
}

/* ==== CARDS ==== */
.card {
  background: var(--section-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  padding: 28px 22px;
  min-width: 240px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

/* ==== FOOTER ==== */
footer {
  background: var(--brand-cream);
  border-top: 1px solid #E6E1D4;
  padding: 44px 0 21px 0;
  box-shadow: 0 -1px 14px #e6e1d469;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 26px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  color: var(--primary);
  font-family: var(--text-body);
  font-size: 1rem;
  font-weight: 400;
  padding: 3px 9px;
  border-radius: 3px;
  transition: background var(--transition), color var(--transition);
}
.footer-nav a:focus, .footer-nav a:hover {
  background: #F5EDE1;
  color: var(--accent);
}
footer .text-section {
  font-size: 0.97rem;
  color: #8d8376;
  text-align: center;
  font-family: var(--text-body);
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #FAF8F5;
  color: var(--primary);
  padding: 18px 32px;
  box-shadow: 0 -3px 24px rgba(43,49,67,0.10);
  z-index: 3000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  animation: fadeInUp 0.39s cubic-bezier(0.43, 0.13, 0.31, 1.01);
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(70px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner .cookie-text {
  flex: 2;
  font-size: 1rem;
}
.cookie-banner .cookie-actions {
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
  align-items: center;
}
.cookie-banner button {
  font-family: var(--text-body);
  padding: 10px 22px;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: var(--secondary);
  font-size: 15px;
  border: none;
  transition: background var(--transition), color var(--transition);
}
.cookie-banner .cookie-settings {
  background: var(--accent);
  color: var(--primary);
  font-weight: 600;
  margin-left: 6px;
}
.cookie-banner .cookie-settings:hover, .cookie-banner .cookie-settings:focus {
  background: var(--primary);
  color: var(--secondary);
}

/* ==== COOKIE MODAL ==== */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(43,49,67,0.41);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--section-bg);
  box-shadow: 0 8px 40px #3534351a;
  border-radius: var(--radius-lg);
  padding: 36px 30px 24px 30px;
  max-width: 440px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 21px;
  position: relative;
  animation: popIn .32s cubic-bezier(.61,.07,.49,1.11);
}
@keyframes popIn {
  from { transform: scale(0.81); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 7px;
}
.cookie-modal .close-cookie-modal {
  position: absolute;
  top: 12px;
  right: 18px;
  background: none;
  color: var(--primary);
  border: none;
  font-size: 1.5rem;
  padding: 0;
  transition: color var(--transition);
}
.cookie-modal .close-cookie-modal:hover, .cookie-modal .close-cookie-modal:focus {
  color: var(--accent);
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
  padding: 10px 0;
}
.cookie-category label {
  font-size: 1.02rem;
  color: var(--primary);
}
.cookie-category input[type=checkbox] {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 2px solid #CCC;
  background: #FFF;
  outline: none;
  position: relative;
  transition: border-color var(--transition);
  margin-right: 2px;
}
.cookie-category input[type=checkbox]:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.cookie-category input[type=checkbox]:checked:after {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 3px;
  position: absolute;
  left: 4px;
  top: 4px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 15px;
}
.cookie-modal .cookie-modal-actions button {
  padding: 10px 23px;
  font-size: 1rem;
}

/* ==== SECTION SPACING ==== */
section {
  margin-bottom: 60px;
  padding: 40px 0;
}

/* ==== RESPONSIVE BREAKPOINTS ==== */
@media (max-width: 1150px) {
  .container {
    max-width: 98vw;
    padding: 0 12px;
  }
}
@media (max-width: 900px) {
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 14px 8px;
    gap: 10px;
  }
  .hero {
    padding: 44px 0 46px 0;
  }
  .section {
    padding: 38px 9px;
  }
}
@media (max-width: 768px) {
  /* Layout stacks: column direction */
  .content-grid,
  .card-container,
  .footer-nav,
  .text-image-section,
  .testimonial-cards {
    flex-direction: column;
    gap: 18px;
  }
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 10px 5px;
    gap: 0;
  }
  header nav {
    display: none;
  }
  .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .footer-nav {
    gap: 10px;
  }
  .section,
  section, .hero {
    padding-left: 5vw;
    padding-right: 5vw;
  }
  .hero .content-wrapper {
    padding: 0 0;
    gap: 18px;
  }
  h1, .h1 {
    font-size: 2rem;
  }
  h2, .h2 {
    font-size: 1.35rem;
  }
  h3, .h3 {
    font-size: 1.07rem;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    padding: 14px 10px;
    align-items: flex-start;
  }
  .cookie-banner .cookie-actions {
    width: 100%;
    padding-bottom:  7px;
    flex-direction: row;
    gap: 8px;
  }
}

@media (max-width: 540px) {
  .section, section {
    margin-bottom: 40px;
    padding: 22px 3vw;
  }
  .hero {
    padding: 22px 2vw 32px 2vw;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    padding: 15px 11px;
  }
  .card {
    padding: 16px 9px;
    min-width: unset;
  }
  .cookie-modal {
    max-width: 97vw;
    padding: 21px 7vw 16px 7vw;
  }
}

/* ==== ANIMATIONS & MICRO-INTERACTIONS ==== */
.card, .cta, button, .testimonial-card, .cookie-banner, .cookie-modal {
  transition: box-shadow 0.26s, background 0.26s, color 0.22s, transform 0.26s;
}

/* ==== ACCESSIBILITY ==== */
:focus-visible {
  outline: 2px dashed var(--accent);
  outline-offset: 2px;
}

/* Reveal elements softly on scroll (if using JS for this) */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .48s cubic-bezier(.4, .01, .28, 1), transform .41s cubic-bezier(.4, .01, .28, 1);
}
[data-animate].active {
  opacity: 1;
  transform: none;
}

/* ==== MISC ==== */
::-webkit-scrollbar {
  width: 8px;
  background: #F5F0E6;
}
::-webkit-scrollbar-thumb {
  background: #ECE7DA;
  border-radius: 5px;
}

/* Always ensure no content overlapping by generous margins */
.section + .section, section + section {
  margin-top: 36px !important;
}
.card-container > .card, .card-grid > .card, .content-grid > .card {
  margin-bottom: 20px;
}

/* === END === */
