/*
Theme Name: Mediorum
Theme URI: https://mediorum.hr
Author: Mediorum d.o.o.
Description: Jednostranična (one-page) tema za Mediorum d.o.o. - prikazuje osnovne podatke o tvrtki, djelatnosti i kontakt informacije.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mediorum
*/

:root {
  --bg: #f7f7fb;
  --bg-alt: #ffffff;
  --card: #ffffff;
  --deep: #241d36;
  --accent: #5b4b8a;
  --accent-light: #7c6bc4;
  --text: #241d36;
  --text-muted: #635d78;
  --border: #e6e3f0;
  --shadow: 0 2px 18px rgba(36, 29, 54, 0.06);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-light);
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.site-header .logo img {
  height: 40px;
  display: block;
}

.site-header nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}

.site-header nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-header nav a:hover {
  color: var(--accent);
}

/* Hero */
.hero {
  padding: 96px 0 84px;
  text-align: center;
  background: linear-gradient(160deg, #f7f7fb 0%, #eeecf7 60%, #f7f7fb 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  height: 320px;
  background: radial-gradient(ellipse, rgba(91, 75, 138, 0.16), transparent 70%);
  pointer-events: none;
}

.hero img.hero-logo {
  height: 96px;
  margin-bottom: 30px;
  position: relative;
}

.hero h1 {
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
  color: var(--deep);
}

.hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto;
}

/* Sections */
section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
  color: var(--deep);
}

section .section-lead {
  color: var(--text-muted);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}

/* About */
.about-box {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 14px;
  padding: 40px;
  max-width: 780px;
  margin: 0 auto;
}

.about-box p {
  color: var(--text-muted);
}

.about-box p + p {
  margin-top: 14px;
}

.about-box strong {
  color: var(--text);
}

/* Djelatnosti - full list */
.activities-list {
  max-width: 900px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 14px;
  padding: 12px 40px;
}

.activities-list ul {
  list-style: none;
  columns: 2;
  column-gap: 40px;
}

@media (max-width: 700px) {
  .activities-list ul {
    columns: 1;
  }
  .activities-list {
    padding: 12px 24px;
  }
}

.activities-list li {
  position: relative;
  padding: 14px 0 14px 22px;
  border-bottom: 1px solid var(--border);
  break-inside: avoid;
  color: var(--text);
  font-size: 0.96rem;
}

.activities-list li:last-child,
.activities-list li:nth-last-child(2) {
  border-bottom: none;
}

.activities-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 780px;
  margin: 0 auto;
}

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

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
}

.contact-card .icon {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.contact-card h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.contact-card a,
.contact-card span {
  font-size: 1.02rem;
  color: var(--text);
  font-weight: 600;
}

.contact-card a:hover {
  color: var(--accent);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  background: var(--bg-alt);
}

.site-footer .logo-small img {
  height: 22px;
  margin-bottom: 12px;
  opacity: 0.85;
}
