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

:root {
  --red: #8B2213;
  --red-dark: #6d1a0f;
  --dark: #1a1a1a;
  --dark-2: #222222;
  --dark-3: #2a2a2a;
  --border: #303030;
  --white: #ffffff;
  --off-white: #f8f7f5;
  --gray-light: #6b6b6b;

  --font-heading: 'Barlow', system-ui, sans-serif;
  --font-body: 'Cormorant Garamond', Georgia, serif;

  --transition: 0.3s ease;
  --radius: 4px;
  --radius-lg: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 19px;
  background: var(--dark);
  color: var(--white);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  zoom: 0.9;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

/* ======== UTILITY ======== */

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-divider {
  border: none;
  height: 1px;
  background: rgba(0,0,0,0.1);
  margin: 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header--left {
  text-align: left;
}

.section-label {
  display: none;
  font-family: var(--font-heading);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.4);
  border: 1px solid rgba(0,0,0,0.14);
  padding: 0.28rem 0.85rem;
  border-radius: 2rem;
  margin-bottom: 1rem;
}

.section-label--light {
  color: rgba(255,255,255,0.45);
  border-color: rgba(255,255,255,0.18);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--dark);
}

.section-title--light {
  color: var(--white);
}

.section-subtitle {
  margin-top: 1rem;
  color: rgba(255,255,255,0.65);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 400;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

.section-subtitle--dark {
  color: var(--gray-light);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.82rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139,34,19,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-2px);
}

/* ======== FADE-IN ======== */

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======== NAVBAR ======== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26,26,26,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all var(--transition);
}

.navbar.scrolled {
  background: rgba(18,18,18,0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.45);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4px 2rem;
  height: auto;
  min-height: 57px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

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

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  flex-shrink: 0;
}

.lang-link {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.38);
  text-decoration: none;
  transition: color var(--transition);
  padding: 0.2rem 0.15rem;
}

.lang-link:hover,
.lang-link.lang-active {
  color: var(--white);
}

.lang-sep {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.2);
  user-select: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
  margin-left: auto;
  align-items: center;
}

.nav-links > li {
  position: relative;
}

.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.33rem 0.6rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-links > li > a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.07);
}

.nav-links > li.nav-item-active > a {
  color: var(--white);
  font-weight: 600;
}

/* Dropdown */

.dropdown-arrow {
  font-style: normal;
  font-size: 0.55em;
  opacity: 0.45;
  display: inline-block;
  transition: transform var(--transition);
}

.has-dropdown:hover > a .dropdown-arrow,
.has-dropdown.open > a .dropdown-arrow {
  transform: rotate(180deg);
  opacity: 0.7;
}

.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #1c1c1c;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-lg);
  min-width: 290px;
  padding: 0.5rem 0;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 200;
  list-style: none;
}

.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown li a {
  display: block;
  padding: 0.7rem 1.5rem;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-heading);
  font-size: 0.83rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color var(--transition), background var(--transition), padding-left var(--transition);
}

.dropdown li a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.055);
  padding-left: 2rem;
}

.nav-cta {
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.nav-cta:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(139,34,19,0.45);
}

.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  background: none;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.mobile-nav-item { display: none; }

/* ======== HERO ======== */

.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 6rem;
  background: url('kuvat/sivut/hero-brahenkatu.jpg') 62% 62% / cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 72% 55%, rgba(139,34,19,0.16) 0%, transparent 65%),
    radial-gradient(ellipse 45% 45% at 20% 30%, rgba(255,255,255,0.015) 0%, transparent 55%);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.35) 25%, rgba(0,0,0,0.35) 75%, transparent);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
  padding: 0 2rem;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1.75rem;
  position: relative;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.5);
}

.hero-eyebrow::before { right: calc(100% + 14px); }
.hero-eyebrow::after  { left:  calc(100% + 14px); }

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 0 2px 40px rgba(0,0,0,0.45);
}

.hero-services {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  margin: 0 0 2.5rem;
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: #ffffff;
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 2.75rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll-indicator span {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ======== FACTS BAR ======== */

.facts-bar {
  background: var(--dark-2);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 2rem;
}

.facts-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fact-item {
  flex: 1;
  text-align: center;
  padding: 1rem 2rem;
}

.fact-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.fact-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
}

.fact-divider {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.12), transparent);
  flex-shrink: 0;
}

/* ======== ABOUT ======== */

