/* 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;
}
body {
  line-height: 1.5;
  background: #F7F3EF;
  color: #304567;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font: inherit;
  outline: none;
  border: none;
  background: none;
}
strong {
  font-weight: bold;
}

/* --- VINTAGE RETRO COLOR PALETTE & FONTS --- */
:root {
  --color-primary: #304567;
  --color-secondary: #F7F3EF;
  --color-accent: #A8927E;
  --color-accent-dark: #796047;
  --color-warning: #D18A62;
  --color-success: #4C7551;
  --color-error: #AD4033;
  --color-contrast-header: #FCF6ED;
  --color-card-bg: #FCF6ED;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* --- RETRO PATTERNS (SUBTLE) --- */
body {
  background-color: var(--color-secondary);
  background-image: repeating-linear-gradient(135deg, #ede6dc 0px, #ede6dc 8px, transparent 8px, transparent 32px);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-accent-dark);
  letter-spacing: 2px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 0 2px 0 #D8A86A33;
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  font-weight: 600;
  text-shadow: 0 1px 0 #E9D8BE88;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 600;
}
h4, h5, h6 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 600;
}
p, li, ul, ol, blockquote {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-primary);
}
blockquote {
  border-left: 4px solid var(--color-accent-dark);
  margin: 0 0 14px 0;
  padding: 8px 15px;
  font-style: italic;
  background: #f5eee2;
  color: #796047;
  font-size: 1.15rem;
}

.text-section {
  max-width: 800px;
}

/* --- SECTION LAYOUTS --- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
}
.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.features, .feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card-bg);
  border-radius: 16px;
  box-shadow: 0 4px 18px #A8927E16;
  padding: 28px 22px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  border-radius: 15px;
  background: #fffdee;
  box-shadow: 0 4px 16px #d3c9b154;
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 500px;
  border: 2px dotted #A8927E;
  transition: transform 0.2s, box-shadow 0.2s;
}
.testimonial-card:hover {
  transform: scale(1.028) rotate(-1deg);
  box-shadow: 0 10px 36px #a8927e38;
  border-color: #796047;
}
.testimonial-card blockquote {
  color: #304567;
  background: none;
  border: none;
  margin: 0 0 8px 0;
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-style: italic;
}
.testimonial-card p {
  color: #796047;
  margin-bottom: 0;
  font-size: 0.97rem;
}

/* --- BUTTONS --- */
.btn-primary {
  display: inline-block;
  padding: 12px 34px;
  background: var(--color-accent-dark);
  color: #fffdee;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  border-radius: 26px;
  border: 3px solid var(--color-accent-dark);
  box-shadow: 0 4px 17px #79604727;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s, color 0.17s, transform 0.17s, border 0.17s;
  margin-bottom: 14px;
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--color-secondary);
  color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-2px) scale(1.04) rotate(-1.5deg);
}
/* Link as button */
a.btn-primary:active {
  transform: translateY(1px) scale(.98);
}

/* --- NAVIGATION --- */
header {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 3px 28px #2b324a10;
  position: relative;
  z-index: 51;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px;
  gap: 24px;
}
header img {
  height: 54px;
  width: auto;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1.04rem;
  color: #fff;
  padding: 4px 0 2px 0;
  position: relative;
  letter-spacing: 1px;
  transition: color 0.14s;
}
.main-nav a:after {
  content: "";
  display: block;
  width: 0%;
  border-bottom: 2px solid #A8927E;
  transition: width 0.22s;
  margin-top: 2px;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #F7F3EF;
}
.main-nav a:hover:after,
.main-nav a:focus:after {
  width: 80%;
}

header .btn-primary {
  margin-left: 18px;
  margin-bottom: 0;
  box-shadow: 0 2px 12px #ffeecc21;
}
header .btn-primary:hover,
header .btn-primary:focus {
  background: #fffdee;
  color: var(--color-accent-dark);
}

