/* ============================================================
   Riihimäen Lasipalvelu — Demo Website
   Design: steel-blue + aqua accent, DM Serif Display + Instrument Sans
   ============================================================ */

/* === TOKENS === */
:root {
  --brand:        oklch(0.45 0.12 228);
  --brand-light:  oklch(0.65 0.10 228);
  --brand-dark:   oklch(0.28 0.14 228);
  --surface-1:    oklch(0.97 0.01 228);
  --surface-2:    oklch(0.93 0.02 228);
  --surface-3:    oklch(0.88 0.03 228);
  --text-primary: oklch(0.18 0.04 228);
  --text-secondary: oklch(0.48 0.04 228);
  --accent:       oklch(0.72 0.18 185);

  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'Instrument Sans', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 3px oklch(0.18 0.04 228 / 0.08), 0 1px 2px oklch(0.18 0.04 228 / 0.06);
  --shadow-md: 0 4px 6px oklch(0.18 0.04 228 / 0.07), 0 2px 4px oklch(0.18 0.04 228 / 0.06);
  --shadow-lg: 0 20px 25px oklch(0.18 0.04 228 / 0.1), 0 10px 10px oklch(0.18 0.04 228 / 0.04);
  --shadow-glass: 0 8px 32px oklch(0.18 0.04 228 / 0.12);

  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-quart: cubic-bezier(0.5, 0, 0.75, 0);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--surface-1);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { list-style: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* === CONTAINER === */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}
@media (max-width: 600px) { .container { padding: 0 var(--space-md); } }

/* === GLASS CARD === */
.glass-card {
  background: color-mix(in oklab, var(--brand-light) 8%, white);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid color-mix(in oklab, var(--brand-light) 20%, white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glass);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 120ms var(--ease-out-quart),
              box-shadow 200ms var(--ease-out-quart),
              background 200ms var(--ease-out-quart);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}
.btn--primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  box-shadow: 0 8px 24px oklch(0.45 0.12 228 / 0.35);
}
.btn--outline {
  background: transparent;
  color: white;
  border-color: color-mix(in oklab, white 40%, transparent);
}
.btn--outline:hover {
  background: color-mix(in oklab, white 10%, transparent);
}
.btn--ghost {
  background: color-mix(in oklab, white 12%, transparent);
  color: white;
  border-color: color-mix(in oklab, white 25%, transparent);
}
.btn--ghost:hover {
  background: color-mix(in oklab, white 20%, transparent);
}
.btn--lg { padding: 14px 32px; font-size: 1.0625rem; }
.btn--sm { padding: 8px 16px; font-size: 0.875rem; }
.btn--full { width: 100%; justify-content: center; }

/* === HEADER === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--brand-dark) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid color-mix(in oklab, var(--brand-light) 20%, transparent);
}
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  color: white;
  text-decoration: none;
  font-size: 1rem;
}
.nav__logo-mark {
  color: var(--accent);
  font-size: 1.25em;
}
.nav__links {
  display: flex;
  gap: var(--space-xl);
  margin-left: auto;
}
.nav__links a {
  color: color-mix(in oklab, white 80%, transparent);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 150ms;
}
.nav__links a:hover { color: white; }

@media (max-width: 700px) {
  .nav__links { display: none; }
  .nav { gap: var(--space-md); }
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100svh;
  background: linear-gradient(145deg, var(--brand-dark) 0%, var(--brand) 60%, oklch(0.50 0.14 210) 100%);
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero__bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in oklab, var(--brand-light) 8%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklab, var(--brand-light) 8%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
}

.hero__eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw + 1rem, 4.5rem);
  line-height: 1.1;
  color: white;
  margin-bottom: var(--space-lg);
}
.hero__headline em {
  font-style: italic;
  color: var(--accent);
}

.hero__sub {
  font-size: clamp(1rem, 1.5vw + 0.5rem, 1.25rem);
  color: color-mix(in oklab, white 75%, transparent);
  max-width: 44ch;
  margin-bottom: var(--space-2xl);
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Hero card */
.hero__card {
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  background: color-mix(in oklab, white 10%, transparent);
  border-color: color-mix(in oklab, white 20%, transparent);
  animation: heroCardEntry 800ms 400ms var(--ease-out-quart) both;
}

@keyframes heroCardEntry {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.hero__stat {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}
.hero__stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: white;
  line-height: 1;
}
.hero__stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--accent);
  line-height: 1;
}
.hero__stat-label {
  width: 100%;
  font-size: 0.875rem;
  color: color-mix(in oklab, white 65%, transparent);
  letter-spacing: 0.03em;
}
.hero__stat-divider {
  height: 1px;
  background: color-mix(in oklab, var(--brand-light) 25%, transparent);
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: color-mix(in oklab, var(--accent) 20%, transparent);
  border-radius: 100px;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
}
.hero__scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid color-mix(in oklab, white 30%, transparent);
  border-radius: 12px;
  position: relative;
}
.hero__scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: color-mix(in oklab, white 50%, transparent);
  border-radius: 2px;
  animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.8; }
  50% { transform: translateX(-50%) translateY(12px); opacity: 0.3; }
}

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

