/* ==========================================================================
   Intermedia – Full Frontend Style
   Author: intermediars.com
   ========================================================================== */

/* 1) CSS varijable (light theme) */
:root {
  --brand: #f4691d;
  --brand-600: #ea5e13;
  --brand-700: #d54e09;

  --bg: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --card: #ffffff;

  --accent-bg: #0b1220;
  --accent-text: #e5e7eb;

  --container: 1120px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 6px 20px rgba(0,0,0,.08);
  --shadow-soft: 0 3px 12px rgba(0,0,0,.08);

  --font: "Poppins", "Segoe UI", sans-serif;
  --h1: clamp(2.0rem, 2.2vw + 1.2rem, 3rem);
  --h2: clamp(1.4rem, 1.3vw + 1rem, 2rem);
  --h3: 1.125rem;
  --lead: 1.1rem;

  --space: 16px;
  --space-lg: 30px;
  --space-xl: 60px;
}

/* 2) Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --text: #e8edf7;
    --muted: #98a3b7;
    --border: #1b2437;
    --card: #0f1627;
    --accent-bg: #0b1220;
    --accent-text: #eef2f7;
    --shadow: 0 6px 20px rgba(0,0,0,.35);
    --shadow-soft: 0 3px 12px rgba(0,0,0,.35);
  }
}

/* 3) Base reset */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 18px;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 10px; }
h1 { font-size: var(--h1); letter-spacing: -0.5px; }
h2 { font-size: var(--h2); letter-spacing: -0.3px; }
h3 { font-size: var(--h3); }

/* 4) Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover {
  background: var(--brand-600);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* 5) Header / Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
@media (prefers-color-scheme: dark) {
  .site-header { background: rgba(11,18,32,.8); }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo img {
  display: block;
  height: auto;
  width: 130px;
}

.logo-desktop { display: block !important; }
.logo-mobile { display: none !important; }

@media (max-width: 768px) {
  .logo-desktop { display: none !important; }
  .logo-mobile { display: block !important; }
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  color: var(--text);
  font-weight: 600;
}
.nav .btn {
  margin-left: 4px;
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 26px;
}

@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; color: var(--brand); }
}

/* Mobile Nav (offcanvas) */
.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 998;
  transition: opacity .3s ease;
}
.mobile-backdrop[hidden] {
  opacity: 0;
  pointer-events: none;
}
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: #0b1220;
  color: #fff;
  z-index: 999;
  transform: translateX(100%);
  transition: transform .3s ease;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.mobile-nav.open {
  transform: translateX(0);
}
.mobile-nav .close-nav {
  background: none;
  border: 0;
  font-size: 2rem;
  color: #fff;
  align-self: flex-end;
  margin-bottom: 1rem;
  cursor: pointer;
}
.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mobile-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
}
.mobile-nav a:hover { color: #f4691d; }

/* 6) Hero */
.hero {
  position: relative;
  color: #fff;
  padding: 120px 20px;
  overflow: hidden;
  background: var(--accent-bg);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 18px;
  line-height: 1.2;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 28px;
  color: #e2e8f0;
}
.hero-cta { margin-bottom: 32px; }
.hero-cta .btn {
  padding: 14px 28px;
  font-size: 1.1rem;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
  color: #cbd5e1;
  font-size: 0.95rem;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 768px) {
  .hero-inner { text-align: center; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero-trust { justify-content: center; }
  .hero-cta { display: flex; justify-content: center; }
}

/* 7) Cards / grids */
.cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(12, 1fr);
}
.cards > .card {
  grid-column: span 4;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.cards > .card h3 { margin-bottom: 8px; }
.cards > .card .checklist {
  margin: 10px 0 0;
  padding: 0 0 0 18px;
  color: var(--muted);
}
@media (max-width: 960px) {
  .cards > .card { grid-column: span 6; }
}
@media (max-width: 640px) {
  .cards > .card { grid-column: span 12; }
}

/* 8) Contact */
.section.contact {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  background: #0b1220;
  color: #f1f5f9;
}
.contact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
}
.contact-grid {
  display: grid;
  align-items: start;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  position: relative;
  z-index: 1;
}
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-form-wrapper,
.contact-info {
  background: rgba(15, 23, 42, 0.9);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.25);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.contact-form label {
  font-weight: 600;
  margin-bottom: 6px;
  display: inline-block;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
  color: #0f172a;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #f4691d;
  box-shadow: 0 0 0 3px rgba(244,105,29,0.25);
  outline: none;
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}
.contact-info h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 1.2rem;
  color: #f4691d;
}
.contact-info a {
  color: #f4691d;
  font-weight: 600;
  text-decoration: none;
}
.contact-info a:hover { text-decoration: underline; }

/* 9) Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  background: var(--card);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.site-footer nav a {
  color: var(--muted);
  margin-left: 12px;
}
.site-footer nav a:hover { color: var(--brand); }

/* 10) Utilities */
.text-center { text-align: center; }
.hidden { display: none !important; }
.m0 { margin: 0 !important; }