.about {
  background: var(--off-white);
  padding: 7rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-text .section-label {
  display: none;
  text-align: left;
}

.about-text .section-title {
  margin-bottom: 1.5rem;
  margin-top: 0.5rem;
  text-align: left;
}

.about-body {
  font-family: var(--font-body);
  color: #454545;
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1rem;
}

.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.about-image {
  overflow: hidden;
  border-radius: var(--radius-lg);
  height: 320px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.03);
}

.about-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}

.about-card:first-child {
  grid-column: 1 / -1;
}

.about-card:hover {
  transform: translateY(-4px);
}

.about-card--dark { background: var(--dark); color: var(--white); }
.about-card--red  { background: var(--red); color: var(--white); }
.about-card--red:hover { box-shadow: 0 12px 32px rgba(139,34,19,0.35); }
.about-card--gray { background: #e8e6e3; color: var(--dark); }

.about-card h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 0.45rem;
}

.about-card p {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  line-height: 1.6;
  opacity: 0.65;
}

/* ======== SERVICES ======== */

.services {
  background: var(--dark);
  padding: 7rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card {
  background: var(--dark-2);
  padding: 0;
  transition: background var(--transition);
  text-decoration: none;
  display: block;
  overflow: hidden;
}

.service-card-image {
  height: 185px;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  filter: brightness(0.85);
}

.service-card-image img.img-pos-bottom {
  object-position: bottom;
}

.service-card:hover .service-card-image img,
.service-card-no-link:hover .service-card-image img {
  transform: scale(1.04);
  filter: brightness(0.95);
}

.service-card-body {
  padding: 1.75rem 2rem;
}

.service-card:hover {
  background: var(--dark-3);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 0.65rem;
}

.service-card p {
  font-family: var(--font-heading);
  font-size: 0.83rem;
  color: rgba(255,255,255,0.47);
  line-height: 1.65;
}

.service-card-arrow {
  display: inline-block;
  margin-top: 1.1rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  transition: color var(--transition);
}

.service-card:hover .service-card-arrow {
  color: rgba(255,255,255,0.65);
}

.service-card-no-link {
  background: var(--dark-2);
  padding: 0;
  overflow: hidden;
}

.service-card-no-link h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 0.65rem;
}

.service-card-no-link p {
  font-family: var(--font-heading);
  font-size: 0.83rem;
  color: rgba(255,255,255,0.37);
  line-height: 1.65;
}

/* ======== REFERENCES ======== */

.references {
  background: var(--off-white);
  padding: 7rem 0;
}

.references .section-title { color: var(--dark); }

.references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

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

.reference-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
  transition: transform var(--transition), box-shadow var(--transition);
}

.reference-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.13);
}

.reference-image {
  height: 220px;
  position: relative;
  overflow: hidden;
}

.reference-image--1 {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 40%, #3d1810 70%, var(--red) 100%);
}

.reference-image--2 {
  background: linear-gradient(135deg, #1e1e1e 0%, #2e2e2e 35%, #1a2535 70%, #2c3e55 100%);
}

.reference-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 40px 40px;
}

.reference-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
  color: rgba(255,255,255,0.85);
  font-family: var(--font-heading);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.28rem 0.8rem;
  border-radius: 2rem;
  border: 1px solid rgba(255,255,255,0.14);
}

.reference-content { padding: 1.75rem; }

.reference-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.reference-type {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.38);
}

.reference-date {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  color: var(--gray-light);
}

.reference-content h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--dark);
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.reference-content p {
  font-family: var(--font-heading);
  color: #666;
  font-size: 0.88rem;
  line-height: 1.5;
}

.reference-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #ededed;
}

.reference-location {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  color: #999;
}

/* ======== CONTACT ======== */

.contact {
  background: var(--dark);
  padding: 7rem 0;
  border-top: 1px solid var(--border);
}

.contact .section-container {
  position: relative;
}

.contact-cert {
  display: block;
  width: 250px;
  height: auto;
  margin-top: 0.5rem;
  margin-left: -1.9rem;
  filter: brightness(0) invert(1);
  opacity: 0.55;
  pointer-events: none;
}

