/*
Theme Name: HIDRI Konstruksion
Theme URI: https://hidrikonstruksion.al
Author: HIDRI CONSTRUKSION SHPK
Description: One-page marketing theme for HIDRI CONSTRUKSION SHPK, ported from the original Node/Express + EJS mini-cms design. Homepage sections (hero, stats, about, products, activity, gallery, recent works, Italy, why-us, contact) are editable via the Customizer, and repeatable content (stats/products/services/projects/reasons) is managed through the "Page Content" custom post type.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 7.1
Text Domain: hidri-konstruksion
*/

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #FFFFFF;
  --bg-raised: #F3F5F7;
  --steel: #D6DDE4;
  --steel-light: #A7B2BE;
  --concrete: #596775;
  --paper: #101923;
  --safety: #F5A900;
  --safety-dim: #C98200;
  --blueprint: #263746;
  --font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--paper);
  font-family: var(--font-body);
  line-height: 1.55;
  overflow-x: hidden;
}

::selection { background: var(--safety); color: var(--bg); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

a { color: inherit; }
img, svg { max-width: 100%; display: block; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Motion ---------- */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-media {
  from { opacity: 0; transform: translateX(24px) rotate(1.2deg); }
  to { opacity: 1; transform: translateX(0) rotate(1.2deg); }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Nav ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--steel);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.wordmark {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  white-space: nowrap;
  z-index: 2;
}
.header-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.wordmark .dot { color: var(--safety); }

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.9rem;
  font-weight: 500;
}
.nav-links a {
  text-decoration: none;
  color: var(--concrete);
  transition: color 0.15s ease;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--safety);
  transition: width 0.2s var(--ease-out);
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--paper); }
.nav-links a:hover::after,
.nav-links a:focus-visible::after { width: 100%; }

.nav-cta {
  border: 1px solid var(--safety);
  color: var(--paper) !important;
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  z-index: 2;
}
.nav-cta:hover { background: var(--safety); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--steel);
  background: var(--bg);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--paper);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--safety);
  outline-offset: 3px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(680px, calc(100vh - 80px));
  display: flex;
  align-items: center;
  padding: 96px 0 88px;
  border-bottom: 1px solid var(--steel);
  background:
    linear-gradient(105deg, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.88) 42%, rgba(243,245,247,0.55) 100%),
    repeating-linear-gradient(0deg, rgba(166,178,190,0.12) 0, rgba(166,178,190,0.12) 1px, transparent 1px, transparent 56px),
    repeating-linear-gradient(90deg, rgba(166,178,190,0.12) 0, rgba(166,178,190,0.12) 1px, transparent 1px, transparent 56px);
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -10%;
  right: -5%;
  width: 55%;
  height: 120%;
  background: linear-gradient(145deg, transparent 0 18%, rgba(245, 169, 0, 0.18) 18% 100%);
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
  animation: fade-in 1.2s var(--ease-out) both;
}

.hero-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid var(--safety);
  opacity: 0.75;
  z-index: 2;
}
.hero-corner.tl { top: 28px; left: 28px; border-right: none; border-bottom: none; }
.hero-corner.br { bottom: 28px; right: 28px; border-left: none; border-top: none; }

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy { animation: rise-in 0.8s var(--ease-out) both; }

.hero-label {
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--safety-dim);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-label::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--safety);
}

.hero h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.8rem, 6.2vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 11ch;
  text-wrap: balance;
}

