/*
Theme Name: Metkom Neretva
Theme URI: https://metkom.hr
Author: Metković Razvoj d.o.o.
Author URI: https://metkom.hr
Description: Moderna, prodajno nastrojena tema za Metkom (ISP u dolini Neretve). Zadržava postojeću strukturu stranica, izbornika i formi, a modernizira izgled. Dizajn sustav "Neretva".
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: metkom-neretva
*/

/* ============================================================
   NERETVA — dizajn sustav
   ============================================================ */
:root {
  --brand: #182a63;        /* duboki indigo */
  --brand-700: #12204d;
  --brand-900: #0c1636;
  --signal: #2f6fe0;       /* signalno plava */
  --signal-600: #255bc0;
  --signal-050: #eaf1fc;
  --aqua: #1ec6c6;         /* rijeka */
  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --line: #e3e8f0;
  --bg: #ffffff;
  --bg-soft: #f5f8fd;
  --bg-river: linear-gradient(135deg, #182a63 0%, #244488 55%, #1ec6c6 160%);
  --ok: #16a34a;
  --warn: #dc2626;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.08);
  --shadow: 0 10px 30px -12px rgba(24,42,99,.35);
  --shadow-lg: 0 24px 60px -20px rgba(24,42,99,.45);
  --maxw: 1160px;
  --font-head: "Familjen Grotesk", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1rem; }
a { color: var(--signal-600); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(48px, 7vw, 92px) 0; }
.section-soft { background: var(--bg-soft); }
.eyebrow { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--signal-600); margin: 0 0 .6rem; font-weight: 500; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem;
  padding: .82em 1.5em; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--signal); color: #fff; box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none; line-height: 1;
}
.btn:hover { background: var(--signal-600); transform: translateY(-2px); text-decoration: none; color: #fff; box-shadow: var(--shadow-lg); }
.btn-ghost {
  background: transparent; color: var(--brand); box-shadow: none;
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { background: var(--signal-050); color: var(--brand); border-color: var(--signal); }
.btn-light { background:#fff; color: var(--brand); }
.btn-light:hover { background:#f1f5ff; color: var(--brand); }
.btn-lg { font-size: 1.1rem; padding: 1em 1.8em; }

/* Utility top bar */
.utilbar { background: var(--brand-900); color: #c7d2e8; font-size: .82rem; }
.utilbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; flex-wrap: wrap; }
.utilbar a { color: #e2e8f5; }
.utilbar .util-right { display: flex; gap: 18px; align-items: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 20px; }
.brand-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--brand); text-decoration: none; letter-spacing: -.02em; }
.brand-logo img { height: 38px; width: auto; }
.brand-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px var(--signal-050); }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.main-nav a { color: var(--brand-700); font-weight: 500; font-size: .98rem; padding: .5em .8em; border-radius: 8px; text-decoration: none; }
.main-nav a:hover, .main-nav .current-menu-item > a { background: var(--signal-050); color: var(--brand); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--brand); }
.nav-toggle svg { width: 26px; height: 26px; }

/* Hero */
.hero { position: relative; color: #fff; background: var(--bg-river); overflow: hidden; }
.hero::after { content:""; position:absolute; inset:0; background: radial-gradient(1200px 500px at 85% -10%, rgba(30,198,198,.35), transparent 60%); pointer-events:none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: clamp(48px,7vw,88px); padding-bottom: clamp(48px,7vw,88px); }
.hero h1 { color: #fff; }
.hero .eyebrow { color: #9fe8e8; }
.hero p.lede { color: #d7e2f6; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 28px; }
.hero-badge { display:inline-flex; align-items:center; gap:7px; background: rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.2); padding:.45em .9em; border-radius:999px; font-size:.86rem; color:#eaf2ff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art { background: rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-lg); }
.hero-art svg { width: 100%; height: auto; display:block; border-radius: 10px; }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.stat { text-align: center; }
.stat .num { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.8rem,3.4vw,2.6rem); color: var(--brand); line-height:1; }
.stat .lbl { color: var(--muted); font-size: .95rem; margin-top: 6px; }

/* Cards / grids */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.card-feature { position: relative; }
.icon-chip { width: 46px; height: 46px; border-radius: 12px; display:flex; align-items:center; justify-content:center; background: var(--signal-050); color: var(--signal-600); margin-bottom: 14px; font-size: 1.4rem; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: stretch; }
.plan { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display:flex; flex-direction:column; box-shadow: var(--shadow-sm); position: relative; transition: transform .15s ease, box-shadow .15s ease; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan.featured { border: 2px solid var(--signal); box-shadow: var(--shadow); }
.plan .tag-pop { position:absolute; top:-13px; left:50%; transform:translateX(-50%); background: var(--signal); color:#fff; font-family:var(--font-head); font-weight:600; font-size:.75rem; letter-spacing:.06em; text-transform:uppercase; padding:.4em 1em; border-radius:999px; white-space:nowrap; }
.plan .plan-name { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--brand); }
.plan .plan-speed { color: var(--muted); font-size: .92rem; margin-top: 2px; }
.plan .plan-price { margin: 16px 0 4px; font-family: var(--font-head); }
.plan .plan-price .eur { font-size: 2.6rem; font-weight: 700; color: var(--ink); letter-spacing: -.03em; }
.plan .plan-price .per { color: var(--muted); font-size: .95rem; }
.plan ul.feats { list-style:none; margin: 16px 0 22px; padding:0; display:flex; flex-direction:column; gap:10px; font-size:.96rem; }
.plan ul.feats li { display:flex; gap:9px; align-items:flex-start; color: var(--body); }
.plan ul.feats li::before { content:"✓"; color: var(--signal-600); font-weight:700; }
.plan .btn { width: 100%; justify-content:center; margin-top: auto; }
.plan.featured .btn { background: var(--signal); }
.price-note { color: var(--muted); font-size: .9rem; margin-top: 18px; }

/* Coverage / why / split */
.split { display:grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items:center; }
.media-box { background: var(--bg-river); border-radius: var(--radius); min-height: 320px; box-shadow: var(--shadow); position: relative; overflow:hidden; }
.media-box svg { position:absolute; inset:0; width:100%; height:100%; }
.checklist { list-style:none; padding:0; margin: 18px 0 0; display:flex; flex-direction:column; gap: 14px; }
.checklist li { display:flex; gap:12px; align-items:flex-start; }
.checklist .ci { flex:0 0 auto; width:26px; height:26px; border-radius:50%; background: var(--signal-050); color: var(--signal-600); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:.85rem; margin-top:2px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border:1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 20px; margin-bottom: 12px; background:#fff; }
.faq summary { cursor:pointer; font-family: var(--font-head); font-weight:600; color: var(--brand); padding: 16px 0; list-style:none; display:flex; justify-content:space-between; align-items:center; gap:12px; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:"+"; font-size:1.4rem; color: var(--signal); font-weight:400; }
.faq details[open] summary::after { content:"–"; }
.faq details[open] summary { border-bottom:1px solid var(--line); }
.faq details > div { padding: 14px 0 18px; color: var(--body); }

/* CTA band */
.cta-band { background: var(--bg-river); color:#fff; border-radius: calc(var(--radius) + 6px); padding: clamp(32px,5vw,56px); text-align:center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color:#fff; }
.cta-band p { color:#d7e2f6; max-width: 60ch; margin: 0 auto 24px; }

/* Contact */
.contact-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.contact-card { text-align:center; }
.contact-card .big { font-family: var(--font-head); font-weight:700; font-size: 1.3rem; color: var(--brand); margin-top: 6px; }

/* ============================================================
   WordPress generirani sadržaj (stranice/blog)
   ============================================================ */
.page-hero { background: var(--bg-river); color:#fff; padding: clamp(42px,6vw,72px) 0; }
.page-hero h1 { color:#fff; margin:0; }
.page-hero .crumbs { color:#bcd0f2; font-size:.9rem; margin-bottom:10px; }
.page-hero .crumbs a { color:#e2ecfb; }
.entry { max-width: 820px; margin: 0 auto; }
.entry-content { font-size: 1.06rem; }
.entry-content h2 { margin-top: 1.8em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.1rem; }
.entry-content li { margin-bottom: .4rem; }
.entry-content img { border-radius: var(--radius-sm); margin: 1.2em 0; box-shadow: var(--shadow-sm); }
.entry-content blockquote { border-left: 4px solid var(--signal); background: var(--bg-soft); margin: 1.2em 0; padding: 12px 20px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--brand-700); }
.entry-content table { width:100%; border-collapse: collapse; margin: 1.2em 0; font-size:.98rem; }
.entry-content th, .entry-content td { border:1px solid var(--line); padding: 10px 12px; text-align:left; }
.entry-content th { background: var(--bg-soft); color: var(--brand); font-family: var(--font-head); }
.entry-meta { color: var(--muted); font-size:.9rem; margin-bottom: 18px; }

/* Blog list */
.post-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.post-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden; box-shadow: var(--shadow-sm); display:flex; flex-direction:column; transition: transform .15s ease, box-shadow .15s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card .thumb { aspect-ratio: 16/9; background: var(--bg-river); }
.post-card .thumb img { width:100%; height:100%; object-fit:cover; }
.post-card .pc-body { padding: 20px; display:flex; flex-direction:column; flex:1; }
.post-card h3 { margin:0 0 8px; }
.post-card h3 a { color: var(--brand); text-decoration:none; }
.post-card .excerpt { color: var(--muted); font-size:.95rem; flex:1; }
.post-card .readmore { margin-top: 14px; font-weight:600; color: var(--signal-600); }

/* Pagination */
.pagination { display:flex; gap:8px; justify-content:center; margin-top: 36px; flex-wrap:wrap; }
.pagination .page-numbers { padding:.5em .9em; border:1px solid var(--line); border-radius:8px; color: var(--brand); background:#fff; }
.pagination .page-numbers.current { background: var(--signal); color:#fff; border-color: var(--signal); }

/* ============================================================
   Forme (Contact Form to Email / plugin) — moderni stil
   ============================================================ */
.form-shell { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: clamp(22px,3vw,34px); box-shadow: var(--shadow); }
.entry-content input[type=text],
.entry-content input[type=email],
.entry-content input[type=tel],
.entry-content input[type=number],
.entry-content input[type=url],
.entry-content input[type=date],
.entry-content select,
.entry-content textarea,
input[type=text], input[type=email], input[type=tel], input[type=number],
input[type=url], input[type=date], select, textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: .72em .9em; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease; margin-bottom: 4px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px var(--signal-050); }
textarea { min-height: 130px; resize: vertical; }
label { font-weight: 500; color: var(--brand-700); font-size: .95rem; }
input[type=submit], button[type=submit], .wpcf7 input[type=submit] {
  display:inline-flex; align-items:center; gap:.5em; font-family: var(--font-head); font-weight:600;
  font-size:1.05rem; padding:.85em 1.8em; border-radius:999px; border:0; cursor:pointer;
  background: var(--signal); color:#fff; box-shadow: var(--shadow); width:auto;
  transition: transform .15s ease, background .15s ease;
}
input[type=submit]:hover, button[type=submit]:hover { background: var(--signal-600); transform: translateY(-2px); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--brand-900); color: #aab8d4; padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: #d6e0f2; }
.footer-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color:#fff; font-size: 1rem; margin: 0 0 14px; }
.site-footer ul { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.footer-brand .brand-logo { color:#fff; margin-bottom: 12px; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 20px; display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; color:#8595b8; font-size:.86rem; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order:-1; max-width: 480px; }
  .split { grid-template-columns: 1fr; }
  .grid-3, .price-grid, .post-grid, .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .main-nav { position: absolute; top: 100%; left:0; right:0; background:#fff; border-bottom:1px solid var(--line); box-shadow: var(--shadow); display:none; padding: 10px 20px 18px; }
  .main-nav.open { display:block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: .7em .6em; }
  .nav-toggle { display:inline-flex; }
  .header-cta .btn:not(.nav-toggle) { display:none; }
  .stats { grid-template-columns: 1fr 1fr; gap: 26px; }
  .grid-3, .price-grid, .grid-2, .post-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
}