@media (max-width: 768px) {
  .contact-cert {
    width: 225px;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-company {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.contact-block p {
  font-family: var(--font-heading);
  color: rgba(255,255,255,0.48);
  font-size: 0.88rem;
  line-height: 1.7;
}

.contact-detail {
  color: rgba(255,255,255,0.28) !important;
  font-size: 0.78rem !important;
  margin-top: 0.4rem;
}

.contact-link {
  display: inline-block;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  transition: color var(--transition);
  padding: 0.22rem 0;
}

.contact-link:hover {
  color: var(--white);
}

.contact-persons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  transition: border-color var(--transition), transform var(--transition);
}

.contact-card:hover {
  border-color: rgba(255,255,255,0.18);
  transform: translateX(4px);
}

.contact-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  flex-shrink: 0;
}

.contact-card-info h3 {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.12rem;
}

.contact-role {
  font-family: var(--font-heading);
  font-size: 0.77rem;
  color: rgba(255,255,255,0.38);
  margin-bottom: 0.25rem;
}

.contact-phone {
  font-family: var(--font-heading);
  font-size: 0.83rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--transition);
}

.contact-phone:hover {
  color: var(--white);
}

/* ======== FOOTER ======== */

.footer {
  background: #0d0d0d;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.75rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-logo {
  margin-right: auto;
  display: flex;
  align-items: center;
}

.footer-logo-img {
  height: 22px;
  width: auto;
  display: block;
}

.footer-copy {
  font-family: var(--font-heading);
  font-size: 0.76rem;
  color: rgba(255,255,255,0.28);
}

.footer-contact {
  font-family: var(--font-heading);
  font-size: 0.76rem;
  color: rgba(255,255,255,0.5);
  display: inline-flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  align-items: center;
}

.footer-contact a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}

.footer-contact a:hover {
  color: #e8b4a8;
}

.footer-tagline {
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.28);
}

/* ======================================================
   SERVICE PAGE STYLES
   ====================================================== */

.page-hero {
  position: relative;
  height: 62vh;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: linear-gradient(135deg, #0d0d0d 0%, #181818 45%, #221010 75%, #8B2213 100%);
  background-size: 100% auto;
  background-position: center top;
  background-repeat: no-repeat;
  padding-bottom: 5rem;
}

.page-hero--slim {
  height: 43vh;
  min-height: 320px;
  padding-bottom: 2.5rem;
  background-position: center 30%;
}

.page-hero--slim::after {
  background: rgba(0,0,0,0.3);
}

.page-hero--blue {
  background: linear-gradient(135deg, #0d0d0d 0%, #181820 45%, #141e2e 75%, #1e3050 100%);
}

.page-hero--steel {
  background: linear-gradient(135deg, #0d0d0d 0%, #181818 45%, #1a1e1e 75%, #2a3030 100%);
}

.page-hero--warm {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a1814 45%, #2a2010 75%, #3a2e18 100%);
}

.page-hero--neutral {
  background: linear-gradient(135deg, #0d0d0d 0%, #181818 45%, #1e1e22 75%, #2a2a32 100%);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 60px 60px;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

.page-hero-eyebrow {
  display: none;
  font-family: var(--font-heading);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-bottom: 1rem;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-hero-subtitle {
  display: none;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.45);
}

/* Page-hero light variant (referenssit-sivu) */

.page-hero--light {
  background: var(--off-white);
}

.page-hero--light::before {
  display: none;
}

.page-hero--light::after {
  background: none;
}

.page-hero--light h1 {
  color: var(--dark);
}

.page-hero--light .page-hero-subtitle {
  color: var(--gray-light);
}

.page-hero--light .hero-counter-label {
  color: var(--gray-light);
}

.page-hero--light .hero-counter-number {
  color: var(--dark);
}

/* Refs hero two-column layout */

.page-hero--refs {
  height: auto;
  min-height: unset;
  align-items: stretch;
  padding-top: 7rem;
  padding-bottom: 4rem;
}

.page-hero--refs .page-hero-content {
  display: flex;
  align-items: center;
  width: 100%;
}

.refs-hero-grid {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}

.refs-hero-text {
  padding-right: 1rem;
}

.refs-hero-map-wrap {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 28px rgba(0,0,0,0.10);
  border: 1px solid rgba(0,0,0,0.08);
}

.refs-hero-map-wrap .leaflet-container {
  border-radius: 20px;
  overflow: hidden;
}

.refs-hero-map-wrap #refs-map {
  height: 460px;
  border-radius: 0;
}

/* Hero counter (referenssit-sivu) */

.hero-counter {
  margin: 1.5rem 0 1.75rem;
}

.hero-counter-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--red);
}

.hero-counter-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 1.25rem;
}

/* Service content */

.service-content {
  background: var(--off-white);
  padding: 6rem 0;
}

.service-intro {
  max-width: 760px;
  margin-bottom: 4rem;
}

.service-intro p {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: #424242;
  line-height: 1.9;
}

.service-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 4rem;
}

