/*
============================================
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,
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;
  background: #F4EAD5;
}
body {
  background: #F4EAD5; /* secondary from guidelines */
  color: #2d2d2d;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

ul, ol {
  margin-left: 24px;
  margin-bottom: 20px;
}
li + li {
  margin-top: 8px;
}
a {
  color: #205361; /* Brand primary */
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #B05700; /* Accent */
  text-decoration: underline;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
strong {
  font-weight: 700;
}
em {
  font-style: italic;
}

/*
============================================
TYPOGRAPHY
============================================
*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  color: #205361;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  text-shadow: 2px 2px 0 #FFE5B4;
}
h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  text-shadow: 1px 1px 0 #ffe7ba;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
p, li, ul, ol {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
}

/* Retro/Vintage-Style Accent Font for Logo/Headers */
@font-face {
  font-family: 'Pacifico';
  font-style: normal;
  font-weight: 400;
  src: local('Pacifico'), url('https://fonts.googleapis.com/css?family=Pacifico&display=swap');
}
.header-logo-font {
  font-family: 'Pacifico', 'Montserrat', cursive;
  font-size: 2.3rem;
  color: #B05700;
  letter-spacing: 0.07em;
}

/*
============================================
LAYOUT CONTAINERS & SPACING
============================================
*/
.container {
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff8ed;
  border-radius: 24px;
  box-shadow: 0 2px 8px rgba(32, 83, 97, 0.07), 0 0.5px 2px #E5C08D;
}
@media (max-width: 992px) {
  .container {
    max-width: 960px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .section {
    padding: 30px 8px;
  }
}
@media (max-width: 500px) {
  .section {
    margin-bottom: 34px;
    padding: 24px 2px;
    border-radius: 13px;
  }
}

/*
============================================
NAVIGATION & HEADER
============================================
*/
header {
  width: 100%;
  background: #fff8ed url('../assets/pattern-retro.svg') repeat-x 0 100%; /* For vintage pattern if available */
  border-bottom: 4px solid #B05700;
  box-shadow: 0 6px 18px -3px #d1b6812e;
  position: relative;
  z-index: 900;
}
nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 14px 0;
}
nav img {
  height: 48px;
  width: auto;
  margin-right: 20px;
}
nav ul {
  display: flex;
  flex-direction: row;
  gap: 28px;
  list-style: none;
  align-items: center;
}
nav ul li a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #205361;
  text-decoration: none;
  transition: color 0.18s;
  letter-spacing: 0.03em;
  border-radius: 3px;
  padding: 6px 10px;
}
nav ul li a:hover,
nav ul li a:focus {
  color: #fff;
  background: #B05700;
  text-decoration: none;
}
.cta-primary {
  background: #B05700;
  color: #fff8e8;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  border: none;
  border-radius: 28px;
  padding: 10px 28px;
  box-shadow: 0 3px 14px -5px #2053613d;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.13s;
  letter-spacing: 0.03em;
  margin-left: 12px;
  outline: none;
  text-align: center;
  display: inline-block;
}
.cta-primary:hover, .cta-primary:focus {
  background: #205361;
  color: #fffbd9;
  transform: translateY(-2px) scale(1.05);
}

