/* =============================================================
   Deute Allen Investeringar – Vintage Retro CSS Theme
   Brand: Elegant, timeless, exclusive, vintage/retro
   Fonts: Playfair Display (display), Montserrat (body)
   Colors: #223042 (primary), #F4D06F (secondary), #C1440E/#A13200 (accent)
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&family=Playfair+Display:wght@700&display=swap');

:root {
  --color-primary: #223042;
  --color-secondary: #F4D06F;
  --color-accent: #A13200;
  --color-accent-alt: #C1440E;
  --color-bg: #fff8ef;
  --color-bg-dark: #f6e7c1;
  --color-text: #223042;
  --color-text-light: #fff;
  --color-border: #e2c98b;
  --color-shadow: rgba(34, 48, 66, 0.08);
  --font-display: 'Playfair Display', serif;
  --font-body: 'Montserrat', Arial, sans-serif;
  --radius-card: 18px;
  --radius-btn: 24px;
  --shadow-card: 0 4px 24px var(--color-shadow);
  --pattern-bg: repeating-linear-gradient(135deg, #f4d06f 0 2px, transparent 2px 20px);
}

html {
  box-sizing: border-box;
  font-size: 18px;
  background: var(--color-bg);
  scroll-behavior: smooth;
}
*, *:before, *:after { box-sizing: inherit; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  margin: 0;
  min-height: 100vh;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

/* =====================
   Typography
   ===================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  margin-top: 0;
  margin-bottom: 0.7em;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.2rem;
  text-shadow: 1px 2px 0 #f4d06f44;
  margin-bottom: 0.5em;
}
h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5em;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3em;
}
h4 {
  font-size: 1.05rem;
  margin-bottom: 0.2em;
}
p, ul, ol {
  font-family: var(--font-body);
  color: var(--color-primary);
  margin-bottom: 1.1em;
}
strong {
  font-weight: 600;
  color: var(--color-accent);
}
a {
  color: var(--color-accent);
  text-decoration: underline dotted;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--color-accent-alt);
  text-decoration: underline;
}

/* =====================
   Layout Containers
   ===================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg-dark);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  position: relative;
}

/* Retro pattern overlay for hero/sections */
.section:nth-child(odd) {
  background: var(--color-bg-dark), var(--pattern-bg);
}

/* =====================
   Header & Navigation
   ===================== */
header {
  background: var(--color-primary);
  color: var(--color-text-light);
  padding: 0;
  box-shadow: 0 2px 12px #22304211;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 18px;
  min-height: 72px;
}
.logo img {
  height: 48px;
  width: auto;
  display: block;
  filter: sepia(0.2) contrast(1.1) brightness(1.1);
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-body);
  color: var(--color-secondary);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-accent);
}
.btn-primary {
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-alt));
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-btn);
  padding: 12px 32px;
  margin-left: 16px;
  box-shadow: 0 2px 8px #a1320033;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, var(--color-accent-alt), var(--color-accent));
  color: var(--color-secondary);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 16px #a1320044;
}

/* Hamburger menu button */
.mobile-menu-toggle {
  display: none;
  background: var(--color-secondary);
  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.2s, color 0.2s;
  box-shadow: 0 2px 8px #f4d06f33;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}

/* Mobile menu overlay */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-primary);
  color: var(--color-secondary);
  z-index: 9999;
  padding: 32px 24px 24px 24px;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(.77,0,.18,1), opacity 0.3s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-secondary);
  font-size: 2.2rem;
  align-self: flex-end;
  margin-bottom: 24px;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.03em;
  padding: 10px 0;
  border-bottom: 1px dashed #f4d06f44;
  transition: color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
}

/* Hide main nav and show burger on mobile */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =====================
   Section & Card Patterns
   ===================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fffbe6;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  border: 2px solid var(--color-border);
  transition: box-shadow 0.2s, transform 0.15s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px #c1440e22;
  transform: translateY(-2px) scale(1.01);
}