/* 11) Pricing & Addons */
.pricing-cards,
.addons-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}
@media (max-width: 900px) {
  .pricing-cards, .addons-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .pricing-cards, .addons-cards {
    grid-template-columns: 1fr;
  }
}

.card.price,
.card.addon {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.card.price:hover,
.card.addon:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card.price h3,
.card.addon h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  font-weight: 700;
}
.card.price .price-tag,
.card.addon .price-tag {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 18px;
}

.card.price ul,
.card.addon ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  text-align: left;
  max-width: 240px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
}
.card.price ul li,
.card.addon ul li {
  margin: 8px 0;
  padding-left: 20px;
  position: relative;
}
.card.price ul li::before,
.card.addon ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

/* Dugmad */
.card.price .btn,
.card.addon .btn {
  margin-top: auto;
  align-self: center;
  padding-left: 32px;
  padding-right: 32px;
}

/* Featured paket */
.card.price.featured {
  border: 2px solid var(--brand);
  box-shadow: 0 10px 30px rgba(244,105,29,.18);
  transform: scale(1.03);
  z-index: 2;
}

/* Badge */
.card .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  padding: 4px 10px;
  font-size: .8rem;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* 12) Portfolio */
.portfolio-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(12, 1fr);
}
.portfolio-item {
  grid-column: span 4;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.portfolio-item img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.portfolio-item figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  color: var(--muted);
}
@media (max-width: 960px) { .portfolio-item { grid-column: span 6; } }
@media (max-width: 640px) { .portfolio-item { grid-column: span 12; } }

/* 13) Testimonials */
.testimonials .testimonial {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}
.testimonials .cards > .testimonial {
  grid-column: span 6;
}
@media (max-width: 640px) {
  .testimonials .cards > .testimonial { grid-column: span 12; }
}
.testimonials blockquote { margin: 0; }
.testimonials footer {
  margin-top: 10px;
  color: var(--muted);
}

/* 14) FAQ */
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 10px;
  transition: border-color .2s ease;
}
.faq details[open] { border-color: var(--brand); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p {
  margin: 10px 0 0;
  color: var(--muted);
}

/* 15) Section titles */
.section-title {
  text-align: center;
  margin-bottom: var(--space-lg);
}
.section-title h2 {
  margin: 6px 0;
  font-size: var(--h2);
  font-weight: 700;
}
.section-title .subtitle {
  margin: 0 auto;
  max-width: 720px;
  color: var(--muted);
  font-size: 1rem;
}
.section-title .divider {
  width: 80px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), #ffb68f);
  box-shadow: 0 6px 16px rgba(244,105,29,.25);
}

/* 16) Alerts */
.alert {
  padding: 14px 18px;
  margin: 20px auto;
  border-radius: 10px;
  font-weight: 600;
  max-width: 720px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-soft);
}
.alert.success {
  background: #ecfdf5;
  border: 1px solid #10b981;
  color: #065f46;
}
.alert.error {
  background: #fef2f2;
  border: 1px solid #ef4444;
  color: #991b1b;
}

/* 17) Section spacing */
section.section {
  padding: var(--space-xl) 0;
}

@media (max-width: 768px) {
  section.section {
    padding: var(--space-lg) 0;
  }
}


/* =========================================
   Info napomena (addons-note)
   ========================================= */
.addons-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(249, 115, 22, 0.1); /* lagana narančasta pozadina */
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: #f8fafc;
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 18px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.addons-note svg {
  flex-shrink: 0;
  color: #f97316;
  margin-top: 2px;
}

.addons-note span {
  color: black;
}

/* Hover efekat da se blago istakne */
.addons-note:hover {
  background: rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.45);
  transition: background 0.25s ease, border-color 0.25s ease;
}


/* ===== Promo sekcija ===== */
.promo-section {
  background: #fff;
  color: #0b1220;
  text-align: center;
  padding: 80px 0;
}

.promo-section h2 {
  font-size: clamp(1.6rem, 3vw + 1rem, 2.4rem);
  margin-bottom: 20px;
  font-weight: 700;
  color: #111827;
}

.promo-section .lead {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 16px;
  color: #374151;
}

.promo-section p {
  font-size: 1.05rem;
  color: #4b5563;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
  align-items: center;
  justify-items: center;
}

.promo-grid ul {
  list-style: none;
  text-align: left;
  padding: 0;
  margin: 0;
  font-size: 1rem;
  color: #111827;
}

.promo-grid li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 28px;
}

.promo-grid li::before {
  content: "🔥";
  position: absolute;
  left: 0;
  top: 0;
}

.promo-box {
  background: #0b1220;
  color: #fff;
  border-radius: 12px;
  padding: 32px;
  max-width: 420px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.promo-box .guarantee {
  font-size: 1.05rem;
  margin-bottom: 20px;
  line-height: 1.5;
}

.promo-box .btn {
  display: inline-block;
  padding: 12px 26px;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
}

/* Mobilni */
@media (max-width: 768px) {
  .promo-section {
    padding: 60px 20px;
  }
  .promo-box {
    width: 100%;
  }
}

