* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

:root {
  --blue: #0049bd;
  --blue-dark: #003991;
  --blue-soft: #eaf1ff;
  --text: #172033;
  --muted: #5e6878;
  --line: #dce3ee;
  --white: #ffffff;
  --light: #f6f8fc;
}

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

a {
  color: inherit;
}

.container {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  width: auto;
  max-width: 220px;
  max-height: 55px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.nav-link {
  position: relative;
  padding: 27px 14px 25px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 16px;
  height: 3px;
  border-radius: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--blue);
}

.nav-link.active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

/* Hero */
.hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: url("HALLI.png") center center / cover no-repeat;
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 27, 72, 0.82), rgba(0, 73, 189, 0.48), rgba(0, 20, 50, 0.42));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 110px 0;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.eyebrow.blue {
  color: var(--blue);
}

.hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero-price {
  margin: 28px 0 34px;
  font-size: clamp(21px, 3vw, 28px);
  font-weight: 700;
}

/* General sections */
.section {
  padding: 100px 0;
}

.storage-section,
.company-section {
  background: var(--white);
}

.contact-summary {
  background: var(--light);
}

.section-intro {
  max-width: 820px;
}

.section-intro.centered {
  margin: 0 auto 70px;
  text-align: center;
}

.section-intro p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

h2 {
  margin: 0 0 22px;
  color: var(--text);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

h3 {
  color: var(--text);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 80px;
  align-items: center;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.gallery-card {
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--light);
  border: 1px solid var(--line);
}

.gallery-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: #0049bd;
}

.gallery-card figcaption {
  padding: 12px 15px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  background: var(--white);
}

.gallery-wide {
  grid-column: 1 / -1;
}

.gallery-wide img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.feature-content > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 34px 0 38px;
}

.feature-list li {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.feature-list li:first-child {
  border-top: 1px solid var(--line);
}

.feature-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  margin-top: 1px;
  border-radius: 50%;
  color: var(--blue);
  background: var(--blue-soft);
  font-weight: 900;
}

.feature-highlight {
  padding-left: 12px !important;
  padding-right: 12px;
  background: var(--blue-soft);
  border: 1px solid #cddcff !important;
  border-radius: 9px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 24px;
  border: 2px solid var(--blue);
  border-radius: 6px;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.button:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-1px);
}

.button-light {
  background: var(--white);
  border-color: var(--white);
  color: var(--blue);
}

.button-light:hover {
  background: var(--blue-soft);
  border-color: var(--blue-soft);
  color: var(--blue-dark);
}

/* CTA */
.cta-band {
  padding: 72px 0;
  background: var(--blue);
  color: var(--white);
}

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

.cta-band .eyebrow {
  opacity: 0.8;
}

.cta-band h2 {
  margin-bottom: 8px;
  color: var(--white);
}

.cta-band p:last-child {
  margin: 0;
  font-size: 18px;
}

/* Contact summary */
.contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 45px;
}

.contact-box h2 {
  margin-bottom: 0;
}

.contact-person {
  display: grid;
  gap: 5px;
}

.contact-person strong {
  font-size: 20px;
}

.contact-person a {
  color: var(--blue);
  text-decoration: none;
}

.contact-person a:hover {
  text-decoration: underline;
}

/* Company */
.company-section {
  border-top: 1px solid var(--line);
}

.company-gallery {
  grid-template-columns: 1fr;
}

.company-gallery .gallery-card img {
  aspect-ratio: 16 / 9;
}

/* Contact form */
.contact-section {
  background: var(--light);
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 750px;
  margin-bottom: 50px;
}

.section-heading p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 60px;
  align-items: start;
}

.contact-form-wrap,
.contact-info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.contact-form-wrap {
  padding: 36px;
}

.contact-form {
  display: grid;
  gap: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.field label span {
  color: var(--blue);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #cbd4e2;
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 73, 189, 0.12);
}

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

.hidden {
  display: none !important;
}

