/* 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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
html {
  height: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #fff;
  color: #141414;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  background: #fff;
}
img, svg {
  max-width: 100%;
  display: block;
}
ul, ol {
  padding-left: 1.2em;
  margin-bottom: 1.25em;
}
a {
  color: #222;
  text-decoration: underline;
  transition: color 0.2s cubic-bezier(.45,.05,.55,.95);
}
a:hover, a:focus {
  color: #335D3A;
  text-decoration: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  outline: none;
  background: transparent;
}
button {
  cursor: pointer;
}

/* FONT FACES */
@import url('https://fonts.googleapis.com/css?family=Playfair+Display:700,900|Lato:400,700&display=swap');

/* MONOCHROME SOPHISTICATED DESIGN TOKENS */
:root {
  --black: #0A0A0C;
  --dark: #212224;
  --gray-darker: #393B3C;
  --gray: #A0A4A8;
  --gray-light: #ECECEC;
  --white: #fff;
  --brand-primary: #335D3A;
  --brand-secondary: #82A87A;
  --brand-accent: #F2F6ED;
  --border-radius: 12px;
  --shadow-card: 0 2px 12px 0 rgba(10,10,12,0.06);
  --shadow-strong: 0 4px 32px -2px rgba(40,40,44,0.11);
  --transition-main: .22s cubic-bezier(0.4,0.1,0.7,1.3);
  --container-max-width: 1170px;
}

/* CONTAINER & SECTION SPACING */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: var(--border-radius);
}
main > section:not(:last-child) {
  margin-bottom: 60px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  color: var(--black);
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.01em;
  text-rendering: optimizeLegibility;
  font-weight: 700;
}
h1 {
  font-size: 2.875rem;
  line-height: 1.16;
}
h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 8px;
}
h3 {
  font-size: 1.375rem;
  line-height: 1.35;
  font-weight: 700;
}
h4 {
  font-size: 1.125rem;
}
p, ul, ol, li, blockquote {
  color: var(--gray-darker);
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1.08rem;
  line-height: 1.7;
  font-weight: 400;
  margin-bottom: 0.75em;
}
strong {
  color: var(--black);
  font-weight: 700;
}
blockquote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  position: relative;
  color: var(--dark);
  margin: 0 0 1em;
  padding: 0 0 0 30px;
  border-left: 4px solid var(--gray);
}

/* BUTTONS & CTA */
.cta-primary, .cta-btn, .cookie-banner button, .mobile-menu-close, .mobile-menu-toggle {
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 700;
  border-radius: 6px;
  background: var(--black);
  color: var(--white);
  padding: 14px 28px;
  font-size: 1.08rem;
  border: none;
  box-shadow: 0 2px 8px rgba(40,40,44,0.12);
  transition: background var(--transition-main), color var(--transition-main), transform var(--transition-main);
  display: inline-block;
  text-decoration: none;
}
.cta-primary:hover, .cookie-banner button:hover, .cta-primary:focus {
  background: var(--brand-primary);
  color: var(--white);
  transform: translateY(-1px) scale(1.02);
}

/* FORM ELEMENTS */
input[type="text"], input[type="email"], textarea {
  background: var(--gray-light);
  border: 1px solid var(--gray);
  color: var(--dark);
  border-radius: 5px;
  padding: 12px 16px;
  margin: 4px 0 16px 0;
  min-width: 220px;
  width: 100%;
  box-sizing: border-box;
  transition: border var(--transition-main);
}
input:focus, textarea:focus {
  border-color: var(--brand-primary);
}

/* FLEX UTILITIES FOR REPEATED PATTERNS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  padding: 32px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 250px;
}
.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;
  background: var(--gray-light);
  box-shadow: var(--shadow-card);
  border-radius: var(--border-radius);
  padding: 20px 28px;
  margin-bottom: 20px;
  max-width: 640px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* HEADER & NAVIGATION */
header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  box-shadow: 0 2px 16px -6px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 20;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 18px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
}
header nav a {
  color: var(--dark);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 6px 4px;
  transition: color var(--transition-main);
}
header nav a:hover, header nav a.active {
  color: var(--brand-primary);
  text-decoration: underline;
}
header .cta-primary {
  margin-left: 20px;
}
header img {
  height: 42px;
  width: auto;
}

/* HERO & SECTION STRUCTURE */
main section {
  margin-bottom: 60px;
}

/* FEATURE GRID */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: stretch;
  justify-content: space-between;
}
.feature-grid > div {
  background: var(--brand-accent);
  flex: 1 1 210px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding: 24px 18px;
  min-width: 220px;
  max-width: 340px;
  transition: box-shadow var(--transition-main), transform var(--transition-main);
}
.feature-grid > div:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-2px) scale(1.01);
}
.feature-grid img {
  width: 48px;
  height: 48px;
}

