/* ============================================================
   Karelia Ulkorakennus Oy — style.css
   Versio 1.0 | helmikuu 2025
   Fontit: Playfair Display + Source Sans 3 (Google Fonts)
   ============================================================ */

/* ---- CSS-MUUTTUJAT ---- */
:root {
  --color-primary:       #2D4A2D;
  --color-primary-dark:  #1e3520;
  --color-primary-light: #3d6b3d;
  --color-secondary:     #8B5E3C;
  --color-bg:            #F5F0E8;
  --color-bg-alt:        #EDE8DC;
  --color-accent:        #C8893A;
  --color-accent-dark:   #a86e28;
  --color-text:          #2A2218;
  --color-muted:         #6B5E4A;
  --color-border:        #D9D0C0;
  --color-white:         #FFFFFF;
  --color-card-bg:       #FFFFFF;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', Arial, sans-serif;

  --radius:      4px;
  --radius-lg:   8px;
  --shadow-sm:   0 2px 8px rgba(42,34,24,0.08);
  --shadow:      0 4px 16px rgba(42,34,24,0.11);
  --shadow-lg:   0 8px 32px rgba(42,34,24,0.14);

  --max-width:   1100px;
  --nav-height:  68px;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }

/* ---- TYPOGRAFIA ---- */
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; color: var(--color-primary); }

h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 400; }
h4 { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent); font-family: var(--font-body); }

p { margin-bottom: 1em; color: var(--color-text); }
p:last-child { margin-bottom: 0; }

.text-muted { color: var(--color-muted); }
.text-center { text-align: center; }

/* ---- LAYOUT ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-dark {
  background: var(--color-primary);
  color: var(--color-white);
}

.section-dark h2,
.section-dark h3 { color: var(--color-white); }

.section-header {
  margin-bottom: 48px;
}

.section-header h4 { margin-bottom: 8px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p  { color: var(--color-muted); max-width: 560px; }
.section-header.center { text-align: center; }
.section-header.center p { margin: 0 auto; }

/* ---- NAVIGAATIO ---- */
.site-nav {
  background: var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.site-nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-white);
  white-space: nowrap;
  line-height: 1.2;
}

.nav-logo span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.75);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-white);
  background: rgba(255,255,255,0.08);
}

.nav-links .nav-cta {
  background: var(--color-accent);
  color: var(--color-white) !important;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  margin-left: 8px;
  transition: background 0.18s;
}

.nav-links .nav-cta:hover {
  background: var(--color-accent-dark);
}

/* Hampurilaisvalikko mobiilille */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 1.5rem;
  padding: 4px;
}

/* ---- PAINIKKEET ---- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  padding: 13px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.12s, box-shadow 0.18s;
  cursor: pointer;
  text-align: center;
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); box-shadow: none; }

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}
.btn-primary:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); }

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover { background: var(--color-primary); color: var(--color-white); }

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

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

.btn-ghost {
  background: transparent;
  color: var(--color-muted);
  border-color: var(--color-border);
}
.btn-ghost:hover { border-color: var(--color-secondary); color: var(--color-secondary); }

.btn-sm { padding: 8px 18px; font-size: 0.8rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-full { width: 100%; display: block; }

/* ---- KORTIT ---- */
.card {
  background: var(--color-card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--color-muted);
}

.card-body { padding: 24px; }
.card-tag { display: inline-block; margin-bottom: 8px; }
.card-title { margin-bottom: 10px; }
.card-text { color: var(--color-muted); font-size: 0.9rem; margin-bottom: 18px; }

/* ---- RUUDUKKO ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---- LOMAKE ---- */
.form-group { margin-bottom: 20px; }

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  appearance: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(45,74,45,0.12);
}

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

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

/* ---- PAGE HERO (alasivuille) ---- */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Ccircle cx='40' cy='40' r='1.5' fill='rgba(255,255,255,0.035)'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.page-hero h4 { color: var(--color-accent); margin-bottom: 10px; }
.page-hero h1 { color: var(--color-white); margin-bottom: 16px; }
.page-hero p  { color: rgba(255,255,255,0.75); max-width: 520px; font-size: 1.05rem; }

/* ---- LEIVÄNMURUT ---- */
.breadcrumb {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0;
}

