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

:root {
  --text-primary:   #1C1C1A;
  --text-secondary: #5C5C58;
  --text-tertiary:  #717168;
  --border:         rgba(28,28,26,0.20);
  --border-mid:     rgba(28,28,26,0.20);
  --bg-surface:     #F8F7F4;
  --amber:          #BA7517;
  --amber-text:     #9A650F;
  --teal:           #0F6E56;
  --teal-bg:        #E1F5EE;
  --white:          #FFFFFF;
  --dark:           #1C1C1A;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Josefin Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 300;
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.site {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* NAV */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(28, 28, 26, 0.07);
  transition: transform 0.35s ease;
}

.nav-bar.nav-hidden {
  transform: translateY(-100%);
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 1.75rem 0;
  position: relative;
}

.nav-logo-wrap {
  display: inline-flex;
  text-decoration: none;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
}

.nav-links a {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); }

.nav-links a.active::after { transform: scaleX(1); }

/* Hamburger — CSS-only */
.nav-toggle {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text-primary);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle:checked ~ .hamburger span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.nav-toggle:checked ~ .hamburger span:nth-child(2) {
  opacity: 0;
}
.nav-toggle:checked ~ .hamburger span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* SITE HEADER — full-width photo background with gradient fade */
.site-header {
  padding-top: 5.75rem; /* offset for fixed nav bar */
  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,0.08) 0%,
      rgba(255,255,255,0.08) 15%,
      rgba(255,255,255,0.50) 68%,
      rgba(255,255,255,1.00) 90%
    ),
    image-set(url('../assets/hero-bg.webp') type('image/webp'), url('../assets/hero-bg.jpg') type('image/jpeg')) center 30% / cover no-repeat;
}

/* HERO */
.hero {
  padding: 5.5rem 0 0;
}

.eyebrow {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-text);
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: 58px;
  line-height: 1.08;
  color: var(--text-primary);
  max-width: 680px;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}

.hero-sub a {
  color: var(--amber-text);
  text-decoration: none;
  font-weight: 400;
}

.hero-sub a:hover {
  text-decoration: underline;
}

.hero-sub {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 2.75rem;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  border: 1px solid var(--border-mid);
  padding: 11px 22px;
  border-radius: 4px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline:hover {
  border-color: var(--text-primary);
  background: var(--bg-surface);
}

.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--white);
  background: var(--amber-text);
  padding: 12px 26px;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-solid:hover { opacity: 0.88; }

/* ENERGY PANEL */
.energy-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin: 3rem 0 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.energy-panel.loaded { opacity: 1; }

.energy-unavailable {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  max-height: 0;
  padding: 0 1.5rem;
  overflow: hidden;
  border-top: 1px solid transparent;
  background: rgba(192, 57, 43, 0.06);
  transition: max-height 0.35s ease, padding 0.35s ease, border-color 0.35s ease;
}

.energy-unavailable.is-visible {
  max-height: 160px;
  padding: 0.85rem 1.5rem;
  border-top-color: var(--border);
}

.energy-unavailable-msg {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c0392b;
  position: relative;
  top: 4px;
}

.energy-unavailable-msg svg {
  flex-shrink: 0;
}

.energy-unavailable-sub {
  display: flex;
  align-items: center;
  gap: 3px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.energy-seconds { text-transform: none; }

.energy-dots {
  display: none;
  align-items: center;
  gap: 3px;
  position: relative;
  top: 2px;
}

.energy-dots span {
  display: inline-block;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--text-tertiary);
  opacity: 0;
}

.energy-dots span:nth-child(1) { animation: dot-seq-1 1.8s ease infinite; }
.energy-dots span:nth-child(2) { animation: dot-seq-2 1.8s ease infinite; }
.energy-dots span:nth-child(3) { animation: dot-seq-3 1.8s ease infinite; }

@keyframes dot-seq-1 {
  0%, 90%, 100% { opacity: 0; }
  10%, 70%      { opacity: 1; }
}
@keyframes dot-seq-2 {
  0%, 25%, 90%, 100% { opacity: 0; }
  35%, 70%           { opacity: 1; }
}
@keyframes dot-seq-3 {
  0%, 50%, 90%, 100% { opacity: 0; }
  60%, 70%           { opacity: 1; }
}

