/* Namještaj Mio — glavna stilska datoteka */

:root{
  --bg: oklch(0.97 0.01 75);
  --surface: oklch(0.99 0.006 75);
  --surface-alt: oklch(0.94 0.012 70);
  --border: oklch(0.88 0.01 60);
  --border-soft: oklch(0.92 0.008 65);
  --text: oklch(0.22 0.015 50);
  --text-muted: oklch(0.5 0.02 50);
  --text-muted2: oklch(0.4 0.02 50);
  --text-muted3: oklch(0.55 0.02 50);
  --brand: oklch(0.32 0.05 45);
  --brand-hover: oklch(0.45 0.06 45);
  --brand-contrast: oklch(0.98 0.01 70);
  --danger: oklch(0.5 0.1 25);
  --footer-bg: oklch(0.22 0.015 50);
  --footer-text: oklch(0.85 0.01 65);
  --overlay: oklch(0.15 0.01 50 / 0.45);
  --accent-h: 135;
  --font-serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --font-sans: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
  --container: 1280px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-sans);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:var(--brand); }
a:hover{ color:var(--brand-hover); }
button{ cursor:pointer; font-family:inherit; }
input,textarea,select{ font-family:inherit; }
::selection{ background:oklch(0.85 0.05 50); }
h1,h2,h3{ font-family:var(--font-serif); margin:0; }
.container{ max-width:var(--container); margin:0 auto; padding:0 20px; }
.visually-hidden{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border:none; border-radius:var(--radius-sm); font-weight:600; font-size:15px;
  padding:14px 26px; text-decoration:none; line-height:1.2; transition:background .15s,opacity .15s;
}
.btn-primary{ background:var(--brand); color:var(--brand-contrast); }
.btn-primary:hover{ background:var(--brand-hover); color:var(--brand-contrast); }
.btn-outline{ background:none; border:1.5px solid var(--brand); color:var(--brand); }
.btn-outline:hover{ background:oklch(0.94 0.012 70); color:var(--brand); }
.btn-block{ width:100%; }
.btn-sm{ padding:9px 14px; font-size:13px; border-radius:var(--radius-sm); }
.btn:disabled{ opacity:.5; cursor:not-allowed; }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:40; background:var(--surface);
  border-bottom:1px solid var(--border);
}
.header-inner{
  max-width:var(--container); margin:0 auto; padding:14px 20px;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.brand-link{ background:none; border:none; display:flex; align-items:center; gap:10px; padding:0; text-decoration:none; }
.brand-mark{
  width:38px; height:38px; border-radius:3px; background:var(--brand); color:var(--brand-contrast);
  font-family:var(--font-serif); font-weight:700; font-size:18px;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.brand-text{ text-align:left; }
.brand-name{ font-family:var(--font-serif); font-weight:700; font-size:19px; line-height:1.1; color:var(--text); }
.brand-sub{ font-size:10.5px; letter-spacing:.06em; color:var(--text-muted); text-transform:uppercase; }

.desktop-nav{ display:none; gap:4px; flex-wrap:wrap; }
.nav-btn{
  background:transparent; color:oklch(0.35 0.015 50); border:none; padding:9px 13px; border-radius:var(--radius-sm);
  font-size:13.5px; font-weight:500; white-space:nowrap; text-decoration:none; display:inline-block;
}
.nav-btn.is-active{ background:var(--surface-alt); color:var(--brand); }
.nav-btn:hover{ background:var(--surface-alt); color:var(--brand); }

.header-actions{ display:flex; align-items:center; gap:8px; }
.cart-btn{
  position:relative; background:var(--surface-alt); border:1px solid oklch(0.85 0.01 60); border-radius:var(--radius-sm);
  padding:9px 14px; font-size:13.5px; font-weight:600; display:flex; align-items:center; gap:6px; color:var(--text);
}
.cart-badge{
  background:oklch(0.5 0.06 var(--accent-h)); color:white; border-radius:999px; min-width:18px; height:18px;
  font-size:11px; display:flex; align-items:center; justify-content:center; padding:0 4px;
}
.mobile-nav-btn{ background:var(--surface-alt); border:1px solid oklch(0.85 0.01 60); border-radius:var(--radius-sm); padding:9px 12px; font-size:16px; }

.mobile-nav{ border-top:1px solid var(--border); padding:10px 16px; display:none; flex-direction:column; gap:4px; }
.mobile-nav.is-open{ display:flex; }
.mobile-nav .nav-btn{ text-align:left; padding:11px 13px; font-size:14.5px; }

@media (min-width: 880px){
  .desktop-nav{ display:flex !important; }
  .mobile-nav-btn{ display:none !important; }
  .mobile-nav{ display:none !important; }
}

/* ---------- Cart drawer ---------- */
.cart-overlay{
  position:fixed; inset:0; background:var(--overlay); z-index:60; display:none;
}
.cart-overlay.is-open{ display:block; }
.cart-drawer{
  position:fixed; top:0; right:0; height:100%; width:min(420px,100%); background:var(--surface); z-index:61;
  box-shadow:-10px 0 30px oklch(0.15 0.01 50 / 0.15); display:flex; flex-direction:column;
  transform:translateX(100%); transition:transform .25s ease;
}
.cart-drawer.is-open{ transform:translateX(0); }
.cart-header{ padding:18px 20px; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; }
.cart-title{ font-family:var(--font-serif); font-weight:600; font-size:19px; }
.cart-close{ background:none; border:none; font-size:20px; line-height:1; }
.cart-body{ flex:1; overflow-y:auto; padding:16px 20px; }
.cart-item{ display:flex; gap:12px; padding:12px 0; border-bottom:1px solid var(--border-soft); }
.cart-item-img{ width:56px; height:56px; border-radius:6px; flex-shrink:0; object-fit:cover; background:var(--surface-alt); }
.cart-item-info{ flex:1; min-width:0; }
.cart-item-name{ font-weight:600; font-size:13.5px; }
.cart-item-price{ font-size:12.5px; color:var(--text-muted); margin-top:2px; }
.qty-row{ display:flex; align-items:center; gap:8px; margin-top:6px; }
.qty-btn{ width:22px; height:22px; border:1px solid oklch(0.8 0.01 60); background:white; border-radius:4px; font-size:13px; }
.qty-val{ font-size:13px; min-width:16px; text-align:center; }
.remove-btn{ margin-left:auto; background:none; border:none; font-size:12px; color:var(--danger); text-decoration:underline; }
.cart-item-subtotal{ font-weight:600; font-size:13.5px; white-space:nowrap; }
.cart-empty{ text-align:center; padding:50px 10px; color:var(--text-muted); font-size:14px; }
.cart-sent{ text-align:center; padding:40px 10px; }
.cart-sent .mark{ font-size:34px; margin-bottom:10px; }
.cart-footer{ padding:18px 20px; border-top:1px solid var(--border); }
.cart-total-row{ display:flex; justify-content:space-between; font-size:15px; font-weight:700; margin-bottom:12px; }
.cart-note{ font-size:11.5px; color:oklch(0.55 0.02 50); text-align:center; margin-top:8px; }
.cart-field{ padding:10px 12px; border:1px solid oklch(0.82 0.01 60); border-radius:var(--radius-sm); font-size:13.5px; width:100%; margin-bottom:10px; }

/* ---------- Sections ---------- */
.page-eyebrow{ font-size:12.5px; letter-spacing:.08em; text-transform:uppercase; color:oklch(0.5 0.06 var(--accent-h)); font-weight:600; }
.page-header{ max-width:var(--container); margin:0 auto; padding:56px 20px; }
.page-header h1{ font-size:clamp(28px,4vw,42px); font-weight:600; margin:10px 0 16px; }
.page-header p.lead{ font-size:15.5px; line-height:1.65; color:var(--text-muted2); max-width:720px; margin:0 0 40px; }

.hero{ max-width:var(--container); margin:0 auto; padding:56px 20px 20px; display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,0.9fr); gap:40px; align-items:center; }
.hero h1{ font-size:clamp(32px,5vw,52px); line-height:1.08; font-weight:600; margin:0 0 18px; }
.hero h1 em{ font-style:italic; }
.hero p.lead{ font-size:16.5px; line-height:1.6; color:var(--text-muted2); margin:0 0 26px; max-width:520px; }
.hero-actions{ display:flex; gap:12px; flex-wrap:wrap; }
.hero-stats{ display:flex; gap:28px; margin-top:38px; flex-wrap:wrap; }
.stat-num{ font-family:var(--font-serif); font-size:26px; font-weight:700; }
.stat-label{ font-size:12.5px; color:var(--text-muted); }
.hero-media{ aspect-ratio:4/5; border-radius:var(--radius); overflow:hidden; }
.hero-media img{ width:100%; height:100%; object-fit:cover; }

.section{ max-width:var(--container); margin:60px auto 0; padding:0 20px; }
.section-tight{ margin-top:40px; }
.section h2{ font-size:30px; font-weight:600; text-align:center; margin:0 0 8px; }
.section-lead{ text-align:center; color:var(--text-muted); margin:0 0 36px; }

.service-grid, .card-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:18px; }
.service-card{
  text-align:left; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:22px; display:flex; flex-direction:column; gap:8px; text-decoration:none; color:inherit;
}
.service-card .ic{ font-size:26px; }
.service-card h3{ font-size:17px; font-weight:600; }
.service-card p{ font-size:13.5px; color:var(--text-muted); line-height:1.5; margin:0; }