/* --- FOOTER --- */
footer {
  background: var(--color-accent-dark);
  color: #fffdee;
  padding: 38px 0 24px 0;
  margin-top: 80px;
  border-top: 3px double #ece7e0;
}
footer p {
  color: white;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  margin-bottom: 10px;
}
.footer-nav a {
  font-family: var(--font-display);
  color: #fffdee;
  font-size: 1rem;
  opacity: .85;
  transition: color 0.15s, opacity 0.15s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #e4cda6;
  opacity: 1;
}
footer p {
  font-size: 0.97rem;
  opacity: 0.72;
}

/* --- LISTS --- */
ul, ol {
  margin: 0 0 18px 1.3em;
}
ul li,
ol li {
  margin-bottom: 10px;
  padding-left: 0.75em;
  position: relative;
  color: var(--color-primary);
  font-size: 1.05em;
}
ul li::before {
  content: '\25A0';
  color: var(--color-accent-dark);
  font-size: 0.80em;
  display: inline-block;
  width: 1.1em;
  margin-left: -1.1em;
}

ol li {
  list-style-type: decimal;
  padding-left: 0.2em;
}

/* --- CONTACT INFO ICONS --- */
ul li img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 13px;
}

/* --- CARD & CONTENT CSS --- */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
}

/* --- SPACING HELPERS --- */
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mt-32 { margin-top: 32px; }
.pt-20 { padding-top: 20px; }
.pt-40 { padding-top: 40px; }
.pb-20 { padding-bottom: 20px; }

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  color: #fffdee;
  background: var(--color-accent-dark);
  border-radius: 50%;
  border: none;
  outline: none;
  cursor: pointer;
  position: absolute;
  right: 24px;
  top: 15px;
  z-index: 102;
  transition: background 0.21s, box-shadow 0.21s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--color-accent);
  box-shadow: 0 2px 10px #a8927e4a;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: var(--color-primary);
  color: #fffdee;
  z-index: 2000;
  transform: translateX(-110vw);
  transition: transform 0.32s cubic-bezier(0.77,0,.18,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 36px 28px 18px 28px;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fffdee;
  font-size: 2.5rem;
  position: absolute;
  top: 20px;
  right: 27px;
  z-index: 2210;
  cursor: pointer;
  transition: color 0.21s;
}
.mobile-menu-close:hover {
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 42px;
  width: 100%;
  max-width: 90vw;
}
.mobile-nav a {
  color: #fffdee;
  font-family: var(--font-display);
  font-size: 1.27rem;
  padding: 13px 0;
  border-bottom: 2px solid #a8927e32;
  transition: background 0.12s, color 0.16s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color: var(--color-warning);
  background: #f7f3ef11;
}