.energy-footnote {
  margin-top: 1.25rem;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
}

.energy-footnote a {
  color: var(--text-tertiary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.energy-footnote a:hover { color: var(--text-secondary); }

.fn-legend {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.fn-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.fn-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fn-amber { background: var(--amber); }
.fn-green { background: #3a9e5f; }
.fn-red   { background: #c0392b; }

.fn-na-note { flex-basis: 100%; margin-top: 0.25rem; }

.energy-col {
  background: var(--white);
  padding: 1.25rem 1.5rem;
}

.energy-col:first-child { border-right: 1px solid var(--border); }

.ep-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.ep-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-text);
}

.grid-pulse {
  width: 5px;
  height: 5px;
  background: var(--amber);
  border-radius: 50%;
  flex-shrink: 0;
  animation: grid-pulse 2.5s ease infinite;
  transition: background 0.4s ease;
}

.grid-pulse.live  { background: #3a9e5f; }
.grid-pulse.error { background: #c0392b; animation: none; }

@keyframes grid-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

.ep-renew {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.ep-renew span {
  font-weight: 600;
  font-size: 12px;
  color: var(--amber-text);
}

.grid-bar-row {
  display: grid;
  grid-template-columns: 52px 1fr 72px;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.6rem;
}

.grid-bar-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-align: right;
}

.grid-bar-track {
  height: 3px;
  background: var(--border);
  overflow: hidden;
}

.grid-bar-fill {
  height: 100%;
  width: 0;
  transition: width 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.grid-bar-fill.renewable { background: var(--amber); }
.grid-bar-fill.fossil    { background: var(--text-secondary); opacity: 0.45; }
.grid-bar-fill.nuclear   { background: #7B8FA6; opacity: 0.85; }

.grid-bar-row--na { opacity: 0.4; }

.grid-bar-value {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

/* DIVIDER */
.divider {
  height: 1px;
  background: var(--border);
  margin: 3.5rem 0;
}

/* SECTION LABEL */
.section-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 2.25rem;
}

.section-label--center { text-align: center; }

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 5rem;
  align-items: start;
}

.about-name {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.6rem;
}

.about-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: 31px;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.about-body {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-secondary);
}

.about-body p + p { margin-top: 1rem; }

/* PORTRAIT */
.portrait-col { display: flex; flex-direction: column; gap: 1.5rem; }

.portrait-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  background: #F0EDE6;
}

/* aspect-ratio fallback for Safari < 15 */
@supports not (aspect-ratio: 1) {
  .portrait-wrap { padding-bottom: 100%; height: 0; position: relative; }
  .portrait-wrap img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
}

.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* STATS */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.stat {
  background: var(--white);
  padding: 1.25rem;
}

.stat:not(:last-child) { border-right: 1px solid var(--border); }

.stat-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 36px;
  font-weight: 300;
  color: var(--amber);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-secondary);
  margin-top: 6px;
  line-height: 1.5;
}

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.service-card {
  background: var(--white);
  padding: 1.75rem 2rem;
}

.service-card:nth-child(1),
.service-card:nth-child(2) { border-bottom: 1px solid var(--border); }
.service-card:nth-child(odd) { border-right: 1px solid var(--border); }

.service-icon {
  display: block;
  margin-bottom: 1rem;
}

.service-title {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.service-body {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* SELECTED WORK */
.work-list {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.work-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 1.75rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.work-item:last-child:not(.is-open) .work-row { border-bottom: none; }
.work-row:hover { background: var(--bg-surface); }
.work-item.is-open .work-row { background: var(--bg-surface); }

.work-title {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-top: 7px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.work-title svg {
  color: var(--amber);
  flex-shrink: 0;
}

.work-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.5;
}

.work-tag {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--teal);
  background: var(--teal-bg);
  padding: 4px 13px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.work-row {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  outline: none;
}

.work-row-body { flex: 1; min-width: 0; align-self: center; }

.work-row-end {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  margin-left: 1.5rem;
}

.work-chevron {
  color: var(--text-tertiary);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.work-item.is-open .work-chevron { transform: rotate(180deg); }
.work-item.is-open + .work-item .work-row { border-top: 1px solid var(--border); }

.work-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.work-item.is-open .work-detail { max-height: 600px; }

.work-detail-inner {
  padding: 1.5rem 1.75rem 1.75rem;
  background: linear-gradient(to bottom, #ffffff, #F9FBFB);
}

.work-detail-icons {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.work-detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--teal-bg);
  color: var(--teal);
  flex-shrink: 0;
}

.work-detail-inner p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-primary);
}

.work-detail-inner p + p { margin-top: 0.75rem; }

.work-outcome-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-top: 1.5rem !important;
  margin-bottom: 0.35rem !important;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

/* CLIENTS STRIP */
.clients-strip {
  padding: 3rem 0 3.5rem;
}

.clients-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem 3.5rem;
  margin-top: 1.75rem;
}

.client-logo {
  height: 32px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.75);
  transition: filter 0.2s;
}

.client-logo:hover {
  filter: none;
}

.client-logo[alt="Copelouzos Group"] {
  height: 48px;
}

.client-logo[alt="Archirodon"] {
  height: 58px;
}

.client-logo[alt="Pyletech Group"] {
  height: 40px;
  position: relative;
  top: 4px;
}

.client-logo[alt="J&P"] {
  height: 84px;
}

.client-logo[alt="Naftechnika"] {
  height: 52px;
}

/* Back link */
.back-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  color: var(--text-tertiary);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.back-link-arrow {
  font-size: 20px;
  line-height: 1;
}

.back-link-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.back-link:hover { color: var(--text-primary); }

/* CTA */
.cta-block {
  padding: 5rem 0 4.5rem;
  text-align: center;
}

.cta-block h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: 44px;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.cta-block p {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2.25rem;
}

/* CONTACT FORM */
.contact-form {
  max-width: 620px;
  margin: 0 auto;
  text-align: left;
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.contact-field:last-child { margin-bottom: 0; }

.contact-field label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.contact-field input,
.contact-field textarea {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--text-primary);
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--border-mid);
  border-radius: 2px;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  resize: none;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--text-primary);
  background: rgba(255,255,255,0.88);
}