/* ARTICLES / BLOG COMPONENTS */
.article-previews, .article-teaser-cards, .tips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.article-previews > div, .article-teaser-cards > div, .tips-grid > div {
  background: var(--gray-light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 24px 18px;
  flex: 1 1 250px;
  min-width: 230px;
  max-width: 370px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow var(--transition-main), transform var(--transition-main);
}
.article-previews > div:hover, .article-teaser-cards > div:hover, .tips-grid > div:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-2px) scale(1.01);
}
.article-category-tabs {
  display: flex;
  gap: 16px;
  margin: 0 0 18px 0;
}
.article-category-tabs a {
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 700;
  color: var(--dark);
  background: none;
  border-radius: 18px;
  padding: 7px 18px;
  font-size: 1rem;
  border: 1px solid transparent;
  transition: color var(--transition-main), background var(--transition-main), border-color var(--transition-main);
}
.article-category-tabs a.active, .article-category-tabs a:hover {
  color: var(--white);
  background: var(--brand-primary);
  border-color: var(--brand-primary);
}
.search-filter-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

/* NEWSLETTER SIGNUP benefits */
.newsletter-benefits ul {
  list-style: disc inside;
  margin-bottom: 0;
}

/* TEXT SECTIONS */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* FOOTER */
footer {
  background: var(--black);
  color: var(--gray-light);
  padding: 36px 0 0 0;
  border-top: 1px solid var(--gray-light);
  box-shadow: 0 -10px 24px -8px rgba(0,0,0,0.07);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 1rem;
  justify-content: center;
}
.footer-nav a {
  color: var(--gray-light);
  text-decoration: underline;
  font-weight: 400;
  font-size: 1rem;
  transition: color var(--transition-main), text-decoration var(--transition-main);
}
.footer-nav a:hover {
  color: var(--brand-secondary);
  text-decoration: none;
}
.brand-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 1rem;
  align-items: center;
  justify-content: center;
}
.brand-contact span { display: flex; align-items: center; gap: 7px; }
.brand-contact img { width: 18px; height: 18px; opacity: 0.85; }
.social-media {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin: 10px 0;
}
.social-media a {
  display: flex;
  align-items: center;
  background: var(--gray-light);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  justify-content: center;
  transition: background var(--transition-main);
}
.social-media a:hover { background: var(--brand-secondary); }
.social-media img {
  width: 20px;
  height: 20px;
  filter: grayscale(1) contrast(1.7);
}
.footer-copy {
  font-size: 0.95em;
  color: var(--gray);
  text-align: center;
  margin: 18px 0 0 0;
  letter-spacing: 0.04em;
}

/* HAMBURGER MENU -- MOBILE MENU */
.mobile-menu-toggle {
  position: fixed;
  top: 20px;
  right: 18px;
  width: 46px;
  height: 46px;
  font-size: 2rem;
  background: var(--brand-primary);
  color: var(--white);
  border-radius: 8px;
  z-index: 115;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px 0 rgba(30,35,40,0.14);
  border: none;
  transition: background var(--transition-main), color var(--transition-main);  
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--black);
  color: var(--brand-secondary);
  outline: none;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(14,14,18,0.97);
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-120%);
  transition: transform 0.45s cubic-bezier(.45,.11,.69,1.47);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  position: absolute;
  top: 24px;
  right: 22px;
  width: 40px;
  height: 40px;
  font-size: 2rem;
  background: var(--black);
  color: var(--white);
  border-radius: 20px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-main), color var(--transition-main);
  z-index: 122;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--brand-primary);
  color: var(--brand-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin: 76px 0 0 42px;
}
.mobile-nav a {
  color: var(--white);
  font-size: 1.35rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  padding: 10px 0;
  text-decoration: none;
  transition: color var(--transition-main);
}
.mobile-nav a:hover, .mobile-nav a.active {
  color: var(--brand-secondary);
  text-decoration: underline;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--black);
  color: var(--white);
  z-index: 2000;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  padding: 20px 30px;
  box-shadow: 0 -8px 32px -12px rgba(0,0,0,.17);
  font-size: 1.08rem;
  transition: transform 0.3s ease, opacity 0.3s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner span {
  flex: 1 1 auto;
}
.cookie-banner button {
  margin-left: 12px;
  background: var(--gray-light);
  color: var(--black);
  padding: 10px 18px;
  border-radius: 7px;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  transition: background var(--transition-main), color var(--transition-main), transform var(--transition-main);
}
.cookie-banner .cookie-accept {
  background: var(--brand-primary);
  color: var(--white);
}
.cookie-banner .cookie-accept:hover { background: var(--brand-secondary); color: var(--black); }
.cookie-banner .cookie-settings {
  background: var(--gray-light);
  color: var(--black);
}
.cookie-banner .cookie-reject {
  background: #b1b3b8;
  color: var(--dark);
}
.cookie-banner button:focus,
.cookie-banner button:hover { transform: translateY(-2px) scale(1.04); }

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2200;
  width: 100vw;
  height: 100vh;
  background: rgba(30,30,36,0.67);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.27s cubic-bezier(.44,.09,.52,.95);
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 6px 32px -6px rgba(0,0,0,.23);
  border-radius: 14px;
  padding: 38px 34px 28px 34px;
  min-width: 320px;
  max-width: 96vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal-content h2 {
  font-size: 1.4rem;
  color: var(--brand-primary);
  margin-bottom: 0.7em;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-toggle {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 1.06rem;
}
.cookie-toggle input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--brand-primary);
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  margin-top: 12px;
}
.cookie-modal .close-modal {
  align-self: flex-end;
  background: var(--gray-light);
  color: var(--dark);
  padding: 7px 18px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  margin-top: -16px;
  margin-right: -8px;
  transition: background var(--transition-main), color var(--transition-main);
}
.cookie-modal .close-modal:hover {
  background: var(--brand-primary);
  color: var(--white);
}