.service-section {
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,0.1);
  margin-bottom: 3rem;
}

.service-section h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--dark);
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.service-section p {
  font-family: var(--font-body);
  font-size: 1.02rem;
  color: #525252;
  line-height: 1.9;
}

.service-section--full {
  grid-column: 1 / -1;
}

/* Myrak urakoitsijana */

.myrak-section {
  background: var(--dark);
  padding: 6rem 0;
  border-top: 1px solid var(--border);
}

.myrak-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 3rem;
}

.myrak-item {
  background: var(--dark-2);
  padding: 2.25rem 2rem;
  transition: background var(--transition);
}

.myrak-item:hover {
  background: var(--dark-3);
}

.myrak-item-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.2);
  margin-bottom: 1.1rem;
}

.myrak-item h3 {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.myrak-item p {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.42);
  line-height: 1.7;
}

/* ======== GALLERIA ======== */

.gallery-section {
  padding: 10rem 0 7rem;
  background: var(--white);
}

.gallery-page-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 2.5rem;
}

.gallery-intro {
  max-width: 760px;
  margin: 0 auto 4.5rem;
  text-align: center;
}

.gallery-intro p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 1.2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 3.5rem;
  row-gap: 4.5rem;
}

.gallery-card {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.gallery-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--dark-2);
}

.gallery-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.gallery-card:hover .gallery-card-img img {
  transform: scale(1.04);
}

.gallery-card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark);
  margin: 1.5rem 0 0.25rem;
}

.gallery-card-address {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
}

.gallery-card-text {
  font-size: 0.98rem;
  line-height: 1.75;
  color: #4a4a4a;
}

@media (max-width: 768px) {
  .gallery-section { padding: 7rem 0 5rem; }
  .gallery-page-title { margin-bottom: 1.75rem; }
  .gallery-intro { margin-bottom: 3rem; }
  .gallery-grid { grid-template-columns: 1fr; row-gap: 3rem; }
  .gallery-card-title { font-size: 1.3rem; }
}

/* ======== RESPONSIVE ======== */