.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fffbe6;
  border-radius: var(--radius-card);
  box-shadow: 0 2px 12px #22304211;
  border-left: 6px solid var(--color-accent);
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 420px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 24px #c1440e22;
  border-left: 6px solid var(--color-accent-alt);
}
.testimonial-card p {
  color: var(--color-primary);
  font-size: 1.05rem;
  margin-bottom: 0.5em;
}
.testimonial-card strong {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.star-rating {
  color: var(--color-accent);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
}

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

/* =====================
   Gallery, Team, Blog, FAQ, etc.
   ===================== */
.feature-grid, .car-gallery-slider, .car-gallery-grid, .team-list, .blog-list, .faq-list, .testimonial-list, .investment-options-grid, .car-details {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div, .car-gallery-slider > div, .car-gallery-grid > div, .team-list > div, .blog-list > div, .faq-list > div, .testimonial-list > div, .investment-options-grid > div, .car-details > div {
  background: #fffbe6;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 340px;
  margin-bottom: 20px;
  border: 2px solid var(--color-border);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.feature-grid > div:hover, .car-gallery-slider > div:hover, .car-gallery-grid > div:hover, .team-list > div:hover, .blog-list > div:hover, .faq-list > div:hover, .testimonial-list > div:hover, .investment-options-grid > div:hover, .car-details > div:hover {
  box-shadow: 0 8px 32px #c1440e22;
  border-color: var(--color-accent);
}

/* =====================
   Footer
   ===================== */
footer {
  background: var(--color-primary);
  color: var(--color-secondary);
  padding: 48px 0 24px 0;
  font-size: 1rem;
  border-top: 6px double var(--color-accent);
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.footer-brand img {
  height: 40px;
  margin-bottom: 8px;
  filter: sepia(0.2) contrast(1.1) brightness(1.1);
}
.footer-nav {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  color: var(--color-secondary);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: color 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-accent);
}
.footer-contact {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.98rem;
}
.footer-contact a {
  color: var(--color-secondary);
  text-decoration: underline dotted;
  transition: color 0.2s;
}
.footer-contact a:hover, .footer-contact a:focus {
  color: var(--color-accent);
}

/* =====================
   Cookie Consent Banner
   ===================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 99999;
  background: var(--color-secondary);
  color: var(--color-primary);
  box-shadow: 0 -2px 16px #22304222;
  padding: 24px 18px 18px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 1rem;
  border-top: 4px solid var(--color-accent);
  animation: cookie-slide-in 0.7s 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-text {
  flex: 1 1 320px;
  font-family: var(--font-body);
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
}
.cookie-btn {
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-btn);
  padding: 10px 22px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  margin: 0;
}
.cookie-btn.accept {
  background: var(--color-accent);
  color: var(--color-secondary);
  box-shadow: 0 2px 8px #a1320033;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: var(--color-accent-alt);
}
.cookie-btn.reject {
  background: #fffbe6;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
}
.cookie-btn.settings {
  background: var(--color-primary);
  color: var(--color-secondary);
  border: 2px solid var(--color-primary);
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: var(--color-accent);
  color: var(--color-secondary);
  border-color: var(--color-accent);
}

/* Cookie modal */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(34,48,66,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-secondary);
  color: var(--color-primary);
  border-radius: var(--radius-card);
  box-shadow: 0 8px 40px #22304244;
  padding: 36px 28px 28px 28px;
  min-width: 320px;
  max-width: 98vw;
  width: 400px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: cookie-modal-in 0.5s cubic-bezier(.77,0,.18,1);
}
@keyframes cookie-modal-in {
  from { transform: scale(0.85) translateY(40px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.5em;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.cookie-category label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-primary);
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-accent);
  width: 20px;
  height: 20px;
}
.cookie-category .always-on {
  font-size: 0.95rem;
  color: #888;
  margin-left: 8px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 12px;
}
.cookie-modal .cookie-btn {
  flex: 1 1 0;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  color: var(--color-accent-alt);
}

/* =====================
   Responsive Design
   ===================== */
@media (max-width: 1024px) {
  .container {
    max-width: 98vw;
    padding: 0 8px;
  }
  .footer-brand, .footer-nav, .footer-contact {
    flex: 1 1 100%;
    min-width: 0;
  }
  footer .container {
    gap: 24px;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
  .container {
    padding: 0 4px;
  }
  .content-wrapper {
    gap: 16px;
  }
  .card-container, .feature-grid, .car-gallery-slider, .car-gallery-grid, .team-list, .blog-list, .faq-list, .testimonial-list, .investment-options-grid, .car-details {
    flex-direction: column;
    gap: 16px;
  }
  .card, .feature-grid > div, .car-gallery-slider > div, .car-gallery-grid > div, .team-list > div, .blog-list > div, .faq-list > div, .testimonial-list > div, .investment-options-grid > div, .car-details > div {
    min-width: 0;
    max-width: 100%;
    padding: 18px 12px;
  }
  .footer-brand img {
    height: 32px;
  }
  .footer-brand, .footer-nav, .footer-contact {
    align-items: flex-start;
    margin-bottom: 12px;
  }
  .footer-nav {
    gap: 8px;
  }
  .footer-contact {
    font-size: 0.95rem;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.98rem;
    padding: 18px 8px 12px 8px;
  }
  .cookie-banner .cookie-actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .cookie-modal {
    min-width: 0;
    width: 98vw;
    padding: 18px 8px 18px 8px;
  }
  .cookie-modal .cookie-modal-close {
    top: 8px;
    right: 8px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

/* =====================
   Miscellaneous & Retro Details
   ===================== */
hr {
  border: none;
  border-top: 2px dashed var(--color-border);
  margin: 32px 0;
}
ul, ol {
  padding-left: 1.2em;
  margin-bottom: 1.2em;
}
ul li, ol li {
  margin-bottom: 0.5em;
}
blockquote {
  border-left: 6px solid var(--color-accent);
  background: #fffbe6;
  padding: 16px 24px;
  border-radius: var(--radius-card);
  font-style: italic;
  color: var(--color-primary);
  margin: 24px 0;
}

/* Retro badge for accent */
.badge-retro {
  display: inline-block;
  background: var(--color-secondary);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: 0.95rem;
  border-radius: 18px;
  padding: 4px 16px;
  border: 2px solid var(--color-accent);
  box-shadow: 0 2px 8px #f4d06f33;
  letter-spacing: 0.03em;
}

/* Decorative lines for headings */
h2:before, h2:after {
  content: '';
  display: inline-block;
  width: 32px;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  margin: 0 10px 6px 0;
  vertical-align: middle;
}
h2:after {
  margin: 0 0 6px 10px;
}

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

/* =====================
   Utility Classes
   ===================== */
.hide {
  display: none !important;
}

/* =====================
   Prevent Overlapping
   ===================== */
.card, .feature-grid > div, .car-gallery-slider > div, .car-gallery-grid > div, .team-list > div, .blog-list > div, .faq-list > div, .testimonial-list > div, .investment-options-grid > div, .car-details > div {
  margin-bottom: 20px;
}
.section, .card, .testimonial-card, .feature-item {
  margin-bottom: 20px;
}

/* =====================
   Micro-interactions
   ===================== */
.card, .testimonial-card, .btn-primary, .cookie-btn {
  transition: box-shadow 0.2s, transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s;
}

/* =====================
   Print Styles
   ===================== */
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  body { background: #fff; color: #000; }
}
