 :root {
  --primary: #1f5b45;
  --primary-2: #163d31;
  --primary-3: #4f7c61;
  --accent: #8f6a3c;
  --accent-dark: #6f512d;
  --soft: #f7f6f1;
  --text: #26362d;
  --muted: #637066;
  --white: #ffffff;
  --border: rgba(31, 91, 69, 0.10);
  --nav-light: #dfeadf;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: #fff;
}

a {
  text-decoration: none;
}

.top-contact-bar {
  background: var(--primary-2);
  position: relative;
  z-index: 5;
}

.contact-pill {
  color: #fff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  padding: .55rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  transition: .25s ease;
}

.contact-pill:hover,
.contact-pill:focus {
  color: #fff;
  background: rgba(255,255,255,.16);
}

.site-navbar {
  background:
    linear-gradient(90deg, rgba(10,31,48,.96) 0%, rgba(18,65,93,.94) 55%, rgba(55,113,111,.90) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 12px 30px rgba(5, 16, 26, .18);
}

.brand-image-link {
  display: inline-flex;
  align-items: center;
}

.brand-image {
  display: block;
  height: 54px;
  width: auto;
  max-width: min(100%, 720px);
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.18));
}

.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section-home {
  min-height: 46vh;
  background:
    radial-gradient(circle at 78% 46%, rgba(139, 224, 219, .26), transparent 18%),
    radial-gradient(circle at top right, rgba(255,255,255,.08), transparent 24%),
    linear-gradient(90deg, #123a56 0%, #1f6788 56%, #8bc9cf 100%);
  background-size: cover;
  background-position: center center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-overlay-light {
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.06), transparent 30%),
    radial-gradient(circle at right center, rgba(255,255,255,.04), transparent 30%);
}

.hero-content {
  z-index: 2;
}

.hero-row-home {
  min-height: 46vh;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.hero-copy-wrap {
  position: relative;
  display: inline-block;
  max-width: 760px;
  padding-right: clamp(10rem, 15vw, 18rem);
}

.hero-watermark {
  position: absolute;
  right: -24vw;
  top: 50%;
  transform: translateY(-50%);
  width: min(27vw, 270px);
  opacity: .96;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 18px 38px rgba(0,0,0,.16));
}

.hero-copy-wrap > *:not(.hero-watermark) {
  position: relative;
  z-index: 1;
}

.hero-badge {
  position: relative;
  z-index: 1;
}

.hero-title {
  color: var(--white);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
}

.hero-title-home {
  max-width: 8.8ch;
  letter-spacing: -.035em;
}

