/*
Theme Name: 3D Prostor
Theme URI: https://3dprostor.si.smarcan.si/
Author: Žiga / OpenAI
Description: Custom responsive WordPress theme for 3D Prostor d.o.o.
Version: 1.4.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: prostor3d
*/

:root {
  --brand: #5b22cf;
  --brand-dark: #4313a8;
  --text: #171717;
  --muted: #5f5f66;
  --soft: #f8f8f9;
  --border: #ececf0;
  --container: 1200px;
  --page-pad: clamp(18px, 4vw, 32px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.site-container {
  width: min(var(--container), calc(100% - (var(--page-pad) * 2)));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 50;
}
.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.site-branding .custom-logo {
  max-height: 48px;
  width: auto;
}
.site-title {
  font-size: 20px;
}
.primary-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
  align-items: center;
}
.primary-nav a {
  font-size: 14px;
  font-weight: 700;
  transition: color .2s ease;
}
.primary-nav a:hover { color: var(--brand); }
.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

/* Hero */
.hero {
  min-height: 520px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(0,0,0,.12), rgba(0,0,0,.22)),
    url("assets/images/hero-surveyor.png") center center / cover no-repeat;
  color: #fff;
}
.hero-content {
  width: min(var(--container), calc(100% - (var(--page-pad) * 2)));
  margin-inline: auto;
  text-align: center;
}
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(46px, 6vw, 78px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -.045em;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.hero p {
  margin: 0 auto 28px;
  font-size: clamp(20px, 2vw, 29px);
  font-weight: 500;
  text-shadow: 0 2px 6px rgba(0,0,0,.4);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  background: var(--brand);
  color: #fff;
  border: 1px solid #3f0db0;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 18px rgba(91,34,207,.25);
}
.btn:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
}

/* Services */
.services-section {
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
  padding: 52px 0 58px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  min-height: 290px;
  background: #fff;
  border: 1px solid #f0f0f2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 34px 28px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,.08);
  border-color: #e4def6;
}
.service-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  color: #111;
}
.service-card h2 {
  font-size: 22px;
  margin: 0 0 16px;
  text-transform: uppercase;
  line-height: 1.15;
}
.service-card p {
  margin: 0;
  color: #333;
  font-size: 16px;
  max-width: 250px;
}
.service-arrow {
  margin-top: 24px;
  color: var(--brand);
  font-size: 30px;
  line-height: 1;
}

/* CTA */
.cta-section {
  padding: 70px 0;
  text-align: center;
  background: #fff;
}
.cta-section h2 {
  font-size: clamp(32px, 3.3vw, 48px);
  letter-spacing: -.03em;
  margin: 0 0 28px;
}

