/* ===================================================
   SVOLGROARE LOCATION AUTO - SCANDINAVIAN_CLEAN STYLE
   ===================================================
   - Modern light theme using ONLY Flexbox for all layouts
   - Brand Colors: #223162 (primary), #E3A23D (secondary), #F9F9F6 (accent-background)
   - Fonts: Montserrat (display), Open Sans (body)
   - Spacing, card, testimonial, features, hero, burger menu, cookie banner
   - Responsive, no Grid/Columns, no clamp(), no column-*
*/

/* -------------- 1. CSS RESET & BASE -------------- */
html { box-sizing: border-box; font-size: 16px; }
*, *:before, *:after { box-sizing: inherit; }
body {
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #223162;
  background-color: #F9F9F6;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #223162;
  line-height: 1.15;
}
h1 { font-size: 2.5rem; margin-top: 0; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p, ul, ol { font-size: 1rem; line-height: 1.7; margin-bottom: 16px; color: #223162; }
strong { font-weight: 700; }
a { color: #223162; text-decoration: underline; transition: color 0.2s; }
a:hover, a:focus { color: #E3A23D; outline: none; }

/* -------------- 2. CONTAINER & SECTIONS -------------- */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section { margin-bottom: 60px; padding: 40px 20px; background: transparent; }
main > section:not(.hero):not(.cta) { background: #fff; border-radius: 20px; box-shadow: 0 2px 8px rgba(34,49,98,0.04); }

@media (max-width: 1024px) {
  .container { padding: 0 10px; }
  .section { padding: 32px 8px; }
}

@media (max-width: 768px) {
  .section { margin-bottom: 40px; padding: 24px 4px; }
}

/* -------------- 3. HEADER / NAV -------------- */
header {
  background: #fff;
  border-bottom: 1.5px solid #E3A23D12;
  padding: 0;
}
header .container { padding: 0 20px; }

header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  padding: 6px 4px;
  color: #223162;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
  font-size: 1rem;
}
header nav a:hover, header nav a:focus {
  color: #E3A23D;
  border-bottom: 2px solid #E3A23D;
}
header img {
  height: 44px;
}
.cta.primary {
  display: inline-flex;
  align-items: center;
  padding: 10px 28px;
  background: #223162;
  color: #fff!important;
  border-radius: 30px;
  text-decoration: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  margin-left: 16px;
  box-shadow: 0 3px 18px rgba(34,49,98,0.05);
  border: none;
  transition: background 0.17s, color 0.17s, transform 0.17s;
}
.cta.primary:hover, .cta.primary:focus {
  background: #E3A23D;
  color: #223162!important;
  transform: translateY(-2px) scale(1.04);
}

@media (max-width: 900px) {
  .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-height: 56px;
  }
  header nav { gap: 12px; }
  .cta.primary { margin-left: 0; }
}

@media (max-width: 768px) {
  header nav { display: none; }
  .cta.primary { display: none; }
  .content-wrapper { flex-direction: row; justify-content: space-between; min-height: 54px; }
  header img { height: 36px; }
}

/* -------------- 4. MOBILE BURGER MENU -------------- */
.mobile-menu-toggle {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 2100;
  background: #223162;
  color: #fff;
  border: none;
  border-radius: 10px;
  width: 44px; height: 44px;
  display: none;
  align-items: center; justify-content: center;
  font-size: 2rem;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 3px 14px rgba(34,49,98,0.10);
  cursor: pointer;
}
.mobile-menu-toggle:focus { outline: 2px solid #E3A23D; }

@media (max-width: 768px) {
  .mobile-menu-toggle { display: flex; }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(34,49,98,0.93);
  color: #fff;
  z-index: 2200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 54px;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(0.75,0,0.25,1);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  position: absolute;
  top: 22px; right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  z-index: 2210;
  transition: color 0.18s;
}
.mobile-menu-close:focus { outline: 2px solid #E3A23D; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 40px 28px;
  flex: 1 1 auto;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.18rem;
  font-weight: 700;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.19s, border-bottom 0.22s;
  outline: none;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: #E3A23D;
  border-bottom: 2px solid #E3A23D;
}

/* -------------- 5. HERO AREA -------------- */
.hero {
  background: #F9F9F6;
  padding-top: 36px;
  padding-bottom: 36px;
  min-height: 210px;
  margin-bottom: 0;
}
.hero .text-section h1 {
  font-size: 2.3rem;
  margin-bottom: 10px;
}
.hero .text-section h2 {
  font-size: 1.5rem;
  color: #223162BB;
  margin-bottom: 16px;
}
.hero .text-section p {
  font-size: 1.06rem;
  color: #223162D0;
  margin-bottom: 22px;
}

@media (max-width: 768px) {
  .hero {
    padding-top: 24px;
    padding-bottom: 24px;
  }
  .hero .text-section h1 { font-size: 1.44rem; }
  .hero .text-section h2 { font-size: 1.15rem; }
}

/* -------------- 6. FLEX LAYOUT UTILS -------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  flex: 1 1 280px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1.5px 10px rgba(34,49,98,0.07);
  transition: box-shadow 0.17s, transform 0.14s;
  position: relative;
  min-width: 240px;
  max-width: 350px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.card:hover, .card:focus-within {
  box-shadow: 0 7px 23px rgba(227,162,61,0.09);
  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;
}
@media (max-width: 900px) {
  .text-image-section { flex-direction: column; gap: 18px; }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 18px rgba(34,49,98,0.06);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.testimonial-card > div {
  flex: 1 1 200px;
  background: #F9F9F6;
  border-radius: 12px;
  margin: 0 8px;
  padding: 20px 14px 14px;
  box-shadow: 0 1.5px 8px rgba(227,162,61,0.06);
  min-width: 180px;
  color: #223162;
}
.testimonial-card p {
  margin-bottom: 10px;
  color: #223162;
}
.testimonial-card strong {
  font-size: 1rem;
  color: #223162;
  font-weight: 700;
  letter-spacing:0.03em;
}

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

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.features-grid > div {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 10px rgba(34,49,98,0.06);
  padding: 20px 16px;
  flex: 1 1 180px;
  min-width: 180px;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid #F1EEE8;
  transition: box-shadow 0.22s;
}
.features-grid > div:hover {
  box-shadow: 0 7px 28px rgba(34,49,98,0.13);
}
.features-grid img { width: 32px; height: 32px; margin-bottom: 8px; }
.features-grid h3 { margin: 0 0 5px; font-size: 1.1rem; }
.features-grid p {
  margin: 0 0 5px;
  font-size: 1rem;
  color: #222C3C;
}

@media (max-width: 900px) {
  .features-grid { gap: 12px; }
  .features-grid > div { min-width: 120px; max-width: unset; padding: 15px 8px; }
}
@media (max-width: 600px) {
  .features-grid { flex-direction: column; gap: 16px; }
  .features-grid > div { width: 100%; }
  .testimonial-card { flex-direction: column; padding: 12px; }
}

/* -------------- 7. LISTS, TABLES, DETAILS -------------- */
.service-list, .vehicle-category-list, .agency-address-list, .included-services-list, .feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.service-list h3, .vehicle-category-list h3 { margin-bottom: 2px; }
.service-list li, .vehicle-category-list li, .agency-address-list li, .included-services-list li, .feature-list li {
  background: #fff;
  border-radius: 12px;
  padding: 18px 16px;
  box-shadow: 0 1px 8px rgba(34,49,98,0.06);
  border-left: 4px solid #E3A23D20;
  transition: box-shadow .14s, border-left .18s;
  color: #223162;
  font-size: 1rem;
}
.service-list li:hover, .vehicle-category-list li:hover, .feature-list li:hover {
  box-shadow: 0 4px 20px rgba(227,162,61,0.07);
  border-left: 4px solid #E3A23D;
}
.feature-list img { width: 26px; height: 26px; margin-right: 5px; vertical-align: middle; }

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin: 24px 0 20px;
  border-radius: 16px;
  box-shadow: 0 1.5px 10px rgba(227,162,61,0.03);
  overflow: hidden;
}
.price-table th, .price-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid #E3A23D18;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
}
.price-table th { background: #F9F9F6; color: #223162; font-weight: 700;}
.price-table tr:last-child td { border-bottom: none; }

@media (max-width:600px) {
  .price-table th, .price-table td { padding: 8px 6px; font-size: 0.97rem; }
}

/* -------------- 8. FAQ + TEXT CARDS -------------- */
.faq-list { display: flex; flex-direction: column; gap: 20px; }
.faq-q { background: #fff; border-radius: 12px; box-shadow: 0 1px 8px rgba(227,162,61,0.06); padding: 18px 16px; }
.faq-q strong { display: block; margin-bottom: 9px; font-size: 1.07rem; color: #223162; }
.faq-q p { font-size: 1rem; color: #223162E0; margin: 0; }

/* -------------- 9. CONTACT-BLOCKS & SIDEBARS -------------- */
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  background: #F9F9F6;
  border-radius: 16px;
  padding: 28px 20px;
  align-items: center;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 1rem;
}
.contact-details img {
  width: 22px; height: 22px;
  margin-right: 6px;
  vertical-align: middle;
}
.cta-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 15px;
}
@media (max-width: 900px) {
  .contact-info { gap: 14px; padding: 18px 8px; flex-direction: column; align-items: stretch; }
  .cta-side { align-items: flex-start; }
}

/* -------------- 10. CTA SECTION -------------- */
section.cta {
  background: #223162;
  border-radius: 24px;
  margin-bottom: 50px;
  padding: 32px 12px;
}
section.cta .text-section {
  align-items: center;
  text-align: center;
  color: #fff;
}
section.cta h2, section.cta h3, section.cta p, section.cta li {
  color: #fff;
}
section.cta .cta.primary {
  background: #E3A23D;
  color: #223162!important;
  margin-top: 24px;
  box-shadow: 0 2px 9px rgba(34,49,98,0.09);
}
section.cta .cta.primary:hover, section.cta .cta.primary:focus {
  background: #fff;
  color: #223162!important;
}

/* -------------- 11. FOOTER -------------- */
footer {
  background: #fff;
  border-top: 1.5px solid #E3A23D20;
  color: #223162;
  padding: 0;
}
footer .container { padding: 32px 20px; }
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin-bottom: 0;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 180px;
}
.footer-brand img {
  height: 38px;
  margin-bottom: 3px;
}
.footer-brand .social-links {
  display: flex;
  gap: 9px;
  margin-top: 6px;
}
.footer-brand .social-links a img {
  width: 22px; height: 22px;
  opacity: 0.85;
  transition: opacity 0.15s;
}
.footer-brand .social-links a:hover img,
.footer-brand .social-links a:focus img {
  opacity: 1;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a {
  color: #223162;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.18s;
  padding: 2px 0;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #E3A23D;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.98rem;
}
@media (max-width: 768px) {
  footer .content-wrapper { flex-direction: column; gap: 18px; align-items: flex-start; }
  footer .container { padding: 24px 4px; }
}

/* -------------- 12. COOKIE CONSENT + PREFERENCES MODAL -------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3000;
  width: 100%;
  background: #F9F9F6;
  color: #223162;
  box-shadow: 0 -2px 20px rgba(34,49,98,0.05);
  border-top: 2.5px solid #E3A23D44;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  padding: 20px 22px;
  justify-content: center;
  transition: transform 0.22s ease;
  font-size: 1rem;
}
.cookie-banner.closed {
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}
.cookie-banner button {
  border: none;
  background: #223162;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 7px 18px;
  border-radius: 24px;
  font-size: 1rem;
  font-weight: 600;
  margin-left: 4px;
  margin-right: 4px;
  transition: background 0.17s, color 0.17s, box-shadow 0.18s;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(34,49,98,0.07);
}
.cookie-banner button.secondary {
  background: #fff;
  color: #223162;
  border: 1px solid #E3A23D80;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #E3A23D;
  color: #223162;
  box-shadow: 0 4px 16px rgba(227,162,61,0.11);
}
.cookie-banner button.secondary:hover, .cookie-banner button.secondary:focus {
  background: #E3A23D20;
  color: #223162;
}
@media (max-width: 700px) {
  .cookie-banner { flex-direction: column; gap: 10px; padding: 11px 2px; font-size: 0.97rem; }
  .cookie-banner .cookie-actions { gap:7px; }
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 3100;
  background: rgba(34,49,98,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.21s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-dialog {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 9px 48px rgba(34,49,98,0.15);
  padding: 34px 26px 26px;
  min-width: 320px;
  max-width: 98vw;
  display: flex;
  flex-direction: column;
  gap: 17px;
  font-size: 1rem;
  color: #223162;
  position: relative;
}
.cookie-modal-dialog h3 { font-size: 1.2rem; margin-bottom: 5px; }
.cookie-modal-dialog .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1rem;
}
.cookie-category input[type="checkbox"] { accent-color: #E3A23D; width: 19px; height: 19px; }
.cookie-category.essential label { color: #223162CC; font-weight: 600; }
.cookie-category.essential input { display: none; }
.cookie-modal-dialog .close-modal {
  position: absolute;
  top: 13px; right: 15px;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  color: #223162;
  cursor: pointer;
  transition: color 0.15s;
}
.cookie-modal-dialog .close-modal:hover { color: #E3A23D; }
.cookie-modal-dialog .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 16px;
}
.cookie-modal-dialog .modal-actions button {
  padding: 7px 20px;
  border-radius: 20px;
  font-weight: 700;
  border: none;
  transition: background 0.15s;
  background: #E3A23D;
  color: #223162;
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal-dialog .modal-actions button.secondary {
  background: #223162;
  color: #fff;
}
.cookie-modal-dialog .modal-actions button:hover, .cookie-modal-dialog .modal-actions button:focus {
  background: #223162;
  color: #fff;
}
.cookie-modal-dialog .modal-actions button.secondary:hover {
  background: #E3A23D;
  color: #223162;
}
@media (max-width: 600px) {
  .cookie-modal-dialog { min-width: unset; width: 97vw; padding: 18px 6px 18px; }
}

/* -------------- 13. TRANSITIONS & MICRO-INTERACTIONS -------------- */
.card, .features-grid > div, .testimonial-card, .faq-q, .service-list li, .vehicle-category-list li, .feature-list li {
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.15s;
}
button, a.cta, .cookie-banner button {
  transition: background 0.19s, color 0.13s, transform 0.13s, box-shadow 0.19s;
}
button:active, a.cta:active, .cookie-banner button:active {
  transform: scale(0.97) translateY(1px);
}

/* Selection highlight */
::selection {
  background: #E3A23D55;
  color: #223162;
}

/* -------------- 14. GENERAL UI ENHANCEMENTS -------------- */
img { max-width: 100%; display: block; border-radius: 8px; }
input, select, textarea {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1.5px solid #E3A23D40;
  background: #fff;
  color: #223162;
  transition: border-color 0.17s;
}
input:focus, textarea:focus, select:focus {
  border-color: #E3A23D;
  outline: none;
}

/* -------------- 15. RESPONSIVE LAYOUT OVERRIDES -------------- */
@media (max-width: 1024px) {
  .content-wrapper, .content-grid, .footer-nav, .footer-brand, .footer-contact {
    flex-direction: column!important;
    align-items: flex-start!important;
    gap: 14px!important;
  }
}
@media (max-width: 600px) {
  .content-wrapper, .content-grid, .footer-nav, .footer-brand, .footer-contact {
    flex-direction: column!important;
    align-items: flex-start!important;
    gap: 8px!important;
  }
  .container { padding: 0 3px!important; }
}

/* Hide fixed padding on main if mobile menu/bar is open */
body.menu-open { overflow: hidden; }

/* -------------- 16. PRINT OPTIMIZATION -------------- */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal { display: none!important; }
  body, html { background: #fff!important; color: #223162!important; }
}