.section-alt{ background:var(--surface-alt); margin-top:60px; padding:56px 20px; }
.feature-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:24px; }
.feature-item .ic{ font-size:24px; margin-bottom:8px; }
.feature-item h3{ font-weight:600; font-size:15.5px; margin-bottom:6px; }
.feature-item p{ font-size:13.5px; color:var(--text-muted); line-height:1.5; margin:0; }

.steps-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:20px; }
.step{ text-align:center; }
.step-num{
  width:44px; height:44px; border-radius:50%; background:var(--brand); color:white; font-family:var(--font-serif);
  font-weight:700; display:flex; align-items:center; justify-content:center; margin:0 auto 12px;
}
.step h3{ font-weight:600; font-size:14.5px; margin-bottom:4px; }
.step p{ font-size:13px; color:var(--text-muted); line-height:1.5; margin:0; }

.testimonial-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:20px; }
.testimonial-card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:22px; }
.stars{ color:oklch(0.5 0.06 var(--accent-h)); font-size:14px; margin-bottom:10px; }
.testimonial-card p{ font-size:14px; line-height:1.6; margin:0 0 14px; color:oklch(0.32 0.02 50); }
.testimonial-name{ font-weight:600; font-size:13.5px; }
.testimonial-role{ font-size:12px; color:var(--text-muted3); }

