/* 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 {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}
body {
  min-height: 100vh;
  background: #FFF8F1;
  color: #222;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  border: 0;
  display: block;
  height: auto;
}
button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}

/* BRAND FONTS & RETRO-TYPOGRAPHY */
@import url('https://fonts.googleapis.com/css?family=Cormorant+Garamond:700,600,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');
:root {
  --color-primary: #153959;
  --color-secondary: #AEB3C6;
  --color-accent: #F5D887;
  --color-bg: #FFF8F1;
  --color-sand: #EFE6D7;
  --color-red: #A4492F;
  --color-brown: #71513D;
  --color-blue-light: #4A768E;
  --color-text-dark: #222222;
  --color-text-light: #f8f7f2;

  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--color-bg);
  color: var(--color-text-dark);
  position: relative;
  letter-spacing: 0.01em;
}

/* Global Patterns & Effects */
body {
  /* Subtle lined pattern for retro vibe */
  background-image: repeating-linear-gradient(90deg, transparent, transparent 49px, rgba(245,216,135,0.06) 50px);
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

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

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

/* HEADINGS */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  letter-spacing: -0.01em;
}
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.1;
}
h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}
h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.subheadline {
  font-family: var(--font-body);
  font-size: 1.13rem;
  color: var(--color-blue-light);
  margin-bottom: 24px;
  font-style: italic;
}

/* TYPOGRAPHY */
p, ol, ul, li {
  font-size: 1rem;
  color: var(--color-brown);
  line-height: 1.7;
}
strong {
  font-weight: 600;
  color: var(--color-primary);
}

ul, ol {
  margin: 0 0 16px 20px;
}

li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 16px;
}
ul li::before {
  content: '\2726'; /* six-point star */
  color: var(--color-accent);
  font-size: 0.9em;
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--font-body);
}
ol li::before {
  content: none;
}

/* RETRO PATTERNED CARD SHADOWS */
.feature, .testimonial-card, .card {
  background: var(--color-sand);
  border-radius: 18px;
  box-shadow: 0 4px 22px rgba(21,57,89,0.11), 0 1.5px 0 0 var(--color-accent);
  border: 2.5px solid var(--color-accent);
  margin-bottom: 20px;
  padding: 32px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.3s, transform 0.2s;
}
.feature:hover, .testimonial-card:hover, .card:hover {
  box-shadow: 0 7px 28px rgba(21,57,89,0.16), 0 3px 0 0 var(--color-accent);
  transform: translateY(-4px) scale(1.015);
}

/* HERO CTA BUTTON */
.cta, .cookie-btn, .mobile-menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  background: var(--color-accent);
  color: var(--color-primary);
  border: 2px solid var(--color-brown);
  border-radius: 38px;
  padding: 12px 32px;
  margin-top: 10px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 3px 12px 0 rgba(164,73,47,0.11);
  cursor: pointer;
}
.cta:hover, .cookie-btn:hover, .mobile-menu-close:hover {
  background: var(--color-primary);
  color: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: 0 7px 18px 0 rgba(21,57,89,0.17);
  transform: scale(1.04);
}
.cta:active {
  background: var(--color-red);
  color: var(--color-accent);
}

/* NAVIGATION */
header {
  background: var(--color-accent);
  box-shadow: 0 1.5px 0 0 var(--color-brown);
  padding: 0;
  z-index: 30;
  position: sticky;
  top: 0;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}
header a img {
  height: 52px;
  margin-right: 16px;
}
header nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
header nav a {
  font-family: var(--font-display);
  font-size: 1.07rem;
  padding: 5px 10px;
  color: var(--color-primary);
  border-radius: 7px;
  transition: color 0.22s, background 0.22s;
}
header nav a:hover {
  background: var(--color-primary);
  color: var(--color-accent);
}
header nav a.cta {
  margin-left: 12px;
  padding: 10px 24px;
  font-weight: bold;
  background: var(--color-primary);
  color: var(--color-accent);
  border-radius: 32px;
  border: 2px solid var(--color-brown);
  transition: background 0.2s, color 0.2s;
}
header nav a.cta:hover {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* BURGER / MOBILE MENU */
.mobile-menu-toggle {
  display: none;
  background: var(--color-primary);
  color: var(--color-accent);
  font-size: 2.3rem;
  border: 2px solid var(--color-accent);
  border-radius: 13px;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.17s, color 0.17s, box-shadow .3s;
  z-index: 51;
}
.mobile-menu-toggle:focus {
  outline: 2px solid var(--color-blue-light);
}
.mobile-menu-toggle:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-sand);
  box-shadow: 0 0 38px 8px rgba(32,32,32,0.18);
  z-index: 50;
  display: flex;
  flex-direction: column;
  transform: translateX(-105%);
  transition: transform 0.35s cubic-bezier(0.87, 0, 0.13, 1);
  pointer-events: none;
  opacity: 0.98;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  color: var(--color-red);
  font-size: 2rem;
  align-self: flex-start;
  margin: 18px 0 8px 22px;
  padding: 0 10px;
  background: var(--color-bg);
  border-radius: 10px;
  border: 2px solid var(--color-red);
  transition: background 0.2s, color 0.2s;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 10px 38px;
  margin-top: 34px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--color-primary);
  padding: 15px 10px;
  border-radius: 8px;
  width: 100%;
  transition: background .15s, color .15s;
}
.mobile-nav a:hover {
  background: var(--color-accent);
  color: var(--color-red);
}