/* --- COOKIE BANNER --- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fffbe8;
  color: var(--color-accent-dark);
  box-shadow: 0 -2px 12px #a8927e33;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  z-index: 4100;
  padding: 22px 7vw 22px 7vw;
  gap: 32px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: transform 0.34s;
}
#cookie-banner.hide {
  transform: translateY(130%);
}
#cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: center;
  margin-left: 16px;
}
#cookie-banner button {
  padding: 9px 20px;
  border-radius: 18px;
  font-family: var(--font-display);
  font-size: 1.04rem;
  border: 2px solid var(--color-accent-dark);
  background: #F7F3EF;
  color: var(--color-accent-dark);
  cursor: pointer;
  transition: background 0.18s, color 0.17s, border 0.18s;
  margin-left: 3px;
}
#cookie-banner button.accept {
  background: var(--color-success);
  color: #fffdee;
  border: 2px solid var(--color-success);
}
#cookie-banner button.reject {
  background: var(--color-error);
  color: #fffdee;
  border-color: var(--color-error);
}
#cookie-banner button.settings {
  background: var(--color-accent-dark);
  color: #fffdee;
  border: 2px solid var(--color-accent-dark);
}
#cookie-banner button:hover, #cookie-banner button:focus {
  background: var(--color-accent);
  color: #fffdee;
}

/* COOKIE MODAL */
#cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 95vw;
  max-width: 430px;
  background: #fffde8;
  color: var(--color-accent-dark);
  border-radius: 26px;
  box-shadow: 0 8px 40px #5b411814;
  z-index: 4200;
  padding: 38px 24px 28px 24px;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  transform: translate(-50%, -50%) scale(1);
  border: 2px solid #a8927ec7;
}
#cookie-modal.open {
  display: flex;
}
#cookie-modal h2 {
  font-size: 1.32rem;
  margin-bottom: 16px;
}
#cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  margin-bottom: 13px;
}
#cookie-modal label {
  font-family: var(--font-display);
  font-size: 1rem;
}
#cookie-modal input[type="checkbox"] {
  accent-color: var(--color-accent-dark);
  width: 18px;
  height: 18px;
  margin-right: 12px;
}
#cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 16px;
}
#cookie-modal .close-modal {
  background: none;
  border: none;
  color: var(--color-accent-dark);
  font-size: 1.5rem;
  cursor: pointer;
  position: absolute;
  right: 18px;
  top: 12px;
  opacity: .62;
  transition: opacity 0.13s;
}
#cookie-modal .close-modal:hover {
  opacity: 1;
}
#cookie-modal .always-on {
  font-size: 0.88em;
  color: #4C7551;
  margin-left: 8px;
  opacity: .83;
}

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
  .container { max-width: 995px; }
}
@media (max-width: 900px) {
  .container { max-width: 740px; padding-left: 14px; padding-right: 14px; }
  h1 { font-size: 2rem; }
}
@media (max-width: 768px) {
  html { font-size: 98%; }
  header .container { flex-direction: row; gap: 7px; }
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  
  .content-wrapper,
  .card-container,
  .card-grid,
  .features,
  .feature-list {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .text-image-section { flex-direction: column; gap: 18px; align-items: flex-start; }
  .testimonial-card { max-width: 100%; }
  .footer-nav { flex-direction: column; gap: 12px; }
  .section { padding: 28px 9px; margin-bottom: 34px; }
  #cookie-banner { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 2vw 18px 2vw; font-size: 0.97em; }
}
@media (max-width: 520px) {
  .container { padding: 0 4px; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.12rem; }
  .testimonial-card { padding: 15px 8px; min-width: unset; }
  .btn-primary { padding: 11px 18px; font-size: 1em; }
}

/* --- TRANSITIONS & EFFECTS --- */
a, .btn-primary, .main-nav a, .footer-nav a, .mobile-nav a, #cookie-banner button {
  transition: all 0.15s;
}

.section, .card, .testimonial-card {
  transition: box-shadow 0.19s, border 0.18s, background 0.15s;
}

/* --- MICRO-INTERACTIONS --- */
.card:hover, .card:focus {
  box-shadow: 0 8px 40px #a8927e2b;
  border-color: #a8927e;
}

/* --- MISC. DECORATIVE VINTAGE --- */
.card, .testimonial-card {
  border-radius: 15px;
  border: 2.5px solid #A8927E27;
  background: repeating-linear-gradient(120deg, #FCF6ED 0px, #FCF6ED 21px, #ede6dc 21px, #ede6dc 42px);
}
.section {
  background: repeating-linear-gradient(135deg,#f4efe6 0px,#f4efe6 28px,#fcf6ed 28px,#fcf6ed 56px);
  border-radius: 16px;
}

/* --- STYLE SCROLLBAR (retro) --- */
body::-webkit-scrollbar {
  width: 13px;
  background: #E5D8C4;
}
body::-webkit-scrollbar-thumb {
  background: #A8927E;
  border-radius: 8px;
}

/* --- Z-INDEX LAYERING --- */
header { z-index: 50; }
.mobile-menu { z-index: 2000; }
#cookie-banner { z-index: 4100; }
#cookie-modal { z-index: 4200; }

/* --- RETRO FONT LOADING (Web safe fallback) --- */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  src: local('Playfair Display'), local('PlayfairDisplay-Regular');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto'), local('Roboto-Regular');
}