.cta-band{ max-width:var(--container); margin:64px auto 0; padding:0 20px 64px; }
.cta-band-inner{
  background:var(--brand); border-radius:14px; padding:44px 32px; text-align:center; color:var(--brand-contrast);
  background-size:cover; background-position:center;
}
.cta-band-inner h2{ font-size:27px; font-weight:600; margin:0 0 10px; }
.cta-band-inner p{ font-size:14.5px; opacity:.85; margin:0 0 22px; }

/* ---------- Style/portfolio/blog cards with image ---------- */
.style-card{ border-radius:var(--radius); overflow:hidden; border:1px solid var(--border); background:var(--surface); }
.style-card .thumb{ aspect-ratio:4/3; overflow:hidden; }
.style-card .thumb img{ width:100%; height:100%; object-fit:cover; }
.style-card .body{ padding:14px; }
.style-card .body h3{ font-weight:600; font-size:14.5px; margin-bottom:4px; }
.style-card .body p{ font-size:12.5px; color:var(--text-muted); line-height:1.5; margin:0; }

.info-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:32px; background:var(--surface-alt); border-radius:12px; padding:32px; }
.info-grid h3{ font-weight:600; font-size:15px; margin-bottom:8px; }
.info-grid p{ font-size:13.5px; color:var(--text-muted); line-height:1.6; margin:0; }

.service-panel-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:24px; }
.service-panel{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:26px; }
.service-panel .ic{ font-size:26px; margin-bottom:10px; }
.service-panel h3{ font-family:var(--font-serif); font-weight:600; font-size:18px; margin-bottom:8px; }
.service-panel p{ font-size:13.5px; color:var(--text-muted); line-height:1.6; margin:0; }

.product-card{ border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; display:flex; flex-direction:column; background:var(--surface); }
.product-card .thumb{ aspect-ratio:1/1; overflow:hidden; }
.product-card .thumb img{ width:100%; height:100%; object-fit:cover; }
.product-card .body{ padding:14px; display:flex; flex-direction:column; gap:6px; flex:1; }
.product-card h3{ font-weight:600; font-size:14px; margin:0; }
.product-card p{ font-size:12px; color:var(--text-muted); line-height:1.4; flex:1; margin:0; }
.product-row{ display:flex; align-items:center; justify-content:space-between; margin-top:6px; }
.product-price{ font-weight:700; font-size:15px; }

.shop-note{ margin-top:40px; background:var(--surface-alt); border-radius:var(--radius); padding:22px 26px; font-size:13px; color:var(--text-muted); line-height:1.6; }

.portfolio-card{ border-radius:var(--radius); overflow:hidden; border:1px solid var(--border); background:var(--surface); }
.portfolio-card .thumb{ aspect-ratio:4/3; overflow:hidden; }
.portfolio-card .thumb img{ width:100%; height:100%; object-fit:cover; }
.portfolio-card .body{ padding:14px; }
.portfolio-cat{ font-size:11px; letter-spacing:.05em; text-transform:uppercase; color:oklch(0.5 0.06 var(--accent-h)); font-weight:600; }
.portfolio-title{ font-weight:600; font-size:14.5px; margin:4px 0 2px; }
.portfolio-loc{ font-size:12px; color:var(--text-muted3); }

