/**
* FM Sound — Vaalea teema (Raikas & moderni)
* Uudelleenrakennettu PhotoFolio v2-pohjalta, Bootstrap 5.3.2
*/

/*--------------------------------------------------------------
# Design tokens
--------------------------------------------------------------*/
:root {
  /* Typography */
  --font-default: "Work Sans", system-ui, -apple-system, sans-serif;
  --font-primary: "Work Sans", system-ui, -apple-system, sans-serif;
  --font-secondary: "Permanent Marker", cursive;

  /* Surfaces (vaalea, raikas & moderni) */
  --bg-base: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-muted: #eef0f3;
  --bg-dark: #0f172a;
  --bg-dark-soft: #1e293b;

  /* Text */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-on-dark: #f8fafc;
  --text-on-dark-muted: rgba(248, 250, 252, 0.7);

  /* Brand */
  --brand: #16a34a;
  --brand-hover: #15803d;
  --brand-soft: #dcfce7;
  --brand-yellow: #fcca00;

  /* Borders & shadows */
  --border: #e5e7eb;
  --border-strong: #cbd5e1;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 24px -8px rgba(15, 23, 42, 0.12), 0 4px 8px -4px rgba(15, 23, 42, 0.06);
  --shadow-xl: 0 24px 48px -12px rgba(15, 23, 42, 0.18);

  /* Layout */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --container-max: 1440px;
  --header-height: 80px;

  /* Backwards compatibility (legacy variable names used by inline styles) */
  --color-default: var(--text-primary);
  --color-primary: var(--brand);
  --color-secondary: var(--bg-soft);
  --main-bg: var(--bg-base);
  --secondary-bg: var(--bg-soft);

  --header-height: 60px;
  
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/
* { box-sizing: border-box; }

body {
  font-family: var(--font-default);
  color: var(--text-primary);
  background-color: var(--bg-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--header-height);
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-hover);
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 1rem; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

img { max-width: 100%; height: auto; }

.container, .container-fluid {
  max-width: var(--container-max);
}

/* Selection */
::selection { background: var(--brand); color: #fff; }

/*--------------------------------------------------------------
# Section header
--------------------------------------------------------------*/
.section-header {
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 0.5rem 0 !important;
  font-family: var(--font-primary);
}

.section-header h2::after {
  content: "";
  width: 60px;
  height: 2px;
  display: inline-block;
  background: var(--brand);
  margin: 0.4rem 0.75rem;
  vertical-align: middle;
}

.section-header p {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  font-family: var(--font-primary);
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Compact variant for secondary sections (e.g. partners) */
.section-header.section-header-compact {
  margin-bottom: 2rem;
}

.section-header.section-header-compact h2 {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.section-header.section-header-compact h2::after {
  display: none;
}

.section-header.section-header-compact p {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--text-secondary);
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.cta-btn,
.connect-btn,
.btn-get-started {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
  color: #fff;
  background: var(--brand);
  border: 2px solid var(--brand);
  cursor: pointer;
  text-transform: none;
}

.cta-btn:hover,
.connect-btn:hover,
.btn-get-started:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.cta-btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.cta-btn-outline:hover {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
}

.cta-btn-dark {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  color: #fff;
}

.cta-btn-dark:hover {
  background: var(--bg-dark-soft);
  border-color: var(--bg-dark-soft);
  color: #fff;
}

/*--------------------------------------------------------------
# Header / nav (tumma)
--------------------------------------------------------------*/
#header,
.header {
  background: var(--bg-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.3s ease;
  z-index: 997;
  padding: 0;
  height: var(--header-height);
}

.header.scrolled {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.header .container-fluid {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Logo: keltainen luonnostaan, tumma headerin tausta toimii backdroppina */
.header .logo {
  display: flex;
  align-items: center;
  background: transparent;
  padding: 0;
  border-radius: 0;
  transition: opacity 0.2s ease;
}

.header .logo:hover {
  opacity: 0.85;
}

.header .logo img {
  max-height: 38px;
  width: auto;
  margin: 0 !important;
  display: block;
}

.header .logo h1 {
  font-size: 1.5rem;
  margin: 0;
  font-weight: 400;
  color: #fff;
  font-family: var(--font-secondary);
}

@media (max-width: 575px) {
  .header .logo img {
    max-height: 32px;
  }
}

/* Header CTA button (näkyvissä isoilla näytöillä) */
.header-cta-btn {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  margin-left: 1rem;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  border-radius: var(--radius);
  border: 2px solid var(--brand);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.header-cta-btn:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

@media (min-width: 1280px) {
  .header-cta-btn {
    display: inline-flex !important;
  }
}

/* Mobile CTA-block in nav */
.mobile-cta-call,
.mobile-cta-whatsapp {
  margin-top: 1rem;
  padding: 0 0.5rem;
}

.mobile-cta-call {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.mobile-call-btn {
  display: flex !important;
  flex-direction: column;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.15rem;
  padding: 0.85rem 1rem !important;
  background: var(--brand);
  color: #fff !important;
  border-radius: var(--radius);
  text-align: center;
  text-decoration: none;
  width: 100%;
  transition: background 0.2s ease;
}

.mobile-call-btn:hover {
  background: var(--brand-hover);
  color: #fff !important;
}

.mobile-call-label {
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

.mobile-call-number {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-primary);
  letter-spacing: 0.04em;
}

.mobile-cta-whatsapp a {
  display: block !important;
  padding: 0 !important;
}

.mobile-cta-whatsapp img {
  width: 100%;
  height: auto;
  display: block;
}

.header .header-social-links {
  display: flex;
  gap: 0.5rem;
  padding-right: 0;
  margin-left: 0.75rem;
}

.header .header-social-links a {
  color: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
  font-size: 1rem;
}

.header .header-social-links a:hover {
  color: #fff;
  background: var(--brand);
}

@media (max-width: 575px) {
  .header .header-social-links a {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
}

/*--------------------------------------------------------------
# Desktop navigation
--------------------------------------------------------------*/
@media (min-width: 1280px) {
  .navbar {
    padding: 0;
  }

  .navbar ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0.25rem;
  }

  .navbar li {
    position: relative;
  }

  .navbar a,
  .navbar a:focus {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    font-family: var(--font-primary);
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    transition: color 0.2s ease;
    border-radius: var(--radius-sm);
  }

  .navbar a i,
  .navbar a:focus i {
    font-size: 0.7rem;
    line-height: 0;
    margin-left: 0.35rem;
  }

  .navbar a:hover,
  .navbar .active,
  .navbar .active:focus,
  .navbar li:hover > a {
    color: #fff;
  }

  /* Underline indicator on hover */
  .navbar > ul > li > a {
    position: relative;
  }

  .navbar > ul > li > a::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.4rem;
    height: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
  }

  .navbar > ul > li:hover > a::after,
  .navbar > ul > li > a.active::after {
    transform: scaleX(1);
  }

  /* Dropdown */
  .navbar .dropdown ul {
    display: block;
    position: absolute;
    left: 0;
    top: calc(100% + 16px);
    margin: 0;
    padding: 0.5rem;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transition: all 0.25s ease;
    border-radius: var(--radius);
    min-width: 240px;
  }

  .navbar .dropdown ul li {
    min-width: unset;
  }

  .navbar .dropdown ul a {
    padding: 0.55rem 0.85rem;
    font-size: 0.9rem;
    text-transform: none;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
  }

  .navbar .dropdown ul a:hover,
  .navbar .dropdown ul .active:hover,
  .navbar .dropdown ul li:hover > a {
    color: var(--brand);
    background: var(--bg-soft);
  }

  .navbar .dropdown:hover > ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navbar .dropdown .dropdown ul {
    top: 0;
    left: calc(100% - 16px);
    visibility: hidden;
  }

  .navbar .dropdown .dropdown:hover > ul {
    opacity: 1;
    top: 0;
    left: 100%;
    visibility: visible;
  }
}

@media (min-width: 1280px) and (max-width: 1366px) {
  .navbar .dropdown .dropdown ul { left: -90%; }
  .navbar .dropdown .dropdown:hover > ul { left: -100%; }
}

@media (min-width: 1280px) {
  .mobile-nav-show, .mobile-nav-hide { display: none; }
}

/*--------------------------------------------------------------
# Mobile navigation
--------------------------------------------------------------*/
@media (max-width: 1279px) {
  .navbar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 380px;
    bottom: 0;
    transition: right 0.3s ease;
    z-index: 9997;
  }

  .navbar ul {
    position: absolute;
    inset: 0;
    padding: 5rem 1rem 1rem 1rem;
    margin: 0;
    list-style: none;
    background: #fff;
    overflow-y: auto;
    z-index: 9998;
    box-shadow: var(--shadow-xl);
  }

  .navbar a,
  .navbar a:focus {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    transition: all 0.2s ease;
    border-radius: var(--radius);
  }

  .navbar a i,
  .navbar a:focus i {
    font-size: 0.7rem;
    line-height: 0;
    margin-left: 0.35rem;
  }

  .navbar a:hover,
  .navbar .active,
  .navbar .active:focus,
  .navbar li:hover > a {
    color: var(--brand);
    background: var(--bg-soft);
  }

  .navbar .dropdown ul,
  .navbar .dropdown .dropdown ul {
    position: static;
    display: none;
    padding: 0.25rem 0 0.5rem 0.5rem;
    margin: 0.25rem 0 0.25rem 0.75rem;
    border: none;
    border-left: 2px solid var(--border);
  }

  .navbar .dropdown ul a {
    padding: 0.55rem 0.85rem;
    font-size: 0.92rem;
  }

  .navbar .dropdown > .dropdown-active,
  .navbar .dropdown .dropdown > .dropdown-active {
    display: block;
  }

  .mobile-nav-show {
    color: #fff;
    font-size: 1.65rem;
    cursor: pointer;
    line-height: 0;
    transition: 0.25s;
    z-index: 9999;
    margin: 0 0 0 0.6rem;
  }

  .mobile-nav-hide {
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 0;
    transition: 0.25s;
    position: fixed;
    right: 1.25rem;
    top: 1.25rem;
    z-index: 9999;
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .navbar {
    right: 0;
  }

  .mobile-nav-active .navbar:before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 9996;
  }
}

/*--------------------------------------------------------------
# Hero (etusivu) — full-bleed video background, partially blurred
--------------------------------------------------------------*/
.hero {
  width: 100%;
  background: var(--bg-dark);
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: center;
  padding: 5rem 0 4rem 0;
  overflow: hidden;
  isolation: isolate;
}

/* Background video container */
.hero-video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-video-bg video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: auto;
  height: auto;
  min-width: 100%;
  min-height: 100%;
  /* Scale up to hide blur edges */
  transform: translate(-50%, -50%) scale(1.08);
  object-fit: cover;
  filter: blur(1px) brightness(0.55) saturate(1.15);
  pointer-events: none;
  transition: filter 0.6s ease, transform 0.6s ease;
}

/* Dark gradient overlay for text contrast */
.hero-video-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.7) 100%),
    radial-gradient(ellipse at left center, rgba(15, 23, 42, 0.55) 0%, transparent 60%);
  transition: opacity 0.6s ease;
}

/* Watch mode: video plays clean, decorations & text fade out */
.hero.video-mode .hero-video-bg video {
  filter: none;
  transform: translate(-50%, -50%) scale(1);
}

.hero.video-mode .hero-video-bg::after,
.hero.video-mode::before {
  opacity: 0;
}

.hero.video-mode .container {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Watch mode toggle (bottom-right of hero) */
.hero-watch-wrap {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.hero-watch-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: heroWatchBounce 2.8s ease-in-out infinite;
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.hero-watch-badge i {
  font-size: 0.95rem;
  color: var(--brand-yellow);
}

/* Horizontal triple-bounce toward the play button, then rests until next cycle */
@keyframes heroWatchBounce {
  0%, 50%, 100% { transform: translateX(0); }
  58%           { transform: translateX(-25px); }
  64%           { transform: translateX(0); }
  74%           { transform: translateX(-12px); }
  80%           { transform: translateX(0); }
  90%           { transform: translateX(-4px); }
  96%           { transform: translateX(0); }
}

.hero.video-mode .hero-watch-badge {
  opacity: 0;
  transform: translateX(12px);
  animation: none;
}

.hero-watch-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.hero-watch-toggle:hover {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(255, 255, 255, 0.55);
  transform: scale(1.06);
}

.hero-watch-toggle:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.hero-watch-toggle .icon-off { display: none; }
.hero.video-mode .hero-watch-toggle .icon-play { display: none; }
.hero.video-mode .hero-watch-toggle .icon-off { display: inline; }

@media (prefers-reduced-motion: reduce) {
  .hero-watch-badge { animation: none; }
}

@media (max-width: 575px) {
  .hero-watch-wrap {
    bottom: 1rem;
    right: 1rem;
    gap: 0.5rem;
  }
  .hero-watch-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
  }
  .hero-watch-toggle {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
  }
}

/* Brand accent glow (replaces previous corner glow) */
.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  transition: opacity 0.6s ease;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Use Bootstrap's default responsive container widths in the hero so the
   content keeps consistent left indentation on desktop, instead of going
   flush-left when the viewport is narrower than the global 1440px cap. */
@media (min-width: 992px)  { .hero .container { max-width: 960px; } }
@media (min-width: 1200px) { .hero .container { max-width: 1140px; } }
@media (min-width: 1400px) { .hero .container { max-width: 1320px; } }

.hero h2 {
  margin: 0 0 1.25rem 0;
  font-size: 4.5rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-primary);
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-shadow: 0 4px 5px #000;
}

.hero h2 .hero-marker {
  font-family: var(--font-secondary);
  font-weight: 400;
  letter-spacing: 0;
  display: inline-block;
  transform: rotate(-1.5deg);
}

.hero h2 > div {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.hero h2 .hero-highlight {
  position: relative;
  z-index: 1;
  padding: 0 0.4rem;
  display: inline-block;
}

.hero h2 .hero-highlight::before {
  content: "";
  position: absolute;
  height: 35%;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--brand-yellow);
  opacity: 0.75;
  z-index: -1;
}

.hero p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.7;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
}

.hero p.hero-lead {
  font-size: 1.2rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.55;
  margin-bottom: 0.85rem;
}

.hero p.hero-secondary {
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.hero h4 {
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero h4::before {
  content: "📍";
  font-size: 0.95rem;
}

/* Hero buttons on dark video bg */
.hero .cta-btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero .cta-btn-outline:hover {
  background: #fff;
  color: var(--text-primary);
  border-color: #fff;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

@media (max-width: 768px) {
  .hero { min-height: 65vh; padding: 3rem 0 2.5rem 0; }
  .hero h2 { font-size: 2rem; }
}

/*--------------------------------------------------------------
# Page header (alasivut)
--------------------------------------------------------------*/
.page-header {
  padding: 3.5rem 0 2.5rem 0;
  min-height: auto;
  position: relative;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-base) 100%);
  border-bottom: 1px solid var(--border);
}

.page-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-primary);
  margin-bottom: 0.6em;
  letter-spacing: -0.02em;
}

.page-header h4, .page-header h5 {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 1.1rem;
  letter-spacing: 0;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .page-header { padding: 2rem 0 1.5rem 0; }
  .page-header h2 { font-size: 1.75rem; }
  .page-header h4, .page-header h5 { font-size: 1rem; }
}

/* Breadcrumb */
.breadcrumb-nav {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.breadcrumb-nav a {
  color: var(--text-muted);
}

.breadcrumb-nav a:hover {
  color: var(--brand);
}

.breadcrumb-nav .sep {
  color: var(--border-strong);
}

.breadcrumb-nav .current {
  color: var(--text-primary);
  font-weight: 500;
}

/* Header landing (image overlay variant on some pages) */
.header-landing {
  position: absolute;
  bottom: 1.5rem;
  left: 2rem;
  right: 2rem;
  padding: 2rem;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: var(--radius-lg);
  color: #fff;
}

.header-landing h2,
.header-landing h4 {
  color: #fff;
}

@media (max-width: 600px) {
  .header-landing {
    position: relative;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 1rem;
    padding: 1.5rem;
  }
  .header-landing h2 { font-size: 1.5rem !important; }
}

/* Page header with hero image (used by several palvelusivut) */
.page-header-image {
  padding-bottom: 0;
  background: var(--bg-soft);
}

.header-image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-top: 1rem;
  max-height: 60vh;
  box-shadow: var(--shadow-lg);
}

.header-image-wrap > img {
  width: 100%;
  max-height: 60vh;
  object-fit: cover;
  display: block;
}

.page-header-image .header-landing {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
}

@media (max-width: 991px) {
  .header-image-wrap {
    max-height: none;
    border-radius: var(--radius-lg);
  }
  .header-image-wrap > img { max-height: 45vh; }
  .page-header-image .header-landing {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 1rem 0 0;
  }
}

/* Lead paragraph */
.lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.6;
}