@media (max-width: 1024px) {
  .about-grid { gap: 4rem; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .myrak-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    background: #1a1a1a;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    z-index: 9998;
    overflow-y: auto;
    padding: 72px 20px 40px;
    box-sizing: border-box;
  }

  .nav-links.open { display: flex; }

  .nav-links > li { width: 100%; text-align: center; }

  .nav-links > li > a {
    font-size: 22px;
    color: #ffffff;
    padding: 10px 0;
    justify-content: center;
    white-space: normal;
    display: flex;
  }

  /* Hide desktop dropdown completely on mobile */
  .dropdown {
    display: none !important;
  }

  /* Hide dropdown arrow on mobile */
  .dropdown-arrow { display: none; }

  .nav-cta { display: none; }

  .hamburger {
    display: flex;
    position: fixed;
    top: 15px;
    right: 20px;
    z-index: 9999;
    background: #8B2213;
    padding: 8px;
    border-radius: 4px;
    gap: 6px;
    width: auto;
    height: auto;
  }

  .mobile-nav-item {
    display: flex !important;
    width: 100%;
    justify-content: center;
  }

  /* Flat service links under Palvelut */
  .mobile-service-item a {
    font-size: 15px !important;
    color: rgba(255,255,255,0.65) !important;
    padding: 6px 0 !important;
    white-space: normal;
  }

  .mobile-service-item a:hover {
    color: #ffffff !important;
  }

  /* Ota yhteyttä as plain white link */
  .mobile-cta-item {
    margin-top: 6px;
  }

  .mobile-cta-item a {
    display: flex;
    background: none;
    color: #ffffff;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: normal;
    text-transform: none;
    padding: 10px 0;
    border-radius: 0;
    text-align: center;
    justify-content: center;
    transition: color var(--transition);
    width: 100%;
  }

  .mobile-cta-item a:hover {
    background: none;
    color: rgba(255,255,255,0.7);
  }

  .mobile-lang-top {
    padding: 14px 0 16px;
    gap: 0;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    margin-bottom: 6px;
    width: 100%;
    display: flex !important;
  }

  .mobile-lang-top .lang-link {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    padding: 4px 14px;
    transition: color var(--transition);
  }

  .mobile-lang-top .lang-link.lang-active {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1.5px;
  }

  .mobile-lang-top .lang-link:hover {
    color: rgba(255,255,255,0.85);
  }

  .mobile-lang-top .lang-pipe {
    color: rgba(255,255,255,0.18);
    font-family: var(--font-heading);
    font-size: 12px;
    user-select: none;
  }

  .mobile-lang-item {
    padding: 12px 0 0;
    gap: 0.35rem;
    align-items: center;
    margin-top: 4px;
  }

  .mobile-lang-item .lang-link {
    font-size: 16px;
    color: rgba(255,255,255,0.45);
    padding: 0.3rem 0.5rem;
  }

  .mobile-lang-item .lang-link.lang-active,
  .mobile-lang-item .lang-link:hover {
    color: var(--white);
  }

  .mobile-lang-item .lang-sep {
    color: rgba(255,255,255,0.25);
    font-size: 16px;
  }

  .hero-eyebrow::before,
  .hero-eyebrow::after { display: none; }

  .facts-container { flex-direction: column; }

  .fact-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.12), transparent);
  }

  .about { padding: 5rem 0; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { grid-template-columns: 1fr; }
  .about-card:first-child { grid-column: 1; }

  .services { padding: 5rem 0; }
  .services-grid { grid-template-columns: 1fr; }

  .references { padding: 5rem 0; }
  .references-grid { grid-template-columns: 1fr; }

  .contact { padding: 5rem 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }

  .page-hero { height: auto; min-height: 340px; padding-bottom: 3rem; padding-top: 7rem; }

  .service-content { padding: 4rem 0; }
  .service-sections { grid-template-columns: 1fr; gap: 0; }
  .service-section--full { grid-column: 1; }

  .myrak-section { padding: 4rem 0; }
  .myrak-grid { grid-template-columns: 1fr; }

  .footer-container { flex-direction: column; text-align: center; gap: 0.7rem; }
  .footer-logo { margin-right: 0; }
  .lang-switcher { display: none; }
}

/* ======== MAP ======== */

.map-section {
  background: var(--off-white);
  padding-top: 5rem;
}

#map {
  width: 100%;
  height: 66vh;
  min-height: 400px;
  display: block;
  z-index: 1;
}

.leaflet-popup-content-wrapper {
  border-radius: 6px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.leaflet-popup-content {
  margin: 0;
  padding: 0;
  width: 420px !important;
}

.leaflet-popup-tip-container {
  display: none;
}

/* ======== NEWS PAGE ======== */

.news-section {
  background: var(--off-white);
  padding: 6rem 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.13);
}

.news-card-image {
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.news-card-latest {
  align-self: flex-start;
  background: var(--red);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 2rem;
  margin-bottom: 0.9rem;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-image img {
  transform: scale(1.04);
}

.news-card-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.news-card-category {
  font-family: var(--font-heading);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.38);
}

.news-card-date {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  color: var(--gray-light);
}

.news-card-content h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--dark);
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.news-card-content p {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.news-card-location {
  font-family: var(--font-heading);
  font-size: 0.76rem;
  color: #999;
  margin-bottom: 1.25rem;
}

.news-card-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid #ededed;
}

@media (max-width: 900px) {
  .news-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .news-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.4rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; max-width: 300px; }
  .section-container { padding: 0 1.25rem; }
  .facts-bar { padding: 2rem 1.25rem; }
}

/* ======== FOOTER LINKS ======== */

.footer-links {
  max-width: 1200px;
  margin: 0.6rem auto 0;
  padding: 0.6rem 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-link {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.22);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color var(--transition);
}

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

/* ======== LASKUTUSOHJEET-SIVU ======== */

.invoice-section {
  background: var(--off-white);
  padding: 5rem 0;
}

.invoice-section--alt {
  background: var(--white);
  border-top: 1px solid #edece8;
  border-bottom: 1px solid #edece8;
}

.invoice-section:last-of-type {
  padding-bottom: 7rem;
}