.hero-sub {
  margin-top: 22px;
  max-width: 42ch;
  font-size: 1.08rem;
  color: var(--concrete);
  line-height: 1.65;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-contact-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: 0.84rem;
}
.hero-contact-links a {
  color: var(--concrete);
  text-decoration: none;
  border-bottom: 1px solid var(--steel-light);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.hero-contact-links a:hover { color: var(--safety-dim); border-color: var(--safety); }

.hero-media {
  position: relative;
  min-height: 400px;
  border: 8px solid var(--paper);
  background: var(--paper);
  box-shadow: 16px 16px 0 var(--safety), 0 24px 48px rgba(16, 25, 35, 0.16);
  transform: rotate(1.2deg);
  animation: slide-media 0.9s var(--ease-out) 0.15s both;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 384px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s var(--ease-out);
}
.hero-media:hover img { transform: scale(1.04); }
.hero-media-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 12px 16px;
  background: rgba(16, 25, 35, 0.92);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--safety);
  color: var(--paper);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover {
  background: #ffb020;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(245, 169, 0, 0.28);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--steel-light);
  color: var(--paper);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  background: transparent;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.btn-secondary:hover {
  border-color: var(--paper);
  background: rgba(16, 25, 35, 0.04);
  transform: translateY(-2px);
}

/* ---------- Stats ---------- */
.stats {
  border-bottom: 1px solid var(--steel);
  background: var(--safety);
  color: var(--paper);
}
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat {
  padding: 28px 24px;
  border-left: 1px solid rgba(16, 25, 35, 0.12);
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat-num {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}
.stat-label {
  font-size: 0.84rem;
  color: rgba(16, 25, 35, 0.7);
  margin-top: 6px;
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--steel);
  padding-bottom: 20px;
}
.section-head h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
}
.section-num {
  font-family: var(--font-head);
  color: var(--concrete);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.about-section {
  background: var(--bg-raised);
  border-bottom: 1px solid var(--steel);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 56px;
  align-items: start;
}
.about-grid .section-head { margin-top: 0; margin-bottom: 0; border: 0; padding: 0; }
.about-lead {
  font-size: 1.14rem;
  color: var(--paper);
  max-width: 58ch;
  line-height: 1.7;
}
.company-facts {
  color: var(--concrete);
  font-size: 0.86rem;
  margin-top: 28px;
  max-width: 62ch;
  padding-top: 20px;
  border-top: 1px solid var(--steel);
}
.company-facts strong {
  color: var(--safety-dim);
  font-family: var(--font-head);
  font-weight: 600;
  margin-right: 4px;
  letter-spacing: 0.04em;
}

/* Business scope (legal excerpt, e.g. QKB object of activity) */
.scope-section {
  background: var(--bg);
}
.scope-text {
  border-left: 3px solid var(--safety);
  padding-left: 28px;
}
.scope-text p {
  color: var(--concrete);
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: 82ch;
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--steel);
  border: 1px solid var(--steel);
}
.product-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-raised);
  min-height: 230px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background 0.25s ease, transform 0.25s var(--ease-out);
}
.product-card::after {
  content: '';
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 100px;
  height: 100px;
  border: 1px solid var(--steel-light);
  transform: rotate(45deg);
  opacity: 0.3;
  transition: opacity 0.25s ease;
}
.product-card:hover {
  background: var(--bg);
  transform: translateY(-4px);
}
.product-card:hover::after { opacity: 0.55; }
.product-index {
  color: var(--safety);
  font-family: var(--font-head);
  font-size: 1.85rem;
  font-weight: 600;
}
.product-meta {
  color: var(--blueprint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
}
.product-card h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.28rem;
  margin: 8px 0;
}
.product-card p { color: var(--concrete); font-size: 0.88rem; }

/* Activity */
.activity-section {
  background: var(--bg-raised);
  border-top: 1px solid var(--steel);
  border-bottom: 1px solid var(--steel);
}
.activity-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 52px;
}
.activity-grid > p {
  color: var(--paper);
  font-size: 1.12rem;
  max-width: 34ch;
  line-height: 1.65;
}

.service-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--steel);
  transition: padding-left 0.2s var(--ease-out), border-color 0.2s ease;
}
.service-list .service-row:first-child { padding-top: 0; }
.service-row h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.25rem;
  text-transform: uppercase;
}
.service-row p { color: var(--concrete); max-width: 62ch; }
.service-row:hover {
  padding-left: 10px;
  border-color: var(--safety);
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--steel);
  border: 1px solid var(--steel);
}
.project-card {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transition: background 0.25s ease, transform 0.25s var(--ease-out);
}
.project-card:hover {
  background: var(--bg-raised);
  transform: translateY(-3px);
}
.project-thumb {
  aspect-ratio: 4 / 3;
  background-color: var(--bg-raised);
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  overflow: hidden;
}
.project-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 25, 35, 0.45), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.project-card:hover .project-thumb::after { opacity: 1; }
.project-thumb .cat {
  position: relative;
  z-index: 1;
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  border: 1px solid var(--safety);
  padding: 4px 9px;
  background: var(--safety);
}
.project-body { padding: 20px; }
.project-body h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.project-body p {
  font-size: 0.9rem;
  color: var(--concrete);
}