/* Pricing disclaimer */
.pricing-disclaimer {
  max-width: 700px;
  margin: 1rem auto 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  background: #fff;
  border: 1px solid var(--border);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  text-align: left;
}

.pricing-disclaimer i {
  color: var(--brand);
  font-style: normal;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* Info callout (left-bordered notice box) */
.info-callout {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
}

.info-callout h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.info-callout p {
  color: var(--text-secondary);
}

.info-callout p:last-child {
  margin-bottom: 0;
}

/* Partner logo inside card */
.partner-logo {
  height: 4rem;
  width: auto;
  margin-top: 0.75rem;
  display: block;
}

/*--------------------------------------------------------------
# Latest gigs (etusivu)
--------------------------------------------------------------*/
.latest-gigs {
  padding: 5.5rem 0;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  position: relative;
}

.latest-gigs::before {
  content: "";
  position: absolute;
  top: -120px;
  left: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.latest-gigs .container {
  max-width: 1100px;
  position: relative;
  z-index: 1;
}

.latest-gigs .section-header h2 {
  color: var(--brand);
}

.latest-gigs .section-header p {
  color: #fff;
}

.gigs-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.gig-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color 0.2s ease;
}

.gig-item:last-child {
  border-bottom: none;
}

.gig-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.gig-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.15);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.gig-date {
  min-width: 100px;
  font-size: 0.85rem;
  color: var(--brand);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.gig-title {
  font-weight: 600;
  font-size: 0.98rem;
  color: #fff;
  min-width: 160px;
}

.gig-location {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.gig-description {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  flex: 1;
}

.gig-badge-upcoming {
  background: var(--brand);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-left: auto;
  flex-shrink: 0;
}

.gigs-show-more-btn {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.gigs-show-more-btn:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

@media (max-width: 768px) {
  .gig-item {
    flex-wrap: wrap;
    column-gap: 0.55rem;
    row-gap: 0;
    padding: 0.75rem 0.85rem;
  }
  .gig-icon {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
  .gig-date, .gig-title, .gig-location { min-width: unset; }
  .gig-date     { font-size: 0.74rem; white-space: nowrap; }
  .gig-title    { font-size: 0.82rem; white-space: nowrap; }
  .gig-location { font-size: 0.72rem; }
  .gig-location i { font-size: 0.78rem; }
  .gig-description {
    display: block;
    flex: 0 0 100%;
    order: 1;
    margin-top: 0.3rem;
    margin-left: calc(28px + 0.55rem);
    font-size: 0.78rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.65);
  }
  .gig-badge-upcoming {
    margin-left: auto;
    font-size: 0.58rem;
    padding: 0.18rem 0.4rem;
  }
}

@media (max-width: 420px) {
  .gig-item { column-gap: 0.4rem; padding: 0.65rem 0.65rem; }
  .gig-icon { display: none; }
  .gig-location { display: none; }
  .gig-description { margin-left: 0; }
}

/*--------------------------------------------------------------
# Why us (etusivun "miksi me")
--------------------------------------------------------------*/
.why-us {
  padding: 5rem 0 4.5rem;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.why-us .why-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  height: 100%;
  transition: all 0.25s ease;
}

.why-us .why-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
}

.why-us .why-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.why-us .why-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.why-us .why-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
}

/*--------------------------------------------------------------
# Gallery / palvelutiilet
--------------------------------------------------------------*/
#gallery {
  background: var(--bg-base);
  padding: 4.5rem 0 5rem;
}

