/* 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,
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, main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
article, aside, details, figcaption, figure,
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  min-height: 100vh;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: #fff;
  color: #2D3A4A;
  font-size: 16px;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}
a {
  background: transparent;
  color: #2D3A4A;
  text-decoration: none;
  transition: color 0.18s cubic-bezier(0.4,0,0.2,1);
}
a:focus, a:hover {
  color: #8F6746;
  outline: none;
  text-decoration: underline;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  margin-left: 24px;
}

/* TYPOGRAPHY */
h1, .hero h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  color: #2D3A4A;
  line-height: 1.2;
}
h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 14px;
  color: #2D3A4A;
  line-height: 1.22;
}
h3 {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #8F6746;
  text-transform: uppercase;
  letter-spacing: 1px;
}
h4, h5, h6 {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #2D3A4A;
}
strong { font-weight: 700; color: #2D3A4A; }
p, li {
  color: #2D3A4A;
  font-size: 1rem;
  margin-bottom: 10px;
}
.text-section p:not(:last-child) {
  margin-bottom: 18px;
}
.text-section ul {
  margin-bottom: 14px;
}

/* CONTAINERS */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 18px;
  margin: 0 auto;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* HEADER & NAVIGATION */
header {
  background: #fff;
  border-bottom: 3px solid #F2E5D2;
  position: relative;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo img {
  height: 48px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #2D3A4A;
  padding: 8px 0;
  letter-spacing: 0.5px;
  position: relative;
  transition: color 0.18s;
}
.main-nav a.btn-primary {
  margin-left: 20px;
}
.main-nav a:hover, .main-nav a:focus {
  color: #8F6746;
}

/* BURGER MENU (Mobile) */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: #2D3A4A;
  cursor: pointer;
  padding: 8px 10px;
  transition: color 0.2s;
  z-index: 110;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: #8F6746;
  outline: none;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #2D3A4A;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.6,0.1,0.5,1);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 0;
  opacity: 0.99; /* Prevent safari bugs */
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #F2E5D2;
  font-size: 2.25rem;
  padding: 16px 20px 10px 24px;
  align-self: flex-end;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #8F6746;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 48px;
  gap: 24px;
  padding-left: 36px;
}
.mobile-nav a {
  color: #F2E5D2;
  font-size: 1.25rem;
  font-weight: bold;
  letter-spacing: 0.5px;
  transition: color 0.2s;
  padding: 10px 0;
}
.mobile-nav a.btn-primary{
  margin-top: 18px;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: #8F6746;
}


/* HERO SECTION */
.hero {
  background: #F2E5D2;
  padding: 64px 0 40px 0;
  display: flex;
  align-items: center;
  min-height: 350px;
}
.hero .container {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero .content-wrapper {
  max-width: 640px;
  align-items: flex-start;
}
.hero h1 {
  font-size: 2.75rem;
  color: #2D3A4A;
  margin-bottom: 18px;
}
.hero p {
  font-size: 1.18rem;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #2D3A4A;
  margin-bottom: 30px;
}
.hero .btn-primary {
  font-size: 1.11rem;
}

/* BUTTONS */
.btn-primary {
  background: #8F6746;
  color: #fff;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 700;
  border: none;
  padding: 13px 38px;
  border-radius: 28px;
  font-size: 1.13rem;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 3px 18px 0 rgba(141,101,69,0.10), 0 1.5px 8px 0 rgba(45,58,74,0.10);
  transition: background 0.16s, transform 0.16s, box-shadow 0.2s;
  display: inline-block;
  outline: none;
}
.btn-primary:focus, .btn-primary:hover {
  background: #2D3A4A;
  color: #F2E5D2;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 32px 0 rgba(45,58,74,0.19);
}

/* FEATURE GRID + CARDS */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 18px;
}
.feature-item {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 3px 16px 0 rgba(45,58,74,0.07);
  padding: 28px 24px 18px 24px;
  min-width: 235px;
  max-width: 312px;
  flex: 1 1 235px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.feature-item img {
  width: 48px; height: 48px;
}
.feature-item h3 {
  margin-top: 6px;
  font-size: 1.16rem;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 6px 32px 0 rgba(45,58,74,0.14);
  transform: translateY(-3px) scale(1.04);
}

/* TESTIMONIALS */
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.testimonial-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(45,58,74,0.07);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 28px;
  margin-bottom: 20px;
  max-width: 400px;
  min-width: 280px;
  font-size: 1.13rem;
  color: #2D3A4A;
  transition: box-shadow 0.18s, transform 0.15s;
}
.testimonial-card p {
  color: #2D3A4A;
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.testimonial-meta {
  color: #8F6746;
  font-size: 1rem;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 7px 34px 0 rgba(45,58,74,0.18), 0 2px 12px 0 rgba(141,101,69,0.08);
  transform: scale(1.03);
}

/* CARDS & FLEX CONTAINERS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(45,58,74,0.06);
  margin-bottom: 20px;
  position: relative;
  min-width: 250px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
}
.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;
}

/* Section specific layouts */
.section:not(:last-child) {
  margin-bottom: 60px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* SPACING AND ALIGNMENT */
.section, .feature-grid, .testimonial-list, .card-container, .content-grid, .text-image-section {
  margin-bottom: 0 !important;
}

/* FOOTER */
footer {
  background: #2D3A4A;
  color: #F2E5D2;
  margin-top: 60px;
  padding: 44px 0 22px 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  justify-content: center;
  margin-bottom: 20px;
}
.footer-nav a {
  color: #F2E5D2;
  font-weight: 700;
  font-size: 1rem;
  transition: color 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #8F6746; text-decoration: underline;
}
.footer-contact {
  text-align: center;
  color: #F2E5D2;
  font-size: 0.97rem;
}
.footer-contact p {
  margin-bottom: 8px;
  color: #F2E5D2;
}

/* Responsive media queries */
@media (max-width: 1024px) {
  .main-nav { gap: 14px; }
  .feature-grid { gap: 22px; }
  .card-container, .testimonial-list { gap: 18px; }
}
@media (max-width: 900px) {
  .feature-grid, .testimonial-list, .card-container {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .feature-item, .testimonial-card, .card {
    min-width: unset; max-width: unset;
    width: 100%;
  }
  .hero .content-wrapper { max-width: unset; }
}
@media (max-width: 820px) {
  h1, .hero h1 { font-size: 2.1rem; }
  h2 { font-size: 1.54rem; }
  .hero { padding: 52px 0 32px 0; min-height: 230px; }
  .feature-item { padding: 22px 14px 13px 14px; }
  .btn-primary { padding: 10px 24px; font-size: 1rem; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .footer-nav { gap: 12px; }
  .hero { padding: 32px 0 18px 0; min-height: 180px; }
  .container { padding: 0 8px; }
  .content-grid, .feature-grid, .testimonial-list, .card-container {
    flex-direction: column;
    gap: 14px;
  }
  .feature-item, .testimonial-card, .card {
    min-width: 0; max-width: 100%; width: 100%;
  }
  .text-image-section { flex-direction: column; gap: 16px; }
}
@media (max-width: 520px) {
  h1, .hero h1 { font-size: 1.37rem; }
  h2 { font-size: 1.08rem; }
  .hero .content-wrapper, .content-wrapper { max-width: unset; }
  .feature-item img { width: 38px; height: 38px; }
  .btn-primary { font-size: 0.98rem; padding: 9px 10vw; }
  .section { padding: 22px 3px; }
  .footer-contact { font-size: 0.93rem; }
}

/* ICON IMAGE ALIGNMENT */
.text-section img {
  vertical-align: middle;
  margin-right: 7px;
  margin-bottom: 0;
  width: 22px;
  height: 22px;
  display: inline-block;
  object-fit: contain;
}

/* Animations/microinteractions */
.btn-primary,
.feature-item,
.testimonial-card {
  will-change: transform, box-shadow;
  transition: box-shadow 0.18s, background 0.18s, transform 0.18s;
}

/* ADDITIONAL STYLES FOR LISTS IN TEXT SECTIONS */
.text-section ul {
  list-style: disc;
  margin-left: 28px;
  margin-bottom: 16px;
}
.text-section ul li {
  margin-bottom: 6px;
}
.text-section li strong {
  color: #8F6746;
}

/* Section Spacing Consistency */
.content-wrapper > *:not(:last-child) {
  margin-bottom: 14px;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: #2D3A4A;
  color: #F2E5D2;
  box-shadow: 0 -3px 24px 0 rgba(45,58,74,0.10);
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 18px;
  gap: 26px;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.25s cubic-bezier(0.5,0,0.2,1), opacity 0.22s;
  font-size: 0.99rem;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner button, .cookie-banner .cookie-settings-btn {
  background: #8F6746;
  color: #fff;
  border: none;
  padding: 8px 23px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-left: 0;
  transition: background 0.17s, color 0.13s, transform 0.15s;
}
.cookie-banner button:focus,
.cookie-banner button:hover,
.cookie-banner .cookie-settings-btn:focus,
.cookie-banner .cookie-settings-btn:hover {
  background: #2D3A4A;
  color: #F2E5D2;
  transform: scale(1.02);
  outline: none;
}
@media (max-width: 520px) {
  .cookie-banner {
    flex-direction: column;
    gap: 12px;
    font-size: 0.98rem;
    padding: 18px 8px 38px 8px;
  }
  .cookie-banner .cookie-actions {
    align-self: stretch;
    justify-content: flex-start;
    gap: 10px;
  }
}

/* COOKIE MODAL */
.cookie-modal-bg {
  display: none;
  position: fixed;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(45,58,74,0.50);
  z-index: 300;
  align-items: center;
  justify-content: center;
  transition: opacity 0.22s;
  opacity: 0;
}
.cookie-modal-bg.open { display: flex; opacity: 1; }
.cookie-modal {
  background: #fff;
  color: #2D3A4A;
  border-radius: 20px;
  padding: 34px 26px 22px 26px;
  box-shadow: 0 8px 48px 0 rgba(45,58,74,0.20);
  min-width: 320px;
  max-width: 97vw;
  z-index: 320;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: cookieModalIn 0.32s cubic-bezier(0.6,0,0.45,1);
}
@keyframes cookieModalIn {
  from { transform: translateY(70px) scale(0.93); opacity: 0.2; }
  to { transform: none; opacity: 1; }
}
.cookie-modal h2 {
  margin-bottom: 8px;
  color: #2D3A4A;
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  text-align: left;
}
.cookie-modal .cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.cookie-modal .cookie-category:last-child {
  margin-bottom: 0;
}
.cookie-modal .cookie-toggle {
  appearance: none;
  width: 40px;
  height: 24px;
  background: #F2E5D2;
  border-radius: 12px;
  outline: none;
  cursor: pointer;
  position: relative;
  transition: background 0.15s;
}
.cookie-modal .cookie-toggle:checked {
  background: #8F6746;
}
.cookie-modal .cookie-toggle:before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.19s cubic-bezier(0.7,0,0.3,1);
}
.cookie-modal .cookie-toggle:checked:before {
  transform: translateX(16px);
  background: #fff5e7;
}
.cookie-modal .cookie-btns {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  justify-content: flex-end;
}
.cookie-modal button,
.cookie-modal .cookie-settings-btn {
  background: #8F6746;
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 8px 20px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.13s, color 0.13s;
}
.cookie-modal button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.cookie-modal button:focus,
.cookie-modal button:hover {
  background: #2D3A4A;
  color: #F2E5D2;
}
@media (max-width: 480px) {
  .cookie-modal { min-width: 0; padding: 18px 6vw; }
}

/* Utility classes */
.mt-0 { margin-top: 0!important; }
.mb-0 { margin-bottom: 0!important; }
.mt-16 { margin-top: 16px!important; }
.mb-16 { margin-bottom: 16px!important; }

/* Hide visually but keep accessible */
.sr-only {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* FOCUS VISIBLE */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 3px solid #8F6746;
  outline-offset: 1px;
}

/* Hide scroll when menu or modal open */
body.mobile-menu-open,
body.cookie-modal-open {
  overflow: hidden;
}

/* END OF STYLE.CSS */
