/*
Theme Name: Custom Website Theme
Theme URI: http://localhost:8080
Author: Local Team
Description: Početna custom tema za novi WordPress website.
Version: 1.1.8
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.1
Text Domain: custom-website-theme
*/

:root {
  --page-bg: #f5f3ef;
  --text: #1f2933;
  --muted: #65727f;
  --accent: #44685f;
  --accent-strong: #263f39;
  --warm: #b68b5d;
  --surface: #ffffff;
  --surface-soft: #ece7df;
  --border: #ddd5c9;
  --shadow: 0 18px 45px rgba(31, 41, 51, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-strong);
}

.wrap {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 243, 239, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.site-header .wrap {
  width: min(1480px, calc(100% - 48px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 94px;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 0 auto;
  min-width: 0;
}

.brand > div {
  flex: 0 0 auto;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

.site-header .custom-logo-link,
.site-header .site-icon-link {
  display: block;
  flex: 0 0 auto;
  width: 82px !important;
  height: 82px !important;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #ffffff;
}

.site-header .custom-logo-link img,
.site-header .site-icon-link img,
.site-header img.custom-logo {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  border-radius: 50%;
}

.site-title,
.site-tagline {
  margin: 0;
}

.site-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.08;
}

.site-title a {
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.site-tagline {
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}

.site-navigation {
  margin-left: auto;
  min-width: 0;
}

.menu-toggle {
  display: none;
}

.site-navigation .menu {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.site-navigation a:hover {
  color: var(--accent-strong);
}

.main-content {
  padding: 0 0 64px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 1.06fr);
  gap: 42px;
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: 48px 0 56px;
}

.hero h1,
.entry-title {
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1.02;
}

.hero-text {
  max-width: 620px;
  margin: 22px 0 0;
  color: #42505d;
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--accent-strong);
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  background: var(--accent-strong);
  color: #ffffff;
}

.button.secondary {
  background: transparent;
}

.hero-media {
  margin: 0;
  overflow: hidden;
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: min(68vh, 620px);
  min-height: 420px;
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--warm);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 44px;
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.section h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
}

.section p {
  margin: 0;
  color: #42505d;
  font-size: 18px;
}

.map-link {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.map-link:hover {
  color: var(--warm);
}

.map-heading-link {
  color: inherit;
  text-decoration: none;
}

.map-heading-link:hover {
  color: var(--accent-strong);
}

.section-head {
  grid-column: 1 / -1;
}

.service-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-grid article {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.service-grid h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.2;
}

.service-grid h3 a {
  color: inherit;
  text-decoration: none;
}

.service-grid h3 a:hover {
  color: var(--accent-strong);
}

.service-grid p {
  font-size: 16px;
}

.service-grid a {
  margin-top: auto;
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding: 18px 20px;
  background: var(--surface);
  border-left: 4px solid var(--warm);
  color: #344250;
}

.contact-cta {
  align-items: center;
  padding: 44px;
  background: var(--accent-strong);
  color: #ffffff;
  border-top: 0;
}

.contact-cta p,
.contact-cta .eyebrow {
  color: #eadfce;
}

.contact-cta .button.primary {
  justify-self: end;
  background: #ffffff;
  color: var(--accent-strong);
  border-color: #ffffff;
}

.map-section {
  align-items: center;
}

.map-frame {
  overflow: hidden;
  min-height: 360px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

.page-layout {
  max-width: 840px;
  padding: 64px 0;
}

.page-header {
  margin-bottom: 28px;
}

.entry-content {
  max-width: 760px;
}

.entry-content p,
.entry-content li {
  color: #42505d;
  font-size: 18px;
}

.entry-content h2 {
  margin-top: 34px;
  color: var(--text);
  font-size: 28px;
  line-height: 1.2;
}

.scroll-nav {
  position: sticky;
  top: 96px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 34px;
  padding: 12px 0;
  background: var(--page-bg);
  border-bottom: 1px solid var(--border);
}

.scroll-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.scroll-nav a:hover {
  border-color: var(--accent);
}

.service-detail-list {
  display: grid;
  gap: 28px;
}

.service-detail {
  scroll-margin-top: 130px;
  padding: 34px 0 38px;
  border-top: 1px solid var(--border);
}

.service-detail h2 {
  margin-top: 0;
  font-size: clamp(30px, 4vw, 48px);
}

.service-detail p + p {
  margin-top: 14px;
}

.catalog-list {
  display: grid;
  gap: 52px;
  margin-top: 42px;
}

.catalog-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.catalog-section h2 {
  grid-column: 1 / -1;
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.catalog-item {
  margin: 0;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.catalog-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: contain;
  background: #ffffff;
  cursor: zoom-in;
}

.catalog-item figcaption {
  margin-top: 16px;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.advice-block {
  display: grid;
  gap: 18px;
}

.advice-block h2,
.advice-block h3 {
  margin: 0;
}

.advice-block p {
  margin: 0;
}

.local-seo-box {
  margin-top: 42px;
  padding: 26px;
  background: var(--surface-soft);
  border-left: 4px solid var(--accent);
}

.local-seo-box h2 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.2;
}

.local-seo-box p {
  margin: 0;
}

.local-seo-box p + p {
  margin-top: 10px;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(18, 24, 31, 0.88);
}

.image-lightbox.is-open {
  display: flex;
}

.image-lightbox img {
  max-width: min(1200px, 94vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.image-lightbox button {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.media-grid figure {
  overflow: hidden;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
}

.media-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #ffffff;
}

.site-footer {
  background: #1f2933;
  color: #ffffff;
}

.site-footer a {
  color: #ffffff;
}

@media (max-width: 920px) {
  .site-header .wrap {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 0;
  }

  .site-header .custom-logo-link,
  .site-header .site-icon-link {
    width: 78px !important;
    height: 78px !important;
  }

  .site-title {
    font-size: 26px;
  }

  .site-tagline {
    font-size: 15px;
  }

  .site-navigation a {
    font-size: 16px;
  }

  .site-navigation {
    display: none;
    width: 100%;
    margin-left: 0;
    border-top: 1px solid var(--border);
  }

  .site-navigation.is-open {
    display: block;
  }

  .site-navigation .menu {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 2px;
  }

  .site-navigation li {
    width: 100%;
  }

  .site-navigation a {
    width: 100%;
    min-height: 44px;
    padding: 8px 4px;
    border-bottom: 1px solid rgba(221, 213, 201, 0.72);
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    margin-left: auto;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }

  .menu-toggle-icon,
  .menu-toggle-icon::before,
  .menu-toggle-icon::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .menu-toggle-icon {
    position: relative;
  }

  .menu-toggle-icon::before,
  .menu-toggle-icon::after {
    position: absolute;
    left: 0;
    content: "";
  }

  .menu-toggle-icon::before {
    top: -6px;
  }

  .menu-toggle-icon::after {
    top: 6px;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-icon {
    background: transparent;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
    top: 0;
    transform: rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
    top: 0;
    transform: rotate(-45deg);
  }

  .hero,
  .section,
  .contact-cta {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    order: -1;
  }

  .hero-media img {
    height: 360px;
    min-height: 0;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-cta .button.primary {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: min(100% - 24px, 1160px);
  }

  .brand {
    min-width: 0;
  }

  .site-title a {
    white-space: normal;
  }

  .site-tagline {
    white-space: normal;
  }

  .site-header .custom-logo-link,
  .site-header .site-icon-link {
    width: 70px !important;
    height: 70px !important;
  }

  .site-title {
    font-size: 24px;
  }

  .site-tagline {
    font-size: 14px;
  }

  .site-navigation a {
    font-size: 15px;
  }

  .eyebrow {
    font-size: 14px;
  }

  .hero {
    gap: 26px;
    padding-top: 28px;
  }

  .hero-text,
  .section p,
  .entry-content p,
  .entry-content li {
    font-size: 16px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .media-grid {
    grid-template-columns: 1fr;
  }

  .catalog-section {
    grid-template-columns: 1fr;
  }

  .section {
    gap: 22px;
    padding: 48px 0;
  }

  .contact-cta {
    padding: 28px 20px;
  }
}