.gallery {
  margin-top: 0;
}

.gallery .gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  height: 100%;
  min-height: 18em;
  background: var(--bg-soft);
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.gallery .gallery-item-featured {
  min-height: 24em;
}

.gallery .gallery-item-featured > p {
  font-size: 1.35rem;
  padding-top: 3rem;
  padding-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

.gallery .gallery-item-featured::after {
  width: 44px;
  height: 44px;
  font-size: 1.25rem;
}

@media (max-width: 600px) {
  .gallery .gallery-item-featured {
    min-height: 16em;
  }
  .gallery .gallery-item-featured > p {
    font-size: 1.1rem;
    padding-top: 2rem;
  }
}

.gallery .gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.gallery .gallery-item img {
  transition: transform 0.4s ease, filter 0.4s ease;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.85);
}

.gallery .gallery-item:hover img {
  transform: scale(1.06);
  filter: saturate(1);
}

/* Light haze: pehmeä vaalea overlay tuo kevyttä tuntua tummille kuville;
   katoaa hoverissa jotta kuva pääsee oikeuksiinsa. */
.gallery .gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.10) 55%, transparent 100%),
    radial-gradient(ellipse at 30% 0%, rgba(255, 255, 255, 0.18) 0%, transparent 60%);
  transition: opacity 0.4s ease;
}

