/* =====================
   CSS RESET & BASELINE
   ===================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #283446;
  background-color: #F3F1E7;
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
:root {
  --color-primary: #283446;
  --color-secondary: #B19873;
  --color-accent: #F3F1E7;
  --color-bg: #F3F1E7;
  --color-heading: #283446;
  --color-body: #283446;
  --color-light: #fff;
  --color-dark: #17202b;
  --font-display: 'Merriweather', Georgia, serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
  --radius: 12px;
  --shadow: 0 4px 18px 0 rgba(40,52,70,.10);
  --shadow-light: 0 2px 8px rgba(40,52,70,0.05);
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  list-style: none;
}
a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--color-primary);
  text-decoration: underline;
}
strong { font-weight: bold; }
em { font-style: italic; }

/* =======================
    TYPOGRAPHY
   ======================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-heading);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
h1 { font-size: 2.5rem; line-height: 1.18; margin-bottom: 24px; }
h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 20px; }
h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 12px; }
h4 { font-size: 1.1rem; font-weight: 600; }

p, li, blockquote, cite {
  font-size: 1rem;
  color: var(--color-body);
}
p + p { margin-top: 1em; }

blockquote {
  font-family: var(--font-display);
  font-style: italic;
  border-left: 4px solid var(--color-secondary);
  margin: 0 0 10px 0;
  padding: 12px 18px;
  background: var(--color-accent);
  color: var(--color-primary);
  border-radius: var(--radius);
}
cite {
  display: block;
  font-style: normal;
  font-size: .95em;
  color: var(--color-secondary);
  margin-top: 6px;
  letter-spacing: .01em;
}

.tagline {
  font-size: 1.1rem;
  font-family: var(--font-body);
  color: var(--color-secondary);
  margin-bottom: 22px;
  letter-spacing: .02em;
}
.style-description {
  color: var(--color-secondary);
  background: #ede6d9;
  border-radius: var(--radius);
  padding: 12px 18px;
  margin: 18px 0;
  font-style: italic;
  font-size: 1.05rem;
}

/* =====================
   LAYOUT & CONTAINERS
   ===================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
.content-wrapper {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  padding: 0 10px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

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

/* ===================
  FEATURE/GRID FLEXBOX
  =================== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
}
.feature-grid > li, .feature-grid > div {
  flex: 1 1 250px;
  min-width: 220px;
  background: var(--color-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  padding: 24px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  position: relative; /* For badges */
  transition: box-shadow 0.18s, transform 0.18s;
}
.feature-grid > li:hover, .feature-grid > div:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.feature-grid img {
  width: 42px;
  margin-bottom: 12px;
  filter: grayscale(20%) contrast(1.05);
}

.badge {
  display: inline-block;
  background: var(--color-secondary);
  color: #fff;
  font-size: .91rem;
  font-family: var(--font-body);
  padding: 4px 12px;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 8px;
  box-shadow: 0 1px 6px rgba(177,152,115,.12);
}

/* =====================
   BUTTONS / CTAs
   ===================== */
.cta {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-secondary);
  border: none;
  border-radius: var(--radius);
  padding: 12px 34px;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: 0 2px 10px rgba(177,152,115,.08);
  transition: background 0.17s, box-shadow 0.17s, transform 0.15s;
  letter-spacing: 0.02em;
}
.cta.primary {
  background: var(--color-primary);
  color: #fff;
}
.cta:hover, .cta:focus {
  background: #927451;
  color: #fff;
  box-shadow: 0 6px 26px rgba(40,52,70,0.08);
  transform: translateY(-1px) scale(1.028);
  text-decoration: none;
}
.cta.primary:hover, .cta.primary:focus {
  background: #17202b;
  color: #fff;
}
.button, input[type="submit"], input[type="button"], button {
  appearance: none;
  font-family: var(--font-body);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  padding: 10px 22px;
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(40,52,70,0.06);
  transition: background 0.15s, transform 0.12s;
}
.button:hover, input[type="submit"]:hover, button:hover {
  background: var(--color-secondary);
  color: #fff;
  transform: scale(1.04);
}