.contact-submit {
  margin-top: 1.75rem;
  text-align: center;
}

/* Spinner on send button */
.btn-solid.sending {
  opacity: 0.75;
  cursor: default;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-solid.sending::after {
  content: '';
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.65s linear infinite;
  flex-shrink: 0;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* Contact wrap — crossfade container */
.contact-wrap {
  max-width: 620px;
  margin: 0 auto;
  position: relative;
}

.contact-form {
  transition: opacity 0.3s ease;
}

.contact-wrap.submitted .contact-form {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  inset: 0;
  visibility: hidden;
}

/* Success panel */
.contact-success {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
  text-align: center;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(15,110,86,0.25);
  border-radius: 8px;
  background: rgba(15,110,86,0.05);
}

.contact-wrap.submitted .contact-success {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.contact-success-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 48px;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1;
}

.contact-success-msg {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-success-msg span {
  display: block;
}

.contact-success-reset {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
  transition: color 0.2s;
}

.contact-success-reset:hover { color: var(--text-primary); }

.contact-error {
  display: none;
  margin-top: 1rem;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
}

.contact-error a {
  color: rgba(255,255,255,0.75);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-error--visible { display: block; }

/* SITE FOOTER — full-width photo background with inverted gradient fade */
.site-footer-bg {
  background:
    linear-gradient(
      to bottom,
      rgba(255,255,255,1.00) 0%,
      rgba(255,255,255,0.55) 40%,
      rgba(255,255,255,0.10) 80%,
      rgba(255,255,255,0.10) 100%
    ),
    image-set(url('../assets/hero-bg.webp') type('image/webp'), url('../assets/hero-bg.jpg') type('image/jpeg')) center bottom / cover no-repeat;
}

.site-footer-bg footer {
  border-top: 1px solid rgba(255,255,255,0.45);
}

.site-footer-bg .footer-copy {
  color: rgba(255,255,255,0.75);
}

.site-footer-bg .footer-links a {
  color: rgba(255,255,255,0.75);
}

.site-footer-bg .footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer-bg .btn-solid {
  outline: 1px solid rgba(255,255,255,0.7);
  transition: outline-color 0.2s, box-shadow 0.2s;
}

.site-footer-bg .btn-solid:hover {
  opacity: 1;
  outline-color: rgba(255,255,255,1);
  box-shadow: inset 0 0 0 100px rgba(0,0,0,0.12);
}

/* Footer credits row */
.footer-credits-row {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 0 0 2.5rem;
}

/* Footer right column */
.footer-right-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
}

.footer-text-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

.footer-text-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
  padding: 6px 0;
}

.footer-text-link svg { width: 13px; height: 13px; }

.footer-text-link:hover { color: rgba(255,255,255,0.9); }

/* UN SDGs */
.sdg-logo-link {
  display: inline-block;
  margin-bottom: 1.1rem;
  opacity: 0.55;
  transition: opacity 0.2s;
}

.sdg-logo-link:hover { opacity: 1; }

.sdg-logo-link img {
  display: block;
  height: 65px;
  width: auto;
}

.sdg-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.sdg-block-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.9rem;
}

.sdg-tiles {
  display: flex;
  gap: 5px;
}


.sdg-tile {
  display: block;
  width: 60px;
  height: 60px;
  overflow: hidden;
  opacity: 0.55;
  transition: opacity 0.2s;
}

.sdg-tile:hover {
  opacity: 1;
}

.sdg-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* FOOTER */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  transform: translateZ(0);
}