.gallery .gallery-item:hover::before {
  opacity: 0;
}

.gallery .gallery-item > p {
  transition: background 0.3s ease, padding-top 0.3s ease;
}

.gallery .gallery-item:hover > p {
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.92) 100%);
  padding-top: 2.5rem;
}

.gallery .gallery-item > p {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.85) 100%);
  padding: 2rem 1rem 1rem;
  text-align: center;
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  z-index: 2;
  text-shadow: 0 2px 6px black;
}

.gallery .gallery-item::after {
  content: "→";
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: all 0.25s ease;
  z-index: 2;
}

.gallery .gallery-item:hover::after {
  opacity: 1;
  transform: translate(0, 0);
}

@media (max-width: 600px) {
  .gallery .gallery-item {
    min-height: 14em;
  }
}

/*--------------------------------------------------------------
# Services
--------------------------------------------------------------*/
.services {
  padding: 4rem 0;
}

.services.front {
  padding: 3.5rem 0;
}

.services .service-item {
  transition: all 0.25s ease;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  height: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.services .service-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.services .service-item .img-wrapper {
  width: 100%;
  height: 14rem;
  overflow: hidden;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.services .service-item .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  opacity: 1;
}

.services .service-item:hover .img-wrapper img {
  transform: scale(1.05);
}

.services .service-item h4 {
  font-weight: 700;
  margin: 1.5rem 1.5rem 0.5rem;
  font-size: 1.2rem;
  color: var(--text-primary);
}

.services .service-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  padding: 0 1.5rem 1.75rem;
  margin: 0.5rem 0 0 0;
}