.hero-lead {
  color: rgba(255,255,255,.95);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-lead-home {
  max-width: 30rem;
}

.hero-dark-btn {
  background: var(--primary-2);
  border-color: var(--primary-2);
}

.section-soft {
  background: var(--soft);
}

.section-kicker {
  display: inline-block;
  margin-bottom: .75rem;
  color: var(--accent-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .84rem;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--primary);
}

.section-text {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.75;
}

.feature-card,
.info-card,
.cooperation-box,
.contact-image-frame {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1.7rem;
  box-shadow: 0 14px 40px rgba(19, 43, 64, .08);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: rgba(242,177,56,.18);
  color: var(--primary);
  margin-bottom: 1rem;
}

.service-list {
  display: grid;
  gap: .9rem;
}

.service-item {
  background: rgba(255,255,255,.8);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(16, 43, 64, .05);
}

.service-photo {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.shadow-soft {
  box-shadow: 0 18px 45px rgba(18, 52, 77, .15);
}

.cooperation-box-wide {
  max-width: 980px;
  margin: 0 auto;
}

.map-wrapper {
  border: 1px solid var(--border);
}

.site-footer {
  background: var(--primary-2);
  color: rgba(255,255,255,.88);
}

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

.footer-rich {
  padding: 4rem 0 1.4rem;
}

.footer-brand-box {
  max-width: 460px;
}

.footer-logo-large {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.footer-title {
  color: #fff;
  font-weight: 800;
  margin-bottom: .8rem;
}

.footer-text {
  color: rgba(255,255,255,.74);
  line-height: 1.75;
}

.footer-heading {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  margin-bottom: .65rem;
  color: rgba(255,255,255,.78);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.62);
  text-align: center;
  font-size: .95rem;
}

.contact-row {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-row a {
  color: var(--primary);
  font-weight: 700;
}

.contact-label {
  font-size: .9rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .35rem;
}

.contact-title {
  color: var(--primary);
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 800;
  line-height: 1.12;
}

.contact-title-compact {
  font-size: clamp(1.35rem, 1.6vw, 1.65rem);
}

.contact-lead {
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.6;
}

.contact-hero-copy-compact {
  max-width: 340px;
}

.contact-image-frame {
  min-height: 260px;
  height: 100%;
}

.contact-photo-frame {
  padding: .55rem;
}

.contact-hero-photo {
  width: 100%;
  min-height: 248px;
  max-height: 360px;
  object-fit: cover;
  border-radius: 1.1rem;
}

.form-control,
.form-control:focus {
  border-radius: 1rem;
  border-color: rgba(18, 52, 77, .14);
  box-shadow: none;
}

.form-control {
  padding: .95rem 1rem;
}

.form-note {
  color: var(--muted);
  font-size: .92rem;
}

@media (min-width: 992px) {
  .top-contact-bar {
    display: none;
  }

  .site-navbar {
    display: none;
  }

  .hero-title {
    font-size: 1.95rem;
  }

  .hero-section-home {
    min-height: 36vh;
  }

  .hero-row-home {
    min-height: 36vh;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .hero-watermark {
    right: -21vw;
    width: min(24vw, 245px);
    opacity: .98;
  }

  .hero-copy-wrap {
    max-width: 700px;
    padding-right: 13rem;
  }

  .hero-copy-wrap .btn {
    min-width: 170px;
    padding-top: .8rem;
    padding-bottom: .8rem;
  }
}

@media (max-width: 991.98px) {
  .hero-section-home,
  .hero-row-home {
    min-height: auto;
  }

  .hero-section-home {
    background:
      linear-gradient(180deg, rgba(54,112,83,.92) 0%, rgba(138,170,132,.84) 100%);
    background-position: center center;
  }

  .hero-row-home {
    padding-top: 2.2rem;
    padding-bottom: 2.4rem;
  }

  .service-photo {
    height: 320px;
  }

  .site-navbar {
    padding-top: .75rem;
    padding-bottom: .75rem;
    display: block;
  }

  .hero-copy-wrap {
    max-width: 100%;
    padding-right: 0;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .hero-title-home {
    max-width: 10ch;
  }

  .hero-lead-home {
    max-width: 100%;
  }

  .hero-watermark {
    right: -1.2rem;
    top: 2.4rem;
    transform: none;
    width: min(72vw, 290px);
    opacity: .10;
    filter: none;
  }
}

@media (max-width: 575.98px) {
  .contact-pill {
    width: 100%;
  }

  .hero-section .btn {
    width: 100%;
  }

  .feature-card,
  .info-card,
  .cooperation-box,
  .contact-image-frame {
    padding: 1.25rem;
  }

  .hero-title-home {
    max-width: 12ch;
  }

  .hero-lead {
    font-size: .98rem;
  }

  .service-photo {
    height: 250px;
  }

  .footer-rich {
    padding-top: 3rem;
  }
}


.hero-copy-wrap .btn {
  min-width: 202px;
  border-radius: 1rem;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .16);
}

.hero-copy-wrap .btn-warning {
  color: #0b2235;
}

.hero-copy-wrap .btn-outline-light,
.hero-dark-btn {
  background: transparent;
  border-width: 1.5px;
}

@media (min-width: 992px) {
  .hero-section-home {
    min-height: 86vh;
  }

  .hero-row-home {
    min-height: 86vh;
    padding-top: 4.2rem;
    padding-bottom: 4.2rem;
  }

  .brand-image {
    height: 68px;
  }

  .site-navbar {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .hero-watermark {
    right: -48vw;
    width: min(42vw, 430px);
    opacity: .98;
  }
}

@media (max-width: 991.98px) {
  .site-navbar {
    background: linear-gradient(180deg, #eef4ec 0%, #dde9dd 100%);
    box-shadow: 0 8px 24px rgba(12, 36, 55, .10);
  }

  .brand-image {
    height: 36px;
    max-width: 100%;
  }

  .hero-copy-wrap {
    padding-right: 0;
  }

  .hero-watermark {
    right: -.8rem;
    top: 3.1rem;
    transform: none;
    width: min(72vw, 320px);
    opacity: .1;
    filter: none;
  }
}

@media (max-width: 575.98px) {
  .brand-image {
    height: 40px;
    width: 100%;
    max-width: 100%;
    object-fit: contain;
  }

  .brand-image-link {
    width: 100%;
    justify-content: center;
  }

  .site-navbar .container {
    padding-left: .75rem;
    padding-right: .75rem;
  }

  .hero-copy-wrap .btn {
    min-width: 100%;
  }
}


@media (max-width: 991.98px) {
  .site-navbar .container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .brand-image-link {
    display: flex;
    width: 100%;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
  }

  .brand-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 56px;
    object-fit: contain;
    display: block;
  }
}

@media (max-width: 575.98px) {
  .site-navbar {
    padding-top: .7rem;
    padding-bottom: .7rem;
  }

  .site-navbar .container {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .brand-image-link {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .brand-image {
    width: 100vw;
    max-width: 100vw;
    height: auto;
    max-height: 62px;
    object-fit: contain;
  }
}


.hero-badge {
  background: rgba(255,255,255,.92) !important;
  color: #0d2a40 !important;
  box-shadow: 0 10px 24px rgba(9, 29, 47, .12);
  border: 1px solid rgba(255,255,255,.35);
}

.hero-copy-wrap .btn {
  min-width: 188px;
  border-radius: 1.15rem;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .14);
  transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease;
}

.hero-copy-wrap .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .18);
}

.hero-copy-wrap .btn-warning {
  color: #0c2438;
  background: linear-gradient(180deg, #a37a48 0%, #8b6439 100%);
  border-color: #8b6439;
}

.hero-dark-btn {
  background: rgba(13, 42, 64, .14);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
}

.feature-card,
.info-card,
.cooperation-box,
.contact-image-frame,
.service-item {
  border-color: rgba(16, 52, 74, 0.08);
}

.feature-card {
  box-shadow: 0 16px 34px rgba(17, 54, 77, .06);
}

.feature-icon {
  background: linear-gradient(180deg, rgba(77, 235, 194, .14) 0%, rgba(247, 191, 22, .18) 100%);
}

.section-soft {
  background:
    linear-gradient(180deg, #f5f9fc 0%, #f8fbfd 100%);
}

.section-title {
  letter-spacing: -.02em;
}

.site-footer {
  background: linear-gradient(180deg, #16362b 0%, #214636 100%);
}

.footer-heading {
  color: #dff7f2;
}

@media (min-width: 992px) {
  .hero-section-home {
    min-height: 34vh;
  }

  .hero-row-home {
    min-height: 34vh;
    padding-top: 1.35rem;
    padding-bottom: 1.35rem;
  }

  .hero-title {
    font-size: 1.78rem;
    line-height: 1.04;
  }

  .hero-lead {
    font-size: .95rem;
    line-height: 1.58;
  }

  .hero-watermark {
    right: -20vw;
    width: min(23vw, 235px);
  }

  .hero-copy-wrap {
    max-width: 690px;
    padding-right: 12rem;
  }

  .hero-copy-wrap .btn {
    min-width: 170px;
    font-size: 1rem;
    padding-top: .78rem;
    padding-bottom: .78rem;
  }
}


.firm-card {
  text-align: center;
  backdrop-filter: blur(10px);
}

.firm-card .feature-icon {
  margin-left: auto;
  margin-right: auto;
}

.service-item:hover,
.feature-card:hover,
.info-card:hover,
.cooperation-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(16, 52, 74, .10);
}

.service-item,
.feature-card,
.info-card,
.cooperation-box {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.map-wrapper iframe {
  filter: saturate(1.05) contrast(1.02);
}

@media (min-width: 992px) {
  .service-list {
    grid-template-columns: 1fr;
  }
}


/* v12 layout polish */
.service-section-wide .container {
  position: relative;
}

.service-cover-wrap {
  overflow: hidden;
  border-radius: 1.6rem;
}

.service-photo-wide {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.service-content-wrap {
  padding-top: .25rem;
}

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

.hero-section-home {
  overflow: hidden;
}

.hero-copy-wrap {
  animation: heroRise .8s ease both;
}

.hero-watermark {
  animation: floatLogo 6s ease-in-out infinite;
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(-50%) translateX(0); }
  50% { transform: translateY(calc(-50% - 8px)) translateX(4px); }
}

.footer-brand-textonly {
  padding-top: .2rem;
}

.site-footer .row {
  align-items: start;
}

.site-footer .footer-brand-box,
.site-footer .footer-heading {
  margin-top: 0;
}

@media (min-width: 992px) {
  .service-photo-wide {
    height: 360px;
  }

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

  .service-section-wide .section-title {
    margin-bottom: .8rem;
  }
}

@media (max-width: 991.98px) {
  .service-list-cols,
  .service-list-3 {
    grid-template-columns: 1fr;
  }

  .service-photo-wide {
    height: 240px;
  }

  .service-cover-wrap {
    background: #f6f4ef;
  }

  .service-photo-engineering {
    height: auto;
    max-height: none;
    object-fit: contain;
    width: 100%;
  }
}


/* v14 premium hero */
.hero-section-home {
  min-height: auto;
  padding: 2rem 0 1.6rem;
  background:
    radial-gradient(circle at 78% 30%, rgba(184, 219, 191, .22), transparent 18%),
    linear-gradient(90deg, #1d4f3d 0%, #2f6c54 52%, #9fba9e 100%);
}

.hero-stack {
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
}

.hero-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 2rem;
  margin: 1rem auto 1.15rem;
  max-width: 1080px;
}

.hero-text-block {
  text-align: left;
}

.hero-title-inline {
  max-width: 12ch;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  color: #fff;
}

.hero-lead-inline {
  max-width: 40rem;
  margin-top: 1rem;
  color: rgba(255,255,255,.94);
  font-size: 1.06rem;
  line-height: 1.7;
}

.hero-logo-block {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo-main {
  width: min(100%, 260px);
  height: auto;
  filter: drop-shadow(0 18px 36px rgba(0,0,0,.16));
  animation: heroFloat 6s ease-in-out infinite;
}

.hero-cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1rem 0 1.3rem;
}

.hero-service-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 1.2rem;
}

.hero-service-card {
  border-radius: 1.35rem;
  padding: 1rem .8rem;
  background: linear-gradient(180deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.08) 100%);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 16px 34px rgba(7, 22, 35, .12);
  backdrop-filter: blur(8px);
  color: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}

.hero-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px rgba(7, 22, 35, .18);
}

.hero-service-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto .75rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  background: linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(255,255,255,.12) 100%);
  border: 1px solid rgba(255,255,255,.18);
}

.hero-service-title {
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.1;
}

.hero-service-sub {
  margin-top: .25rem;
  font-size: .92rem;
  color: rgba(255,255,255,.82);
  text-transform: uppercase;
  letter-spacing: .04em;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (min-width: 992px) {
  .hero-watermark,
  .hero-copy-wrap {
    display: none !important;
  }

  .hero-section-home {
    padding: 1.8rem 0 1.5rem;
  }

  .hero-badge {
    margin-inline: auto;
  }
}

@media (max-width: 991.98px) {
  .hero-topline {
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 100%;
  }

  .hero-text-block {
    text-align: center;
  }

  .hero-title-inline,
  .hero-lead-inline {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-logo-main {
    width: min(100%, 180px);
  }

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

@media (max-width: 575.98px) {
  .hero-section-home {
    padding: 1.5rem 0 1.1rem;
  }

  .hero-title-inline {
    font-size: clamp(1.9rem, 9vw, 2.45rem);
  }

  .hero-lead-inline {
    font-size: .98rem;
  }

  .hero-service-strip {
    grid-template-columns: 1fr;
    gap: .8rem;
  }

  .hero-service-card {
    padding: .95rem .8rem;
  }

  .hero-service-title {
    font-size: 1.05rem;
  }
}


/* v18 hero layout refinement */
.hero-topline {
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: start;
  gap: 1.6rem;
  max-width: 1180px;
}

.hero-text-block {
  max-width: 760px;
}

.hero-title-inline {
  max-width: 13ch;
  margin-bottom: .65rem !important;
}

.hero-lead-inline {
  max-width: 58rem;
  margin-top: .2rem;
}

.hero-logo-block {
  align-items: flex-start;
  padding-top: .4rem;
}

.hero-logo-main {
  width: min(100%, 230px);
}

.hero-service-strip {
  gap: .85rem;
}

.hero-service-card {
  padding: .78rem .65rem;
  border-radius: 1.15rem;
}

.hero-service-icon {
  width: 52px;
  height: 52px;
  margin-bottom: .55rem;
  font-size: 1.45rem;
}

.hero-service-title {
  font-size: 1.02rem;
}

.hero-service-sub {
  font-size: .82rem;
}

@media (min-width: 992px) {
  .hero-section-home {
    padding: 1.25rem 0 1rem;
  }

  .hero-topline {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 1.4rem;
  }

  .hero-title-inline {
    font-size: clamp(2.2rem, 3.2vw, 3.4rem);
    line-height: .98;
    max-width: 13ch;
  }

  .hero-lead-inline {
    font-size: 1.02rem;
    line-height: 1.55;
    max-width: 64rem;
  }

  .hero-logo-main {
    width: min(100%, 215px);
  }

  .hero-cta-row {
    margin: .9rem 0 1rem;
  }

  .hero-service-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-service-card {
    min-height: 132px;
  }
}

@media (max-width: 991.98px) {
  .hero-topline {
    grid-template-columns: 1fr;
    gap: .8rem;
  }

  .hero-text-block {
    max-width: 100%;
    text-align: center;
  }

  .hero-title-inline {
    max-width: 100%;
  }

  .hero-lead-inline {
    max-width: 100%;
  }

  .hero-logo-block {
    align-items: center;
    padding-top: 0;
  }

  .hero-logo-main {
    width: min(100%, 170px);
  }

  .hero-service-card {
    min-height: 120px;
  }
}

@media (max-width: 575.98px) {
  .hero-service-card {
    min-height: auto;
    padding: .8rem .7rem;
  }
}


/* v19 hero fine tuning */
.hero-topline {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1rem;
}

.hero-text-block {
  max-width: 980px;
}

.hero-lead-inline {
  max-width: 78rem;
}

.hero-logo-main {
  width: min(100%, 270px);
}

@media (min-width: 992px) {
  .hero-topline {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: .8rem;
    max-width: 1240px;
  }

  .hero-text-block {
    max-width: 1040px;
  }

  .hero-logo-block {
    justify-content: flex-start;
    margin-left: -1.2rem;
  }

  .hero-logo-main {
    width: min(100%, 285px);
  }

  .hero-lead-inline {
    max-width: 72rem;
    width: 72rem;
    font-size: 1rem;
    line-height: 1.55;
  }
}

@media (max-width: 991.98px) {
  .hero-logo-main {
    width: min(100%, 180px);
  }

  .hero-lead-inline {
    max-width: 100%;
    width: auto;
  }
}


/* v20 logo-inspired green/brown theme */
.section-kicker {
  color: var(--accent-dark);
}

.hero-badge {
  color: var(--primary-2) !important;
}

.hero-cta-row .btn-warning {
  color: #fff;
  box-shadow: 0 14px 30px rgba(111, 81, 45, .22);
}

.hero-dark-btn {
  background: rgba(22, 61, 49, .22);
  border-color: rgba(255,255,255,.22);
}

.feature-icon {
  color: var(--primary-2);
  background: linear-gradient(180deg, rgba(95, 151, 111, .18) 0%, rgba(143, 106, 60, .16) 100%);
}

.hero-service-card {
  background: linear-gradient(180deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.06) 100%);
}

.hero-service-icon {
  background: linear-gradient(180deg, rgba(88, 132, 96, .22) 0%, rgba(143, 106, 60, .16) 100%);
}

.site-navbar {
  background:
    linear-gradient(90deg, rgba(22,61,49,.96) 0%, rgba(47,108,84,.94) 55%, rgba(159,186,158,.90) 100%);
}

.service-item:hover,
.feature-card:hover,
.info-card:hover,
.cooperation-box:hover,
.hero-service-card:hover {
  border-color: rgba(143, 106, 60, .24);
}

.map-wrapper iframe {
  filter: saturate(.92) hue-rotate(-12deg) contrast(1.02);
}


/* v21 title in two rows */
.hero-title-inline {
  max-width: 16ch !important;
}

@media (min-width: 992px) {
  .hero-title-inline {
    max-width: 15ch !important;
    font-size: clamp(2.1rem, 3vw, 3rem);
    line-height: 1.02;
  }
}

@media (max-width: 991.98px) {
  .hero-title-inline {
    max-width: 12ch !important;
  }
}


.brand-mobile-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
}

.brand-mobile-badge {
  display: none;
  font-weight: 800;
  color: #27d0b7;
  text-align: center;
  line-height: 1.2;
  font-size: .95rem;
}

.hero-topline-custom {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  align-items: center;
  gap: 2rem;
}

.hero-text-block {
  max-width: 700px;
}

.hero-title-inline {
  max-width: 11ch;
}

.hero-logo-block-desktop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.hero-logo-main {
  width: min(100%, 290px);
  height: auto;
  display: block;
  filter: drop-shadow(0 16px 32px rgba(0,0,0,.16));
}

.hero-logo-badge {
  display: inline-block;
  color: #27d0b7;
  background: transparent;
  font-weight: 800;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.2;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.hero-service-strip {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-service-strip-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-service-link {
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.hero-service-link:hover,
.hero-service-link:focus {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(0,0,0,.14);
  border-color: rgba(255,255,255,.35);
  color: inherit;
}

.hero-service-card {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 1.3rem;
  padding: 1.2rem 1rem;
  backdrop-filter: blur(6px);
  text-align: center;
}

.hero-service-icon {
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: .65rem;
}

.hero-service-title {
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
}

.hero-service-sub {
  color: rgba(255,255,255,.82);
  font-weight: 700;
}

@media (min-width: 992px) {
  .hero-content {
    padding-top: 1.25rem;
    padding-bottom: 1.75rem;
  }
}

@media (max-width: 991.98px) {
  .brand-mobile-badge {
    display: block;
  }

  .hero-topline-custom {
    grid-template-columns: 1fr;
  }

  .hero-logo-block-desktop {
    display: none;
  }

  .hero-title-inline {
    max-width: 9ch;
  }

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

@media (max-width: 575.98px) {
  .brand-image {
    height: 44px;
  }

  .site-navbar .container {
    padding-top: .2rem;
    padding-bottom: .2rem;
  }

  .hero-topline-custom {
    gap: 1rem;
  }

  .hero-title-inline {
    max-width: 8.5ch;
  }

  .hero-cta-row {
    margin-top: 1.4rem;
  }
}


/* v22 responsive hero cleanup */
.hero-topline-custom {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  align-items: start;
  gap: 2rem;
}

.hero-text-block {
  max-width: 760px;
}

.hero-title-inline {
  max-width: none !important;
  font-size: clamp(2rem, 2.7vw, 2.75rem);
  line-height: 1.06;
  text-wrap: balance;
}

.hero-lead-inline {
  width: auto !important;
  max-width: 100% !important;
  font-size: 1rem;
  line-height: 1.6;
}

.hero-logo-block-desktop {
  align-items: center;
  justify-content: flex-start;
  padding-top: .2rem;
}

.hero-logo-main {
  width: min(100%, 235px);
}

.hero-logo-badge {
  max-width: 235px;
  font-size: .96rem;
}

@media (min-width: 1200px) {
  .hero-topline-custom {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .hero-text-block {
    max-width: 820px;
  }

  .hero-title-inline {
    font-size: clamp(2.2rem, 2.6vw, 2.95rem);
  }

  .hero-logo-main {
    width: min(100%, 250px);
  }

  .hero-logo-badge {
    max-width: 250px;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-content {
    padding-top: 1rem;
    padding-bottom: 1.25rem;
  }

  .hero-topline-custom {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 1.4rem;
  }

  .hero-text-block {
    max-width: 640px;
  }

  .hero-title-inline {
    font-size: clamp(1.95rem, 2.55vw, 2.35rem);
  }

  .hero-lead-inline {
    font-size: .95rem;
    line-height: 1.55;
  }

  .hero-logo-main {
    width: min(100%, 210px);
  }

  .hero-logo-badge {
    max-width: 210px;
    font-size: .9rem;
  }
}

@media (max-width: 991.98px) {
  .hero-section-home {
    padding-top: 1.1rem;
  }

  .hero-topline-custom {
    grid-template-columns: 1fr;
    gap: .85rem;
  }

  .hero-text-block {
    max-width: 100%;
    text-align: center;
  }

  .hero-title-inline {
    font-size: clamp(1.8rem, 7vw, 2.45rem);
    max-width: 14ch !important;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-lead-inline {
    font-size: .98rem;
  }

  .hero-logo-block-desktop {
    display: none;
  }

  .brand-mobile-badge {
    display: block;
    max-width: 220px;
  }
}

@media (max-width: 767.98px) {
  .hero-title-inline {
    max-width: 11ch !important;
  }

  .hero-cta-row {
    gap: .8rem;
  }

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

@media (max-width: 575.98px) {
  .brand-mobile-stack {
    gap: .3rem;
  }

  .brand-mobile-badge {
    font-size: .88rem;
    max-width: 190px;
  }

  .hero-title-inline {
    font-size: clamp(1.7rem, 8.6vw, 2.2rem);
  }

  .hero-lead-inline {
    font-size: .94rem;
    line-height: 1.55;
  }
}


/* v4 contact and responsive refinements */
.service-order-link {
  color: inherit;
  font-weight: 700;
  display: block;
}

.service-order-link:hover,
.service-order-link:focus {
  color: var(--primary);
}

.selected-service-note {
  margin-bottom: 1rem;
  padding: .9rem 1rem;
  border-radius: 1rem;
  background: rgba(31, 91, 69, .08);
  border: 1px solid rgba(31, 91, 69, .16);
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .site-navbar .container {
    justify-content: center !important;
  }

  .navbar-brand {
    margin-right: 0;
  }

  .brand-image-link {
    width: 100%;
    justify-content: center;
  }

  .brand-mobile-stack {
    width: 100%;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .brand-image {
    height: auto;
    width: min(100%, 300px);
    max-width: 100%;
  }

  .brand-mobile-badge {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-title-inline {
    max-width: 20ch !important;
    font-size: clamp(1.55rem, 5.8vw, 2.05rem);
    line-height: 1.1;
  }
}

@media (max-width: 575.98px) {
  .brand-image {
    width: min(100%, 260px);
  }

  .hero-title-inline {
    max-width: 18ch !important;
    font-size: clamp(1.45rem, 6vw, 1.9rem);
  }

  .hero-lead-inline {
    font-size: .92rem;
  }
}


/* v5 contact banner */
.contact-hero-banner {
  min-height: auto;
}

.contact-hero-banner .hero-content {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.contact-hero-topline {
  align-items: center;
}

.contact-hero-text {
  text-align: left;
}

.contact-hero-actions {
  justify-content: flex-start;
  margin-top: 1.25rem;
}

.contact-hero-logo-link {
  text-decoration: none;
}

.contact-hero-logo-link:hover .hero-logo-main,
.contact-hero-logo-link:focus .hero-logo-main {
  transform: translateY(-2px);
}

.contact-hero-logo-link .hero-logo-main {
  transition: transform .2s ease;
}

@media (max-width: 991.98px) {
  .contact-hero-banner .hero-content {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .contact-hero-text {
    text-align: center;
  }

  .contact-hero-actions {
    justify-content: center;
  }
}


.hero-service-strip-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 991.98px) {
  .hero-service-strip-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .hero-service-strip-four {
    grid-template-columns: 1fr;
  }
}


.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}

.footer-social-icon {
  width: 26px;
  height: 26px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .18);
}


.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: .75rem 1rem;
  background: #fff;
  color: #000;
  border-radius: .75rem;
  z-index: 9999;
}
.breadcrumbs-wrap {
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid rgba(16,52,74,.08);
}
.breadcrumbs {
  display: flex;
  gap: .5rem;
  align-items: center;
  padding: .65rem 0;
  font-size: .95rem;
  color: var(--muted);
}
.breadcrumbs a { color: var(--primary); font-weight: 600; }
.seo-supporting-text {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.faq-list {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 1rem 1.15rem;
  box-shadow: 0 12px 30px rgba(16,43,64,.05);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--primary);
}
.faq-item p {
  margin: .9rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}
.seo-local-copy {
  max-width: 980px;
  text-align: center;
}
.footer-seo-note {
  margin-top: 1.2rem;
  color: rgba(255,255,255,.72);
  line-height: 1.7;
  max-width: 980px;
}
.hero-title-inline {
  max-width: none;
}
@media (max-width: 991.98px) {
  .hero-title-inline {
    max-width: 14ch;
  }
}


.footer-social-link-icononly {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.footer-social-link-icononly .footer-social-icon {
  width: 30px;
  height: 30px;
  margin: 0;
}


/* Cleanup: keep Instagram icon clean, without white background/shadow */
.footer-social-link-icononly,
.footer-social-link-icononly:hover,
.footer-social-link-icononly:focus {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  outline: 0 !important;
}
.footer-social-link-icononly .footer-social-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}


.footer-phone-inline {
  display: flex;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
}

.footer-social-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.footer-social-icon-inline {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
  filter: none !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}


/* final requested tweaks */
.footer-brand-box.footer-brand-textonly {
  padding-top: 0 !important;
}
.footer-title,
.footer-heading {
  line-height: 1.2;
  margin-top: 0 !important;
}
.footer-social-icon-inline {
  width: 34px;
  height: 34px;
}
.footer-social-link-icononly .footer-social-icon,
.footer-social-icon {
  width: 40px;
  height: 40px;
}
@media (max-width: 575.98px) {
  .footer-social-icon-inline {
    width: 30px;
    height: 30px;
  }
}


/* mobile footer polish */
@media (max-width: 767.98px) {
  .site-footer {
    text-align: center;
  }

  .site-footer .row {
    justify-content: center;
  }

  .site-footer .footer-brand-box,
  .site-footer .footer-list,
  .site-footer .footer-heading,
  .site-footer .footer-text,
  .site-footer .footer-bottom {
    text-align: center;
  }

  .site-footer .footer-brand-box {
    max-width: 100%;
    margin: 0 auto;
  }

  .site-footer .footer-list {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .site-footer .footer-phone-inline {
    justify-content: center;
  }

  .site-footer .footer-social-inline,
  .site-footer .footer-social-link,
  .site-footer .footer-social-link-icononly {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  .site-footer .col-lg-5,
  .site-footer .col-lg-3,
  .site-footer .col-lg-2,
  .site-footer .col-sm-6 {
    text-align: center;
  }
}


.contact-form-highlight {
  margin-bottom: 1.25rem;
  font-size: clamp(1rem, 1.2vw + .9rem, 1.3rem);
  line-height: 1.35;
  font-weight: 800;
  color: var(--primary);
}

#kontakt-forma {
  scroll-margin-top: 1.5rem;
}

#kontakt-forma .info-card {
  position: relative;
}

#kontakt-forma:target .info-card,
#kontakt-forma.form-focused .info-card {
  box-shadow: 0 0 0 3px rgba(31, 91, 69, .14), 0 18px 42px rgba(10, 31, 24, .12);
}

@media (max-width: 575.98px) {
  .contact-form-highlight {
    font-size: 1rem;
  }
}



/* Katastarska geodezija - responsive cover tuning for all smaller devices */
#katastarska .service-cover-wrap {
  overflow: hidden;
}

#katastarska .service-photo-wide {
  width: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

@media (max-width: 1199.98px) {
  #katastarska .service-photo-wide {
    height: 300px;
  }
}

@media (max-width: 991.98px) {
  #katastarska .service-cover-wrap {
    border-radius: 1.3rem;
  }

  #katastarska .service-photo-wide {
    height: 250px;
  }
}

@media (max-width: 767.98px) {
  #katastarska .service-cover-wrap {
    border-radius: 1.15rem;
  }

  #katastarska .service-photo-wide {
    height: 210px;
  }
}

@media (max-width: 575.98px) {
  #katastarska .service-cover-wrap {
    border-radius: 1rem;
  }

  #katastarska .service-photo-wide {
    height: 180px;
  }
}

@media (max-width: 389.98px) {
  #katastarska .service-photo-wide {
    height: 165px;
  }
}

