/* Dentaria Rijeka — stylesheet */

:root {
  --bg: oklch(0.985 0.005 85);
  --bg-header: oklch(0.995 0.004 85);
  --border: oklch(0.9 0.012 85);
  --border-soft: oklch(0.94 0.008 85);
  --text: oklch(0.22 0.015 250);
  --text-body: oklch(0.3 0.015 250);
  --muted: oklch(0.48 0.02 250);
  --muted2: oklch(0.5 0.02 250);
  --accent: oklch(0.5 0.1 200);
  --accent-dark: oklch(0.4 0.1 200);
  --accent-darker: oklch(0.35 0.06 200);
  --accent-light: oklch(0.94 0.03 200);
  --navy: oklch(0.2 0.02 250);
  --navy2: oklch(0.32 0.015 250);
  --warm: oklch(0.62 0.12 40);
  --ph1: oklch(0.94 0.01 85);
  --ph2: oklch(0.97 0.006 85);
  --footer-text: oklch(0.85 0.01 85);
  --footer-text2: oklch(0.7 0.01 85);
  --footer-text3: oklch(0.6 0.01 85);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  font-family: 'Work Sans', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
h1, h2, h3 {
  font-family: 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  font-weight: 700;
}
ul { list-style: none; margin: 0; padding: 0; }
.page-wrap { flex: 1; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 1000px; margin: 0 auto; padding: 0 32px; }
.container-doc { max-width: 800px; margin: 0 auto; padding: 0 32px; }
.container-blog { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.container-post { max-width: 760px; margin: 0 auto; padding: 0 32px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--bg-header); border-bottom: 1px solid var(--border); }
.promo-bar { background: var(--navy); color: #fff; padding: 8px 24px; display: flex; flex-wrap: wrap; gap: 6px 28px; justify-content: center; font-size: 13px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 32px; max-width: 1280px; margin: 0 auto; gap: 16px; flex-wrap: wrap; }
.logo { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name { font-family: 'Space Grotesk', sans-serif; font-size: 26px; font-weight: 700; color: var(--text); }
.logo-tag { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.main-nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; font-size: 15px; }
.main-nav a { color: var(--text); font-weight: 500; }
.main-nav a.active { color: var(--accent); font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.cart-btn { position: relative; cursor: pointer; background: var(--accent-light); color: var(--accent-dark); padding: 10px 16px; border-radius: 9px; font-weight: 600; font-size: 14px; white-space: nowrap; border: none; }
.cart-count { position: absolute; top: -8px; right: -8px; background: var(--warm); color: #fff; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.btn { display: inline-block; background: var(--accent); color: #fff; padding: 14px 28px; border-radius: 10px; font-weight: 600; cursor: pointer; border: none; font-size: 15px; font-family: inherit; text-align: center; }
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn-sm { padding: 11px 22px; font-size: 14px; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); padding: 14px 28px; border-radius: 10px; font-weight: 600; cursor: pointer; font-size: 15px; }
.btn-outline:hover { color: var(--text); border-color: var(--accent); }
.btn-dark { background: var(--accent-dark); }
.btn-dark:hover { background: var(--accent-darker); }
.btn-block { display: block; width: 100%; }

/* Hero */
.hero-split { padding: clamp(32px,6vw,80px) 32px; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 48px; align-items: center; max-width: 1280px; margin: 0 auto; }
.hero-centered { max-width: 820px; margin: 0 auto; padding: clamp(40px,7vw,90px) 32px; text-align: center; }
.badge { display: inline-block; background: var(--accent-light); color: var(--accent-dark); padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; margin-bottom: 18px; }
.hero-title { font-size: clamp(32px,4.5vw,52px); line-height: 1.1; margin: 0 0 20px; }
.hero-title span { color: var(--accent); }
.hero-lead { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 0 0 28px; max-width: 52ch; }
.hero-centered .hero-lead { margin-left: auto; margin-right: auto; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-centered .btn-row { justify-content: center; }
.ph-photo { background: repeating-linear-gradient(135deg, var(--ph1), var(--ph1) 10px, var(--ph2) 10px, var(--ph2) 20px); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.ph-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-media { aspect-ratio: 4/3.2; }

/* Sections */
.section { max-width: 1280px; margin: 0 auto; padding: clamp(48px,6vw,80px) 32px; }
.section-head { max-width: 640px; margin: 0 auto 40px; text-align: center; }
.section-head h2 { font-size: clamp(26px,3vw,36px); margin: 0 0 12px; }
.section-head p { color: var(--muted); font-size: 16px; margin: 0; }
.page-title { font-size: clamp(30px,4vw,44px); margin: 0 0 12px; }
.page-lead { font-size: 16px; color: var(--muted); margin: 0 0 40px; max-width: 70ch; }

.stats-strip { background: var(--bg-header); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { max-width: 1280px; margin: 0 auto; padding: 36px 32px; display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: 24px; text-align: center; }
.stat-value { font-size: 32px; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 14px; color: var(--muted); margin-top: 4px; }

.grid-services { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 26px; }
.card-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--accent-light); margin-bottom: 16px; }
.card h3 { font-size: 18px; margin: 0 0 8px; }
.card p { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0; }
.card-link { cursor: pointer; }

.cta-band { background: var(--accent-light); }
.cta-band-inner { max-width: 1280px; margin: 0 auto; padding: clamp(40px,5vw,64px) 32px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(22px,2.6vw,30px); margin: 0 0 8px; color: var(--accent-dark); }
.cta-band p { margin: 0; color: var(--accent-darker); max-width: 52ch; }

.grid-testimonials { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 20px; }
.testimonial-stars { color: var(--warm); font-size: 15px; margin-bottom: 10px; }
.testimonial-text { font-size: 14px; line-height: 1.6; font-style: italic; color: var(--text-body); margin: 0 0 14px; }
.testimonial-name { font-size: 13px; font-weight: 600; color: var(--muted); }

.section-head-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 28px; flex-wrap: wrap; gap: 10px; }
.section-head-row h2 { margin: 0; font-size: clamp(26px,3vw,36px); }
.link-more { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 14px; }

.grid-blog { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 20px; }
.blog-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.blog-thumb { aspect-ratio: 16/10; overflow: hidden; background: repeating-linear-gradient(135deg, var(--ph1), var(--ph1) 10px, var(--ph2) 10px, var(--ph2) 20px); }
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-body { padding: 18px; }
.blog-date { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.blog-card h3 { font-size: 16px; margin: 0 0 8px; }
.blog-card p { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px; align-items: start; margin-bottom: 56px; }
.about-grid p { font-size: 16px; line-height: 1.7; color: var(--text-body); margin: 0 0 16px; }
.about-photo { aspect-ratio: 4/3; }
.grid-values { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 20px; margin-bottom: 56px; }
.value-card h3 { font-size: 17px; margin: 0 0 8px; color: var(--accent); }
.value-card p { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 0; }
.section-sub-title { font-size: clamp(24px,3vw,32px); margin: 0 0 24px; }
.grid-team { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 20px; }
.team-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.team-photo { aspect-ratio: 1; overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 16px; margin: 0 0 4px; }
.team-role { font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.team-card p { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0; }

/* Services page */
.service-row { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: clamp(20px,3vw,32px); display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); gap: 28px; margin-bottom: 20px; }
.service-row h2 { font-size: 22px; margin: 0 0 10px; }
.service-row > p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; }
.service-points { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 10px 20px; }
.service-points li { font-size: 14px; color: var(--text-body); padding-left: 18px; position: relative; }
.service-points li::before { content: '\2013'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.services-cta { margin-top: 40px; text-align: center; background: var(--accent-light); border-radius: 16px; padding: 36px; }
.services-cta h3 { color: var(--accent-dark); margin: 0 0 10px; }
.services-cta p { margin: 0 0 18px; color: var(--accent-darker); }

/* Pricing */
.price-cat { margin-bottom: 28px; }
.price-cat h2 { font-size: 19px; color: var(--accent); margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.price-row { display: flex; justify-content: space-between; padding: 12px 4px; border-bottom: 1px solid var(--border-soft); font-size: 15px; }
.price-row span:last-child { font-weight: 600; white-space: nowrap; padding-left: 16px; }
.price-note { font-size: 13px; color: var(--muted2); margin-top: 20px; }

/* Gallery */
.grid-gallery { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 18px; }
.gallery-item { aspect-ratio: 4/3; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item span { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(0,0,0,0.65)); color: #fff; font-size: 12px; text-align: center; padding: 20px 10px 10px; }

/* Shop */
.grid-shop { display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr)); gap: 20px; }
.product-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.product-photo { aspect-ratio: 1; overflow: hidden; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-body h3 { font-size: 15px; margin: 0; }
.product-body p { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.product-price { font-weight: 700; font-size: 16px; }
.add-cart-btn { background: var(--accent); color: #fff; padding: 9px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; }
.add-cart-btn:hover { background: var(--accent-dark); }
.shop-note { margin-top: 40px; font-size: 13px; color: var(--muted2); }

/* Blog post */
.back-link { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 14px; }
.post-date { font-size: 13px; color: var(--muted); margin: 20px 0 8px; }
.post-title { font-size: clamp(26px,4vw,38px); margin: 0 0 24px; }
.post-hero { aspect-ratio: 16/8; margin-bottom: 28px; overflow: hidden; }
.post-hero img { width: 100%; height: 100%; object-fit: cover; }
.post-body p { font-size: 16px; line-height: 1.75; color: var(--text-body); margin: 0 0 18px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); gap: 40px; }
.contact-block { display: flex; flex-direction: column; gap: 20px; }
.contact-label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); font-weight: 600; margin-bottom: 6px; }
.contact-value { font-size: 16px; }
.map-embed { aspect-ratio: 4/3; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.contact-form-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: clamp(20px,3vw,32px); }
.form-field { padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; width: 100%; }
.form-stack { display: flex; flex-direction: column; gap: 14px; }
.form-note { font-size: 12px; color: var(--muted2); margin: 0; }
.form-success { text-align: center; padding: 40px 10px; }
.form-success h3 { color: var(--accent); margin: 0 0 10px; }
.form-success p { color: var(--muted); margin: 0; }
.faq-block { margin-top: 56px; }
.faq-block h2 { font-size: clamp(22px,3vw,28px); margin: 0 0 24px; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.faq-q { font-weight: 600; margin-bottom: 8px; }
.faq-a { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* Legal docs */
.doc-content { font-size: 15px; line-height: 1.8; color: var(--text-body); }
.doc-content h3 { font-size: 18px; margin: 28px 0 10px; }
.doc-content .doc-updated { color: var(--muted2); font-size: 13px; margin-top: 30px; }

/* Footer */
.site-footer { background: var(--navy); color: var(--footer-text); margin-top: auto; }
.footer-grid { max-width: 1280px; margin: 0 auto; padding: 56px 32px 28px; display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 32px; }
.footer-brand { font-family: 'Space Grotesk', sans-serif; font-size: 22px; color: #fff; font-weight: 700; margin-bottom: 10px; }
.footer-desc { font-size: 14px; line-height: 1.6; color: var(--footer-text2); max-width: 32ch; }
.footer-col-title { font-weight: 600; color: #fff; margin-bottom: 12px; font-size: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-links a { color: var(--footer-text); }
.footer-links a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--footer-text2); }
.footer-bottom { border-top: 1px solid var(--navy2); padding: 18px 32px; text-align: center; font-size: 12px; color: var(--footer-text3); }

/* Cart drawer */
.overlay { position: fixed; inset: 0; background: rgba(20,20,30,0.4); z-index: 60; display: none; }
.overlay.open { display: block; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(400px,92vw); background: #fff; z-index: 61; padding: 28px; overflow-y: auto; display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.25s ease; }
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.cart-head h2 { font-size: 20px; margin: 0; }
.cart-close { cursor: pointer; font-size: 22px; line-height: 1; color: var(--muted); background: none; border: none; }
.cart-empty-msg { color: var(--muted); font-size: 14px; }
.cart-lines { display: flex; flex-direction: column; gap: 16px; flex: 1; }
.cart-line { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--border-soft); padding-bottom: 14px; }
.cart-line-name { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.cart-qty-row { display: flex; align-items: center; gap: 10px; }
.qty-btn { cursor: pointer; width: 22px; height: 22px; border: 1px solid var(--border); border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 14px; background: #fff; }
.cart-remove { cursor: pointer; font-size: 12px; color: var(--warm); margin-left: 6px; background: none; border: none; }
.cart-line-total { font-weight: 600; font-size: 14px; white-space: nowrap; }
.cart-summary { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 16px; }
.cart-total-row { display: flex; justify-content: space-between; font-weight: 700; font-size: 16px; margin-bottom: 16px; }

/* Checkout modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(20,20,30,0.5); z-index: 70; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal-box { background: #fff; border-radius: 16px; padding: clamp(24px,4vw,36px); max-width: 440px; width: 100%; max-height: 90vh; overflow-y: auto; }
.modal-box h2 { font-size: 20px; margin: 0 0 6px; }
.modal-sub { font-size: 13px; color: var(--muted); margin: 0 0 20px; }
.modal-cancel { text-align: center; font-size: 13px; color: var(--muted); cursor: pointer; margin-top: 6px; background: none; border: none; width: 100%; }

/* Cookie banner */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: var(--navy); color: #fff; padding: 18px 32px; display: none; gap: 20px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.cookie-banner.open { display: flex; }
.cookie-banner p { margin: 0; font-size: 13px; max-width: 60ch; color: var(--footer-text); }
.cookie-banner a { text-decoration: underline; color: #fff; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-decline { border: 1px solid oklch(0.5 0.01 85); background: transparent; color: #fff; padding: 9px 18px; border-radius: 8px; font-size: 13px; cursor: pointer; }
.cookie-accept { background: var(--accent); border: none; color: #fff; padding: 9px 18px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; }

/* Mobile nav toggle */
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .hero-split, .about-grid, .contact-grid, .service-row { grid-template-columns: 1fr; }
  .main-nav { order: 3; width: 100%; justify-content: flex-start; gap: 16px; }
}
@media (max-width: 560px) {
  .header-inner { padding: 14px 20px; }
  .container, .section, .container-doc, .container-blog, .container-post, .container-narrow { padding-left: 20px; padding-right: 20px; }
}

.underline-link { cursor: pointer; text-decoration: underline; color: var(--accent); }
.field-error { color: var(--warm); font-size: 12px; margin: 0; }