.services .service-item h4 a {
  color: var(--text-primary);
}

.services .service-item h4 a:hover {
  color: var(--brand);
}

/* Front-page services (logo cards: RCF, Juhlakaluste, Lions) */
.services.front .service-item {
  text-align: center;
  padding-top: 2rem;
}

.services.front .img-wrapper {
  height: 9rem;
  background: transparent;
  padding: 0.5rem;
}

.services.front .img-wrapper img {
  height: 100%;
  width: auto;
  max-width: 80%;
  object-fit: contain;
  padding: 0 !important;
  filter: grayscale(0.25);
  opacity: 0.92;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.services.front .service-item:hover .img-wrapper img {
  filter: grayscale(0);
  opacity: 1;
}

/* Juhlakaluste-logo on vaalea/transparent — anna sille tumma "badge"-tausta
   jotta se erottuu valkoiselta kortilta. Pidetty hillittynä jotta
   yhtenäinen muiden logojen kanssa. */
.services.front .img-wrapper img[src*="juhlakaluste"] {
  background: var(--bg-dark);
  padding: 0.7rem 1.2rem !important;
  border-radius: var(--radius);
  box-sizing: border-box;
  height: 75%;
  filter: none;
  opacity: 1;
}

/* Tech page (lists inside service cards) */
.services .service-item ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.services .service-item ul li {
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.92rem;
  color: var(--text-primary);
}

.services .service-item ul li:last-child {
  border-bottom: none;
}

.services .service-item ul li span {
  color: var(--text-muted) !important;
  font-size: 0.82rem;
}

/*--------------------------------------------------------------
# Pricing & cards
--------------------------------------------------------------*/
.pricing {
  padding: 4rem 0;
  background: var(--bg-soft);
}

.pricing .pricing-item {
  border-bottom: 1px dashed var(--border-strong);
  width: 100%;
  height: 100%;
  padding: 0 0 1rem 0;
}

.pricing .pricing-item h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.pricing .pricing-item h4 {
  margin: 0;
  font-size: 1rem;
}

.pricing .pricing-item p {
  font-size: 0.85rem;
}

/* Cards used by .summary-price-list and similar */
.summary-price-list .card,
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  height: 100%;
}

