/* ======================
   CSS RESET & NORMALIZATION
   ====================== */
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,main,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,main,menu,nav,section {
  display: block;
}
body {
  line-height: 1.5;
  background: #FFFDF7;
  color: #2A211C;
}
*,*::before,*::after { box-sizing: border-box; }
ul,ol { list-style: none; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
img {
  max-width: 100%;
  display: block;
  border: 0;
}
button, input, select, textarea {
  font: inherit;
  background: none;
  border: none;
  outline: none;
  color: inherit;
}
button { cursor: pointer; }

/* ======================
   VINTAGE RETRO BRAND COLOR PALETTE
   ====================== */
:root {
  --primary: #24576D;
  --secondary: #F5E3C5;
  --accent: #86B284;
  --retro-orange: #CE8159;
  --retro-yellow: #FFD978;
  --retro-brown: #775545;
  --retro-cream: #F8F4ED;
  --retro-green: #497B44;
  --retro-red: #C14B4B;
  --neutral-dark: #2A211C;
  --vintage-bg: #FFFDF7;
}

/* ======================
   FONTS
   ====================== */
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Merriweather:700,900&display=swap');
html {
  font-size: 16px;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: var(--vintage-bg);
  color: var(--neutral-dark);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', serif;
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 0.03em;
  margin-bottom: 0.65em;
  margin-top: 0;
}
h1 {
  font-size: 2.6rem;
  color: var(--retro-orange);
  text-shadow: 0 2px 0 #FFF9DF;
}
h2 {
  font-size: 2rem;
  color: var(--retro-green);
}
h3 {
  font-size: 1.4rem;
  color: var(--retro-brown);
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, ul li, ol li, dd {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.2em;
  color: var(--neutral-dark);
}
strong { color: var(--retro-brown); font-weight: bold; }

/* ======================
   GENERAL LAYOUT WRAPPER
   ====================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--secondary);
  border-radius: 32px;
  box-shadow: 0 8px 22px -10px #C7B49133, 0 1.5px 0 #ECAE6B0A;
}
.section:last-child { margin-bottom: 0; }

/* ======================
   HEADER/NAVIGATION
   ====================== */
header {
  background: var(--retro-cream);
  box-shadow: 0 4px 16px -7px #A5907F33;
  position: relative;
  z-index: 100;
}
header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 0;
}
header nav > a img { height: 56px; width: auto; }
header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
header nav ul li {
  font-family: 'Merriweather', serif;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 2px 0;
}
header nav ul li a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 20px;
  color: var(--primary);
  background: transparent;
  transition: background 0.18s, color 0.15s;
  position: relative;
}
header nav ul li a:hover, header nav ul li a:focus {
  background: var(--retro-yellow);
  color: var(--retro-brown);
  outline: none;
}
header nav .btn-primary {
  margin-left: auto;
  font-size: 1.05rem;
  border-radius: 24px;
  font-weight: 700;
}

/* ======================
   HERO SECTION
   ====================== */
.hero {
  background: repeating-linear-gradient(135deg, #F5E3C5 0 10px, #FFFDF7 10px 22px);
  margin-bottom: 44px;
  padding: 70px 0 50px 0;
  border-radius: 0 0 44px 44px;
  box-shadow: 0 18px 40px -18px #C6B89E60;
}
.hero .container { max-width: 900px; }
.hero .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 32px;
}
.hero h1 {
  font-size: 2.5rem;
  color: var(--retro-orange);
  text-shadow: 0 1px 0 #FFF9DF;
}
.hero p {
  color: var(--neutral-dark);
  font-size: 1.17rem;
}
.hero .btn-primary {
  padding: 16px 36px;
  font-size: 1.14rem;
}

/* ======================
   VINTAGE BUTTONS
   ====================== */
.btn-primary, .btn-secondary {
  display: inline-block;
  font-family: 'Merriweather', serif;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 100px;
  padding: 12px 32px;
  margin: 8px 0;
  background: var(--primary);
  color: var(--secondary);
  border: 2px solid var(--accent);
  box-shadow: 0 3px 0 var(--accent);
  letter-spacing: 0.02em;
  transition: background 0.18s, color 0.16s, box-shadow 0.18s, border 0.15s;
  cursor: pointer;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--retro-orange);
  color: var(--retro-brown);
  border-color: var(--retro-yellow);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 20px -6px #FFD97855;
}
.btn-secondary {
  background: var(--retro-yellow);
  color: var(--retro-brown);
  border-color: var(--primary);
  box-shadow: 0 3px 0 var(--retro-brown);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--retro-orange);
  color: var(--secondary);
  border-color: var(--retro-brown);
}