/* Contact */
.contact-section {
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
  padding: 48px 0 52px;
}
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.contact-copy h2 {
  margin: 0 0 24px;
  font-size: 21px;
  text-transform: uppercase;
}
.contact-copy p {
  margin: 0 0 18px;
  font-size: 17px;
}
.contact-copy a { color: var(--brand); }
.map-wrap {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 16 / 9;
  background: #eee;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Footer */
.site-footer {
  background: #fff;
}
.footer-inner {
  border-top: 1px solid #bbb;
  padding: 26px 0 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 14px;
}
.footer-copy {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-top {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  border-radius: 50%;
  font-size: 20px;
}

/* Standard page content */
.site-main.standard-page {
  width: min(var(--container), calc(100% - (var(--page-pad) * 2)));
  margin: 50px auto 80px;
}
.standard-page h1 { font-size: clamp(38px, 4vw, 56px); }

/* Mobile */
@media (max-width: 780px) {
  .header-inner { min-height: 66px; }
  .menu-toggle { display: block; }
  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--page-pad) 18px;
  }
  .primary-nav li { border-bottom: 1px solid #f0f0f0; }
  .primary-nav a { display: block; padding: 14px 0; }

  .hero {
    min-height: 430px;
    background-position: 40% center;
  }
  .hero h1 { font-size: clamp(38px, 12vw, 56px); }
  .hero p { font-size: 19px; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 235px; }
  .cta-section { padding: 52px 0; }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .map-wrap { aspect-ratio: 4 / 3; }
  .footer-inner {
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero { min-height: 400px; }
  .btn { width: auto; }
  .footer-inner { flex-direction: column; }
}


/* Service subpages */
.service-hero {
  min-height: 600px;
  display: grid;
  align-items: end;
  color: #fff;
  position: relative;
  background-position: center right !important;
  background-size: cover !important;
}
.service-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.30) 58%, rgba(0,0,0,.14) 100%);
}
.service-hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--container), calc(100% - (var(--page-pad) * 2)));
  margin-inline: auto;
  padding: 72px 0 58px;
}
.service-hero h1 {
  margin: 0 0 14px;
  max-width: 800px;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.03;
  letter-spacing: -.04em;
}
.service-hero p {
  margin: 0;
  max-width: 760px;
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.45;
}
.service-page-content {
  padding: 68px 0 72px;
}
.service-intro {
  max-width: 850px;
  margin-bottom: 48px;
}
.service-eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.service-intro h2,
.service-columns h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.15;
  letter-spacing: -.025em;
}
.service-intro p,
.service-columns p {
  color: #404047;
  font-size: 18px;
}
.service-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.service-list-box {
  background: var(--soft);
  border: 1px solid var(--border);
  padding: 34px;
}
.service-list-box h3 {
  margin: 0 0 20px;
  font-size: 24px;
}
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.service-list li {
  position: relative;
  padding: 11px 0 11px 28px;
  border-bottom: 1px solid #e8e8eb;
  font-size: 17px;
}
.service-list li:last-child { border-bottom: 0; }
.service-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--brand);
  font-weight: 900;
}
.service-page-cta {
  background: #f7f4ff;
  padding: 62px 0;
  text-align: center;
}
.service-page-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 3vw, 44px);
}
.service-page-cta p {
  max-width: 700px;
  margin: 0 auto 26px;
  color: #4d4a55;
  font-size: 17px;
}
.breadcrumb-lite {
  padding: 18px 0;
  font-size: 14px;
  color: #666;
}
.breadcrumb-lite a { color: var(--brand); }

@media (max-width: 780px) {
  .service-hero { min-height: 360px; }
  .service-hero-inner { padding: 56px 0 42px; }
  .service-columns { grid-template-columns: 1fr; gap: 34px; }
  .service-page-content { padding: 48px 0 52px; }
  .service-list-box { padding: 26px 22px; }
}


/* v1.4.2 service page visual fixes */
.service-page .breadcrumb-lite {
  display: none !important;
}

.service-page .service-eyebrow {
  display: none !important;
}

.service-page .service-hero {
  min-height: 520px !important;
  background-size: cover;
  background-position: center center;
}

.service-page .service-hero-inner {
  padding-top: 90px;
  padding-bottom: 72px;
}

@media (max-width: 780px) {
  .service-page .service-hero {
    min-height: 400px !important;
  }

  .service-page .service-hero-inner {
    padding-top: 64px;
    padding-bottom: 48px;
  }
}

.ff-el-form-check a {
  color: #5b22cf;
  text-decoration: underline;
  font-weight: 600;
}

.ff-el-form-check a:hover {
  text-decoration: none;
}

.footer-contact {
  border-top: 1px solid #e5e5e5;
  padding: 60px 20px;
  background: #fff;
}

.footer-contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

.footer-info h3 {
  font-size: 28px;
  margin-bottom: 20px;
}

.footer-info p {
  line-height: 1.7;
  margin-bottom: 15px;
}

.footer-info a {
  color: #111;
  text-decoration: none;
}

.footer-info a:hover {
  color: #5b22cf;
}

.footer-privacy a {
  color: #5b22cf;
  text-decoration: underline;
  font-weight: 600;
}

.footer-map iframe {
  display: block;
  border-radius: 14px;
}

.footer-bottom {
  border-top: 1px solid #e5e5e5;
  padding: 22px 20px;
}

.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 35px;
  font-size: 14px;
}

@media (max-width: 768px) {
  .footer-contact-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-map iframe {
    height: 260px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 8px;
  }
}
