/*
Theme Name: Istruktura Construction Services
Theme URI: https://istrukturacs.com
Author: Codex
Description: A clean construction business profile theme for Istruktura Construction Services.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: istruktura
*/

:root {
  --ics-green: #155b2a;
  --ics-green-dark: #0c3419;
  --ics-gold: #bd9215;
  --ics-ink: #17221a;
  --ics-muted: #667067;
  --ics-line: #d9dfd8;
  --ics-bg: #f6f7f3;
  --ics-white: #ffffff;
  --ics-radius: 8px;
  --ics-shadow: 0 18px 45px rgba(14, 38, 22, 0.12);
}

* {
  box-sizing: border-box;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  background: var(--ics-white);
  color: var(--ics-green-dark);
}

.skip-link:focus {
  left: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--ics-line);
  backdrop-filter: blur(12px);
}

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

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.brand img {
  width: 174px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0.55rem 0.8rem;
  border-radius: 6px;
  color: var(--ics-green-dark);
  font-weight: 700;
  font-size: 0.94rem;
}

.site-nav a:hover,
.site-nav .current-menu-item > a {
  background: #ecf2ed;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ics-line);
  border-radius: 6px;
  background: var(--ics-white);
  color: var(--ics-green-dark);
  font-size: 1.4rem;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.button,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  border-radius: 6px;
  padding: 0.82rem 1rem;
  background: var(--ics-green);
  color: var(--ics-white);
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}

.button.secondary {
  background: var(--ics-white);
  color: var(--ics-green-dark);
  border: 1px solid var(--ics-line);
}

.button.gold {
  background: var(--ics-gold);
  color: #171204;
}

.hero {
  position: relative;
  min-height: calc(100vh - 82px);
  display: grid;
  align-items: end;
  padding: 5rem 0 4rem;
  color: var(--ics-white);
  background: url("https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 22, 12, 0.72);
}

.hero > .wrap,
.page-hero > .wrap {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.55fr);
  gap: 2rem;
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  color: #f4d36b;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 3px;
  background: currentColor;
}

.hero h1,
.page-hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero p {
  max-width: 690px;
  margin: 1.2rem 0 0;
  font-size: 1.16rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.hero-mark {
  justify-self: end;
  width: min(260px, 55vw);
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--ics-radius);
  background: rgba(255, 255, 255, 0.9);
}

.section {
  padding: 5rem 0;
}

.section.alt {
  background: var(--ics-white);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.55fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

h2,
.entry-content h2 {
  margin: 0;
  color: var(--ics-green-dark);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 0.6rem;
  color: var(--ics-green-dark);
  font-size: 1.18rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.lead {
  margin: 0;
  color: var(--ics-muted);
  font-size: 1.05rem;
}

.feature-grid,
.service-grid,
.project-grid,
.stats-grid {
  display: grid;
  gap: 1rem;
}

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

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

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

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

.feature,
.service,
.project,
.stat,
.contact-panel {
  border: 1px solid var(--ics-line);
  border-radius: var(--ics-radius);
  background: var(--ics-white);
  box-shadow: var(--ics-shadow);
}

.feature,
.service,
.stat,
.contact-panel {
  padding: 1.25rem;
}

.feature .num,
.service .num {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 6px;
  background: #edf4ee;
  color: var(--ics-green);
  font-weight: 900;
}

.project {
  overflow: hidden;
}

.project-image {
  min-height: 220px;
  background: #d7ddd4 center/cover;
}

img.project-image {
  width: 100%;
  height: 220px;
  min-height: 0;
  object-fit: cover;
}

.project:nth-child(1) .project-image {
  background-image: url("https://images.unsplash.com/photo-1541888946425-d81bb19240f5?auto=format&fit=crop&w=900&q=80");
}

.project:nth-child(2) .project-image {
  background-image: url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=900&q=80");
}

.project:nth-child(3) .project-image {
  background-image: url("https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?auto=format&fit=crop&w=900&q=80");
}

.project-body {
  padding: 1.15rem;
}

.project-body p,
.service p,
.feature p {
  margin: 0;
  color: var(--ics-muted);
}

.stat strong {
  display: block;
  color: var(--ics-green);
  font-size: 2.2rem;
  line-height: 1;
}

.stat span {
  color: var(--ics-muted);
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 0.55fr);
  gap: 2rem;
  align-items: center;
}

.media-panel {
  min-height: 430px;
  border-radius: var(--ics-radius);
  background:
    linear-gradient(rgba(17, 58, 28, 0.08), rgba(17, 58, 28, 0.14)),
    url("https://images.unsplash.com/photo-1590845947698-8924d7409b56?auto=format&fit=crop&w=1000&q=80") center/cover;
  box-shadow: var(--ics-shadow);
}

.check-list {
  display: grid;
  gap: 0.65rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 0.6rem;
  align-items: start;
}

.check-list li::before {
  content: "";
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--ics-green);
  box-shadow: inset 0 0 0 7px var(--ics-green);
  border-right: 3px solid var(--ics-white);
  border-bottom: 3px solid var(--ics-white);
  transform: rotate(45deg) scale(0.58);
}

.cta-band {
  padding: 3rem 0;
  color: var(--ics-white);
  background: var(--ics-green-dark);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-inner h2 {
  color: var(--ics-white);
}

.page-hero {
  position: relative;
  padding: 5rem 0 3.25rem;
  color: var(--ics-white);
  background: url("https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.entry-content {
  padding: 4rem 0;
}

.entry-content > * {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(320px, 0.38fr);
  gap: 1rem;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--ics-green-dark);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--ics-line);
  border-radius: 6px;
  padding: 0.85rem;
  color: var(--ics-ink);
  font: inherit;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.site-footer {
  color: rgba(255, 255, 255, 0.88);
  background: #091d0f;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(2, minmax(180px, 0.45fr));
  gap: 2rem;
  padding: 3rem 0;
}

.footer-logo {
  width: 190px;
  margin-bottom: 1rem;
  background: var(--ics-white);
  border-radius: 6px;
  padding: 0.45rem;
}

.footer-grid h2,
.footer-grid h3 {
  color: var(--ics-white);
  font-size: 1rem;
}

.footer-grid ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-bottom {
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .header-inner {
    min-height: 72px;
  }

  .brand img {
    width: 150px;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    display: none;
    padding: 0.75rem 1rem 1rem;
    background: var(--ics-white);
    border-bottom: 1px solid var(--ics-line);
  }

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

  .site-nav ul {
    display: grid;
    gap: 0.25rem;
  }

  .site-nav a {
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding: 4rem 0 3rem;
  }

  .hero-grid,
  .section-head,
  .split,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-mark {
    justify-self: start;
    width: 190px;
  }

  .feature-grid,
  .service-grid,
  .project-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .media-panel {
    min-height: 300px;
  }

  .cta-inner {
    display: grid;
  }
}