/* Recent works slider (admin posts) */
.works-section {
  padding-bottom: 0;
  border-top: 1px solid var(--steel);
  background: var(--bg);
}

.works-intro {
  margin: -28px 0 36px;
  color: var(--concrete);
  max-width: 48ch;
  font-size: 1.05rem;
}

.works-slider {
  position: relative;
  border-top: 1px solid var(--steel);
  border-bottom: 1px solid var(--steel);
  overflow: hidden;
  background: var(--paper);
}

.works-track {
  position: relative;
  min-height: min(520px, 72vh);
}

.works-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.55s var(--ease-out), visibility 0.55s;
}

.works-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  position: relative;
}

.works-media {
  min-height: 320px;
  background-color: var(--blueprint);
  background-size: cover;
  background-position: center;
  position: relative;
}

.works-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 55%, rgba(16, 25, 35, 0.35) 100%);
}

.works-media-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.18);
}

.works-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 48px 40px;
  background: var(--paper);
  color: #fff;
}

.works-index {
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--safety);
}

.works-copy h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 14ch;
}

.works-copy p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 36ch;
  font-size: 0.98rem;
  line-height: 1.65;
}

.works-copy .btn-primary {
  align-self: flex-start;
  margin-top: 8px;
}

.works-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 28px;
  background: var(--bg);
}

.works-dots {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.works-dot {
  width: 28px;
  height: 3px;
  border: 0;
  padding: 0;
  background: var(--steel);
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}

.works-dot.is-active {
  background: var(--safety);
  width: 42px;
}

.works-arrows {
  display: flex;
  gap: 8px;
}

.works-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid var(--steel-light);
  background: var(--bg);
  color: var(--paper);
  font-size: 1.1rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.works-arrow:hover {
  border-color: var(--safety);
  background: var(--safety);
  color: var(--paper);
}

@media (max-width: 860px) {
  .works-slide,
  .works-slide.is-active {
    grid-template-columns: 1fr;
  }
  .works-track { min-height: 0; }
  .works-media { min-height: 240px; }
  .works-media::after { background: linear-gradient(to top, rgba(16, 25, 35, 0.5), transparent 50%); }
  .works-copy { padding: 28px 22px 32px; }
  .works-copy h3 { max-width: none; }
  .works-controls { flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .works-controls { flex-direction: column; align-items: stretch; }
  .works-arrows { justify-content: flex-end; }
}

/* Fleet & equipment slider — full-bleed photos, no copy panel (unlike the
   works slider above); reuses .works-dots/.works-arrows/.works-controls
   for the control bar since those are purely visual and content-agnostic. */
.fleet-section {
  padding-bottom: 0;
  border-top: 1px solid var(--steel);
  background: var(--bg);
}

.fleet-slider {
  position: relative;
  border-top: 1px solid var(--steel);
  border-bottom: 1px solid var(--steel);
  overflow: hidden;
  background: var(--paper);
}

.fleet-track {
  position: relative;
  min-height: min(480px, 65vh);
}

.fleet-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.55s var(--ease-out), visibility 0.55s;
}

.fleet-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  position: relative;
}

.fleet-slide img {
  width: 100%;
  height: 100%;
  min-height: min(480px, 65vh);
  object-fit: cover;
  object-position: center;
}

.fleet-slide figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 16px 24px;
  background: linear-gradient(to top, rgba(16, 25, 35, 0.82), transparent 65%);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .fleet-track { min-height: 0; }
  .fleet-slide img { min-height: 260px; }
}

/* Italy */
.italy-section {
  background: var(--safety);
  color: var(--paper);
  padding: 72px 0;
}
.italy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
}
.italy-section .hero-label { color: var(--paper); }
.italy-section .hero-label::before { background: var(--paper); }
.italy-section h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  max-width: 12ch;
  font-weight: 700;
}
.italy-section p { max-width: 52ch; font-size: 1.06rem; line-height: 1.65; }
.italy-section .btn-secondary {
  margin-top: 24px;
  border-color: var(--paper);
  color: var(--paper);
}
.italy-section .btn-secondary:hover {
  background: var(--paper);
  color: var(--safety);
}

