/* SACRO BALLE AUTOSERVIS nature_organic Theme - style.css */
/*--- CSS RESET & NORMALIZE ---*/
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
body, html { height: 100%; }
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: #f6f5f0;
  color: #232915;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { display: block; max-width: 100%; height: auto; }
a { color: #276678; text-decoration: none; transition: color 0.2s; }
a:hover,
a:focus { color: #1C232D; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; font-size: 16px; margin-top: 16px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #dfe7e2; }
th { background: #e7efdb; font-weight: 600; }

/*--- ROOT COLORS (Earthy & Nature-inspired) ---*/
:root {
  --primary: #1C232D;
  --secondary: #276678;
  --accent: #F9B233;
  --earth1: #B7A58C;
  --earth2: #A3BC92;
  --earth3: #789262;
  --nature-bg: #f6f5f0;
  --card-bg: #fffdfa;
  --success: #45a170;
  --danger: #d66a57;
  --shadow: 0 3px 20px 0 rgba(60,70,50,0.10);
}

/*--- TYPOGRAPHY ---*/
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #232915;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
h1 { font-size: 2.5rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 14px; }
h3 { font-size: 1.3rem; margin-bottom: 10px; }
h4 { font-size: 1.125rem; margin-bottom: 10px; }
p, li, td, th { font-size: 1rem; color: #364025; }
p, ul, ol, .note { margin-bottom: 12px; }
.note { color: #789262; font-size: 0.97rem; font-style: italic; margin-top: 10px; }
strong { color: var(--primary); font-weight: 600; }

/*--- LAYOUT CONTAINERS ---*/
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  background: var(--card-bg);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 32px 28px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.text-section {
  align-items: flex-start;
  justify-content: center;
}

/*--- FLEX PATTERNS & SPACING ---*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  border-radius: 24px;
  padding: 24px;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.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: #e7efdb;
  border-radius: 20px;
  box-shadow: 0 2px 10px 0 rgba(60,80,50,0.07);
  margin-bottom: 20px;
  color: #232915;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 18px;
  justify-content: flex-start;
}
.service-category {
  background: #f0ede6;
  border-radius: 18px;
  padding: 24px 24px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 2px 8px 0 rgba(140,170,120, 0.09);
}

.cta-box {
  background: var(--earth2);
  padding: 36px 26px;
  border-radius: 28px;
  box-shadow: 0 2px 12px 0 rgba(60,70,50,0.09);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

/*--- HEADER & NAVIGATION ---*/
header {
  background: var(--nature-bg);
  border-bottom: 2px solid #dbdbcf;
  padding: 0.6rem 0;
  position: relative;
  z-index: 101;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}
header img[alt="Sacro Balle AutoServis"],
header img[alt="Sacro Balle AutoServis logo"] {
  width: 164px;
  min-width: 120px;
  height: auto;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
nav a {
  font-family: 'Montserrat', sans-serif;
  padding: 8px 0;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--secondary);
  transition: color 0.18s;
  position: relative;
}
nav a:not(.btn-primary):hover,
nav a:not(.btn-primary):focus {
  color: var(--primary);
}
nav a.btn-primary {
  margin-left: 18px;
}

/*--- BUTTONS ---*/
.btn-primary,
.btn-secondary {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: 24px;
  outline: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, color 0.16s;
  padding: 12px 38px;
  box-shadow: 0 2px 9px 0 rgba(30,60,50,0.065);
  font-size: 1.08rem;
}
.btn-primary {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 4px 20px 0 rgba(249,178,51,0.13);
}
.btn-primary:hover,
.btn-primary:focus {
  background: #ffce58;
  color: #1C232D;
  box-shadow: 0 6px 20px 0 rgba(249,178,51,0.18);
}
.btn-secondary {
  background: var(--earth3);
  color: #fff;
  margin-left: 0;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: #53844b;
  color: #fffde7;
}

/*--- HOMEPAGE & MISC ELEMENTS ---*/
.main-hero {
  min-height: 340px;
  background: #e7efdb;
  display: flex;
  align-items: center;
  border-radius: 32px;
}

/*--- Testimonial Section ---*/
.testimonial-card {
  background: #e7efdb;
  color: #232915;
  box-shadow: 0 1px 7px 0 rgba(140,170,120,0.08);
  border-left: 6px solid var(--earth3);
}
.testimonial-card strong {
  font-size: 1.05rem;
  color: var(--primary);
}
.testimonial-card span {
  color: var(--accent);
  margin-left: 10px;
  font-size: 1.07rem;
}
.testimonial-card p {
  font-style: italic;
  margin-top: 6px;
}

/*--- Blog Preview ---*/
.blog-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 28px 0 12px 0;
}
.blog-preview article {
  background: #fffdfa;
  box-shadow: 0 2px 11px 0 rgba(80,100,80,0.10);
  border-radius: 18px;
  padding: 28px 22px 22px 22px;
  min-width: 220px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.blog-preview h2 { font-size: 1.18rem; margin-bottom: 7px; }
.tags-cloud {
  margin: 10px 0 0 0;
  font-size: 0.99rem;
  color: #789262;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.tags-cloud span {
  background: #e7efdb;
  color: #5c6133;
  padding: 3px 11px;
  border-radius: 8px;
  margin-left: 5px;
  font-size: 0.98rem;
}

/*--- Contact Info ---*/
.contact-info-details {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.map-embed {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0;
  background: #e1dcc9;
  padding: 15px 14px;
  border-radius: 12px;
  font-size: 1rem;
  color: #273826;
  box-shadow: 0 2px 7px 0 rgba(180,170,130,0.10);
}

/*--- FOOTER ---*/
footer {
  background: #22281b;
  color: #e7efdb;
  padding: 42px 0 0 0;
  position: relative;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 20px;
}
.footer-flex nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-flex nav a {
  color: #e7efdb;
  font-size: 1rem;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  transition: color 0.18s;
}
.footer-flex nav a:hover,
.footer-flex nav a:focus { color: var(--accent); }
.footer-contact {
  font-size: 0.97rem;
  color: #e1dcc9;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 0;
}
.footer-contact img { margin-right: 8px; vertical-align: middle; width: 20px; height: 20px; display: inline-block; }
.footer-bottom {
  border-top: 1px solid #444e39;
  padding: 16px 0 28px 0;
  text-align: center;
  font-size: 0.97rem;
  color: #b7c29c;
  background: #1a1f13;
}
footer a {
  color: #e7efdb;
  transition: color 0.18s;
}
footer a:hover,
footer a:focus {
  color: var(--accent);
}

/*--- TABLES ---*/
table { background: #fffdfa; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 8px 0 rgba(80,100,80,0.08); }
th, td { border-bottom: 1px solid #e7efdb; }

/*--- THANK YOU ---*/
.thank-you { margin: auto; text-align: center; background: #e7efdb; border-radius: 24px; padding: 44px 24px; box-shadow: 0 1px 11px 0 rgba(140,170,120,0.09); max-width: 560px; }

/*--- MOBILE NAVIGATION (BURGER MENU) ---*/
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #276678;
  cursor: pointer;
  z-index: 220;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(241,247,224,0.97);
  z-index: 210;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  transition: transform 0.35s cubic-bezier(.77,0,.18,1), opacity 0.21s;
  transform: translateX(100%);
  opacity: 0;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  position: absolute;
  top: 26px;
  right: 30px;
  font-size: 2rem;
  color: #276678;
  cursor: pointer;
  z-index: 222;
  transition: color 0.15s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus { color: var(--primary); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 96px 36px 36px 36px;
  width: 100vw;
  align-items: flex-start;
}
.mobile-nav a {
  font-size: 1.32rem;
  font-family: 'Montserrat', sans-serif;
  color: #232915;
  font-weight: 500;
  padding: 12px 0;
  transition: color 0.18s, background 0.18s;
  display: block;
  border-radius: 9px;
}
.mobile-nav a:hover,
.mobile-nav a:focus { background: #e7efdb; color: #276678; }

/*--- COOKIE CONSENT BANNER & MODAL ---*/
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  background: #e7efdb;
  color: #232915;
  box-shadow: 0 -2px 20px 0 rgba(140,170,120,0.12);
  padding: 24px 20px;
  z-index: 9000;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  align-items: center;
  justify-content: center;
  border-top-left-radius: 26px;
  border-top-right-radius: 26px;
  animation: cookieBannerSlideUp 0.38s cubic-bezier(.77,0,.18,1);
}
@keyframes cookieBannerSlideUp {
  from { transform: translateY(40px); opacity:0; }
  to   { transform: translateY(0); opacity:1; }
}
.cookie-banner-msg {
  font-size: 1rem;
  max-width: 420px;
  color: #232915;
}
.cookie-banner .cookie-btn {
  margin-left: 4px;
  padding: 9px 23px;
  border-radius: 20px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 7px 0 rgba(249,179,51,0.06);
  transition: background 0.15s, color 0.14s;
}
.cookie-btn-accept {
  background: var(--accent);
  color: var(--primary);
}
.cookie-btn-accept:hover { background: #ffbd2b; }
.cookie-btn-reject {
  background: #d66a57;
  color: #fff;
}
.cookie-btn-reject:hover { background: #b34e39; }
.cookie-btn-settings {
  background: var(--earth3);
  color: #fff;
}
.cookie-btn-settings:hover { background: #40723d; }

/*--- COOKIE MODAL ---*/
.cookie-modal-backdrop {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(34,43,24,0.45);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.18s;
}
.cookie-modal-backdrop.open { display: flex; }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
.cookie-modal {
  background: #fffdfa;
  border-radius: 24px;
  box-shadow: 0 4px 32px 0 rgba(60,80,45,0.24);
  padding: 34px 28px 26px 28px;
  min-width: 300px;
  max-width: 98vw;
  max-width: 420px;
  z-index: 10200;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: popUp 0.23s cubic-bezier(.77,0,.18,1);
}
@keyframes popUp {
  0% { transform: scale(0.75) translateY(90px); opacity:0; }
  75% { transform: scale(1.03) translateY(-7px); opacity:1; }
  100% { transform: scale(1.0) translateY(0); opacity:1; }
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 22px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #789262;
  cursor: pointer;
  transition: color 0.13s;
}
.cookie-modal-close:hover { color: var(--danger); }
.cookie-preference-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-preference-row {
  display: flex;
  align-items: center;
  gap: 13px;
  justify-content: space-between;
  background: #e7efdb;
  border-radius: 11px;
  padding: 10px 14px;
}
.cookie-preference-row label { font-weight: 500; color: #232915; }
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 38px; height: 22px;
}
.cookie-switch input { opacity: 0; width: 0; height: 0; }
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--earth2);
  border-radius: 14px;
  transition: background 0.16s;
}
.cookie-switch input:checked + .cookie-slider {
  background: var(--accent);
}
.cookie-slider:before {
  position: absolute;
  content: "";
  height: 18px; width: 18px;
  left: 2px; bottom: 2px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s;
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(16px);
}
.cookie-modal-btns {
  margin-top: 11px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 17px;
}
.cookie-preference-row .switch-locked {
  pointer-events: none;
  opacity: 0.65;
}

/*--- RESPONSIVE DESIGN ---*/
@media (max-width: 1120px) {
  .container { max-width: 1000px; }
}
@media (max-width: 900px) {
  .container { max-width: 95vw; }
  .card-container, .content-grid, .feature-grid { gap: 18px; }
}
@media (max-width: 768px) {
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.32rem; }
  .section { margin-bottom: 38px; padding: 28px 7px; }
  .content-wrapper { padding: 19px 7px; border-radius: 17px; }
  .card, .testimonial-card, .cta-box, .service-category { padding: 13px 8px; border-radius: 13px; }
  .feature-grid,
  .service-category,
  .card-container,
  .content-grid,
  .blog-preview {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .text-image-section {
    flex-direction: column;
    gap: 13px;
  }
  .footer-flex {
    flex-direction: column;
    gap: 19px;
    align-items: flex-start;
  }
  .main-hero { border-radius: 16px; min-height: 180px; }
}
@media (max-width: 650px) {
  header .container { gap: 8px; min-height: 52px; }
  .footer-contact { font-size: 0.97rem; }
  .footer-flex nav { gap: 2px; }
  .footer-flex { gap: 11px; }
}
@media (max-width: 575px) {
  .container { padding: 0 6px; }
  .footer-bottom { font-size: 0.87rem; }
  .cta-box, .content-wrapper { border-radius: 9px; }
  .map-embed { font-size: 0.9rem; }
}
/*--- SHOW/HIDE NAV ---*/
@media (max-width: 1020px) {
  header nav { display: none!important; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 1021px) {
  .mobile-menu { display: none!important; }
  .mobile-menu-toggle { display: none!important }
}

/*--- UTILITIES & MICRO-INTERACTIONS ---*/
.box-shadow-soft { box-shadow: var(--shadow); }
.rounded-soft { border-radius: 18px; }
.gap-16 { gap: 16px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

::-webkit-input-placeholder { color: #718162; }
::-moz-placeholder { color: #718162; }
:-ms-input-placeholder { color: #718162; }
::placeholder { color: #718162; }

input, textarea, button, select { font-family: inherit; }

/*--- VISUAL ORGANIC ACCENTS ---*/
.card, .cta-box, .testimonial-card, .service-category, .blog-preview article {
  border-radius: 23px 16px 24px 20px/16px 20px 24px 18px;
}
/* subtle naturalistic shadow for depth */
.card, .service-category, .cta-box, .testimonial-card, .blog-preview article {
  box-shadow: 0 3px 20px 0 rgba(84,110,60,0.07);
}

/* Organic divider line (hr) */
hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, #E7EFDB 20%, #789262 50%, #E7EFDB 80%);
  margin: 32px 0;
  border-radius: 1.5px;
}

/*--- FORMS (if present) ---*/
input[type=text], input[type=email], textarea {
  border: 1.5px solid #b7c292;
  background: #f6f5f0;
  padding: 10px 18px;
  font-size: 1rem;
  color: #232915;
  border-radius: 14px;
  margin-bottom: 15px;
  outline: none;
  transition: border 0.17s;
}
input[type=text]:focus,
input[type=email]:focus,
textarea:focus {
  border-color: var(--accent);
}

button:focus, .btn-primary:focus, .btn-secondary:focus, .cookie-btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/*--- ACCESSIBILITY ---*/
:focus-visible {
  outline: 2.5px solid #5cb273;
  outline-offset: 2px;
}

/*--- SMOOTH INTERACTIONS ---*/
.btn-primary, .btn-secondary, .cookie-btn, .mobile-menu-toggle, .mobile-menu-close, .cookie-modal-close, .mobile-nav a {
  transition: background 0.15s, color 0.13s, box-shadow 0.17s;
}

/*--- PREVENT OVERLAP ---*/
.section, .card, .testimonial-card, .cta-box, .feature-grid > *, .service-category, .blog-preview article { margin-bottom: 20px; }

/*--- Print styles ---*/
@media print {
  * { background: #fff; color: #232915 !important; }
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  .container { max-width: 100%; padding: 0; }
}
