:root {
  --primary: #0a4d8c;
  --accent: #31c48d;
  --radius: 18px;
  --shadow: 0 2px 18px 0 #0a4d8c11;
  --bg-url: url('https://i.ibb.co/KxD6S2d0/Dizajn-bez-naslova.jpg');
}

html { box-sizing: border-box; scroll-behavior: smooth; }
*, *:before, *:after { box-sizing: inherit; }

body {
  min-height: 100vh;
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  background:
    linear-gradient(rgba(10,77,140,0.30), rgba(10,77,140,0.30)),
    url('https://i.ibb.co/ZqQzVqs/IMG-20250729-WA0004.jpg') left center / cover no-repeat fixed;
  color: #fff;
}








/* Fixed full-viewport background */
.bg-fixed {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(10,77,140,0.62), rgba(49,196,141,0.38)),
    var(--bg-url) center center / cover no-repeat;
}

/* Mobile: use contain so the whole image shows */
@media (max-width: 480px) {
  .bg-fixed {
    background:
      linear-gradient(rgba(10,77,140,0.72), rgba(49,196,141,0.40)),
      var(--bg-url) center top / contain no-repeat;
    background-color: #0a4d8c;
  }
}

/* ----- HEADER ----- */
header {
  position: relative;
  color: #fff;
  padding: 2rem 0 1.2rem;
  text-align: center;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
header::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(10,20,40,0.55); /* dark overlay */
  z-index: 0;
}
header * { position: relative; z-index: 1; }

