/* =========================================================
   Brisk Inspirace - Vintage Retro CSS Theme
   Author: Senior CSS Developer & UI Designer
   ========================================================= */

/* --------------------
   FONT IMPORTS
---------------------*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap'); /* For retro accent headings */

/* --------------------
   CSS VARIABLES
---------------------*/
:root {
  --color-primary: #263238;
  --color-secondary: #B2DFDB;
  --color-accent: #dfbb00;
  --color-bg: #FFF8E1;
  --color-bg-alt: #F5E9D5;
  --color-card: #FFF3E0;
  --color-border: #D7CCC8;
  --color-shadow: rgba(38, 50, 56, 0.08);
  --color-text: #263238;
  --color-text-light: #5D4037;
  --color-link: #C2185B;
  --color-link-hover: #dfbb00;
  --color-btn-bg: #dfbb00;
  --color-btn-bg-hover: #FFB300;
  --color-btn-text: #263238;
  --color-btn-secondary-bg: #B2DFDB;
  --color-btn-secondary-text: #263238;
  --color-cookie-bg: #263238;
  --color-cookie-text: #FFF8E1;
  --color-cookie-btn: #dfbb00;
  --color-cookie-btn-hover: #FFB300;
  --font-display: 'Montserrat', 'Arial Rounded MT Bold', 'Arial', sans-serif;
  --font-body: 'Roboto', 'Arial', sans-serif;
  --font-retro: 'Pacifico', cursive;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 4px 24px var(--color-shadow);
  --pattern-url: url('data:image/svg+xml;utf8,<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="40" height="40" fill="%23FFD600" fill-opacity="0.07"/><circle cx="20" cy="20" r="2" fill="%23B2DFDB" fill-opacity="0.18"/></svg>');
}

/* --------------------
   RESET & BASE
---------------------*/
* {
  box-sizing: border-box;
}
html {
  font-size: 18px;
  background: var(--color-bg) var(--pattern-url) repeat;
  min-height: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: transparent;
  line-height: 1.7;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}
a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--color-link-hover);
  text-decoration: underline;
}

/* --------------------
   TYPOGRAPHY
---------------------*/
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  margin-top: 0;
  margin-bottom: 0.7em;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.2rem;
  font-family: var(--font-retro), var(--font-display);
  font-weight: 900;
  color: var(--color-accent);
  margin-bottom: 0.5em;
}
h2 {
  font-size: 1.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5em;
}
h3 {
  font-size: 1.15rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: 0.3em;
}
p, ul, ol {
  font-size: 1rem;
  margin-bottom: 1.1em;
}
strong {
  font-weight: 700;
  color: var(--color-primary);
}

/* Retro underline for accent headings */
h2, h3 {
  position: relative;
}
h2::after, h3::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent) 60%, var(--color-secondary) 100%);
  border-radius: 2px;
  margin-top: 0.3em;
}

/* --------------------
   LAYOUT CONTAINERS
---------------------*/
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  background: var(--color-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 40px 24px;
  margin-bottom: 60px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 20px;
  flex: 1 1 260px;
  min-width: 240px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(38,50,56,0.16);
  transform: translateY(-4px) scale(1.02);
}

.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;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fffbe6;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(38,50,56,0.07);
  margin-bottom: 20px;
  border-left: 6px solid var(--color-accent);
  color: var(--color-primary);
  font-style: italic;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px rgba(38,50,56,0.13);
  border-left: 6px solid var(--color-secondary);
}
.testimonial-card span {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-text-light);
  font-style: normal;
  margin-left: auto;
}

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

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(38,50,56,0.06);
  padding: 24px 18px;
  flex: 1 1 220px;
  min-width: 200px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s, background 0.2s;
  position: relative;
}
.feature-grid > div:hover {
  background: var(--color-secondary);
  box-shadow: 0 6px 24px rgba(38,50,56,0.13);
}
.feature-grid img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 12px;
  border: 3px solid var(--color-accent);
}