/* ====================
   HEADER & NAVIGATION
   ==================== */
header {
  background: #fff;
  box-shadow: 0 1px 20px rgba(40,52,70,0.05);
  padding: 0;
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 999;
}
header .container {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  min-height: 64px;
  gap: 24px;
}
header img {
  height: 38px;
  width: auto;
  margin-right: 16px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--color-primary);
  padding: 6px 8px;
  border-radius: 7px;
  transition: background 0.14s, color 0.14s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}
.main-nav .cta {
  margin-left: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .01em;
}
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2.3rem;
  color: var(--color-primary);
  cursor: pointer;
  margin-left: 16px;
  transition: color 0.14s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  color: var(--color-secondary);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(40,52,70,0.98);
  color: #fff;
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(.83,0,.26,1);
  flex-direction: column;
  justify-content: flex-start;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  position: absolute;
  right: 24px;
  top: 24px;
  z-index: 2010;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-top: 72px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.6rem;
  opacity: 0.98;
  letter-spacing: .05em;
  transition: color 0.17s, opacity 0.17s;
  padding: 10px 0;
  border-radius: 8px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-secondary);
  opacity: 1;
  background: rgba(243,241,231,0.09);
}

/* =======================
   CARDS & FLEX CONTAINERS
   ======================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
  padding: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.16s;
}
.card:hover {
  box-shadow: 0 9px 48px 0 rgba(40,52,70,.17);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.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: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  flex: 1 1 340px;
  min-width: 270px;
  max-width: 540px;
  color: var(--color-dark);
}
.testimonial-card blockquote {
  background: none;
  border: none;
  color: var(--color-primary);
  padding: 0;
  margin: 0;
  font-size: 1.05rem;
  font-style: italic;
  letter-spacing: .01em;
}
.testimonial-card cite {
  font-size: 0.98rem;
  color: var(--color-secondary);
  font-family: var(--font-body);
  margin-left: 14px;
  margin-top: 0;
  font-style: normal;
  opacity: .88;
}

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

/* =====================
   FORMS, INPUTS & SELECTS
   ===================== */
input[type="search"], input[type="text"], select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 10px;
  border-radius: 7px;
  border: 1px solid #d1cabd;
  margin-right: 10px;
  background: #fcfbf8;
  color: var(--color-primary);
  margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(177,152,115,.04);
  transition: border 0.12s, box-shadow 0.12s;
}
input[type="search"]:focus, input[type="text"]:focus, select:focus {
  border: 1.5px solid var(--color-secondary);
  outline: none;
  background: #fff;
  box-shadow: 0 2px 12px rgba(177,152,115,.09);
}

form {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

/* =====================
   FOOTER
   ===================== */
footer {
  background: #fff;
  border-top: 1px solid #f0ede5;
  padding: 40px 0 20px 0;
  margin-top: 64px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: var(--color-primary);
  font-size: 0.97rem;
  opacity: 0.82;
  transition: color .17s, opacity .17s;
}
.footer-nav a:hover {
  color: var(--color-secondary);
  opacity: 1;
  text-decoration: underline;
}
.footer-contact {
  font-size: .95rem;
  color: #555;
  opacity: .78;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
footer img {
  max-height: 44px;
  margin: 0 6px 0 0;
}

/* =====================
   COOKIE CONSENT BANNER
   ===================== */
#cookie-banner {
  position: fixed;
  left: 0; bottom: 0; right: 0;
  background: #ede6d9;
  color: var(--color-primary);
  z-index: 2300;
  padding: 24px 18px 18px 18px;
  box-shadow: 0 -2px 30px 0 rgba(40,52,70,0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: fadeInUp 0.8s cubic-bezier(.23,.92,.84,.91);
}
#cookie-banner p {
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 8px;
  text-align: center;
}
.cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.cookie-actions button {
  padding: 9px 21px;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
}
.cookie-actions .accept {
  background: var(--color-primary);
  color: #fff;
}
.cookie-actions .accept:hover,
.cookie-actions .accept:focus {
  background: #17202b;
}
.cookie-actions .reject {
  background: #ae9a71;
  color: #fff;
}
.cookie-actions .reject:hover,
.cookie-actions .reject:focus {
  background: #b19873;
}
.cookie-actions .settings {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-secondary);
}
.cookie-actions .settings:hover,
.cookie-actions .settings:focus {
  background: #ede6d9;
  color: var(--color-secondary);
}