.breadcrumb ol {
  display: flex;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--color-muted);
  flex-wrap: wrap;
}

.breadcrumb li + li::before {
  content: '›';
  margin-right: 8px;
  opacity: 0.5;
}

.breadcrumb a { color: var(--color-primary); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---- TUNNUSLUVUT / STATS ---- */
.stats-row {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  min-width: 160px;
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.12);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  color: var(--color-accent);
  line-height: 1;
  display: block;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
}

/* ---- ASIAKASARVIO ---- */
.testimonial {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-accent);
}

.testimonial-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 20px;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.88rem;
  display: block;
  color: var(--color-text);
}

.testimonial-location {
  font-size: 0.78rem;
  color: var(--color-muted);
}

.stars {
  color: var(--color-accent);
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 4px;
}

/* ---- FAQ ---- */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: color 0.15s;
}

.faq-question:hover { color: var(--color-primary); }

.faq-question .icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: background 0.18s, transform 0.25s;
  color: var(--color-primary);
}

.faq-item.open .faq-question { color: var(--color-primary); }
.faq-item.open .icon { background: var(--color-primary); color: var(--color-white); transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s;
}

.faq-item.open .faq-answer { max-height: 400px; }

.faq-answer-inner {
  padding: 0 0 20px;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand .nav-logo { font-size: 1.2rem; margin-bottom: 16px; display: block; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; color: rgba(255,255,255,0.55); max-width: 260px; }

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: var(--color-white); }

.footer-col address {
  font-style: normal;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom a:hover { color: rgba(255,255,255,0.85); }

/* ---- SOME-NAPIT ---- */
.social-links {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  transition: background 0.18s, color 0.18s;
}

.social-link:hover { background: var(--color-accent); color: var(--color-white); }

/* ---- KUVAGALLERIA ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery-item {
  aspect-ratio: 4/3;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  transition: transform 0.2s;
}

.gallery-item:hover { transform: scale(1.02); }

.gallery-item-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
  color: var(--color-white);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 24px 12px 10px;
  opacity: 0;
  transition: opacity 0.2s;
}

.gallery-item:hover .gallery-item-label { opacity: 1; }

/* ---- BADGE / TAG ---- */
.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}

.badge-accent { background: var(--color-accent); color: var(--color-white); }
.badge-primary { background: var(--color-primary); color: var(--color-white); }
.badge-light { background: var(--color-bg-alt); color: var(--color-muted); }

/* ---- JAKO-ELEMENTTI ---- */
.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 48px 0;
}

/* ---- INFOLAATIKKO ---- */
.info-box {
  background: var(--color-white);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.info-box p { margin: 0; font-size: 0.9rem; color: var(--color-muted); }

/* ---- ANIMAATIOT ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.55s ease forwards; }
.fade-up-delay-1 { animation-delay: 0.1s; opacity: 0; animation-fill-mode: forwards; animation-duration: 0.55s; animation-name: fadeUp; }
.fade-up-delay-2 { animation-delay: 0.22s; opacity: 0; animation-fill-mode: forwards; animation-duration: 0.55s; animation-name: fadeUp; }
.fade-up-delay-3 { animation-delay: 0.34s; opacity: 0; animation-fill-mode: forwards; animation-duration: 0.55s; animation-name: fadeUp; }

/* ---- MOBIILI ---- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-row { flex-wrap: wrap; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); min-width: 50%; }
  .desktop-arrow {display: none;}
  .mobile-arrow {display: inline;}
}

@media (max-width: 700px) {
  :root { --nav-height: auto; }

  .container { padding: 0 18px; }
  .section { padding: 56px 0; }

  .site-nav .container { flex-wrap: wrap; padding: 14px 18px; gap: 12px; }

  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
    padding-bottom: 12px;
  }

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

  .nav-links a { padding: 10px 0; width: 100%; border-radius: 0; color: rgba(255,255,255,0.85); }
  .nav-links .nav-cta { margin-left: 0; margin-top: 8px; text-align: center; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .page-hero { padding: 48px 0 40px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .desktop-arrow {display: none;}
  .mobile-arrow {display: inline;}
}

@media (max-width: 460px) {
  .grid-4 { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .stat-item { min-width: 100%; }
}

/* ============================================
   NAVIGAATIO – ALASVETOVALIKKO
   ============================================ */

.nav-links li.has-dropdown {
  position: relative;
}

.nav-links li.has-dropdown > a {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-links li.has-dropdown > a .dropdown-arrow {
  display: inline-block;
  font-size: 0.65rem;
  transition: transform 0.25s ease;
  line-height: 1;
  margin-top: 1px;
}

/* Alasvetovalikko – perusasetus (piilotettu) */
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
  min-width: 210px;
  z-index: 200;
  padding: 8px 0;
  border-top: 3px solid var(--color-primary);
}

.dropdown-menu li { list-style: none; }

.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--color-text);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.dropdown-menu li a:hover,
.dropdown-menu li a.active {
  background: var(--color-bg);
  color: var(--color-primary);
}