@media (max-width: 1020px) {
  header .container {
    flex-direction: row;
    gap: 5px;
  }
  header nav {
    gap: 10px;
  }
}
@media (max-width: 860px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (max-width: 700px) {
  .container {
    padding: 0 7px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.1rem;
  }
  .cta {
    font-size: 1.05rem;
    padding: 10px 20px;
  }
}

/* CARD & FEATURE LAYOUTS (FLEXBOX REQUIRED) */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature {
  flex: 1 1 250px;
  min-width: 230px;
  margin-bottom: 20px;
  box-sizing: border-box;
  align-items: flex-start;
  text-align: left;
  gap: 15px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 230px;
}

.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;
  margin-bottom: 40px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fffaf3;
  border-left: 8px solid var(--color-accent);
  border-radius: 13px;
}
.testimonial-card p {
  color: var(--color-text-dark);
  font-size: 1.06rem;
  font-style: italic;
}
.testimonial-card .rating {
  color: #FFD972;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
}
.testimonial-card .client {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

/* FLEXBOX LAYOUT RESPONSIVENESS */
@media (max-width: 850px) {
  .features-grid, .card-container, .content-grid, .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .feature, .card {
    min-width: 0;
  }
}
@media (max-width: 600px) {
  .feature, .card, .testimonial-card {
    padding: 16px 10px;
  }
  .container {
    padding: 0 3px;
  }
  .section {
    padding: 30px 6px;
  }
}

/* FOOTER */
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 36px 0 22px 0;
  border-top: 6px double var(--color-accent);
  font-size: 0.97rem;
}
footer .container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand img {
  height: 48px;
  margin-bottom: 20px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 10px;
}
.footer-nav a,
.footer-legal a {
  color: var(--color-accent);
  padding: 3px 1px;
  font-family: var(--font-body);
  transition: color 0.2s;
}
.footer-nav a:hover,
.footer-legal a:hover {
  color: var(--color-red);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--color-sand);
}
.footer-contact img {
  height: 18px;
  width: 18px;
  margin-right: 8px;
  vertical-align: text-bottom;
}
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 18px;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .footer-brand img { margin-bottom: 8px; }
}

/* ICON IMAGES */
.feature img, .footer-contact img, .feature-item img, .text-section img {
  height: 32px;
  width: 32px;
  margin: 0 10px 0 0;
  vertical-align: middle;
  filter: sepia(0.5) contrast(1.1) brightness(0.87);
}

/* RETRO-INSPIRED DECORATIVE ACCENTS */
.section {
  border-radius: 24px;
  background: var(--color-bg);
  position: relative;
  box-shadow: 0 10px 48px 0 rgba(247, 217, 135, 0.07);
  margin-bottom: 60px;
}

.section::after {
  content: "";
  display: block;
  position: absolute;
  right: 28px;
  bottom: 16px;
  width: 40px;
  height: 40px;
  background: repeating-linear-gradient(135deg, var(--color-accent), var(--color-accent) 8px, transparent 8px, transparent 16px);
  opacity: 0.11;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}

.section:nth-child(odd)::after {
  left: 25px;
  right: unset;
}

/* TEXT SECTIONS ON KONTAKT PAGE */
.text-section {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.text-section ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-primary);
  font-weight: 500;
  font-size: 1.06rem;
  padding-left: 0;
}
.text-section ul li::before { content: unset; }