/* MODAL ANIMATION */
.cookie-modal-content {
  opacity: 0;
  transform: translateY(48px) scale(.985);
  animation: fadeUpModal 0.4s cubic-bezier(.45,.12,.52,.96) 0.02s 1 normal forwards;
}
@keyframes fadeUpModal {
  0% { opacity: 0; transform: translateY(48px) scale(.984); }
  60% { opacity: 1; transform: translateY(-9px) scale(1.025); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}


/* --- CARD, FAQ, DL, ETC. --- */
dt {
  font-weight: bold;
  color: var(--brand-primary);
  font-size: 1.09rem;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}
dd {
  color: var(--gray-darker);
  margin-bottom: 12px;
}
ul.features, ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 1em 0;
}

/* --- LISTS IN SECTIONS --- */
ul li, ol li {
  margin-bottom: 7px;
  padding-left: 0.4em;
}

/* VISUAL HIERARCHY - SPECIAL TEXTS */
.section h1, .section h2, .section h3 {
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
.section p, .section ul, .section ol {
  margin-bottom: 4px;
}

/* TABLES (for legal pages, not explicit in structure but general) */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2em;
  border: 1px solid var(--gray-light);
}
th, td {
  border: 1px solid var(--gray-light);
  text-align: left;
  padding: 12px 14px;
}
th {
  background: var(--gray-light);
  color: var(--black);
}

/* --- VISUAL MICRO-INTERACTIONS --- */
.card, .testimonial-card, .feature-grid > div, .article-previews > div, .article-teaser-cards > div {
  transition: box-shadow .16s cubic-bezier(.41,.1,.73,.95), transform .16s cubic-bezier(.42,.08,.72,.9);
}
.card:hover, .testimonial-card:hover, .feature-grid > div:hover, .article-previews > div:hover, .article-teaser-cards > div:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: var(--shadow-strong);
}

/* --- SPACING OVERRIDES AND UTILITIES --- */
.mb-20 { margin-bottom: 20px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mb-60 { margin-bottom: 60px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-32 { margin-top: 32px !important; }
.mt-60 { margin-top: 60px !important; }
.gap-24 { gap: 24px !important; }
.gap-20 { gap: 20px !important; }
.gap-12 { gap: 12px !important; }

/* --- RESPONSIVE DESIGN (MOBILE-FIRST APPROACH) --- */
@media (max-width: 1060px) {
  .container {
    max-width: 96vw;
  }
  header .container {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  header nav {
    justify-content: center;
  }
}
@media (max-width: 900px) {
  .feature-grid, .article-previews, .article-teaser-cards, .tips-grid {
    flex-direction: column;
    gap: 20px;
    align-items: stretch !important;
  }
  .feature-grid > div, .article-previews > div, .article-teaser-cards > div, .tips-grid > div {
    max-width: 100%;
    min-width: 0;
  }
  .card-container {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.13rem; }
  .section { margin-bottom: 36px; padding: 30px 6px; }
  main section { margin-bottom: 36px; }
  .container { padding: 0 7px; }
  header nav {
    display: none;
  }
  header .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .content-wrapper, .footer-nav, .brand-contact, .social-media, .text-image-section {
    flex-direction: column !important;
    gap: 18px !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 12px;
  }
}
@media (max-width: 520px) {
  .cookie-banner {
    flex-direction: column;
    gap: 17px;
    padding: 26px 12px 14px 12px;
    font-size: 0.99rem;
  }
  .cookie-banner button,
  .cookie-banner .cookie-accept {
    margin-left: 0;
    margin-top: 8px;
    width: 97%;
  }
  .cookie-modal-content {
    min-width: 84vw;
    padding: 18px 8px;
  }
}

/* --- PRINT OPTIMIZATION (optional) --- */
@media print {
  header, .mobile-menu-toggle, .mobile-menu, .cookie-banner, .cookie-modal, footer {
    display: none !important;
  }
  body { background: #fff; color: #000; }
  a:after { content: '' !important; }
}

/* --- UTILITY CLASSES --- */
.no-scroll {
  overflow: hidden !important;
}

/* END STYLES */