.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.faq-list > div {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 18px 16px;
  flex: 1 1 260px;
  min-width: 220px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(38,50,56,0.06);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.search-bar input[type="text"] {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 1rem;
  background: #fff;
  font-family: var(--font-body);
  transition: border-color 0.2s;
}
.search-bar input[type="text"]:focus {
  border-color: var(--color-accent);
  outline: none;
}

.contact-info {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 18px 16px;
  margin-top: 18px;
  font-size: 1rem;
  color: var(--color-primary);
  box-shadow: 0 1px 6px rgba(38,50,56,0.05);
}

.map {
  margin-top: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(38,50,56,0.08);
}

/* --------------------
   BUTTONS
---------------------*/
.btn-primary {
  display: inline-block;
  background: var(--color-btn-bg);
  color: var(--color-btn-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 12px 32px;
  border: none;
  border-radius: 32px;
  box-shadow: 0 2px 8px rgba(38,50,56,0.08);
  cursor: pointer;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 10px;
  margin-bottom: 10px;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
  position: relative;
  z-index: 1;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-btn-bg-hover);
  color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(38,50,56,0.13);
  transform: translateY(-2px) scale(1.03);
}

.btn-secondary {
  display: inline-block;
  background: var(--color-btn-secondary-bg);
  color: var(--color-btn-secondary-text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 26px;
  border: none;
  border-radius: 28px;
  box-shadow: 0 1px 4px rgba(38,50,56,0.07);
  cursor: pointer;
  margin-top: 8px;
  margin-bottom: 8px;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(38,50,56,0.13);
  transform: translateY(-1px) scale(1.02);
}

/* --------------------
   HEADER & NAVIGATION
---------------------*/
header {
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 2px 12px rgba(38,50,56,0.07);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
}
header nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
header nav a {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  padding: 6px 12px;
  border-radius: 18px;
  transition: background 0.18s, color 0.18s;
}
header nav a:hover, header nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
header img {
  height: 44px;
  width: auto;
  margin-right: 16px;
}

.mobile-menu-toggle {
  display: none;
  background: var(--color-accent);
  color: var(--color-primary);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 12px;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 4px rgba(38,50,56,0.08);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-btn-bg-hover);
  color: var(--color-primary);
}

/* --------------------
   MOBILE MENU OVERLAY
---------------------*/
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-primary);
  color: var(--color-accent);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 2.2rem;
  margin: 24px 0 0 24px;
  cursor: pointer;
  align-self: flex-start;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-btn-bg);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 48px 0 0 36px;
}
.mobile-nav a {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 0;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* --------------------
   FOOTER
---------------------*/
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 40px 0 0 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
footer .content-wrapper {
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0 18px 24px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 0;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
footer nav a {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 4px 8px;
  border-radius: 12px;
  transition: background 0.18s, color 0.18s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}
footer img {
  height: 36px;
  width: auto;
  margin-bottom: 12px;
}
footer .contact-info {
  background: none;
  box-shadow: none;
  color: var(--color-accent);
  padding: 0;
  margin-top: 0;
  font-size: 0.98rem;
}

/* --------------------
   COOKIE CONSENT BANNER
---------------------*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 99999;
  background: var(--color-cookie-bg);
  color: var(--color-cookie-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 24px 16px 18px 16px;
  box-shadow: 0 -2px 16px rgba(38,50,56,0.18);
  font-size: 1rem;
  animation: cookie-slide-in 0.6s cubic-bezier(.77,0,.18,1);
}
@keyframes cookie-slide-in {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 24px;
  padding: 10px 28px;
  margin: 0;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.cookie-banner .accept {
  background: var(--color-cookie-btn);
  color: var(--color-primary);
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: var(--color-cookie-btn-hover);
}
.cookie-banner .reject {
  background: #fffbe6;
  color: var(--color-primary);
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #ffe082;
}
.cookie-banner .settings {
  background: var(--color-btn-secondary-bg);
  color: var(--color-primary);
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(38,50,56,0.65);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--color-card);
  color: var(--color-primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(38,50,56,0.18);
  padding: 36px 28px 28px 28px;
  max-width: 420px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookie-modal-in 0.4s cubic-bezier(.77,0,.18,1);
  position: relative;
}
@keyframes cookie-modal-in {
  from { transform: scale(0.92) translateY(40px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.3rem;
  margin-bottom: 0.6em;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
}
.cookie-modal .cookie-category input[type="checkbox"] {
  accent-color: var(--color-accent);
  width: 20px;
  height: 20px;
}
.cookie-modal .cookie-category .always-on {
  font-size: 0.98rem;
  color: #888;
  font-style: italic;
}
.cookie-modal .cookie-modal-btns {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--color-primary);
  cursor: pointer;
  transition: color 0.18s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: var(--color-accent);
}

/* --------------------
   RESPONSIVE DESIGN
---------------------*/
@media (max-width: 1024px) {
  .container {
    max-width: 96vw;
  }
  .content-wrapper {
    padding: 32px 10px;
  }
  .feature-grid > div, .faq-list > div {
    min-width: 160px;
    padding: 18px 10px;
  }
}
@media (max-width: 900px) {
  .feature-grid, .faq-list, .content-grid {
    gap: 16px;
  }
  .feature-grid > div, .faq-list > div {
    flex: 1 1 100%;
    min-width: 100%;
  }
  .content-wrapper {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  header .container {
    flex-direction: row;
    gap: 10px;
    padding: 12px 8px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .content-wrapper, .section {
    padding: 22px 6px;
    margin-bottom: 36px;
  }
  .feature-grid, .faq-list, .content-grid {
    flex-direction: column;
    gap: 12px;
  }
  .feature-grid > div, .faq-list > div {
    min-width: 0;
    width: 100%;
    margin-bottom: 12px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 8px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
    padding: 0 8px 18px 8px;
  }
  .cookie-modal {
    padding: 20px 8px 16px 8px;
    max-width: 98vw;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 1.4rem;
  }
  h2 {
    font-size: 1.1rem;
  }
  .btn-primary, .btn-secondary {
    font-size: 0.98rem;
    padding: 10px 16px;
  }
  .cookie-banner {
    font-size: 0.98rem;
    padding: 14px 4px 10px 4px;
  }
}

/* --------------------
   MICRO-INTERACTIONS
---------------------*/
.card, .feature-grid > div, .testimonial-card, .faq-list > div {
  transition: box-shadow 0.18s, background 0.18s, transform 0.18s;
}
.card:active, .feature-grid > div:active, .testimonial-card:active, .faq-list > div:active {
  transform: scale(0.98);
}

/* --------------------
   RETRO DECORATIVE ELEMENTS
---------------------*/
/* Retro corner ribbons for cards */
.card::before, .feature-grid > div::before {
  content: '';
  display: block;
  position: absolute;
  top: -8px; left: -8px;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--color-accent) 60%, var(--color-secondary) 100%);
  border-radius: 0 0 36px 0;
  opacity: 0.13;
  z-index: 0;
  pointer-events: none;
}

/* Retro dotted border for testimonials */
.testimonial-card {
  border-style: dotted;
  border-width: 0 0 0 6px;
}

/* Retro pattern background for sections */
.section {
  background: var(--color-bg) var(--pattern-url) repeat;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(38,50,56,0.06);
}

/* --------------------
   UTILITY CLASSES
---------------------*/
.hide {
  display: none !important;
}

/* --------------------
   ACCESSIBILITY
---------------------*/
:focus {
  outline: 2px dashed var(--color-accent);
  outline-offset: 2px;
}

/* --------------------
   PRINT STYLES
---------------------*/
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  .content-wrapper, .section { box-shadow: none !important; background: #fff !important; }
}