.summary-price-list .card:hover,
.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card h4 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.card p:last-child {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact {
  padding: 5rem 0 4rem;
  background: var(--bg-base);
}

.contact .info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  height: 100%;
  transition: all 0.25s ease;
}

.contact .info-item:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.contact .info-item + .info-item {
  margin-top: 0;
}

.contact .info-item i {
  font-size: 1.1rem;
  color: var(--brand);
  width: 44px;
  height: 44px;
  background: var(--brand-soft);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.contact .info-item:hover i {
  background: var(--brand);
  color: #fff;
}

.contact .info-item h4 {
  padding: 0;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact .info-item p {
  padding: 0;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.contact .info-item a {
  color: inherit;
}

.contact .info-item a:hover h4,
.contact .info-item a:hover p {
  color: var(--brand);
}

/* Contact form */
.contact .php-email-form {
  width: 100%;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.contact .php-email-form .form-group {
  padding-bottom: 0.5rem;
}

.contact .php-email-form .error-message {
  display: none;
  color: #fff;
  background: #dc2626;
  text-align: left;
  padding: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.contact .php-email-form .error-message br + br {
  margin-top: 1.5rem;
}

.contact .php-email-form .sent-message {
  display: none;
  color: #fff;
  background: var(--brand);
  text-align: center;
  padding: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.contact .php-email-form .loading {
  display: none;
  background: var(--bg-soft);
  text-align: center;
  padding: 1rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
}

.contact .php-email-form .loading::before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  margin: 0 0.5rem -0.3rem 0;
  border: 3px solid var(--brand);
  border-top-color: var(--bg-soft);
  animation: animate-loading 1s linear infinite;
}

.contact .php-email-form input,
.contact .php-email-form textarea {
  border-radius: var(--radius-sm);
  box-shadow: none;
  font-size: 0.95rem;
  background-color: #fff;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 0.65rem 0.85rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.contact .php-email-form input::placeholder,
.contact .php-email-form textarea::placeholder {
  color: var(--text-muted);
}

.contact .php-email-form input { height: 44px; }
.contact .php-email-form textarea { padding: 0.65rem 0.85rem; resize: vertical; }

.contact .php-email-form button[type=submit] {
  background: var(--brand);
  border: 0;
  padding: 0.85rem 2.25rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  border-radius: var(--radius);
  cursor: pointer;
}

.contact .php-email-form button[type=submit]:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

@keyframes animate-loading {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.about {
  padding: 4rem 0;
}

.about .content h2 {
  font-weight: 800;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.about .content p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.about .content ul strong {
  margin-right: 0.6rem;
}

.about .content ul i {
  font-size: 1rem;
  margin-right: 0.4rem;
  color: var(--brand);
  line-height: 0;
}

/*--------------------------------------------------------------
# Testimonials
--------------------------------------------------------------*/
.testimonials {
  margin-top: 0;
  padding: 4rem 0;
  background: var(--bg-soft);
}

.testimonials .testimonial-item {
  box-sizing: border-box;
  padding: 2rem;
  margin: 1.5rem 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.testimonials .testimonial-item:hover {
  box-shadow: var(--shadow-md);
}

.testimonials .testimonial-item .stars { margin-bottom: 1rem; }
.testimonials .testimonial-item .stars i { color: #facc15; margin: 0 1px; }

.testimonials .testimonial-item .testimonial-img {
  width: 80px;
  border-radius: 50%;
  border: 4px solid var(--bg-soft);
  margin: 0 auto;
}

.testimonials .testimonial-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0.75rem 0 0.25rem;
  color: var(--text-primary);
}

.testimonials .testimonial-item h4 {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 0 auto 1rem auto;
  color: var(--text-secondary);
}

.testimonials .swiper-pagination {
  margin-top: 1.5rem;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: var(--border-strong);
  opacity: 1;
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--brand);
}

.testimonials .swiper-slide { opacity: 0.4; }

@media (max-width: 1199px) {
  .testimonials .swiper-slide-active { opacity: 1; }
  .testimonials .swiper-pagination { margin-top: 0; }
  .testimonials .testimonial-item { margin: 1.5rem 0.5rem; }
}

@media (min-width: 1200px) {
  .testimonials .swiper-slide-next {
    opacity: 1;
    transform: scale(1.05);
  }
}

/*--------------------------------------------------------------
# Gallery single (used by gallery-single.html)
--------------------------------------------------------------*/
.gallery-single .portfolio-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  position: relative;
  font-family: var(--font-primary);
  color: var(--text-primary);
}

.gallery-single .portfolio-info h3::after {
  content: "";
  position: absolute;
  display: block;
  width: 40px;
  height: 3px;
  background: var(--brand);
  left: 0;
  bottom: 0;
}

.gallery-single .portfolio-description h2 {
  color: var(--text-primary);
}

/*--------------------------------------------------------------
# Section "tips" pages (e.g. wedding tips)
--------------------------------------------------------------*/
#tips-for-wedding-planning {
  padding: 3rem 0;
  background: var(--bg-soft);
}

#tips-for-wedding-planning .content {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
}

#tips-for-wedding-planning h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

#tips-for-wedding-planning ol {
  padding-left: 1.25rem;
  color: var(--text-secondary);
}

#tips-for-wedding-planning ol li {
  margin-bottom: 1.1rem;
  line-height: 1.6;
}

#tips-for-wedding-planning ol li b {
  color: var(--text-primary);
  display: inline-block;
  margin-bottom: 0.2rem;
}

/*--------------------------------------------------------------
# Related services (alasivun alalaita)
--------------------------------------------------------------*/
.related-services {
  padding: 3.5rem 0;
  background: var(--bg-base);
  border-top: 1px solid var(--border);
}

.related-services .related-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.25s ease;
  height: 100%;
}

.related-services .related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
}

