/* CSS RESET & BASE STYLES */
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;
}
html {scroll-behavior: smooth;}
body {
  background: linear-gradient(135deg, #2C3A47 0%, #F7CA18 100%);
  min-height: 100vh;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #222;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

*, *:before, *:after { box-sizing: inherit; }
img {max-width: 100%; height: auto; display: block;}
a { color: #2C3A47; text-decoration: none; transition: color .2s; }
a:hover, a:focus { color: #F7CA18; }
strong, b { font-weight: 700; }
ul, ol { list-style: inside disc; margin-left: 1.2em; }

.section { margin-bottom: 60px; padding: 40px 20px; }

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  margin-bottom: 16px;
  color: #2C3A47;
}
h1 { font-size: 2.8rem; margin-top: 20px; letter-spacing: -1px; }
h2 { font-size: 2rem; margin-top: 24px; }
h3 { font-size: 1.3rem; margin-top: 20px; }
h4 { font-size: 1.1rem; margin-top: 16px; }
.subheadline {
  color: #555;
  font-size: 1.15rem;
  margin-bottom: 32px;
  margin-top: 0;
  font-weight: 400;
}
p { margin-bottom: 18px; }
blockquote {
  font-size: 1.1rem;
  font-style: italic;
  border-left: 4px solid #F7CA18;
  padding-left: 18px;
  margin: 18px 0;
  color: #2C3A47;
}
cite {
  display: block;
  margin-top: 6px;
  font-size: .98rem;
  color: #646464;
  font-style: normal;
  letter-spacing: .02em;
}

/* BUTTONS (CTA, PRIMARY, ETC.) */
.cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 28px;
  padding: 14px 28px;
  font-size: 1.05rem;
  background: #2C3A47;
  color: #FFF;
  box-shadow: 0 2px 8px rgba(44,58,71,.09);
  margin-top: 18px;
  margin-bottom: 18px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform .15s;
  cursor: pointer;
}
.cta.primary {
  background: linear-gradient(90deg, #2C3A47 65%, #F7CA18 100%);
  color: #fff;
}
.cta.primary:hover, .cta.primary:focus {
  background: #F7CA18;
  color: #2C3A47;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 16px rgba(247, 202, 24, 0.10);
}
.cta:active {
  transform: scale(0.96);
}

/* HEADER & NAVIGATION */
header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 24px rgba(44,58,71,.04);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 12px;
  padding-bottom: 12px;
}
header img[alt^="Attramenis"] { height: 48px; margin-right: 14px; }
nav {
  display: flex;
  gap: 20px;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  padding: 8px 10px;
  border-radius: 20px;
  color: #2C3A47;
  position: relative;
  transition: color .18s, background .18s;
}
nav a:hover, nav a:focus {
  background: #F7CA18;
  color: #2C3A47;
}
.mobile-menu-toggle {
  background: #F7CA18;
  border: none;
  border-radius: 8px;
  font-size: 2rem;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: 12px;
  color: #2C3A47;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 200;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #2C3A47;
  color: #fff;
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; left: 0; bottom: 0;
  background: #fff;
  z-index: 299;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.7,0,.3,1);
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 0 30px rgba(44,58,71,0.16);
  padding: 0 0 0 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 20px 28px 12px 0;
  font-size: 2.4rem;
  background: none;
  border: none;
  color: #2C3A47;
  cursor: pointer;
  z-index: 315;
  padding: 8px 8px;
  border-radius: 6px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { background: #F7CA18; color: #2C3A47; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  padding: 0 40px;
}
.mobile-nav a {
  font-size: 1.3rem;
  padding: 12px 0;
  color: #2C3A47;
  border-radius: 6px;
  width: 100%;
  transition: background .15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F7CA18;
  color: #2C3A47;
}

@media (max-width: 1000px) {
  header .cta.primary { display: none; }
  nav {
    gap: 12px;
  }
}
@media (max-width: 799px) {
  header nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  header .container {
    gap: 12px;
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  header img[alt^="Attramenis"] { height: 40px; }
}

/* MAIN SECTIONS AND FLEX LAYOUTS */
main > section {
  padding: 0;
  margin-bottom: 60px;
}
.content-wrapper {
  background: rgba(255,255,255,0.95);
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(44,58,71,0.06);
  padding: 40px 32px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.content-wrapper.text-section {
  background: rgba(255,255,255, 0.96);
  box-shadow: 0 2px 10px rgba(247,202,24,0.07);
  border-left: 5px solid #F7CA18;
}

@media (max-width: 700px) {
  .content-wrapper { padding: 22px 10px; border-radius: 8px; }
}

.text-section ul, .content-wrapper ul {
  margin-bottom: 18px;
  margin-top: 10px;
}
.text-section li {
  margin-bottom: 8px;
  font-size: 1rem;
}

.feature-grid, .category-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
  margin-bottom: 16px;
  justify-content: space-between;
}
.feature-grid > div, .category-grid > div {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(44,58,71,.07);
  padding: 22px 18px 16px 18px;
  flex: 1 1 250px;
  min-width: 220px;
  max-width: 32%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  transition: box-shadow .18s, transform .18s;
}
.feature-grid > div:hover, .category-grid > div:hover {
  box-shadow: 0 4px 18px rgba(247,202,24,0.13);
  transform: translateY(-3px) scale(1.03);
}
.feature-grid img, .category-grid img {
  height: 38px;
  width: 38px;
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .feature-grid > div, .category-grid > div { max-width: 48%; min-width: 170px; }
}
@media (max-width: 600px) {
  .feature-grid, .category-grid { flex-direction: column; gap: 18px; }
  .feature-grid > div, .category-grid > div { max-width: 100%; }
}

/* CARD CONTAINER AND CARDS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}
.card {
  background: #fff;
  border-radius: 18px;
  margin-bottom: 20px;
  box-shadow: 0 6px 16px rgba(44,58,71,0.06);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 220px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 22px 18px;
  gap: 11px;
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
/* TEXT-IMAGE FLEX SECTIONS */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.text-image-section img {
  border-radius: 8px;
  box-shadow: 0 3px 16px rgba(44,58,71,0.12);
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  padding: 20px 32px;
  border-radius: 14px;
  margin: 0 0 20px 0;
  box-shadow: 0 1px 8px rgba(44,58,71,.09);
  color: #222;
  max-width: 700px;
  width: 100%;
}
.testimonial-card blockquote { color: #1e2832; }
.testimonial-card cite { color: #646464; font-size: .98rem; }
@media (max-width: 600px) {
  .testimonial-card { flex-direction: column; padding: 16px; gap: 12px; }
}

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

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

/* RECIPE HIGHLIGHTS, CATEGORY GRIDS, LOCAL TIPS */
.recipe-highlights, .local-tips, .faq-section {
  background: #fbf9f3;
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 1px 6px rgba(247,202,24,.08);
  margin-bottom: 18px;
  color: #2C3A47;
}
.recipe-highlights ul { margin: 10px 0 0 1.5em; }

/* FOOTER */
footer {
  background: #2C3A47;
  color: #fff;
  padding: 36px 0 26px 0;
  font-size: 1rem;
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
}
.footer-links a {
  color: #F7CA18;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  text-decoration: underline;
}
.footer-links a:hover, .footer-links a:focus { color: #fff; text-decoration: none; }
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #fff;
}
.contact-info div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.contact-info img { height: 20px; opacity: .7; }
.social-media { display: flex; flex-direction: row; gap: 20px; }
.social-media a img {
  width: 28px; height: 28px; filter: grayscale(40%);
  transition: filter .2s, transform .14s;
}
.social-media a:hover img, .social-media a:focus img {
  filter: none; transform: scale(1.08);
}

@media (max-width: 700px) {
  footer .container { gap: 18px; }
  .footer-links { gap: 9px; font-size: .95rem; }
  .contact-info { gap: 4px; }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  color: #222;
  border-top: 3px solid #F7CA18;
  box-shadow: 0 -2px 24px rgba(44,58,71,.08);
  padding: 20px 18px;
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
  z-index: 9000;
  transition: transform .35s cubic-bezier(.7,0,.3,1), opacity .16s;
  font-size: 1rem;
}
.cookie-banner.hidden {
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-message {
  flex: 1;
  min-width: 0;
}
.cookie-banner-actions {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}
.cookie-action {
  background: #2C3A47;
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 10px 22px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  transition: background .15s, color .15s, transform .13s;
}
.cookie-action.settings {
  background: #fff;
  color: #2C3A47;
  border: 2px solid #F7CA18;
}
.cookie-action:hover, .cookie-action:focus {
  background: #F7CA18;
  color: #2C3A47;
  transform: translateY(-2px) scale(1.03);
}
@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    font-size: .99rem;
  }
  .cookie-banner-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }
}

/* COOKIE CONSENT MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 10001;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(44,58,71,0.52);
  opacity: 1; pointer-events: auto;
  transition: opacity .25s cubic-bezier(.5,0,.6,1);
}
.cookie-modal.hidden {
  opacity: 0; pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  color: #2C3A47;
  border-radius: 20px;
  box-shadow: 0 10px 36px rgba(44,58,71,.17);
  padding: 36px 28px 28px 28px;
  min-width: 350px;
  max-width: 96vw;
  display: flex;
  flex-direction: column;
  gap: 21px;
  position: relative;
  animation: cookie-modal-fadeIn .5s cubic-bezier(.5,0,.6,1);
}
@keyframes cookie-modal-fadeIn {
  from { opacity: 0; transform: translateY(44px); }
  to { opacity: 1; transform: none; }
}
.cookie-modal-content h2 {
  font-size: 1.4rem; margin-bottom: 7px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 11px;
}
.cookie-category .switch {
  margin-left: auto;
}
.cookie-modal-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 14px;
}
.cookie-modal-close {
  position: absolute; right: 13px; top: 13px;
  background: none; border: none;
  font-size: 1.6rem; color: #2C3A47;
  cursor: pointer;
  padding: 4px 5px;
  border-radius: 5px;
  transition: background .16s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus { background: #F7CA18; }

.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #ddd;
  transition: background .2s;
  border-radius: 22px;
}
.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px; width: 18px;
  left: 2px; bottom: 2px;
  background: #fff;
  transition: .18s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(44,58,71,0.10);
}
.switch input:checked + .switch-slider {
  background: #F7CA18;
}
.switch input:checked + .switch-slider:before {
  transform: translateX(16px);
  background: #2C3A47;
}
.switch[aria-disabled="true"] .switch-slider {
  background: #c4c4c4;
  cursor: not-allowed;
}
.switch[aria-disabled="true"] .switch-slider:before {
  background: #bbbbbb;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 1100px) {
  .container { max-width: 98vw; }
  .feature-grid>div, .category-grid>div { max-width: 46%; }
}
@media (max-width: 770px) {
  .container { max-width: 99vw; padding: 0 6px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.08rem; }
}
@media (max-width: 500px) {
  body { font-size: 15px; }
  h1 { font-size: 1.65rem; }
}


/* MICRO-INTERACTIONS & EFFECTS */
.card, .feature-grid>div, .category-grid>div, .testimonial-card, .content-wrapper, .cookie-modal-content {
  transition: box-shadow .18s, transform .14s;
}
.card:hover, .feature-grid>div:hover, .category-grid>div:hover, .testimonial-card:hover {
  box-shadow: 0 6px 24px rgba(247,202,24,0.09), 0 2px 10px rgba(44,58,71,0.07);
  transform: translateY(-2px) scale(1.015);
}

/* FOCUS STATES */
a:focus, button:focus, .cta:focus, .cookie-action:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: 2px solid #F7CA18;
  outline-offset: 2px;
}

/* OVERRIDES FOR SPACING AND FLEX REQUIREMENTS */
section, .content-wrapper, .card-container, .card, .content-grid, .text-image-section, .testimonial-card, .feature-item {
  margin-bottom: 20px;
}
.card-container, .content-grid, .feature-grid, .category-grid {
  gap: 24px;
}
.testimonial-card, .card, .feature-grid > div, .category-grid > div {
  margin-bottom: 20px;
}

/* Ensure no content overlap */
.card, .feature-grid > div, .testimonial-card, .content-wrapper {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Hide inner scrollbars on mobile menu & modal */
.mobile-menu, .cookie-modal-content { -ms-overflow-style: none; scrollbar-width: none; }
.mobile-menu::-webkit-scrollbar, .cookie-modal-content::-webkit-scrollbar { display: none; }

/* Hide mobile menu by default, show only when .active is set (JS responsibility) */
.mobile-menu { display: flex; }
@media (min-width: 800px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* End of CSS */