/* Cookie Modal */
#cookie-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(40,52,70,.36);
  z-index: 2400;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.33s;
}
#cookie-modal.open {
  display: flex;
}
.cookie-modal-content {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 38px rgba(40,52,70,0.13);
  max-width: 400px;
  width: 94vw;
  padding: 30px 26px 20px 26px;
  color: var(--color-primary);
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: slideDown .41s cubic-bezier(.62,-.12,.49,1.13);
  position: relative;
}
.cookie-modal-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.cookie-cookie-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cookie-toggle-row input[type="checkbox"] {
  width: 32px;
  height: 18px;
  accent-color: var(--color-secondary);
}
.cookie-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 8px;
}
.cookie-modal-close {
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 1.5rem;
  position: absolute;
  right: 16px;
  top: 14px;
  opacity: .78;
  cursor: pointer;
}
.cookie-modal-close:hover {
  opacity: 1;
  color: var(--color-secondary);
}

/* =====================
   MEDIA QUERIES
   ===================== */
@media (max-width: 1100px) {
  .container {
    max-width: 96vw;
    padding-left: 14px;
    padding-right: 14px;
  }
  .content-wrapper, .text-section {
    padding-left: 2px;
    padding-right: 2px;
  }
}

@media (max-width: 900px) {
  .feature-grid > li, .feature-grid > div {
    flex: 1 1 47%;
    min-width: 180px;
  }
  .testimonial-card {
    flex: 1 1 90%;
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  header .container {
    flex-wrap: wrap;
    gap: 6px;
    height: auto;
    min-height: 56px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .main-nav {
    display: none;
    flex-direction: column;
    position: static;
    gap: 20px;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .content-grid, .card-container, .feature-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    font-size: .97rem;
  }
  .section {
    padding: 28px 7px;
    margin-bottom: 38px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .card {
    padding: 17px 10px;
  }
  .feature-grid > li, .feature-grid > div {
    min-width: 0;
    width: 100%;
    padding: 16px 10px;
  }
  footer .container {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}
@media (max-width: 480px) {
  html { font-size: 14px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.32rem; }
  .container { padding-left: 5px; padding-right: 5px; }
  .footer-contact { font-size: .93rem; }
  .section { padding: 17px 3px; }
  .cta, .button { font-size: 1rem; padding: 10px 12px; }
}

/* =====================
   ANIMATIONS
   ===================== */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(35px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes slideDown {
  0% { opacity: 0; transform: translateY(-45px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* =====================
   ACCESSIBILITY & UTILS
   ===================== */
:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}
[aria-current="page"] {
  text-decoration: underline;
  color: var(--color-secondary) !important;
}

::-webkit-input-placeholder { color: #b19873cc; }
::-moz-placeholder { color: #b19873cc; }
:-ms-input-placeholder { color: #b19873cc; }
::placeholder { color: #b19873cc; }

/* Hide scrollbar for horizontal overflow but allow vertical */
body {
  overflow-x: hidden;
}

/* =====================
   PRINT STYLES (Optional)
   ===================== */
@media print {
  header, nav, .main-nav, .cookie-banner, .mobile-menu, .mobile-nav, footer { display: none !important; }
  body { color: #000; background: #fff; }
}