.main-logo {
  display: block;
  margin: 0 auto 0.4em auto;
  max-width: 220px;
  width: 65%;
  height: auto;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
@media (max-width: 480px) {
  .main-logo {
    max-width: 130px;
    margin-bottom: 0.25em;
  }
}

.logo-title {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.25;
  margin: 0.5em 0;
  text-shadow: 0 2px 8px rgba(10,77,140,0.27);
}
header p {
  margin: 0.4rem 0 0 0;
  opacity: 0.92;
  font-size: 1.02rem;
}
@media (max-width: 480px) {
  .logo-title { font-size: 1.2rem; margin-bottom: 0.4em; }
  header p { font-size: 0.9rem; }
}

/* ----- CTA BUTTONS ----- */
.cta-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  background: var(--accent);
  color: #fff;
  padding: 0.9em 2em;
  border-radius: 40px;
  font-weight: 700;
  font-size: 1.1em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transition: background 0.18s, transform 0.12s;
}
.cta-btn:hover,
.cta-btn:active { background: #239e6a; transform: translateY(-1px); }

/* Mobile: bigger and full-width-ish */
@media (max-width: 480px) {
  .cta-bar { gap: 0.8rem; padding: 0 0.8rem; }
  .cta-btn {
    width: min(500px, 92%);
    font-size: 1.18em;
    padding: 1.05em 1.4em;
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
  }
}

/* ----- MAIN CONTENT ----- */
main {
  max-width: 860px;
  margin: 2.3rem auto;
  background: rgba(255,255,255,0.70);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.2rem 2rem 2rem;
  color: #222;
}
section { margin-bottom: 2.4rem; }
h2 {
  color: var(--primary);
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Cards */
.gps-card,
.about-card,
.prices-card,
.contact-card,
.reviews-card {
  background: rgba(255,255,255,0.55) !important;
  border-radius: var(--radius);
  box-shadow: 0 1px 8px #0a4d8c08;
  padding: 1.2rem 1rem;
  margin-bottom: 0.8rem;
}

/* Reviews */
.reviews-card h2 { margin-top: 0; color: #e7b000; font-size: 1.25rem; }
.reviews-card blockquote {
  margin: 0 0 1em 0;
  padding-left: 1em;
  border-left: 3px solid #31c48d55;
  font-size: 1.02em;
  color: #176;
  background: rgba(255,255,255,0.15);
}
.reviewer { color: #888; font-size: 0.92em; font-style: italic; }

/* Map */
#map {
  width: 100%;
  height: 220px;
  border-radius: var(--radius);
  margin-bottom: 0.7em;
  border: 1px solid #e6eaf0;
}
#distance { font-size: 1.05em; margin-bottom: 0.2em; font-weight: 600; }
.gps-note { font-size: 0.97em; color: #5a6372; }

/* Price Table */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0.7em;
  font-size: 1.08em;
}
.price-table th, .price-table td {
  padding: 0.65em 0.5em;
  border-bottom: 1px solid #b8e7d2;
}
.price-table th {
  background: #d4f5e8;
  text-align: left;
  font-size: 1.05em;
}
.price-table tr:last-child td { border-bottom: none; }
.about-card strong { color: var(--primary); }

/* Contact Form */
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 0.7em;
  margin: 0.5em 0 1em 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
  background: #fff;
  font-family: inherit;
}
.contact-form button {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border: none;
  padding: 0.8em 1.6em;
  border-radius: 40px;
  font-size: 1.02em;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s;
}
.contact-form button:hover { background: #0c375f; }
.contact-alt { margin-top: 1.2em; font-size: 1em; color: #b46900; }

/* Responsive Tweaks */
@media (max-width: 750px) {
  main { padding: 1rem 0.6rem; }
  .logo-title { font-size: 1.3rem; }
  h2 { font-size: 1.1rem; }
  .cta-bar { gap: 0.6rem; }
  #map { height: 160px; }
}

/* ===== Sticky CTA bar on phones ===== */
@media (max-width: 480px) {
  .cta-bar {
    position: sticky;
    top: env(safe-area-inset-top, 0); /* avoids notch overlap on iOS */
    z-index: 1000;
    margin: 0;                    /* remove outside margin so it hugs the top */
    padding: 0.5rem 0.8rem;       /* a bit of inner padding */
    background: rgba(10, 20, 40, 0.55);   /* translucent backdrop */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }

  /* make the buttons big, centered, and almost full width */
  .cta-btn {
    width: min(560px, 100%);
    font-size: 1.18em;
    padding: 1.05em 1.4em;
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
    justify-content: center;
  }
}

/* Main container */
main {
  max-width: 860px;
  margin: 2.3rem auto;
  background: rgba(255,255,255,0.35); /* lighter: was 0.70 */
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.2rem 2rem 2rem;
  color: #222;
}

/* All content cards */
.gps-card,
.about-card,
.prices-card,
.contact-card,
.reviews-card {
  background: rgba(255,255,255,0.25) !important; /* lighter: was 0.55 */
  border-radius: var(--radius);
  box-shadow: 0 1px 8px #0a4d8c08;
  padding: 1.2rem 1rem;
  margin-bottom: 0.8rem;
}

/* Review blockquotes */
.reviews-card blockquote {
  background: rgba(255,255,255,0.10); /* lighter: was 0.15 */
  border-left: 3px solid rgba(49,196,141,0.4);
}

.cta-btn {
  background: rgba(49,196,141,0.85); /* instead of solid green */
  color: #fff;
  /* ... keep the rest */
}
.cta-btn:hover,
.cta-btn:active {
  background: rgba(35,158,106,0.9);
}

.bg-fixed {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  min-height: 100%;          /* ensures it fills whole scrollable area */
  width: 100%;
  z-index: -1;
  background:
    linear-gradient(rgba(10,77,140,0.62), rgba(49,196,141,0.38)),
    var(--bg-url) center center / cover no-repeat fixed;
}

@media (max-width: 480px) {
  .bg-fixed {
    background:
      linear-gradient(rgba(10,77,140,0.72), rgba(49,196,141,0.4)),
      var(--bg-url) center top / contain no-repeat scroll;
    background-color: #0a4d8c;
    min-height: 100%;
  }
}

.main-logo {
  display: block;
  margin: 0 auto 0.5em auto;
  width: clamp(100px, 25vw, 220px); /* responsive scaling */
  height: auto;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

/* Make the logo larger on phones */
@media (max-width: 480px) {
  .main-logo {
    /* was clamp(100px, 25vw, 220px) — too small on 360–414px screens */
    width: clamp(140px, 100vw, 220px);
  }
}

/* Slightly larger on small tablets too */
@media (min-width: 481px) and (max-width: 768px) {
  .main-logo {
    width: clamp(160px, 32vw, 240px);
  }
}

#map {
  width: 100%;
  height: 400px;
  border-radius: 18px;
  border: 1px solid #ccc;
  margin-bottom: 0.7em;
}

/* ====== TOP HEADER ====== */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  background: rgba(10, 77, 140, 0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

.header-left .main-logo {
  max-height: 55px;
  width: auto;
}

.header-right .call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  background: #d93025; /* red button */
  width: 42px;
  height: 42px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  transition: background 0.2s ease;
}

.header-right .call-btn:hover {
  background: #b1271d;
}

/* ====== WHITE, STICKY TOP HEADER ====== */
.top-header {
  position: sticky;
  top: 0;
  z-index: 1000;               /* stays above map/cards */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: #ffffff;         /* white header like example */
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* logo sizing inside white bar */
.top-header .main-logo {
  display: block;
  height: 46px;                /* consistent height */
  width: auto;
}

/* red circular call button on right */
.call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #d93025;
  color: #fff;
  text-decoration: none;
  font-size: 1.4rem;
  line-height: 1;
  box-shadow: 0 3px 8px rgba(0,0,0,0.18);
  transition: background .2s ease, transform .05s ease;
}
.call-btn:hover { background: #b1271d; }
.call-btn:active { transform: translateY(1px); }

/* small screens: make header compact and safe around notches */
@media (max-width: 480px) {
  .top-header {
    padding: calc(0.4rem + env(safe-area-inset-top, 0)) 0.8rem 0.4rem;
  }
  .top-header .main-logo { height: 40px; }
  .call-btn { width: 40px; height: 40px; font-size: 1.3rem; }
}


header {
  background: #ffffff; /* white background */
  color: #0a4d8c;      /* brand blue text */
  padding: 2rem 0 1.2rem;
  text-align: center;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.logo-title {
  color: #0a4d8c; /* brand color */
  text-shadow: none;
}
header p {
  color: #333;
}

.main-logo {
  display: block;
  margin: 0 auto 0.5em auto;
  width: clamp(140px, 40vw, 260px); /* larger base scaling */
  height: auto;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

/* Make logo bigger on small phones */
@media (max-width: 480px) {
  .main-logo {
    width: clamp(180px, 70vw, 300px); /* bigger for small screens */
  }
}

/* Slightly larger on tablets too */
@media (min-width: 481px) and (max-width: 768px) {
  .main-logo {
    width: clamp(200px, 45vw, 320px);
  }
}

/* ----- FIX: Bigger logo on phones, override old cap ----- */
@media (max-width: 600px) {
  .main-logo {
    max-width: none !important;        /* remove 130px cap */
    width: clamp(260px, 85vw, 380px);   /* big, responsive logo */
    margin: 0.25rem auto 0.6rem;
  }

  /* show logo only on mobile */
  .logo-title,
  header p {
    display: none !important;
  }

  /* a touch more breathing room around the logo */
  header { padding: 1.2rem 0 1rem; }
}

/* === Restore logo text under logo on phones === */
@media (max-width: 600px) {
  .logo-title,
  header p {
    display: block !important;   /* show title + tagline again */
    font-size: 1rem;             /* adjust size so it fits nicely */
    margin: 0.4rem 0;
    text-align: center;
  }

  .logo-title {
    font-size: 1.4rem;
    line-height: 1.2;
  }

  header p {
    font-size: 0.95rem;
    opacity: 0.9;
  }
}

/* Follow-truck button */
.follow-btn {
  display: inline-block;
  margin: 0.4rem 0 0.6rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(10,77,140,0.2);
  background: #ffffff;
  color: #0a4d8c;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.follow-btn.off {
  background: #ffeae8;
  border-color: rgba(217,48,37,0.35);
  color: #b1271d;
}

