/* ==== RESET & NORMALIZE ==== */
html { box-sizing: border-box; font-size: 100%; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
body, html { height: 100%; width: 100%; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; margin-bottom: 14px; line-height: 1.2; }
p { margin-bottom: 16px; line-height: 1.7; }
ul, ol { margin-bottom: 16px; padding-left: 24px; }
ul { list-style: disc; }
ol { list-style: decimal; }
li { margin-bottom: 12px; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
img { max-width: 100%; height: auto; display: block; }
button { border: none; font: inherit; background: none; cursor: pointer; }

/* ==== BRAND FONTS ==== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: #1B3247;
  background: #F5F5F5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #1B3247;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }

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

/* ==== HEADER & NAV ==== */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(27,50,71,0.04);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
  gap: 18px;
}
header img[alt="Sunny Cliffs Auto"] {
  height: 42px;
  margin-right: 28px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #1B3247;
  font-size: 1.05rem;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
header nav a:hover, header nav a:focus {
  background-color: #F6C14D15;
  color: #F6C14D;
}
.cta.primary {
  background: #F6C14D;
  color: #1B3247;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: 32px;
  padding: 10px 28px;
  font-size: 1.12rem;
  box-shadow: 0 2px 10px rgba(246,193,77,0.08);
  margin-left: 14px;
  transition: background 0.16s, color 0.16s, box-shadow 0.22s;
  border: none;
  outline: none;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-block;
}
.cta.primary:hover, .cta.primary:focus {
  background: #FFD168;
  color: #183347;
  box-shadow: 0 4px 18px rgba(246,193,77,0.15);
}
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: #1B3247;
  background: none;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #F6C14D25;
  color: #F6C14D;
}

/* ==== MOBILE NAV MENU ==== */
.mobile-menu {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(27,50,71,0.14);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s;
  will-change: opacity;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu .mobile-menu-close {
  background: #fff;
  color: #1B3247;
  font-size: 2.2rem;
  border: none;
  border-radius: 50%;
  margin: 20px 28px 0 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 7px rgba(27,50,71,0.13);
  cursor: pointer;
  z-index: 1000;
  transition: background 0.18s, color 0.18s;
}
.mobile-menu .mobile-menu-close:hover, .mobile-menu .mobile-menu-close:focus {
  background: #F6C14D;
  color: #1B3247;
}
.mobile-nav {
  width: 100vw;
  max-width: 340px;
  background: #fff;
  height: 100vh;
  box-shadow: -5px 0 36px rgba(27,50,71,0.10);
  padding-top: 34px;
  padding-left: 38px;
  padding-right: 38px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.77,0.1,0.23,1);
}
.mobile-menu.open .mobile-nav {
  transform: translateX(0);
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  color: #1B3247;
  padding: 16px 0 10px 0;
  border-bottom: 1px solid #f1f1f1;
  font-weight: 500;
  transition: color 0.18s;
  outline: none;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #F6C14D;
}

@media (max-width: 1024px) {
  header nav, header .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ==== MAIN STRUCTURE ==== */
main {
  flex: 1 0 auto;
  background: #F5F5F5;
}
section {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 3px 18px rgba(27,50,71,0.08);
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.section:not(:last-child) {
  margin-bottom: 60px;
}

.text-section {
  background: #F5F5F5;
  border-radius: 14px;
  padding: 18px 22px;
  font-size: 1rem;
  color: #283C51;
  box-shadow: 0 1px 7px rgba(27,50,71,0.04);
  margin-top: 10px;
}
.text-section img {
  height: 40px;
  margin-bottom: 16px;
}

/* ==== FLEXBOX STRUCTURE ==== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 22px;
  box-shadow: 0 2px 14px rgba(27,50,71,0.09);
  margin-bottom: 20px;
  position: relative;
  min-width: 260px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 28px rgba(27,50,71,0.18);
  transform: translateY(-4px) scale(1.015);
}
.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;
  background: #F5F5F5;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(27,50,71,0.10);
  margin-bottom: 20px;
  color: #17355D;
  min-width: 235px;
  max-width: 600px;
  border-left: 5px solid #F6C14D;
  transition: box-shadow 0.18s;
}
.testimonial-card p {
  color: #17355D;
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.testimonial-card strong {
  color: #1B3247;
  font-size: 1.01rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 32px rgba(246,193,77,0.18);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ==== FOOTER ==== */
footer {
  background: #1B3247;
  color: #fff;
  padding: 36px 0 14px 0;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -1px 14px rgba(27,50,71,0.05);
  min-height: 120px;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  color: #F6C14D;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 2px;
  transition: color 0.15s;
}
footer nav a:hover, footer nav a:focus {
  color: #FFD65C;
  text-decoration: underline;
}
footer .text-section {
  background: none;
  box-shadow: none;
  color: #fff;
  padding: 0;
  margin-top: 0;
}
footer .text-section img {
  height: 38px;
  margin-bottom: 14px;
}
footer p { color: #fff; font-size: 0.97rem; margin-bottom: 0; line-height: 1.55; }

/* ==== LISTS & BUTTONS ==== */
ul, ol { color: #25354A; }
ul strong, ol strong { color: #F6C14D; font-weight: 600; }
ul ul, ol ol {
  margin-top: 8px; margin-bottom: 8px;
  padding-left: 20px;
  font-size: 0.98rem;
}
button, .cta, a.cta {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: 32px;
  padding: 10px 28px;
  font-size: 1rem;
  background: #F6C14D;
  color: #1B3247;
  outline: none;
  box-shadow: 0 2px 10px rgba(246,193,77,0.08);
  border: none;
  cursor: pointer;
  transition: background 0.14s, color 0.14s, box-shadow 0.15s, transform 0.14s;
  margin-top: 8px;
  display: inline-block;
}
button.secondary, .cta.secondary {
  background: #fff;
  color: #1B3247;
  border: 2px solid #F6C14D;
}
button.secondary:hover, .cta.secondary:hover {
  background: #FFFDE6;
}
button:hover, .cta:hover, button:focus, .cta:focus,.cta.primary:focus {
  background: #FFD168;
  color: #153059;
  transform: translateY(-2px) scale(1.015);
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  color: #193552;
  z-index: 12000;
  box-shadow: 0 -2px 18px rgba(27,50,71,0.10);
  padding: 28px 18px 24px 18px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  border-radius: 24px 24px 0 0;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(40px);
  transition: opacity 0.25s, transform 0.24s;
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
}
.cookie-banner .cookie-actions button, .cookie-banner .cookie-actions .cta {
  font-size: 1rem;
  padding: 10px 18px;
  border-radius: 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  border: none;
  cursor: pointer;
  background: #F6C14D;
  color: #1B3247;
  transition: background 0.16s, color 0.16s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(246,193,77,0.07);
}
.cookie-banner .cookie-actions button.cookie-settings {
  background: #fff;
  color: #1B3247;
  border: 2px solid #F6C14D;
}
.cookie-banner .cookie-actions button:hover, .cookie-banner .cookie-actions button:focus {
  background: #FFD168;
  color: #183347;
}

/* ==== COOKIE PREFERENCES MODAL ==== */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 13000;
  background: rgba(27,50,71,0.40);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.26s;
}
.cookie-modal.visible {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 6px 32px rgba(27,50,71,0.18);
  padding: 36px 28px 24px 28px;
  width: 94vw;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: modalPop 0.29s cubic-bezier(0.42,0.34,0.43,1.46);
}
@keyframes modalPop { from { transform: scale(0.97) translateY(20px); opacity: 0.6;} to {transform: scale(1) translateY(0); opacity: 1; } }
.cookie-modal-content h3 {
  font-size: 1.35rem;
  color: #1B3247;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 4px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F5F5F5;
  border-radius: 10px;
  padding: 10px 14px;
}
.cookie-category label {
  font-size: 1rem;
  color: #1B3247;
}
.cookie-toggle {
  width: 38px;
  height: 20px;
  position: relative;
  display: inline-block;
}
.cookie-toggle input[type="checkbox"] {
  opacity: 0;
  width: 0; height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #CFD8DF;
  border-radius: 12px;
  transition: background 0.2s;
}
.cookie-toggle input:checked + .cookie-slider {
  background: #F6C14D;
}
.cookie-slider:before {
  position: absolute;
  content: "";
  height: 14px; width: 14px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.22s;
  box-shadow: 0 1px 4px rgba(27,50,71,0.12);
}
.cookie-toggle input:checked + .cookie-slider:before {
  transform: translateX(18px);
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 14px;
}
.cookie-modal-actions button {
  padding: 8px 18px;
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 18px;
  color: #1B3247;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #F6C14D25;
}

/* ==== SPACING & RESPONSIVE ==== */
@media (max-width: 860px) {
  .container {
    max-width: 98vw;
    padding-left: 10px;
    padding-right: 10px;
  }
  header .container, footer .container {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  footer .container {
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  section {
    padding: 28px 6px;
    border-radius: 12px;
  }
  .content-wrapper {
    padding: 0 4px;
  }
  .text-image-section, .content-grid {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .testimonial-card {
    min-width: 0;
    max-width: 100%;
    border-left: 4px solid #F6C14D;
    font-size: 1rem;
    padding: 14px;
    border-radius: 11px;
  }
  .card-container {
    flex-direction: column;
    gap: 14px;
  }
  .card {
    min-width: 0;
    width: 100%;
    padding: 16px 10px;
    font-size: 0.97rem;
  }
  .footer .container, footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 20px;
    padding: 22px 8px 14px 8px;
    font-size: 0.99rem;
  }
  .cookie-modal-content {
    width: 97vw;
    max-width: 98vw;
    padding: 20px 6px 12px 8px;
  }
}
@media (max-width: 450px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  .cta, .cta.primary, button, .cookie-banner .cookie-actions button {
    font-size: 0.98rem;
    padding: 8px 10px;
  }
  .cookie-banner {
    font-size: 0.95rem;
  }
  .cookie-modal-content {
    padding: 10px 3px 6px 4px;
    font-size: 0.97rem;
  }
}

/* ==== FORM ELEMENTS & INTERACTIONS ==== */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 12px;
  border: 1.6px solid #CFD8DF;
  border-radius: 6px;
  background: #F5F5F5;
  margin-bottom: 14px;
  outline: none;
  transition: border 0.16s;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: #F6C14D;
  background: #fffdf3;
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.01rem;
  color: #1B3247;
  margin-bottom: 4px;
  display: block;
}

/* ==== LINKS ==== */
a {
  color: #1B3247;
  text-decoration: underline;
  transition: color 0.16s;
}
a:hover, a:focus {
  color: #F6C14D;
  text-decoration: none;
}
av a {
  text-decoration: none;
}
nav a:hover, nav a:focus, .mobile-nav a:hover, .mobile-nav a:focus {
  text-decoration: underline;
  color: #F6C14D;
}

/* ==== HEADINGS / TYPOGRAPHY SCALE ==== */
h1 { font-size: 2.3rem; margin-bottom: 22px; }
h2 { font-size: 1.45rem; margin-bottom: 18px; }
h3 { font-size: 1.2rem; margin-bottom: 10px; }
@media (max-width: 450px) {
  h1 { font-size: 1.40rem; }
  h2 { font-size: 1.08rem; }
}

/* ==== MICRO-INTERACTIONS ==== */
.card, .testimonial-card, .cta, button, .cookie-banner, .cookie-modal-content {
  transition: box-shadow 0.16s, background 0.16s, color 0.14s, transform 0.14s;
}
.card:active, .cta:active, button:active {
  transform: scale(0.98);
  box-shadow: 0 0px 2px rgba(27,50,71,0.11);
}

/* ==== SCROLLBAR STYLING ==== */
body {
  scrollbar-width: thin;
  scrollbar-color: #CFD8DF #fff;
}
::-webkit-scrollbar {
  width: 9px;
  background: #F5F5F5;
  border-radius: 12px;
}
::-webkit-scrollbar-thumb {
  background: #CFD8DF;
  border-radius: 12px;
}
::-webkit-scrollbar-thumb:hover {
  background: #F6C14D;
}

/* ==== MISCELLANEOUS ==== */
::-moz-selection { background: #F6C14D; color: #1B3247; }
::selection { background: #F6C14D; color: #1B3247; }

/* ==== OVERRIDE FOR Z-INDEX WHEN MENU/COOKIE MODALS OPEN ==== */
body.menu-open, body.cookie-modal-open {
  overflow: hidden;
}

/* ==== ENSURE NO OVERLAPPING, PROPER SPACING BETWEEN SECTIONS ==== */
section + section {
  margin-top: 24px;
}
.card + .card, .testimonial-card + .testimonial-card {
  margin-top: 18px;
}

/* ==== ICONS IN CONTENT (eg. IMG in UL in "skup-aut.html") ==== */
ul img, ol img {
  margin-left: 10px;
  margin-right: 2px;
  height: 1.28em;
  vertical-align: middle;
  display: inline-block;
}

/* ==== CONSISTENT MARGINS BETWEEN FLEX CHILDREN ==== */
.card-container > *,
.content-grid > *,
.text-image-section > *,
.feature-item > * {
  margin-right: 0;
}

/* ==== SPECIFIC PAGE AND ELEMENT FIXES ==== */
main section ul,
main section ol {
  font-size: 1rem;
  line-height: 1.65;
  margin-top: 8px;
}
main section ul li,
main section ol li {
  margin-bottom: 10px;
}
.content-wrapper > h2:not(:first-child) {
  margin-top: 28px;
}

/* ==== HIGHLIGHTS ==== */
span, strong {
  font-family: inherit;
}

/* ==== REMOVE OUTLINES FROM ALL ELEMENTS EXCEPT FORCED FOCUS ==== */
:focus { outline: 2px solid #F6C14D; outline-offset: 2px; }

/* ========== END OF CSS ========== */
