/* =======================================================
   STYLE.CSS — Glisse Pure / Warm Friendly Flexbox Theme
   ======================================================= */

/* ==== 0. CSS RESET & NORMALIZE ==== */
html,body,div,header,footer,section,nav,main,aside,span,ul,ol,li,p,h1,h2,h3,h4,h5,h6,img,a,button,figure,figcaption,input,textarea,form,label {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: #EFEFE5;
}
body {
  font-family: 'Lato', Arial, sans-serif;
  background: #EFEFE5;
  color: #22413B;
  min-height: 100vh;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  /* For cookie modal overlay */
  position: relative;
  padding-bottom: 90px; /* Space for cookie banner */
}
@media (max-width: 540px) {
  html { font-size: 15px; }
  body { padding-bottom: 110px; }
}
img { max-width: 100%; height: auto; display: block; }
*,*:before,*:after { box-sizing: inherit; }
button,a { cursor: pointer; text-decoration: none; color: inherit; background: none; border: none; font: inherit; }

/* ==== 1. TYPOGRAPHY & BRAND FONTS ==== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500|Lato:400,400i,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #22413B;
  line-height: 1.16;
  font-weight: 700;
  margin-bottom: 12px;
}
h1 { font-size: 2.6rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.4rem; margin-bottom: 9px; line-height: 1.25; }
h4 { font-size: 1.2rem; }
h5, h6 { font-size: 1rem; font-weight: 600; }
.subheadline {
  font-size: 1.2rem;
  color: #7B4C19;
  font-family: 'Lato', Arial, sans-serif;
  margin-bottom: 16px;
}
p, ul, ol, li {
  font-size: 1rem;
  margin-bottom: 8px;
}
strong { font-weight: bold; color: #7B4C19; }
a { color: #7B4C19; transition: color 0.18s; }
a:hover, a:focus { color: #22413B; text-decoration: underline; }

/* ==== 2. FLEX CONTAINERS & SECTIONS ==== */
.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 22px 0 rgba(226,178,116,0.09);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 14px rgba(166,120,83,0.08);
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.2s;
  padding: 24px 20px;
}
.card:hover {
  box-shadow: 0 6px 24px rgba(123,76,25,0.13);
}
.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: #EFEFE5;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(166,120,83,0.07);
  margin-bottom: 20px;
  flex-direction: column;
  color: #22413B;
  max-width: 700px;
}
.testimonial-card p {
  font-size: 1.08rem;
  font-style: italic;
  color: #22413B;
  margin-bottom: 10px;
}
.testimonial-card span {
  font-size: 0.98rem;
  color: #7B4C19;
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 700;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
}
.feature-grid > div {
  flex: 1 1 270px;
  min-width: 220px;
  max-width: 320px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 14px rgba(166,120,83,0.07);
  padding: 24px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.18s;
}
.feature-grid > div img {
  width: 40px;
  margin-bottom: 10px;
}
.feature-grid > div:hover {
  box-shadow: 0 7px 30px rgba(123, 76, 25,0.13);
}

/* ==== 3. HEADER & NAVIGATION ==== */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 3px 12px rgba(34,65,59,0.07);
  padding: 18px 0 15px 0;
  position: relative;
  z-index: 800;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
header img {
  height: 46px;
  width: auto;
  border-radius: 13px;
}
nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
nav a {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  color: #22413B;
  padding: 6px 14px;
  border-radius: 8px;
  transition: background 0.15s, color 0.18s;
}
nav a:hover, nav a:focus {
  background: #EFEFE5;
  color: #7B4C19;
}
.button-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #7B4C19;
  color: #fff;
  padding: 10px 32px;
  border-radius: 22px;
  font-size: 1.18rem;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(166,120,83,0.09);
  border: none;
  transition: background 0.19s, box-shadow 0.19s, color 0.15s;
  letter-spacing: 0.01em;
  outline: none;
}
.button-primary:hover, .button-primary:focus {
  background: #A67853;
  color: #fffbe3;
  box-shadow: 0 5px 24px rgba(166,120,83,0.20);
}
.button-secondary {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #EFEFE5;
  color: #7B4C19;
  padding: 9px 28px;
  border-radius: 20px;
  font-size: 1.07rem;
  font-weight: 600;
  border: 2px solid #7B4C19;
  margin-top: 20px;
  transition: background 0.15s, color 0.17s, border 0.17s;
  outline: none;
}
.button-secondary:hover, .button-secondary:focus {
  background: #7B4C19;
  color: #fff;
  border: 2px solid #7B4C19;
}

