/*
Theme Name: Mihelcic Urar i Zlatar
Theme URI: 
Author: 
Author URI: 
Description: Custom landing page tema za Urar i zlatar Mihelčić, Delnice. Bez page buildera, jedna naslovna stranica s O nama, Uslugama i Kontaktom.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mihelcic
*/

:root {
  --bg: #f4efe4;
  --surface: #ffffff;
  --ink: #201a13;
  --muted: #6f6558;
  --brass: #a9793d;
  --brass-deep: #7c5427;
  --forest: #1f3327;
  --forest-deep: #14201a;
  --line: rgba(32,26,19,0.14);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", -apple-system, "Segoe UI", sans-serif;
}
:root:not([data-theme="light"]) {
  @media (prefers-color-scheme: dark) {
    --bg: #14201a;
    --surface: #1b2921;
    --ink: #f2ecdf;
    --muted: #b3a894;
    --brass: #d9ab5f;
    --brass-deep: #b6863f;
    --forest: #0e1712;
    --forest-deep: #0a100c;
    --line: rgba(242,236,223,0.16);
  }
}
:root[data-theme="dark"] {
  --bg: #14201a;
  --surface: #1b2921;
  --ink: #f2ecdf;
  --muted: #b3a894;
  --brass: #d9ab5f;
  --brass-deep: #b6863f;
  --forest: #0e1712;
  --forest-deep: #0a100c;
  --line: rgba(242,236,223,0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  row-gap: 10px;
  padding: 14px clamp(16px, 5vw, 48px);
}
.wordmark {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 4.2vw, 1.3rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.wordmark span { color: var(--brass); }
.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(10px, 3vw, 28px);
  flex-wrap: wrap;
}
nav.header-links {
  display: flex;
  gap: clamp(16px, 3vw, 32px);
  font-size: 0.95rem;
}
nav.header-links a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.15s ease;
}
nav.header-links a:hover, nav.header-links a:focus-visible { color: var(--brass-deep); }
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 8px;
  min-height: 32px;
  border-radius: 5px;
  transition: color 0.15s ease, background 0.15s ease;
}
.lang-switch a .flag { font-size: 1rem; line-height: 1; }
.lang-switch a:hover, .lang-switch a:focus-visible { color: var(--brass-deep); }
.lang-switch a.active {
  color: var(--brass-deep);
  background: color-mix(in srgb, var(--brass) 16%, transparent);
}
.call-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--brass);
  border-radius: 999px;
  padding: 8px 16px;
  min-height: 34px;
  color: var(--brass-deep) !important;
  font-weight: 500;
  white-space: nowrap;
}
.call-pill .phone-icon { width: 15px; height: 15px; flex: none; }
@media (max-width: 640px) {
  .header-links { display: none; }
}
@media (max-width: 420px) {
  .wordmark .tagline { display: none; }
  .lang-switch .lang-code { display: none; }
  .lang-switch a { padding: 6px; }
  .call-pill .call-text { display: none; }
  .call-pill { padding: 8px 10px; }
}

/* Hero */
.hero {
  position: relative;
  background: var(--forest);
  color: #f2ecdf;
  overflow: hidden;
  padding: clamp(64px, 12vw, 128px) 0 clamp(56px, 10vw, 96px);
}
.hero .wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 800px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-dial { display: none; }
}
.eyebrow-line {
  color: var(--brass);
  font-size: 0.95rem;
  margin: 0 0 18px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.05;
  font-weight: 500;
  margin: 0 0 22px;
}
.hero p.lede {
  max-width: 46ch;
  font-size: 1.1rem;
  color: #cfd9d0;
  margin: 0 0 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.98rem;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--brass); color: #1c1408; }
.btn-primary:hover { background: #c39352; }
.btn-ghost { border: 1px solid rgba(242,236,223,0.35); color: #f2ecdf; }
.btn-ghost:hover { border-color: rgba(242,236,223,0.7); }

.hero-dial {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}
.hero-dial svg { width: 100%; height: 100%; display: block; }

/* Sections */
section { padding: clamp(56px, 9vw, 96px) 0; }
.section-head {
  max-width: 56ch;
  margin: 0 0 40px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  font-weight: 500;
  margin: 0 0 12px;
}
.section-head p { color: var(--muted); margin: 0; font-size: 1.02rem; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: start;
}
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid p { color: var(--muted); font-size: 1.03rem; margin: 0 0 18px; }
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 48px) clamp(28px, 5vw, 48px);
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 8px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--brass-deep);
  display: block;
  line-height: 1;
}
.stat-label { font-size: 0.9rem; color: var(--muted); }

/* Services */
.services {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
@media (max-width: 760px) { .service-list { grid-template-columns: 1fr; } }
.service-item {
  padding: 32px clamp(16px, 3vw, 32px);
  border-right: 1px solid var(--line);
}
.service-list .service-item:last-child { border-right: none; }
@media (max-width: 760px) {
  .service-item { border-right: none; border-bottom: 1px solid var(--line); }
  .service-list .service-item:last-child { border-bottom: none; }
}
.service-item h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  margin: 0 0 10px;
}
.service-item p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 6vw, 56px);
}
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-item:first-child { padding-top: 0; }
.contact-item .icon {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  color: var(--brass-deep);
}
.contact-item .icon svg { width: 100%; height: 100%; }
.contact-item .label { font-size: 0.85rem; color: var(--muted); margin: 0 0 3px; }
.contact-item .value { font-size: 1.05rem; font-weight: 500; }
.contact-item .value a { text-decoration: none; }
.contact-item .value a:hover { color: var(--brass-deep); }

.map-frame {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 340px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 340px; display: block; border: 0; }
@media (max-width: 480px) {
  .map-frame, .map-frame iframe { min-height: 260px; }
}

footer {
  background: var(--forest-deep);
  color: #cfd9d0;
  padding: 32px 0;
  font-size: 0.9rem;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
footer a { text-decoration: none; color: var(--brass); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