.related-services .related-card-img {
  height: 140px;
  overflow: hidden;
  background: var(--bg-soft);
}

.related-services .related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-services .related-card-body {
  padding: 1rem 1.25rem 1.25rem;
}

.related-services .related-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.related-services .related-card-body small {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/*--------------------------------------------------------------
# Inline CTA (vaalea, kevyempi conversion-piste)
--------------------------------------------------------------*/
.cta-inline {
  padding: 2rem 0 2.5rem;
  background: var(--bg-base);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.cta-inline p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-weight: 500;
}

/*--------------------------------------------------------------
# CTA banner (toistettava)
--------------------------------------------------------------*/
.cta-banner {
  padding: 3rem 0;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  text-align: center;
}

.cta-banner h3 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.cta-banner p {
  color: var(--text-on-dark-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .cta-btn-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.cta-banner .cta-btn-light {
  background: #fff;
  color: var(--text-primary);
  border-color: #fff;
}

.cta-banner .cta-btn-light:hover {
  background: var(--bg-soft);
  border-color: var(--bg-soft);
  color: var(--text-primary);
}

.cta-banner .cta-btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

.cta-banner .cta-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  margin-top: 0;
  padding: 3.5rem 0 0;
  font-size: 0.92rem;
  background: var(--bg-dark);
  color: var(--text-on-dark-muted);
}

.footer .footer-top {
  padding-bottom: 2.5rem;
}

.footer h5 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1.25rem 0;
}

.footer .footer-about p {
  color: var(--text-on-dark-muted);
  font-size: 0.95rem;
  margin: 1rem 0 1.25rem 0;
  max-width: 38ch;
  line-height: 1.6;
}

.footer .footer-motto {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff !important;
  margin: 1rem 0 0.75rem 0 !important;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

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

.footer .footer-social {
  display: flex;
  gap: 0.6rem;
}

.footer .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.footer .footer-social a:hover {
  background: var(--brand);
  color: #fff;
}

.footer .footer-links ul,
.footer .footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links li,
.footer .footer-contact li {
  padding: 0.3rem 0;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.footer .footer-links a {
  color: var(--text-on-dark-muted);
  transition: color 0.2s ease;
}

.footer .footer-links a:hover {
  color: #fff;
}

.footer .footer-contact i {
  color: var(--brand);
  font-size: 0.95rem;
  flex-shrink: 0;
  width: 1rem;
  text-align: center;
}

.footer .footer-contact a {
  color: var(--text-on-dark-muted);
  transition: color 0.2s ease;
}

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

.footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer .footer-bottom .copyright {
  color: rgba(255, 255, 255, 0.5);
}

/*--------------------------------------------------------------
# Scroll-top button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 1rem;
  bottom: -1rem;
  z-index: 99999;
  background: var(--brand);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.scroll-top i {
  font-size: 1.5rem;
  color: #fff;
  line-height: 0;
}

.scroll-top:hover {
  background: var(--brand-hover);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 1rem;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  display: flex;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  z-index: 99999;
  background: var(--bg-base);
}

#preloader::before,
#preloader::after {
  content: "";
  background-color: var(--bg-soft);
  position: absolute;
  inset: 0;
  width: 50%;
  height: 100%;
  transition: all 0.3s ease 0s;
  z-index: -1;
}

#preloader::after { left: auto; right: 0; }

#preloader .line {
  position: relative;
  overflow: hidden;
  margin: auto;
  width: 1px;
  height: 280px;
  transition: all 0.8s ease 0s;
}

#preloader .line::before {
  content: "";
  position: absolute;
  background-color: var(--text-primary);
  left: 0;
  top: 50%;
  width: 1px;
  height: 0%;
  transform: translateY(-50%);
  animation: lineincrease 1000ms ease-in-out 0s forwards;
}

#preloader .line::after {
  content: "";
  position: absolute;
  background-color: var(--text-muted);
  left: 0;
  top: 0;
  width: 1px;
  height: 100%;
  transform: translateY(-100%);
  animation: linemove 1200ms linear 0s infinite;
  animation-delay: 2000ms;
}

#preloader.loaded .line {
  opacity: 0;
  height: 100% !important;
}

#preloader.loaded .line::after { opacity: 0; }

#preloader.loaded::before,
#preloader.loaded::after {
  animation: preloaderfinish 300ms ease-in-out 500ms forwards;
}

@keyframes lineincrease {
  0% { height: 0%; }
  100% { height: 100%; }
}

@keyframes linemove {
  0% { transform: translateY(200%); }
  100% { transform: translateY(-100%); }
}

@keyframes preloaderfinish {
  0% { width: 50%; }
  100% { width: 0%; }
}

/*--------------------------------------------------------------
# Layout helpers (legacy from inline use)
--------------------------------------------------------------*/
.service-wrapper {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.grid-items {
  display: grid;
}

@media (max-width: 768px) {
  .grid-items {
    grid-template-columns: 1fr !important;
  }
}

/* GLightbox overrides */
.glightbox-clean .gslide-description { background: var(--bg-dark); }
.glightbox-clean .gslide-title { color: rgba(255, 255, 255, 0.9); margin: 0; }

/*--------------------------------------------------------------
# Animated mask (special effect, kept from original)
--------------------------------------------------------------*/
.animate img {
  width: 250px;
  border-radius: var(--radius-lg);
  transition: 0.5s;
  cursor: pointer;
  filter: contrast(110%) brightness(95%);
  -webkit-mask: linear-gradient(135deg, #000c 40%, #000, #000c 60%) 100% 100%/250% 250%;
  animation: animate 5s ease-in-out infinite;
}

@keyframes animate {
  0% { -webkit-mask-position: 100% 100%; transform: scale(1); }
  50% { -webkit-mask-position: 0 0; transform: translate(5px, 5px); filter: contrast(110%) brightness(100%); }
  100% { -webkit-mask-position: 100% 100%; transform: scale(1); }
}

/*--------------------------------------------------------------
# Responsive tweaks
--------------------------------------------------------------*/
@media (max-width: 768px) {
  body { padding-top: 70px; }
  :root { --header-height: 70px; }

  p { font-size: 0.95rem; }

  .hero { padding: 2rem 0 2.5rem 0; }
  .gallery, .services, .pricing, .contact, .latest-gigs, .why-us {
    padding: 2.5rem 0;
  }

  .gallery-item p {
    font-size: 0.95rem;
  }
}

/* Print */
@media print {
  .header, .scroll-top, .mobile-nav-show, .footer { display: none; }
  body { padding-top: 0; }
}