/* ======================
   FEATURE ITEMS & LISTS
   ====================== */
.feature_grid, .service_list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 18px 0 28px 0;
}
.feature_grid li, .service_list li {
  background: var(--retro-cream);
  color: var(--retro-brown);
  border-radius: 22px;
  box-shadow: 0 1.5px 0 #D4C1A2;
  padding: 24px 24px 20px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 260px;
  flex: 1 1 250px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1.05rem;
  margin-bottom: 20px;
}
.feature_grid img, .service_list img {
  width: 36px; height: 36px; flex-shrink: 0;
}
.service_list span {
  display: block;
  font-size: 0.97rem;
  color: var(--primary);
  margin-top: 7px;
}

/* ======================
   CARDS (Generic)
   ====================== */
.card-container, .service-cards, .articles-grid, .nutrition-topics-grid, .guides-card-group {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card, .service-card, .article-card, .guide-summary-card, .nutrition-topic {
  background: var(--retro-yellow);
  border-radius: 26px;
  box-shadow: 0 2px 24px -6px #C0962255;
  padding: 28px 26px 24px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  flex: 1 1 260px;
  font-family: 'Open Sans', sans-serif;
  border: 2px solid #FAEAC3;
}
.article-card h2 {
  margin-top: 0;
  font-size: 1.22rem;
  color: var(--retro-brown);
}
.article-card p, .guide-summary-card p, .nutrition-topic p {
  font-size: 1rem;
  color: var(--neutral-dark);
}
.article-card a.btn-secondary {
  align-self: flex-start;
  margin-top: 10px;
}

/* =============================
   TESTIMONIALS & DISTINCTIVE CARDS
   ============================= */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: var(--retro-cream);
  border-radius: 22px;
  border: 2.5px dashed var(--retro-orange);
  box-shadow: 0 2.5px 0 #e5c29e33, 0 6px 24px -6px #c6b89e13;
  padding: 20px;
  margin-bottom: 20px;
  max-width: 430px;
  min-width: 0;
}
.testimonial-card p {
  color: var(--neutral-dark);
  line-height: 1.6;
  font-style: italic;
  font-size: 1.06rem;
}
.testimonial-card span {
  align-self: flex-end;
  font-weight: bold;
  color: var(--retro-green);
  font-family: 'Merriweather', serif;
}

/* ======================
   SECTION PATTERNS
   ====================== */
.benefit-banner, .cta-banner, .cta-section, .highlight {
  background: var(--retro-yellow);
  padding: 40px 20px;
  border-radius: 32px;
  margin-bottom: 60px;
  box-shadow: 0 7px 32px -10px #d4c69633;
}
.benefit-banner ul, .cta-banner ul {
  margin-top: 14px;
  padding-left: 18px;
  list-style: disc;
  color: var(--retro-brown);
}
.cta-banner .btn-primary, .cta-section .btn-primary {
  margin-top: 26px;
  font-size: 1.15rem;
}

/* ======================
   FOOTER
   ====================== */
footer {
  background: var(--primary);
  color: var(--secondary);
  padding: 40px 0 10px 0;
  margin-top: 40px;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  box-shadow: 0 -3px 16px -6px #5F5044;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
footer nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 18px;
}
footer nav ul li a {
  color: var(--retro-yellow);
  font-family: 'Merriweather', serif;
  font-size: 1.01rem;
  opacity: 0.87;
  transition: opacity 0.14s;
}
footer nav ul li a:hover { opacity: 1; text-decoration: underline; }
footer .contact-small {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.97rem;
  align-items: center;
  margin-bottom: 8px;
}
footer .contact-small img { height: 18px; width: 18px; margin-right: 5px; }
footer .footer-logo img {
  height: 40px;
  margin-top: 3px;
}

/* ======================
   TEXT SECTIONS & GRIDS
   ====================== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 17px;
  max-width: 790px;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =============================
   TABLES (vintage pattern)
   ============================= */
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--retro-cream);
  box-shadow: 0 2.5px 0 #E0C8AE33;
  margin: 32px 0;
  border-radius: 16px;
  overflow: hidden;
}
thead, th, td {
  font-family: 'Merriweather', serif;
  padding: 12px;
}
th {
  background: var(--retro-orange);
  color: var(--secondary);
  font-size: 1.03rem;
}
td {
  border-bottom: 1px solid #efdec3;
}
table caption {
  caption-side: top;
  font-size: 1.01rem;
  margin-bottom: 6px;
  color: var(--retro-green);
}

/* ======================
   ARTICLE AND GUIDE CARDS
   ====================== */