.invoice-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.invoice-sub-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin: 1.75rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.invoice-body {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: #444;
  line-height: 1.75;
  margin-bottom: 0.75rem;
  max-width: 780px;
}

.invoice-list {
  list-style: decimal;
  padding-left: 1.4rem;
  margin: 0.5rem 0 1rem;
  max-width: 780px;
}

.invoice-list li {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  color: var(--dark);
  padding: 0.3rem 0;
  line-height: 1.65;
}

.invoice-list li + li {
  border-top: 1px solid rgba(0,0,0,0.05);
}

.invoice-placeholder {
  display: block;
  background: #eeede9;
  border-left: 3px solid #c5c2bb;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.7rem 1.1rem;
  margin: 0.6rem 0;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  color: #888;
  max-width: 560px;
}

.invoice-placeholder em {
  font-style: italic;
}

.invoice-warning {
  background: #fff5f3;
  border-left: 3px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.85rem 1.25rem;
  margin: 1.25rem 0;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--dark);
  max-width: 780px;
}

.invoice-example-inline {
  display: inline-block;
  background: #f0ede8;
  border-radius: var(--radius);
  padding: 0.15rem 0.6rem;
  font-size: 0.88rem;
  font-family: var(--font-heading);
  margin-top: 0.3rem;
}

@media (max-width: 768px) {
  .invoice-section { padding: 3.5rem 0; }
  .invoice-section:last-of-type { padding-bottom: 5rem; }
  .footer-links { padding: 0.5rem 1.25rem 0; }
}

/* ======== REFERENSSIT-SIVU ======== */

.refs-map-section {
  background: var(--off-white);
  padding: 0;
}

#refs-map {
  height: 500px;
  width: 100%;
  display: block;
}

.refs-controls-section {
  background: var(--off-white);
  padding: 2rem 0 0;
}

.refs-filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.refs-select {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--dark);
  background: var(--white);
  border: 1px solid #d8d6d0;
  border-radius: var(--radius);
  padding: 0.55rem 2.2rem 0.55rem 0.9rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231a1a1a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  cursor: pointer;
  transition: border-color var(--transition);
}

.refs-select:focus {
  outline: none;
  border-color: var(--red);
}

.refs-clear-btn {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-light);
  background: transparent;
  border: 1px solid #d8d6d0;
  border-radius: var(--radius);
  padding: 0.55rem 1rem;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}

.refs-clear-btn:hover {
  color: var(--dark);
  border-color: var(--dark);
}

.refs-list-section {
  background: var(--off-white);
  padding: 2.5rem 0 6rem;
}

.refs-project-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  margin-bottom: 1.5rem;
  border: 1px solid #edece8;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.refs-project-row:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.10);
}

.refs-project-img {
  overflow: hidden;
  background: var(--white);
}

.refs-project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.4s ease;
}

.refs-project-row:hover .refs-project-img img {
  transform: scale(1.04);
}

.refs-project-noimg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-grey, #f2f2f2);
}

.refs-project-noimg::after {
  content: "";
  width: 48px;
  height: 48px;
  background: url("karttamerkki.svg") center / contain no-repeat;
  opacity: 0.25;
}

.refs-project-info {
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.refs-project-address {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.2rem;
  line-height: 1.2;
}

.refs-project-subtitle {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 400;
  color: #777;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.refs-project-year {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.4);
  border: 1px solid rgba(0,0,0,0.14);
  padding: 0.2rem 0.7rem;
  border-radius: 2rem;
  margin-bottom: 0.85rem;
}

.refs-project-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #555;
  line-height: 1.8;
}

.refs-no-results {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--gray-light);
  text-align: center;
  padding: 3rem 0;
}

.refs-all-wrap {
  text-align: center;
  margin-top: 2.5rem;
}

.refs-all-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  border-bottom: 2px solid var(--dark);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}

.refs-all-link:hover {
  color: var(--red);
  border-color: var(--red);
}

@media (max-width: 768px) {
  .refs-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .refs-hero-text {
    padding-right: 0;
  }

  .refs-hero-map-wrap {
    border-radius: 12px;
  }

  .refs-hero-map-wrap #refs-map {
    height: 300px;
  }

  .page-hero--refs {
    padding-top: 6rem;
  }

  #refs-map { height: 350px; }

  .refs-project-row {
    grid-template-columns: 1fr;
  }

  .refs-project-img {
    height: 220px;
    width: 100%;
    margin: 1.25rem 0 0;
  }

  .refs-project-info {
    padding: 1.25rem 1.25rem;
  }
}