.footer-copy {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-links a:hover { text-decoration: underline; }

/* RESPONSIVE */
@media (max-width: 780px) {
  .site { padding: 0 1.5rem; }

  .hero { padding: 3.5rem 0 0; }
  .hero h1 { font-size: 38px; }

  /* Hamburger visible */
  .hamburger { display: flex; }

  /* Nav links collapse */
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 0.75rem 0 0;
    order: 3;
  }

  .nav-links li { border-top: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: 1px solid var(--border); }

  .nav-links a {
    display: block;
    position: relative;
    padding: 0.75rem 0 0.75rem 0.75rem;
    transition: color 0.2s;
  }

  .nav-links a::after { display: none; }

  .nav-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 3px;
    height: 22px;
    background: var(--amber);
    transition: transform 0.2s ease;
  }

  .nav-links a.active::before { transform: translateY(-50%) scaleY(1); }

  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .portrait-wrap { width: 100%; }

  /* Stats */
  .stats { grid-template-columns: 1fr; }
  .stat:not(:last-child) { border-right: none; border-bottom: 1px solid var(--border); }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }
  .service-card:nth-child(odd)  { border-right: none; }
  .service-card:nth-child(1),
  .service-card:nth-child(2),
  .service-card:nth-child(3)   { border-bottom: 1px solid var(--border); }
  .service-card:nth-child(4)   { border-bottom: none; }

  /* Energy panel */
  .energy-panel { grid-template-columns: 1fr; }
  .energy-col:first-child { border-right: none; border-bottom: 1px solid var(--border); }

  /* Clients */
  .clients-logos { gap: 1.75rem 2rem; }
  .client-logo { height: 26px; }
  .client-logo[alt="Copelouzos Group"],
  .client-logo[alt="Archirodon"] { height: 46px; }
  .client-logo[alt="Pyletech Group"] { height: 32px; }
  .client-logo[alt="J&P"] { height: 56px; }
  .client-logo[alt="Naftechnika"] { height: 38px; }

  /* CTA */
  .contact-row { grid-template-columns: 1fr; }
  .cta-block { padding: 3.5rem 0 3rem; }
  .cta-block h2 { font-size: 34px; }
  .cta-block p br { display: none; }

  /* SDG tiles: wrap to two rows on mobile */
  .sdg-tiles { flex-wrap: wrap; max-width: 190px; }

  /* Footer */
  footer { flex-direction: column; gap: 1rem; text-align: center; }

  /* Work rows */
  .work-row { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .work-row-body { align-self: flex-start; width: 100%; }
  .work-row-end { margin-left: 0; width: 100%; justify-content: space-between; }
}