/* Why */
.why {
  background: var(--bg-raised);
  border-top: 1px solid var(--steel);
  border-bottom: 1px solid var(--steel);
}
.why-inner { padding: 88px 0; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.why-item {
  padding-top: 4px;
  border-top: 3px solid var(--safety);
}
.why-item h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 16px 0 10px;
  color: var(--blueprint);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.why-item p { color: var(--concrete); font-size: 0.95rem; }

/* Contact */
#contact { position: relative; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
}
.contact-line {
  display: flex;
  flex-direction: column;
  padding: 15px 0;
  border-bottom: 1px solid var(--steel);
}
.contact-line:first-child { padding-top: 0; }
.contact-line span.label {
  font-size: 0.74rem;
  color: var(--concrete);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-family: var(--font-head);
}
.contact-line a,
.contact-line > span:not(.label) {
  text-decoration: none;
  font-size: 1.05rem;
}
.contact-line a:hover { color: var(--safety-dim); }

form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.82rem;
  color: var(--concrete);
  font-family: var(--font-head);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.field input,
.field select,
.field textarea {
  background: var(--bg-raised);
  border: 1px solid var(--steel);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--safety);
  box-shadow: 0 0 0 3px rgba(245, 169, 0, 0.18);
  outline: none;
}

.form-note { font-size: 0.84rem; color: var(--concrete); }
.form-submit { align-self: flex-start; }

.confirm {
  display: none;
  border: 1px solid var(--blueprint);
  border-left: 4px solid var(--safety);
  padding: 20px;
  background: var(--bg-raised);
}
.confirm.show { display: block; animation: rise-in 0.4s var(--ease-out); }
.confirm strong {
  color: var(--blueprint);
  font-family: var(--font-head);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.confirm p { margin-top: 8px; color: var(--concrete); }

/* Footer */
footer {
  border-top: 1px solid var(--steel);
  padding: 28px 0;
  background: var(--paper);
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-layout { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { transform: none; max-width: 560px; }
  .hero-media,
  .hero-media:hover { animation: rise-in 0.8s var(--ease-out) both; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  header { position: sticky; }
  nav { position: relative; flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav-cta { order: 2; }
  .nav-toggle { order: 3; }
  .nav-links {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 4px;
    border-top: 1px solid var(--steel);
    margin-top: 10px;
  }
  body.nav-open .nav-links { display: flex; }
  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--steel);
    font-size: 1rem;
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a::after { display: none; }
  .nav-cta {
    padding: 8px 14px;
    font-size: 0.82rem;
  }

  .hero { min-height: auto; padding: 72px 0 64px; }
  .hero-corner { display: none; }
  .hero h1 { max-width: none; font-size: clamp(2.4rem, 9vw, 3.6rem); }
  .about-grid,
  .activity-grid,
  .italy-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .service-row { grid-template-columns: 1fr; gap: 8px; }
  .why-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .header-logo { width: 44px; height: 44px; }
  .wordmark { font-size: 1.1rem; gap: 8px; }
  .stats .wrap { grid-template-columns: 1fr; }
  .stat {
    border-left: none;
    border-top: 1px solid rgba(16, 25, 35, 0.12);
    padding: 20px 0;
  }
  .stat:first-child { border-top: none; padding-top: 22px; }
  .hero-actions { flex-direction: column; }
  .hero-actions a { width: 100%; }
  .hero-media { min-height: 220px; border-width: 6px; box-shadow: 10px 10px 0 var(--safety); }
  .hero-media img { min-height: 200px; }
  .product-grid,
  .project-grid { grid-template-columns: 1fr; }
  section,
  .why-inner { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .scope-text { padding-left: 18px; }
}

/* ---------- WordPress-specific ---------- */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Single "recent work" post — not in the original design system (the
   old app styled this page with a separate, plainer admin stylesheet);
   built here using the same design tokens so it matches the rest of the
   site instead of looking like an unstyled fallback page. */
.single-work {
  padding: 64px 0 96px;
}
.single-work .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--concrete);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 32px;
}
.single-work .back-link:hover { color: var(--safety-dim); }
.single-work-image {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  margin-bottom: 32px;
  border: 8px solid var(--paper);
}
.single-work-meta {
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--safety-dim);
  margin-bottom: 10px;
}
.single-work h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.05;
  max-width: 22ch;
  margin-bottom: 24px;
}
.single-work-content {
  font-size: 1.08rem;
  color: var(--concrete);
  max-width: 68ch;
  line-height: 1.7;
}