/*
============================================
MOBILE BURGER MENU
============================================
*/
.mobile-menu-toggle {
  display: none;
  background: #B05700;
  color: #fff;
  border: none;
  border-radius: 40px;
  font-size: 2rem;
  width: 46px;
  height: 46px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px 0 #0002;
  position: absolute;
  right: 22px;
  top: 14px;
  z-index: 1201;
  transition: background 0.2s;
}
.mobile-menu-toggle:active,
.mobile-menu-toggle:focus {
  background: #205361;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #F4EAD5ee;
  box-shadow: 4px 0 50px #B0570050;
  z-index: 1200;
  padding: 24px 32px 16px 28px;
  transform: translateX(-105vw);
  transition: transform 0.35s cubic-bezier(0.27,0.82,0.31,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #B05700;
  font-size: 2.2rem;
  align-self: flex-end;
  margin-bottom: 16px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 18px;
  width: 100%;
}
.mobile-nav a {
  color: #205361;
  background: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.19rem;
  padding: 10px 4px;
  border-radius: 4px;
  transition: color 0.15s, background 0.21s;
  text-align: left;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #B05700;
  color: #fffbe8;
}
@media (max-width: 1024px) {
  nav ul {
    gap: 15px;
  }
  .cta-primary {
    padding: 8px 12px;
    font-size: 1rem;
    margin-left: 0;
  }
  nav {
    gap: 12px;
  }
}
@media (max-width: 880px) {
  nav ul {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .cta-primary {
    display: none;
  }
}

/*
============================================
MAIN SECTION FLEX GRID LAYOUTS
============================================
*/
.card-container, .card-grid, .feature-grid, .testimonial-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-grid > div, .testimonial-grid > .testimonial-card, .card-grid > .card {
  min-width: 250px;
  flex: 1 1 250px;
  margin-bottom: 20px;
  position: relative;
  background: #fffdf7;
  border-radius: 16px;
  border: 1.8px solid #ece2c4;
  box-shadow: 0 2px 8px #e6c89870;
  padding: 26px 16px 21px 22px;
  transition: box-shadow 0.16s, transform 0.19s;
}
.feature-grid > div:hover,
.card-grid > .card:hover {
  box-shadow: 0 6px 23px -2px #20536123, 0 1.4px 10px #B0570021;
  transform: translateY(-6px) scale(1.025);
  z-index: 1;
}
@media (max-width: 900px) {
  .card-container, .card-grid, .feature-grid, .testimonial-grid, .content-grid {
    gap: 16px;
  }
  .feature-grid > div, .testimonial-grid > .testimonial-card, .card-grid > .card {
    min-width: 180px;
    font-size: 0.97rem;
    padding: 16px 10px 16px 13px;
  }
}
@media (max-width: 768px) {
  .card-container, .card-grid, .feature-grid, .testimonial-grid, .content-grid {
    flex-direction: column;
    gap: 11px;
  }
  .feature-grid > div, .testimonial-grid > .testimonial-card, .card-grid > .card {
    width: 100%;
    min-width: 0;
    margin-bottom: 20px;
  }
}

.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 16px;
  background: #fffdf7;
  box-shadow: 0 2px 8px #e6c89870;
  border: 1.6px solid #ece2c4;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 20px 16px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #f4ead5;
  border-radius: 14px;
  border: 1.3px dashed #B05700;
  box-shadow: 0 2.5px 10px 0 #d97b0117;
  color: #222;
  font-size: 1rem;
  min-width: 220px;
}
.testimonial-card strong {
  color: #205361;
  font-size: 1.07rem;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.02em;
}

/* Ensure readable testimonials */
.testimonial-card p, .testimonial-card strong {
  color: #1b2222;
  background: none;
}

/* Misc content patterns */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/*
============================================
HIGHLIGHTED & SPECIAL TEXT BLOCKS
============================================
*/
.highlighted {
  background: #F4EAD5;
  border-left: 5px solid #B05700;
  padding: 12px 18px;
  margin: 18px 0;
  border-radius: 8px;
  color: #3e3424;
  font-size: 1.09rem;
}
.price {
  font-family: 'Montserrat',Arial,sans-serif;
  color: #B05700;
  font-weight: 700;
  font-size: 1.09rem;
  letter-spacing: 0.01em;
  margin-top: 8px;
  display: inline-block;
  padding: 0 4px;
}

/*
============================================
BUTTONS & LINKS
============================================
*/
button, .cta-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  transition: background 0.16s, color 0.17s, box-shadow 0.12s, transform 0.14s;
  outline: none;
}
button:active {
  transform: scale(0.97);
}

/*
============================================
FOOTER LAYOUT
============================================
*/
footer {
  background: #205361;
  color: #fffbe5;
  padding: 0 0 0 0;
  border-top: 4px solid #B05700;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
  padding: 32px 0 12px 0;
}
.footer-main img {
  height: 60px;
  width: auto;
  margin-bottom: 20px;
}
.footer-nav,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  color: #F4EAD5;
  font-family: 'Montserrat', Arial, sans-serif;
  text-decoration: underline dotted rgba(255, 187, 72, 0.29);
  margin-bottom: 2px;
  font-size: 1.01rem;
  transition: color 0.13s;
}
.footer-nav a:hover {
  color: #B05700;
}
.footer-contact a {
  color: #fff7e3;
  font-weight: 600;
}
.footer-legal {
  border-top: 1.5px solid #ffffff42;
  padding: 14px 0 0 0;
  text-align: center;
  font-size: 0.95em;
  color: #ece2c4;
}
@media (max-width: 900px) {
  .footer-main {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
  }
  .footer-nav, .footer-contact {
    margin-top: 10px;
    margin-bottom: 10px;
  }
}