/* Animations & Micro-interactions */
.cta, .cookie-btn, .mobile-menu-close {
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.card, .feature, .testimonial-card {
  transition: box-shadow 0.2s, transform 0.15s;
}
.mobile-menu, .cookie-banner, .cookie-modal {
  transition: transform 0.35s cubic-bezier(0.77,0,0.36,1), opacity 0.2s;
}

/* COOKIE CONSENT BANNER & MODAL */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-primary);
  color: var(--color-accent);
  z-index: 98;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 26px 18px 16px;
  width: 100%;
  box-shadow: 0 -8px 24px 0 rgba(21,57,89,0.09);
  font-size: 1rem;
  font-family: var(--font-body);
  gap: 12px;
}
.cookie-banner .cookie-msg {
  flex: 1 1 60%;
  color: var(--color-accent);
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-btn {
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: 1em;
  border: 2px solid var(--color-brown);
  border-radius: 28px;
  padding: 8px 24px;
  font-family: var(--font-display);
  font-weight: 600;
}
.cookie-btn.reject {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.cookie-btn.reject:hover {
  background: var(--color-red);
  color: #fff;
}
.cookie-btn.settings {
  background: var(--color-primary);
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  border-radius: 18px;
}
.cookie-btn.settings:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    padding: 15px 10px;
    font-size: 0.97em;
  }
  .cookie-banner .cookie-actions {
    gap: 7px;
  }
}

.cookie-modal-bg {
  display: none;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(21,57,89,0.28);
  z-index: 100;
}
.cookie-modal-bg.open {
  display: block;
}

.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -55%);
  min-width: 320px;
  width: 97vw;
  max-width: 390px;
  padding: 28px 20px;
  border-radius: 24px;
  background: var(--color-bg);
  color: var(--color-primary);
  box-shadow: 0 6px 36px 0 rgba(21,57,89,0.19);
  z-index: 101;
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.cookie-modal h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  font-family: var(--font-display);
}
.cookie-modal .cookie-cat {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cookie-switch {
  width: 36px;
  height: 19px;
  background: var(--color-secondary);
  border-radius: 11px;
  position: relative;
  transition: background .2s;
}
.cookie-switch[aria-checked="true"] {
  background: var(--color-accent);
}
.cookie-switch .knob {
  width: 17px;
  height: 17px;
  background: #fff;
  border-radius: 50%;
  position: absolute; left: 2px; top: 1px;
  box-shadow: 0 1px 4px 0 rgba(21,57,89,0.08);
  transition: left .2s;
}
.cookie-switch[aria-checked="true"] .knob {
  left: 17px;
  background: var(--color-accent);
}

.cookie-modal .cookie-actions {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 10px;
}

.cookie-modal .cookie-btn {
  font-size: 1rem;
  padding: 7px 18px;
}

.cookie-modal-close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 1.7em;
  background: none;
  border: none;
  color: var(--color-red);
  padding: 0;
  cursor: pointer;
  z-index: 102;
}

/* LINK STYLES */
a {
  color: var(--color-blue-light);
  transition: color 0.2s, text-decoration 0.2s;
}
a:hover {
  color: var(--color-red);
  text-decoration: underline;
}

/* FORM CONTROLS (minimalistic for retro) */
input, textarea, select {
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid var(--color-primary);
  border-radius: 7px;
  padding: 9px 12px;
  margin-bottom: 16px;
  background: #fffaf3;
  color: var(--color-primary);
  transition: border .15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-accent);
  outline: none;
}

/* THANK YOU PAGE */
.thank-you {
  text-align: center;
  padding: 24px 0;
}

/* RETRO DETAILS */
h1, h2, h3, h4 {
  text-shadow: 0 2px 0 #fff8f1, 0 0.7px 0 var(--color-accent);
}

/* MICRO-INTERACTIONS (eg. hover on links, focus for inputs) */
a:focus, button:focus, .cta:focus, .cookie-btn:focus {
  outline: 2px solid var(--color-blue-light);
  outline-offset: 3px;
}

/* MINIMUM MARGINS BETWEEN CARDS/SECTIONS */
.section, .feature, .testimonial-card, .card {
  margin-bottom: 24px;
}
/* Ensure CRITICAL: at least 20px between elements -- add to parent containers if needed */
.feature + .feature,
.card + .card,
.testimonial-card + .testimonial-card {
  margin-top: 20px;
}

/* Prevent card overlap and ensure adequate white space */
main {
  margin-bottom: 48px;
}

/* Hide mobile menu when not open */
.mobile-menu {
  display: flex;
}
.mobile-menu:not(.open) {
  display: none;
}

/* Visually Hidden Utility (for cookie modal, ARIA) */
.visually-hidden {
  position: absolute !important;
  clip: rect(1px, 1px, 1px, 1px);
  padding: 0;
  border: 0;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