.form-note {
  margin: -5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.contact-info-card {
  padding: 32px;
}

.contact-info-card h3 {
  margin: 0 0 25px;
  font-size: 28px;
}

.contact-info-card p {
  margin: 0 0 18px;
  color: var(--muted);
}

.contact-info-card a:not(.button) {
  color: var(--blue);
  text-decoration: none;
}

.contact-info-card a:not(.button):hover {
  text-decoration: underline;
}

.button-full {
  width: 100%;
  margin-top: 10px;
}

/* Footer */
.site-footer {
  padding: 42px 0;
  background: var(--blue);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.site-footer .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 45px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.footer-logo img {
  display: block;
  width: auto;
  max-width: 220px;
  max-height: 70px;
  object-fit: contain;
  /* Jos TUlogo.png on tumma logo, käytä tarvittaessa valkoista versiota. */
}

.footer-details {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 14px;
  font-weight: 600;
}

.footer-details a {
  color: var(--white);
  text-decoration: none;
}

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

/* Responsive */
@media (max-width: 900px) {
  .header-inner {
    min-height: auto;
    padding: 12px 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .brand {
    justify-content: center;
  }

  .main-nav {
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-link {
    padding: 10px 9px 13px;
    font-size: 12px;
  }

  .nav-link::after {
    left: 9px;
    right: 9px;
    bottom: 5px;
  }

  .split-section,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .contact-box {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 650px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .section {
    padding: 70px 0;
  }

  .hero {
    min-height: 570px;
  }

  .hero-content {
    padding: 80px 0;
  }

  .gallery,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .gallery-wide {
    grid-column: auto;
  }

  .gallery-wide img {
    aspect-ratio: auto;
  }

  .contact-form-wrap,
  .contact-info-card {
    padding: 24px;
  }

  .site-footer .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-details {
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
}

/* FAQ and location */
.faq-section { background: var(--white); border-top: 1px solid var(--line); }
.faq-section .section-intro .button { margin-top: 24px; }
.faq-wrap { max-width: 900px; margin: 75px auto 0; }
.faq-wrap h2 { margin-bottom: 30px; }
.faq-wrap details { border-top: 1px solid var(--line); padding: 0; }
.faq-wrap details:last-child { border-bottom: 1px solid var(--line); }
.faq-wrap summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; font-weight: 800; font-size: 18px; position: relative; }
.faq-wrap summary::-webkit-details-marker { display: none; }
.faq-wrap summary::after { content: "+"; position: absolute; right: 4px; top: 15px; color: var(--blue); font-size: 30px; font-weight: 400; }
.faq-wrap details[open] summary::after { content: "−"; }
.faq-wrap details p { margin: -4px 50px 20px 0; color: var(--muted); }
.faq-map-link { display: inline-block; margin: -8px 0 22px; color: var(--blue); font-weight: 800; text-decoration: none; }
.faq-map-link:hover { text-decoration: underline; }

/* Separate page layout */
.page-hero { padding: 95px 0 75px; background: var(--blue); color: var(--white); }
.page-hero h1 { margin: 0 0 18px; color: var(--white); font-size: clamp(44px, 7vw, 76px); line-height: 1; letter-spacing: -.035em; }
.page-hero p { max-width: 760px; margin: 0; font-size: 19px; }
.breadcrumb { margin-bottom: 18px; font-size: 13px; font-weight: 800; letter-spacing: .08em; opacity: .82; }
.breadcrumb a { color: white; text-decoration: none; }
.trust-row { padding: 28px 0; background: var(--light); border-bottom: 1px solid var(--line); }
.trust-inner { display:flex; justify-content:center; flex-wrap:wrap; gap:12px 34px; font-weight:800; color:var(--blue-dark); text-align:center; }
@media(max-width:650px){.page-hero{padding:65px 0 55px}.trust-inner{flex-direction:column;gap:8px}}

/* Company history gallery: uniform photo cards without blue side bars */
.company-gallery .gallery-card img {
  width: 100%;
  height: clamp(260px, 34vw, 430px);
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  background: var(--white);
}
.company-gallery .gallery-card:nth-child(2) img {
  object-position: center center;
}
.company-gallery .gallery-card:nth-child(3) img {
  object-position: center center;
}
@media (max-width: 650px) {
  .company-gallery .gallery-card img {
    height: 300px;
  }
}


/* Yritys-sivun historiahero */
.company-history-hero {
  position: relative;
  background:
    linear-gradient(rgba(0, 73, 189, 0.82), rgba(0, 73, 189, 0.82)),
    url("BG1.jpg") center center / cover no-repeat;
  color: var(--white);
  border-bottom: 4px solid var(--blue);
}
.company-history-hero h1,
.company-history-hero p,
.company-history-hero .breadcrumb {
  position: relative;
  z-index: 1;
}

/* Live availability status */
.availability-status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 8px;
  background: rgba(0, 18, 50, .34);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.availability-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border-radius: 50%;
  background: #35d36b;
  box-shadow: 0 0 0 5px rgba(53,211,107,.16);
  animation: availabilityPulse 2.2s ease-in-out infinite;
}
.availability-copy { display: flex; flex-direction: column; gap: 2px; }
.availability-copy strong { color: #fff; font-size: 14px; letter-spacing: .035em; }
.availability-copy span { color: rgba(255,255,255,.88); font-size: 13px; }
@keyframes availabilityPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(53,211,107,.13); }
  50% { box-shadow: 0 0 0 8px rgba(53,211,107,.04); }
}
@media (prefers-reduced-motion: reduce) { .availability-dot { animation: none; } }
@media (max-width:650px) {
  .availability-status { align-items:flex-start; padding:11px 13px; }
  .availability-dot { margin-top:4px; }
}