/* === STATS BAR === */
.stats-bar {
  background: var(--brand);
  padding: var(--space-lg) 0;
}
.stats-bar__inner {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
  flex-wrap: wrap;
}
.stats-bar__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: white;
  font-size: 0.9375rem;
  font-weight: 500;
}
.stats-bar__item svg { color: var(--accent); flex-shrink: 0; }
.stats-bar__sep { color: color-mix(in oklab, white 30%, transparent); font-size: 1.25rem; }
@media (max-width: 600px) {
  .stats-bar__inner { flex-direction: column; align-items: flex-start; gap: var(--space-md); }
  .stats-bar__sep { display: none; }
}

/* === SECTION HEADERS === */
.section-eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--space-sm);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.75rem);
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}
.section-desc {
  font-size: clamp(1rem, 1.5vw + 0.25rem, 1.125rem);
  color: var(--text-secondary);
  max-width: 52ch;
  margin-bottom: var(--space-3xl);
}
.section-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* === SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 600ms var(--ease-out-quart), transform 600ms var(--ease-out-quart);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === SERVICES === */
.services {
  padding: var(--space-4xl) 0;
  background: var(--surface-1);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.service-card {
  padding: var(--space-2xl);
  transition: transform 250ms var(--ease-out-quart), box-shadow 250ms var(--ease-out-quart);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-card--highlight {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-color: color-mix(in oklab, var(--brand-light) 30%, transparent);
  color: white;
}
.service-card--highlight .section-eyebrow,
.service-card--highlight .service-card__desc { color: color-mix(in oklab, white 75%, transparent); }
.service-card--highlight .service-card__icon,
.service-card--highlight .service-card__title { color: white; }
.service-card--highlight .service-card__price { background: color-mix(in oklab, white 15%, transparent); color: var(--accent); }

.service-card__icon {
  width: 56px;
  height: 56px;
  background: color-mix(in oklab, var(--brand) 10%, var(--surface-2));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  margin-bottom: var(--space-lg);
}
.service-card--highlight .service-card__icon {
  background: color-mix(in oklab, white 15%, transparent);
  color: var(--accent);
}
.service-card__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}
.service-card__desc {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: var(--space-lg);
}
.service-card__price {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: color-mix(in oklab, var(--brand) 10%, var(--surface-2));
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand);
}

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

/* === TESTIMONIALS === */
.testimonials {
  padding: var(--space-4xl) 0;
  background: var(--surface-2);
}
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.testimonial-card {
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  background: white;
  border-color: var(--surface-3);
}
.testimonial-card__stars {
  color: #f59e0b;
  font-size: 1.25rem;
  letter-spacing: 2px;
}
.testimonial-card__text {
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}
.testimonial-card__author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.testimonial-card__name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.9375rem;
}
.testimonial-card__city {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

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

/* === ABOUT === */
.about {
  padding: var(--space-4xl) 0;
  background: white;
}
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}
.about__glass-pane {
  width: 260px;
  height: 320px;
  background: linear-gradient(145deg, var(--brand) 0%, var(--brand-dark) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.about__glass-pane::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, color-mix(in oklab, white 20%, transparent) 0%, transparent 60%);
  border-radius: inherit;
}
.about__glass-inner {
  text-align: center;
  color: white;
  position: relative;
  z-index: 1;
}
.about__year {
  display: block;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: white;
}
.about__year-label {
  display: block;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in oklab, white 65%, transparent);
  margin-top: var(--space-sm);
}
.about__accent-card {
  position: absolute;
  bottom: 24px;
  right: 0;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
}
.about__accent-card svg { color: var(--brand); flex-shrink: 0; }

.about__text {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.75;
}
.about__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}
.about__features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.9375rem;
  color: var(--text-primary);
}
.about__features li svg {
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 800px) {
  .about__inner { grid-template-columns: 1fr; }
  .about__visual { min-height: 260px; }
}

/* === CTA BAND === */
.cta-band {
  padding: var(--space-4xl) 0;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3xl);
  flex-wrap: wrap;
}
.cta-band__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
  color: white;
  margin-bottom: var(--space-sm);
}
.cta-band__sub {
  color: color-mix(in oklab, white 70%, transparent);
  font-size: 1rem;
}
.cta-band__actions {
  display: flex;
  gap: var(--space-md);
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* === CONTACT === */
.contact {
  padding: var(--space-4xl) 0;
  background: var(--surface-1);
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}
.contact__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
}
.contact__icon {
  width: 44px;
  height: 44px;
  background: color-mix(in oklab, var(--brand) 10%, var(--surface-2));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  flex-shrink: 0;
}
.contact__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.contact__value {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
}
a.contact__value:hover { color: var(--brand); text-decoration: underline; }

/* Form */
.contact__form {
  padding: var(--space-2xl);
}
.contact__form-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
}
.form-field {
  margin-bottom: var(--space-lg);
}
.form-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px var(--space-md);
  border: 1.5px solid var(--surface-3);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background: white;
  transition: border-color 150ms;
  min-height: 44px;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px oklch(0.45 0.12 228 / 0.12);
}
.form-field textarea { resize: vertical; }
.contact__form-note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: var(--space-md);
}

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

/* === FOOTER === */
.site-footer {
  background: var(--brand-dark);
  padding: var(--space-xl) 0;
}
.site-footer__inner {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: white;
  font-size: 0.9375rem;
}
.site-footer__copy {
  color: color-mix(in oklab, white 50%, transparent);
  font-size: 0.8125rem;
  margin-left: auto;
}
.site-footer__demo {
  color: color-mix(in oklab, var(--accent) 60%, transparent);
  font-size: 0.8125rem;
}

@media (max-width: 600px) {
  .site-footer__copy { margin-left: 0; }
}
