/* Metal Magic — static site styles */

@font-face { font-family: "Marcellus"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/marcellus-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Marcellus"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/marcellus-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --graphite: #3e4347;      /* matches the hero image frame */
  --graphite-dk: #2a2e31;
  --ink: #1d1f21;
  --text: #2e3337;
  --muted: #5d656b;
  --steel: #eef1f3;
  --line: #d9dee2;
  --white: #fff;
  --blue: #1cb4ea;
  --blue-dk: #166a94;
  --radius: 4px;
  --wrap: 1180px;
  --serif: "Marcellus", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dk); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.2; color: var(--ink); margin: 0 0 .6em; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--blue-dk); margin-bottom: .9rem; }
.eyebrow::before { content: ""; display: inline-block; width: 26px; height: 2px; background: var(--blue); vertical-align: middle; margin-right: 10px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--white); padding: 8px 14px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .55em; font-weight: 700; font-size: .95rem; letter-spacing: .02em; text-decoration: none; padding: .85em 1.5em; border-radius: var(--radius); border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-primary { background: var(--blue); color: var(--ink); }
.btn-primary:hover { background: #4cc6f0; }
.btn-ghost { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--graphite); }

/* top bar */
.topbar { background: var(--ink); color: #c9d0d5; font-size: .85rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 26px; justify-content: flex-end; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 7px; }
.topbar svg { width: 15px; height: 15px; color: var(--blue); }

/* header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 62px; height: auto; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); letter-spacing: .06em; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 10px 14px; border-radius: var(--radius); }
.nav a:hover { color: var(--blue-dk); }
.nav a[aria-current="page"] { color: var(--blue-dk); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.nav .btn { margin-left: 10px; padding: .7em 1.2em; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 20px 18px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--steel); }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .btn { margin: 12px 0 0; justify-content: center; border-bottom: 0; }
  .brand-name { display: none; }
}

/* hero */
.hero { background: var(--graphite); color: #e4e8eb; padding: 64px 0 0; }
.hero-text { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px 48px; align-items: end; padding-bottom: 36px; }
.hero h1 { color: var(--white); margin-bottom: .35em; }
.hero .tagline { font-family: var(--serif); font-size: 1.25rem; color: var(--blue); letter-spacing: .04em; margin: 0; }
.hero .eyebrow { color: var(--blue); }
.hero-side p { color: #c9d0d5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.hero-img { max-width: 1376px; margin: 0 auto; }
.hero-img img { width: 100%; aspect-ratio: 1376 / 768; }
@media (max-width: 820px) { .hero { padding-top: 40px; } .hero-text { grid-template-columns: 1fr; } }

/* stats strip */
.stats { background: var(--ink); color: #fff; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 18px; border-left: 1px solid rgba(255,255,255,.1); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: 2rem; color: var(--blue); line-height: 1.1; }
.stat span { font-size: .9rem; color: #b9c1c7; }
@media (max-width: 720px) { .stats .wrap { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); } }

/* sections */
.section { padding: 84px 0; }
.section.alt { background: var(--steel); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split.wide-left { grid-template-columns: 1.3fr 1fr; }
@media (max-width: 860px) { .split, .split.wide-left { grid-template-columns: 1fr; gap: 28px; } .section { padding: 60px 0; } }

.panel { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--blue); padding: 30px; border-radius: var(--radius); }
.panel + .panel { margin-top: 22px; }
.quote { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); border-left: 3px solid var(--blue); padding-left: 18px; margin: 1.4em 0; }

/* product grid */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.prod { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 110px; }
.prod-media { aspect-ratio: 4 / 3; background: linear-gradient(135deg, #e3e7ea, #cfd5d9); display: grid; place-items: center; color: #9aa4ab; }
.prod-media svg { width: 44px; height: 44px; }
.prod-media img { width: 100%; height: 100%; object-fit: cover; }
.prod h3 { font-size: 1.12rem; margin: 0; padding: 16px 18px 18px; }
.prod-list { columns: 3 220px; column-gap: 32px; list-style: none; padding: 0; margin: 0; }
.prod-list li { break-inside: avoid; border-bottom: 1px solid var(--line); }
.prod-list a { display: flex; justify-content: space-between; gap: 10px; padding: 12px 2px; text-decoration: none; color: var(--text); font-weight: 600; }
.prod-list a:hover { color: var(--blue-dk); }
.prod-list a::after { content: "→"; color: var(--blue); }

/* feature blocks on proizvodi page */
.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; padding: 48px 0; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.feature:first-of-type { border-top: 0; padding-top: 0; }
.feature .prod-media { border-radius: var(--radius); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; gap: 22px; } }

/* page header */
.page-head { background: var(--graphite); color: #d6dce0; padding: 56px 0 50px; }
.page-head h1 { color: #fff; margin: 0 0 .3em; }
.page-head p { margin: 0; max-width: 640px; }
.page-head .eyebrow { color: var(--blue); }

/* CTA band */
.cta { background: linear-gradient(110deg, var(--blue-dk), #11577a); color: #fff; padding: 56px 0; }
.cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.cta h2 { color: #fff; margin: 0 0 .2em; }
.cta p { margin: 0; color: #d7ecf6; }
.cta .btn-primary { background: #fff; }
.cta .btn-primary:hover { background: #e6f6fd; }

/* contact */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-card svg { width: 30px; height: 30px; color: var(--blue-dk); margin-bottom: 14px; }
.contact-card h3 { font-size: 1.1rem; margin-bottom: .35em; }
.contact-card p { margin: 0; }
.contact-card .big { font-size: 1.35rem; font-weight: 700; color: var(--ink); text-decoration: none; }
@media (max-width: 860px) { .contact-cards { grid-template-columns: 1fr; } }

/* footer */
.site-footer { background: var(--ink); color: #aab3b9; font-size: .92rem; padding: 60px 0 0; }
.site-footer a { color: #e3e8eb; text-decoration: none; }
.site-footer a:hover { color: var(--blue); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.site-footer h3 { color: #fff; font-size: 1.05rem; letter-spacing: .04em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.foot-brand img { width: 92px; margin-bottom: 14px; }
.legal { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0 22px; font-size: .82rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }

/* sticky call button on phones */
.call-fab { display: none; }
@media (max-width: 640px) {
  .call-fab { display: flex; position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--blue); color: var(--ink); align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.28); }
  .call-fab svg { width: 26px; height: 26px; }
}
.split > .panel + .panel { margin-top: 0; }
@media (max-width: 560px) {
  .topbar .wrap { justify-content: space-between; }
  .topbar span:first-child { display: none; }
  .stat b { font-size: 1.55rem; }
  .stat { padding: 20px 14px; }
}