.articles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 14px;
}
.article-card {
  min-width: 245px;
  flex: 1 1 245px;
}
.guides-card-group {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.guide-summary-card {
  min-width: 220px;
  flex: 1 1 220px;
}
.nutrition-topics-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.nutrition-topic {
  min-width: 220px;
  flex: 1 1 220px;
}
.diet-plan-descriptions {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.diet-consultation-cta {
  margin-top: 8px;
}

/* ======================
   HIGHLIGHT/EXPERT TIPS
   ====================== */
.highlighted-tip {
  background: var(--retro-orange);
  color: var(--secondary);
  padding: 18px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-family: 'Merriweather', serif;
  font-weight: bold;
  margin: 14px 0 9px 0;
  box-shadow: 0 2px 0 #D4A87122;
}
.expert-insight {
  background: var(--retro-cream);
  color: var(--retro-brown);
  font-style: italic;
  padding: 13px 16px;
  border-radius: 9px;
  margin-bottom: 8px;
  border-left: 3.5px solid var(--retro-green);
}

/* ======================
   SOCIAL LINKS
   ====================== */
.social-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.social-links li { display: flex; align-items: center; font-size: 1.05rem; }
.social-links img { width: 24px; height: 24px; margin-right: 7px; }

/* ====================
   FORMATTING <address>
   ==================== */
address {
  margin-top: 8px;
  font-size: 1.01rem;
  font-style: normal;
  color: var(--retro-green);
}

/* ====================
   MODAL, COOKIE BANNER, OVERLAYS
   ==================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1006;
  background: var(--retro-orange);
  color: var(--secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 22px 14px 20px 14px;
  box-shadow: 0 -4px 18px -6px #77554540;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  animation: bannerAppear 0.7s cubic-bezier(.32,1.09,.48,.98);
  font-size: 1rem;
}
@keyframes bannerAppear {
  0% { transform: translateY(100%); opacity: 0; }
  80% { opacity: 1; }
  100% { transform: translateY(0); }
}
.cookie-banner-buttons {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}
.cookie-banner .btn-accept, .cookie-banner .btn-accept-all {
  background: var(--retro-green);
  color: var(--retro-yellow);
  border: 2px solid var(--secondary);
  font-weight: bold;
  border-radius: 24px;
  transition: background 0.13s, color 0.14s, box-shadow 0.17s;
  padding: 10px 24px;
}
.cookie-banner .btn-accept:hover, .cookie-banner .btn-accept-all:hover {
  background: var(--retro-yellow);
  color: var(--retro-brown);
  border-color: var(--retro-brown);
}
.cookie-banner .btn-reject {
  background: var(--retro-red);
  color: var(--secondary);
  border-radius: 20px;
  padding: 10px 22px;
  border: 2px solid var(--secondary);
}
.cookie-banner .btn-reject:hover {
  background: var(--retro-brown);
  color: var(--retro-yellow);
}
.cookie-banner .btn-settings {
  background: var(--retro-yellow);
  color: var(--retro-brown);
  border-radius: 20px;
  padding: 10px 18px;
  border: 2px solid var(--primary);
  margin-left: 2px;
}
.cookie-banner .btn-settings:hover {
  background: var(--secondary);
  color: var(--retro-green);
  border-color: var(--retro-green);
}

.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #2a211c7d;
  z-index: 1007;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modal-fade-in 0.38s;
}
@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--secondary);
  color: var(--neutral-dark);
  border-radius: 21px;
  box-shadow: 0 8px 40px -14px #b7a28677;
  max-width: 393px;
  min-width: 290px;
  padding: 30px 28px 22px 28px;
  text-align: left;
  position: relative;
  animation: modalAppear 0.38s cubic-bezier(.38,1.17,.29,1.03);
  z-index: 1008;
}
@keyframes modalAppear {
  0% { transform: scale(0.98) translateY(90px); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.32rem;
  font-family: 'Merriweather', serif;
  color: var(--primary);
}
.cookie-modal-categories {
  margin: 17px 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-category-row input[type=checkbox] {
  accent-color: var(--retro-green);
  width: 18px;
  height: 18px;
}
.cookie-modal-actions {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  margin-top: 10px;
}
.cookie-modal-close {
  position: absolute;
  top: 10px; right: 14px;
  background: none;
  border: none;
  font-size: 1.54rem;
  color: var(--neutral-dark);
  opacity: 0.85;
  cursor: pointer;
  transition: color 0.14s;
}
.cookie-modal-close:hover {
  color: var(--retro-red);
}

/* ======================
   MOBILE NAVIGATION
   ====================== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 22px; right: 22px;
  background: var(--retro-green);
  color: var(--secondary);
  border: 0;
  border-radius: 17px;
  width: 42px; height: 42px;
  font-size: 2.1rem;
  z-index: 1002;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px -3px #88888825;
  transition: background 0.16s, color 0.16s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: var(--retro-orange);
  color: var(--retro-brown);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  z-index: 1004;
  background: var(--primary);
  color: var(--secondary);
  transform: translateX(105%);
  transition: transform 0.38s cubic-bezier(.62,1.41,.56,.8);
  padding-top: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 24px 0 #2A211C33;
}
.mobile-menu.active { transform: translateX(0); }
.mobile-menu-close {
  background: none;
  color: var(--retro-yellow);
  border: 0;
  font-size: 2.4rem;
  position: absolute;
  top: 20px; right: 27px;
  opacity: 0.8;
  transition: color 0.14s, opacity 0.13s;
}
.mobile-menu-close:hover {
  color: var(--retro-orange);
  opacity: 1;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin: 82px 0 0 33px;
  font-size: 1.19rem;
}
.mobile-nav a {
  color: var(--retro-yellow);
  font-family: 'Merriweather', serif;
  padding: 10px 6px 6px 2px;
  border-radius: 12px;
  transition: background 0.16s, color 0.13s;
}
.mobile-nav a:hover {
  background: var(--retro-orange);
  color: var(--secondary);
}

/* ======================
   MEDIA QUERIES: RESPONSIVE
   ====================== */
@media (max-width: 970px) {
  header nav ul { gap: 10px; }
  .container { max-width: 99vw; padding: 0 14px; }
  .section, .benefit-banner, .cta-banner, .cta-section, .highlight { padding: 31px 5px; }
  .hero { padding: 41px 0 36px 0; }
  .content-wrapper, .card-container, .service-cards, .articles-grid,
  .nutrition-topics-grid, .guides-card-group { gap: 12px; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  header nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 7px 0;
  }
  header nav ul { display: none; }
  header nav .btn-primary { display: none; }
  .mobile-menu-toggle { display: flex; }
  .card-container, .service-cards, .articles-grid,
  .nutrition-topics-grid, .guides-card-group {
    flex-direction: column;
    gap: 16px;
  }
  .content-grid,
  .feature_grid,
  .service_list {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section { flex-direction: column; gap: 16px; }
  .testimonial-card { max-width: 100%; }
  .social-links ul, .footer .container, .contact-small, .footer-logo {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 540px) {
  .section, .benefit-banner, .cta-banner, .cta-section, .highlight {
    padding: 15px 2px;
    margin-bottom: 35px;
    border-radius: 18px;
  }
  .hero { border-radius: 0 0 22px 22px; }
  h1 { font-size: 1.45rem; }
  footer { padding: 13px 0 4px 0; border-radius: 12px 12px 0 0; }
  .container { padding: 0 4px; }
}

/* ======================
   MICRO-INTERACTIONS
   ====================== */
.btn-primary, .btn-secondary, .cookie-banner .btn-accept, .cookie-banner .btn-accept-all, .cookie-banner .btn-reject, .cookie-banner .btn-settings {
  transition: background 0.15s, color 0.13s, box-shadow 0.16s, border 0.13s, transform 0.14s;
}
.card, .service-card, .article-card, .guide-summary-card, .nutrition-topic {
  transition: box-shadow 0.23s, transform 0.13s;
}
.card:hover, .service-card:hover, .article-card:hover, .guide-summary-card:hover, .nutrition-topic:hover {
  box-shadow: 0 12px 36px -12px #B69A4477;
  transform: translateY(-4px) scale(1.03);
}
input, textarea, select {
  background: var(--retro-cream);
  color: var(--neutral-dark);
  border: 2px solid #D7CAA2;
  border-radius: 9px;
  padding: 8px 12px;
  margin-bottom: 15px;
  outline: none;
  font-size: 1rem;
  transition: border 0.14s, box-shadow 0.12s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--retro-brown);
  box-shadow: 0 0 2px 2px #E4C59755;
}

/* ======================
   Vintage/Nostalgic Decorative Elements (Subtle)
   ====================== */
.section,
.benefit-banner,
.cta-banner,
.cta-section,
.highlight {
  background-image: repeating-linear-gradient(135deg, #fff7ed 0 9px, transparent 9px 24px);
}

/* ======================
   MISC (Ensuring No Overlapping)
   ====================== */
.card, .service-card, .article-card, .guide-summary-card, .nutrition-topic,
.testimonial-card, .feature_grid li, .service_list li {
  margin-bottom: 20px;
}
.section, .benefit-banner, .cta-banner, .cta-section, .highlight { margin-bottom: 60px; }
.card-container, .content-grid, .testimonial-card, .feature-item {
  gap: 20px;
}

/* ======================
   END OF CSS
   ====================== */