.blog-card{ border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; background:var(--surface); }
.blog-card .thumb{ aspect-ratio:16/9; overflow:hidden; }
.blog-card .thumb img{ width:100%; height:100%; object-fit:cover; }
.blog-card .body{ padding:18px; }
.blog-meta{ font-size:11px; color:var(--text-muted3); margin-bottom:6px; }
.blog-card h3{ font-family:var(--font-serif); font-weight:600; font-size:16.5px; margin-bottom:8px; }
.blog-card p{ font-size:13px; color:var(--text-muted); line-height:1.55; margin:0; }

.team-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:20px; margin-bottom:48px; }
.team-member{ text-align:center; }
.team-photo{ aspect-ratio:1/1; border-radius:50%; overflow:hidden; margin:0 auto 12px; width:140px; max-width:100%; }
.team-photo img{ width:100%; height:100%; object-fit:cover; }
.team-name{ font-weight:600; font-size:14.5px; }
.team-role{ font-size:12.5px; color:var(--text-muted3); }

.stats-band{ background:var(--surface-alt); border-radius:12px; padding:32px; display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:24px; text-align:center; }
.stats-band .stat-num{ font-size:24px; }

/* ---------- Contact ---------- */
.contact-grid{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:40px; }
.contact-details{ display:flex; flex-direction:column; gap:18px; margin-bottom:28px; }
.contact-details .label{ font-weight:600; font-size:14px; }
.contact-details .value{ font-size:13.5px; color:var(--text-muted); }
.contact-photo{ aspect-ratio:16/9; border-radius:var(--radius); overflow:hidden; }
.contact-photo img{ width:100%; height:100%; object-fit:cover; }
.contact-form-card{ background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:28px; }
.contact-form-card h2{ font-weight:600; font-size:18px; margin-bottom:16px; }
.form-stack{ display:flex; flex-direction:column; gap:12px; }
.form-field{ padding:11px 13px; border:1px solid oklch(0.82 0.01 60); border-radius:var(--radius-sm); font-size:13.5px; width:100%; background:white; }
textarea.form-field{ resize:vertical; }
.form-check{ display:flex; gap:8px; align-items:flex-start; font-size:12px; color:var(--text-muted); }
.form-check input{ margin-top:2px; }
.form-success{ text-align:center; padding:30px 0; }
.form-success .mark{ font-size:32px; margin-bottom:10px; }
.form-success h2{ font-size:18px; font-weight:600; margin-bottom:6px; }
.form-success p{ font-size:13.5px; color:var(--text-muted); margin:0; }
.form-error{ background:oklch(0.95 0.05 25); border:1px solid oklch(0.7 0.1 25); color:oklch(0.35 0.1 25); border-radius:var(--radius-sm); padding:12px 14px; font-size:13px; margin-bottom:14px; }

/* ---------- Legal pages ---------- */
.legal-page{ max-width:800px; margin:0 auto; padding:56px 20px; }
.legal-page h1{ font-size:30px; font-weight:600; margin:0 0 24px; }
.legal-page .body{ font-size:14px; line-height:1.9; color:oklch(0.32 0.02 50); display:flex; flex-direction:column; gap:16px; }

/* ---------- Cookie banner ---------- */
.cookie-banner{
  position:fixed; bottom:0; left:0; right:0; z-index:70; background:var(--footer-bg); color:oklch(0.95 0.008 70);
  padding:16px 20px; display:none; gap:16px; align-items:center; justify-content:center; flex-wrap:wrap;
}
.cookie-banner.is-visible{ display:flex; }
.cookie-banner p{ font-size:13px; max-width:640px; line-height:1.5; margin:0; }
.cookie-banner a{ color:inherit; text-decoration:underline; }
.cookie-accept{ background:var(--brand-contrast); color:var(--footer-bg); border:none; padding:10px 20px; border-radius:var(--radius-sm); font-weight:600; font-size:13px; white-space:nowrap; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--footer-bg); color:var(--footer-text); margin-top:0; padding:52px 20px 24px; }
.footer-grid{ max-width:var(--container); margin:0 auto; display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:32px; }
.footer-col h4{ font-weight:600; color:var(--brand-contrast); font-size:13.5px; margin:0 0 12px; }
.footer-col p{ font-size:13px; line-height:1.7; margin:0; }
.footer-links{ display:flex; flex-direction:column; gap:8px; font-size:13px; }
.footer-links a{ color:inherit; text-decoration:none; opacity:.85; }
.footer-links a:hover{ opacity:1; text-decoration:underline; }
.footer-brand{ font-family:var(--font-serif); font-weight:700; font-size:19px; color:var(--brand-contrast); margin-bottom:10px; }
.footer-bottom{
  max-width:var(--container); margin:36px auto 0; padding-top:20px; border-top:1px solid oklch(0.35 0.01 50);
  font-size:12px; opacity:.75; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
}

@media (max-width: 720px){
  .hero{ grid-template-columns:1fr; }
  .contact-grid{ grid-template-columns:1fr; }
}