/* ==== 4. MOBILE MENU ==== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 19px;
  right: 24px;
  z-index: 1202;
  background: #A67853;
  color: #fff;
  height: 44px;
  width: 44px;
  border-radius: 50%;
  font-size: 2rem;
  justify-content: center;
  align-items: center;
  border: none;
  box-shadow: 0 2px 10px rgba(166,120,83,0.12);
  transition: background 0.20s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #7B4C19;
  color: #fffbe3;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #EFEFE5;
  z-index: 1201;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  box-shadow: -4px 0 22px 0 rgba(166,120,83,.10);
  padding: 0;
  overflow-y: auto;
  min-height: 100vh;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 24px 0 0;
  background: #7B4C19;
  color: #fff;
  border-radius: 50%;
  height: 38px;
  width: 38px;
  font-size: 1.3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  box-shadow: 0 1px 7px rgba(166,120,83,0.09);
  cursor: pointer;
  transition: background 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #A67853;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin: 50px 0 0 0;
}
.mobile-nav a {
  color: #22413B;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1.19rem;
  padding: 10px 28px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(166,120,83,0.08);
  width: 80vw;
  max-width: 420px;
  text-align: center;
  transition: background 0.16s, color 0.17s;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: #A67853;
  color: #fff;
}
@media (max-width: 1020px) {
  header .container nav { display: none; }
  .mobile-menu-toggle { display: flex; }
}
@media (min-width: 1021px) {
  .mobile-menu { display: none !important; }
}

/* ==== 5. MAIN/LISTS/ARTICLES ==== */
main {
  width: 100%;
  margin: 0 auto;
  margin-bottom: 32px;
  min-height: 60vh;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 22px 0 rgba(166,120,83,0.08);
}
@media (max-width: 800px) {
  section { margin-bottom: 40px; padding: 30px 10px; border-radius: 16px; }
}
h1 + .subheadline, h2 + .subheadline, h1 + p {
  margin-top: -12px;
}
ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.article-list, .magazine-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
}
.article-list li, .magazine-list li {
  background: #EFEFE5;
  border-radius: 16px;
  box-shadow: 0 1.5px 7px rgba(166,120,83,0.07);
  padding: 22px 20px 18px 20px;
  flex: 1 1 270px;
  min-width: 220px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  transition: box-shadow 0.16s;
}
.article-list li a, .magazine-list li a {
  color: #7B4C19;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.15s;
}
.article-list li a:hover, .magazine-list li a:hover {
  color: #22413B;
}

/* ==== 6. FOOTER ==== */
footer {
  background: #22413B;
  color: #fff;
  padding: 54px 0 28px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: stretch;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
  margin-bottom: 14px;
}
.footer-menu a {
  color: #fff;
  font-family: 'Lato', Arial, sans-serif;
  opacity: .93;
  font-size: 1rem;
  border-radius: 8px;
  padding: 5px 12px;
  transition: background 0.14s, color 0.15s;
}
.footer-menu a:hover {
  background: #fff;
  color: #7B4C19;
}
.footer-branding {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 13px;
  flex-wrap: wrap;
}
.footer-branding img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}
.footer-branding p {
  color: #EFEFE5;
  font-size: 1rem;
  line-height: 1.45;
}
.footer-socials {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 6px;
}
.footer-socials a {
  background: #EFEFE5;
  border-radius: 12px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.16s;
}
.footer-socials a:hover {
  background: #A67853;
}
.footer-socials img {
  width: 24px; height: 24px;
}
.footer-legal {
  color: #A67853;
  font-size: 0.97rem;
  text-align: left;
  margin-top: 16px;
  opacity: .93;
}

/* ==== 7. OTHER COMPONENTS & MICROINTERACTIONS ==== */
.text-section {
  background: #EFEFE5;
  border-radius: 14px;
  padding: 24px 20px;
  box-shadow: 0 1.5px 7px rgba(166,120,83,0.07);
  margin-bottom: 18px;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 0;
  list-style: none;
  padding: 0 0 0 0;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  color: #22413B;
  background: #EFEFE5;
  border-radius: 8px;
  padding: 9px 15px;
  margin-bottom: 7px;
}
.contact-details img {
  width: 24px; height: 24px;
}
ul.contact-details { gap: 0; }