/* ======== CERTIFICATE MARQUEE ======== */

.cert-marquee {
  background: var(--off-white);
  border-bottom: 1px solid #ececec;
  padding: 2.4rem 0;
  overflow: hidden;
}

.cert-marquee-heading {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.4);
  margin-bottom: 1.6rem;
}

.cert-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem 3.5rem;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.cert-item {
  flex: 1 1 0;
  max-width: 206px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-item img {
  width: 100%;
  max-height: 163px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 640px) {
  .cert-row {
    gap: 2rem 2.5rem;
  }
  .cert-item {
    flex-basis: 38%;
    max-width: 163px;
  }
}

/* ======== ACTIVE PROJECTS (image-button grid) ======== */

.active-projects {
  background: var(--dark);
  padding: 5.5rem 0;
}

.active-projects--light {
  background: var(--off-white);
}

.aproj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.aproj-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  background-size: cover;
  background-position: center;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.aproj-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.4);
}

.aproj-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 100%);
  transition: background var(--transition);
}

.aproj-card:hover .aproj-card-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.7) 100%);
}

.aproj-card-text {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 1.5rem 1.25rem;
}

.aproj-card-company {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.5rem;
}

.aproj-card-address {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
  line-height: 1.3;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.aproj-more-wrap {
  text-align: center;
  margin-top: 3rem;
}

.aproj-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 0.35rem;
  transition: color var(--transition), border-color var(--transition), gap var(--transition);
}

.aproj-more-link:hover {
  color: #e8b4a8;
  border-color: #e8b4a8;
  gap: 0.85rem;
}

.active-projects--light .aproj-more-link {
  color: var(--red);
  border-color: rgba(139,34,19,0.4);
}

.active-projects--light .aproj-more-link:hover {
  color: var(--red-dark);
  border-color: var(--red);
}

@media (max-width: 900px) {
  .aproj-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .aproj-grid { grid-template-columns: 1fr; }
}

/* ======== PROJECT DETAIL PAGE ======== */

.project-intro {
  background: var(--off-white);
  padding: 4rem 0 0;
}

.project-intro-inner {
  max-width: 820px;
  margin: 0 auto;
}

.project-intro .section-label { margin-bottom: 1.2rem; }

.project-intro h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.project-intro-address {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--red);
  margin-bottom: 1.8rem;
}

.project-intro p {
  font-family: var(--font-body);
  font-size: 1.08rem;
  color: #444;
  line-height: 1.85;
  margin-bottom: 1.1rem;
}

.project-intro-top {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.75rem;
  align-items: start;
  margin: 1.5rem 0 1.5rem;
}

.project-intro-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,0.14);
}

.project-intro-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project-intro-body {
  margin-bottom: 0;
}

.project-divider {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.12);
  margin: 2.5rem 0 0;
}

.project-intro + .news-section {
  padding-top: 3.5rem;
}

@media (max-width: 768px) {
  .project-intro-top {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .project-intro-figure {
    max-width: 460px;
  }
}

.project-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 2.2rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
}

.project-back:hover { color: var(--red-dark); }

.project-back-wrap {
  text-align: center;
  margin-top: 3rem;
}

/* News card link + footer button reused for project updates */
.news-card-link {
  margin-top: auto;
  padding-top: 1.1rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
}

.news-card-link:hover { color: var(--red-dark); }

/* Single bulletin (tiedote) page */
.tiedote-body {
  background: var(--off-white);
  padding: 4.5rem 0 5rem;
}

.tiedote-inner {
  max-width: 760px;
  margin: 0 auto;
}

.tiedote-inner .news-card-meta { margin-bottom: 1.2rem; }

.tiedote-inner h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark);
  line-height: 1.18;
  margin-bottom: 1.6rem;
}

.tiedote-image {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  max-height: 460px;
}

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

.tiedote-inner p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: #444;
  line-height: 1.9;
  margin-bottom: 1.2rem;
}

/* ======== CONTACT CARD EMAIL ======== */

.contact-card { position: relative; }

.contact-card-email {
  position: absolute;
  right: 1.25rem;
  bottom: 0.85rem;
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.42);
  text-decoration: none;
  transition: color var(--transition);
}