/* ---- DESKTOP (≥801px): hover avaa valikon ---- */
@media (min-width: 801px) {
  /* Laajennetaan hover-aluetta niin ettei valikko katoa heti */
  .nav-links li.has-dropdown > a {
    padding-bottom: 16px;
    margin-bottom: -16px;
  }

  /* Piilotettu oletuksena opacity-tekniikalla (ei display:none, 
     jotta transition toimii) */
  .nav-links li.has-dropdown .dropdown-menu {
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  }

  /* Hover näyttää valikon */
  .nav-links li.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links li.has-dropdown:hover > a .dropdown-arrow {
    transform: rotate(180deg);
  }

  /* Toggle-nappi piilotetaan desktopilla */
  .dropdown-toggle-btn { display: none; }
}

/* ---- MOBIILI (≤800px): toggle-nappi avaa valikon ---- */
@media (max-width: 800px) {

  /* Piilota a-tagin kolmio — toggle-napissa on oma */
  .nav-links li.has-dropdown > a .dropdown-arrow {
    display: none !important;
  }

  /* Toggle-nappi näkyviin */
  .dropdown-toggle-btn {
    display: flex;  
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 12px;
    color: rgba(255,255,255,0.85);
    font-size: 0.85rem;
    line-height: 1;
  } 
  
  .dropdown-toggle-btn .dropdown-arrow {
    color: rgba(255,255,255,0.85);
  }

  /* Palvelut-rivi: linkki + nappi rinnakkain */
  .nav-links li.has-dropdown {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .nav-links li.has-dropdown > a {
    flex: 1;
  }

  /* Valikko mobiilissa: staattinen, vasemmassa reunassa vihreä palkki */
  .dropdown-menu {
    position: static;
    display: none;           /* piilotettu oletuksena */
    opacity: 1;              /* ei opacity-trickiä mobiilissa */
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    border-top: none;
    border-left: 3px solid var(--color-primary);
    width: 100%;
    padding: 4px 0 4px 8px;
    background: rgba(255,255,255,0.06);
  }

  .dropdown-menu li a {
    padding: 8px 16px;
    color: rgba(255,255,255,0.75);
  }

  .dropdown-menu li a:hover,
  .dropdown-menu li a.active {
    background: rgba(255,255,255,0.08);
    color: var(--color-white);
  }

  /* *** KORJAUS: open-luokka on <li>:llä, ei .dropdown-menu:lla *** */
  .nav-links li.has-dropdown.open .dropdown-menu {
    display: block;
  }

  /* Nuoli kääntyy kun auki */
  .nav-links li.has-dropdown.open .dropdown-toggle-btn .dropdown-arrow {
    transform: rotate(180deg);
  }

  .dropdown-toggle-btn .dropdown-arrow {
    transition: transform 0.25s ease;
  }
}

.desktop-arrow {
  display: inline;
}

.mobile-arrow {
  display: none;
}

/* ── Vahvistusmodaali ── */
.modaali-tausta {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modaali-tausta.nakyvissa { display: flex; }

.modaali-laatikko {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  text-align: center;
}

.modaali-ikoni { font-size: 2.4rem; margin-bottom: 12px; }

.modaali-laatikko h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--color-text);
}

.modaali-aika {
  background: #e8f5e9;
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1rem;
  margin: 16px 0 24px;
}

.modaali-napit {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.modaali-napit .btn { min-width: 130px; }