/* ==== 8. SPACING & ALIGNMENT PATERNS (MANDATORY) ==== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  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;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ==== 9. RESPONSIVE DESIGN ==== */
@media (max-width: 1020px) {
  .container {
    max-width: 95vw;
    padding: 0 10px;
  }
  .footer-branding { flex-direction: column; align-items: flex-start; }
  .content-grid, .feature-grid, .article-list, .magazine-list, .card-container {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .section { padding: 24px 6px; margin-bottom: 40px; }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  header .container { flex-direction: column; gap: 9px; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.38rem; }
  h2 { font-size: 1.12rem; }
  nav a, .mobile-nav a { font-size: 1rem; }
}

/* ==== 10. COOKIE CONSENT BANNER & MODAL ==== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  z-index: 1900;
  background: #fffbe3;
  color: #7B4C19;
  box-shadow: 0 -2px 12px rgba(34,65,59,0.08);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 36px 24px 36px;
  font-size: 1rem;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  transition: transform 0.28s;
}
.cookie-banner.hide {
  transform: translateY(120%);
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    padding: 18px 14px 19px 14px;
    font-size: 0.96rem;
    gap: 14px;
  }
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 20px;
  border: 2px solid #A67853;
  background: #A67853;
  color: #fff;
  padding: 7px 20px;
  font-size: 1rem;
  font-weight: 600;
  margin-right: 3px;
  box-shadow: 0 1.5px 7px rgba(166,120,83,0.08);
  transition: background 0.12s, color 0.13s, border 0.13s;
  outline: none;
}
.cookie-banner button:last-child {
  background: #fff;
  border-color: #A67853;
  color: #7B4C19;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #7B4C19;
  color: #fffbe3;
}

/* Cookie Modal Overlay */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(34,65,59,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  color: #22413B;
  border-radius: 24px;
  box-shadow: 0 9px 40px #7B4C1977;
  width: 100%;
  max-width: 400px;
  padding: 32px 28px 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: cookiePopIn 0.34s cubic-bezier(.87,.09,.31,.98);
}
@keyframes cookiePopIn {
  from { opacity: 0; transform: scale(0.96) translateY(80px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.35rem;
  color: #A67853;
  margin-bottom: 10px;
  font-weight: 700;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 1rem;
  color: #22413B;
}
.cookie-modal-category label {
  font-weight: 600;
}
.cookie-modal-toggle {
  width: 40px;
  height: 24px;
  border-radius: 16px;
  background: #efefe5;
  border: 1.5px solid #A67853;
  position: relative;
  transition: background 0.12s,
              border 0.13s;
  display: inline-block;
}
.cookie-modal-toggle input {
  opacity: 0;
  position: absolute;
}
.cookie-modal-toggle span {
  display: block;
  position: absolute;
  left: 3px; top: 3px;
  width: 18px; height: 18px;
  background: #A67853;
  border-radius: 50%;
  transition: left 0.14s cubic-bezier(.41,.5,.59,1.2);
}
.cookie-modal-toggle input:checked + span {
  left: 19px;
  background: #7B4C19;
}
.cookie-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 9px;
  justify-content: flex-end;
}
.cookie-modal-actions button {
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 15px;
  padding: 6px 19px;
  background: #A67853;
  color: #fff;
  border: 2px solid #A67853;
  font-weight: 700;
  font-size: 1rem;
  margin-right: 0;
  transition: background 0.16s, color 0.11s, border 0.12s;
}
.cookie-modal-actions button:last-child {
  background: #fff;
  color: #A67853;
  border: 2px solid #A67853;
}
.cookie-modal-actions button:hover, .cookie-modal-actions button:focus {
  background: #7B4C19;
  color: #fffbe3;
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  background: #EFEFE5;
  color: #7B4C19;
  border: none;
  border-radius: 50%;
  width: 33px; height: 33px;
  font-size: 1.2rem;
  display: flex;
  align-items: center; justify-content: center;
  transition: background .13s, color .11s;
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #A67853;
  color: #fff;
}

/* ==== 11. TRANSITIONS & ANIMATIONS ==== */
.card, .feature-grid > div, .testimonial-card, .article-list li, .magazine-list li, .button-primary, .button-secondary {
  transition: box-shadow 0.17s, background 0.18s, color 0.13s, border 0.13s;
}
.button-primary, .button-secondary {
  transition: background 0.18s, color 0.13s, box-shadow 0.13s;
}

/* ==== 12. UTILITY CLASSES ==== */
.rounded-8 { border-radius: 8px !important; }
.rounded-16 { border-radius: 16px !important; }
.rounded-24 { border-radius: 24px !important; }
.shadow-soft { box-shadow: 0 2px 14px rgba(166,120,83,0.12) !important; }
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-accent { color: #7B4C19 !important; }
.bg-accent { background: #A67853 !important; }
.bg-soft { background: #EFEFE5 !important; }

/* ==== 13. HIDE FOR ACCESSIBILITY ==== */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

/* ==== 14. SCROLLBAR FOR MOBILE/OVERLAYS ==== */
.mobile-menu, .cookie-modal-overlay.open {
  scrollbar-width: thin;
  scrollbar-color: #A67853 #EFEFE5;
}
.mobile-menu::-webkit-scrollbar, .cookie-modal-overlay.open::-webkit-scrollbar {
  height: 9px;
  width: 7px;
  background: #EFEFE5;
}
.mobile-menu::-webkit-scrollbar-thumb, .cookie-modal-overlay.open::-webkit-scrollbar-thumb {
  background: #A67853;
  border-radius: 10px;
}

/* ==== END ==== */