.contact-card-email:hover { color: #e8b4a8; }

@media (max-width: 600px) {
  .contact-card-email { position: static; display: block; margin-top: 0.35rem; }
}

/* ======== PREMISES (toimitilat) ======== */

.premises {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  padding: 6rem 0;
}

.premises-hq {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 0 auto 1.1rem;
  max-width: 820px;
  min-height: 250px;
  display: flex;
  align-items: flex-end;
}

.premises-hq img,
.premises-shop-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.premises-hq::after,
.premises-shop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.premises-card-text {
  position: relative;
  z-index: 2;
  padding: 2rem 2.25rem;
}

.premises-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.6rem;
}

.premises-card-text h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.premises-card-text p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
}

.premises-shops {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  max-width: 820px;
  margin: 0 auto;
}

.premises-shop {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 160px;
  display: flex;
  align-items: flex-end;
}

.premises-shop .premises-shop-img { position: absolute; inset: 0; }

.premises-shop .premises-card-text { padding: 1.5rem 1.6rem; }

.premises-shop .premises-card-text h3 { font-size: 1.1rem; }

@media (max-width: 700px) {
  .premises-shops { grid-template-columns: 1fr; }
  .premises-hq { min-height: 280px; }
}

/* ======== CONTACT FORM MODAL ======== */

.cf-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.cf-modal.open { display: flex; }

.cf-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.72);
  backdrop-filter: blur(3px);
  animation: cf-fade 0.25s ease;
}

.cf-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.5rem 2.25rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  animation: cf-pop 0.28s cubic-bezier(0.2, 0.8, 0.3, 1);
}

@keyframes cf-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cf-pop { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }

.cf-close {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  width: 34px;
  height: 34px;
  border: none;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #999;
  cursor: pointer;
  border-radius: 50%;
  transition: background var(--transition), color var(--transition);
}

.cf-close:hover { background: #f0f0f0; color: var(--dark); }

.cf-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}

.cf-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.cf-intro {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #666;
  margin-bottom: 1.6rem;
  line-height: 1.6;
}

.cf-field { margin-bottom: 1.05rem; }

.cf-field label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 0.4rem;
}

.cf-field .cf-optional {
  color: #aaa;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.cf-field input,
.cf-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--dark);
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  transition: border-color var(--transition), background var(--transition);
}

.cf-field input:focus,
.cf-field textarea:focus {
  outline: none;
  border-color: var(--red);
  background: var(--white);
}

.cf-field textarea { resize: vertical; min-height: 120px; }

.cf-submit {
  width: 100%;
  margin-top: 0.5rem;
  justify-content: center;
}

.cf-toast-text {
  text-align: center;
  padding: 1rem 0 0.5rem;
}

.cf-toast-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  background: rgba(139,34,19,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cf-toast-icon svg { width: 34px; height: 34px; stroke: var(--red); }

.cf-toast-text h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.8rem;
}

.cf-toast-text p {
  font-family: var(--font-body);
  font-size: 1.02rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 0.6rem;
}

.cf-toast-phone {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
}

@media (max-width: 480px) {
  .cf-dialog { padding: 2.25rem 1.5rem 1.75rem; }
}


/* ===== service-gallery ===== */
.service-gallery-section { padding: 5rem 0; background: #fff; }
.service-gallery {
  columns: 3 260px;
  column-gap: 1rem;
  margin-top: 2.5rem;
}
.service-gallery-item {
  position: relative;
  break-inside: avoid;
  margin: 0 0 1rem;
  overflow: hidden;
  border-radius: 6px;
  background: #ececec;
}
.service-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .5s ease;
}
.service-gallery-item:hover img { transform: scale(1.03); }
.service-gallery-item.is-placeholder {
  display: flex; align-items: center; justify-content: center;
  min-height: 180px;
  background: #f4f4f4;
  border: 1px dashed #c7c7c7;
}
.service-gallery-item.is-placeholder span {
  color: #9a9a9a; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
}
@media (max-width: 640px) {
  .service-gallery { columns: 2 150px; }
}


/* ===== invoice-value (täytetyt verkkolaskutiedot) ===== */
.invoice-value {
  display: block;
  background: #f7f6f3;
  border-left: 3px solid #b5281b;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.7rem 1.1rem;
  margin: 0.6rem 0;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  max-width: 560px;
}
.invoice-value a { color: #b5281b; text-decoration: none; }
.invoice-value a:hover { text-decoration: underline; }