/*
============================================
COOKIE CONSENT BANNER & MODAL
============================================
*/
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff8edfb;
  border-top: 2px solid #B05700;
  box-shadow: 0 -2px 20px #B0570021;
  padding: 20px 14px 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  z-index: 3000;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.33s ease, opacity 0.28s;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(180%);
  pointer-events: none;
  display: none;
}
.cookie-banner p {
  color: #333417;
  font-size: 1.06rem;
}
.cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-btn {
  padding: 8px 20px;
  border-radius: 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border: 2px solid #205361;
  color: #205361;
  background: #f4ead5;
  font-weight: 600;
  margin-right: 3px;
  transition: background 0.18s, color 0.17s, border 0.19s, transform 0.14s;
  cursor: pointer;
}
.cookie-btn.accept {
  background: #B05700;
  color: #fff;
  border-color: #B05700;
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: #DA8436;
}
.cookie-btn.reject {
  background: #fff8ed;
  color: #B05700;
  border-color: #B05700;
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: #F4EAD5;
  color: #205361;
}
.cookie-btn.settings {
  background: #205361;
  color: #fff8e8;
  border-color: #205361;
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: #B05700;
  border-color: #B05700;
  color: #fff;
  transform: scale(0.97);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 4px 14px 8px;
  }
}

/* Cookie Modal */
.cookie-modal-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #20536177;
  z-index: 4400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.cookie-modal-backdrop.active {
  display: block;
  pointer-events: all;
  opacity: 1;
}
.cookie-modal {
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: fixed;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%) scale(0.97);
  background: #fff8ed;
  border-radius: 20px;
  border: 2px solid #B05700;
  box-shadow: 0 8px 32px #2053612b;
  max-width: 95vw;
  width: 410px;
  z-index: 4500;
  padding: 28px 26px 22px 26px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s, transform 0.27s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) scale(1);
}
.cookie-modal-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #B05700;
  position: absolute;
  top: 15px;
  right: 18px;
  cursor: pointer;
  line-height: 1;
}
.cookie-modal h2 {
  font-size: 1.19rem;
  margin-bottom: 9px;
}
.cookie-category-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-category-row label {
  flex: 1 1 auto;
}
.toggle-switch {
  position: relative;
  width: 36px;
  height: 20px;
  display: inline-block;
}
.toggle-switch input[type=checkbox]{
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #ece2c4;
  border-radius: 18px;
  transition: background 0.15s;
}
.toggle-switch input:checked + .toggle-slider {
  background: #B05700;
}
.toggle-slider:before {
  position: absolute;
  content: '';
  height: 14px;
  width: 14px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.17s;
  box-shadow: 0 0.5px 2px #b0570034;
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(16px);
}

/*
============================================
RETRO/VINTAGE VISUAL STYLING
============================================
*/
body, .section, .footer-main, nav, .cookie-banner, .cookie-modal {
  /* Subtle repeat pattern overlay for vintage feel, fallback solid */
  /*background-image: url('../assets/pattern-retro.svg'); background-repeat:repeat;*/
  /* For full compatibility, keep to solid/light patterns ici */
}

.section, .feature-grid > div, .testimonial-card, .card {
  /* Retro outline and shadow for nostalgia */
  border-radius: 18px;
  border: 2.6px solid #DA8436;
  box-shadow: 0 2px 16px #20536124, inset 0 0.5px 0 #FFEEB1;
}
.header-logo-font, h1, h2 {
  text-shadow: 1.5px 1.5px 0 #fff8e0, 2.5px 2.5px 0 #ffe7b7;
}
.feature-grid > div img,
.feature-item img {
  width: 49px;
  height: 49px;
  object-fit: contain;
  margin-bottom: 8px;
  border-radius: 6px;
  background: #fdedd3;
  border: 2px solid #ece2c4;
  box-shadow: 0 3px 8px #e6c89844;
}

/**** Nostalgic dotted line pattern ****/
hr, .nostalgic-sep {
  border: none;
  border-top: 3.5px dotted #B05700;
  width: 60px;
  margin: 32px auto 24px auto;
  background: none;
}

/*
============================================
MISCELLANEOUS STYLE UTILS
============================================
*/
.mt-2 { margin-top: 8px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-8 { margin-bottom: 32px; }
.align-center { text-align: center; }

/*
============================================
RESPONSIVE IMPROVEMENTS
============================================
*/
@media (max-width: 600px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.25rem; }
  h3 { font-size: 1.02rem; }
  .cta-primary { font-size: 0.99rem; padding: 7px 18px; }
  nav img, .footer-main img {height: 36px;}
  .container {padding-left: 5px; padding-right: 5px;}
  .card, .feature-grid > div, .testimonial-card {padding: 12px 7px;}
}

/*
============================================
ANIMATION CLASSES
============================================
*/
.fade-in {
  animation: fadeIn 0.7s cubic-bezier(0.44,0.09,0.31,1.02) both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-in-left {
  animation: slideInLeft 0.45s cubic-bezier(0.19,1,0.22,1) both;
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}

.slide-in-bottom {
  animation: slideInBottom 0.5s cubic-bezier(0.19,1,0.22,1) both;
}
@keyframes slideInBottom {
  from { opacity: 0; transform: translateY(70px); }
  to { opacity: 1; transform: translateY(0); }
}
