/*
Theme Name: Samulin Kakku v2
Theme URI: https://samulin-kakku.morko.posso.fi
Description: AutoWP v2 — täysin muokattava teema Samulin Kakku -erikoiskakkuyritykselle
Version: 2.0.0
Author: AutoWP
Text Domain: samulin-kakku-v2
*/

/* ===== CSS VARIABLES ===== */
:root {
  --autowp-primary: #FF1493;
  --autowp-primary-light: #FF69B4;
  --autowp-secondary: #8B2FC9;
  --autowp-secondary-dark: #5B1A9A;
  --autowp-accent: #FFE000;
  --autowp-turquoise: #00D4FF;
  --autowp-coral: #FF6B35;
  --autowp-lime: #AAFF00;
  --autowp-dark: #1A0A2E;
  --autowp-light: #FFFBF0;
  --autowp-white: #FFFFFF;
  --autowp-gray-light: #F5F0FF;
  --autowp-radius: 1rem;
  --autowp-radius-lg: 1.5rem;
  --autowp-radius-xl: 2rem;
  --autowp-shadow-primary: 0 8px 32px rgba(255,20,147,0.25);
  --autowp-shadow-secondary: 0 8px 32px rgba(139,47,201,0.2);
  --autowp-shadow-card: 0 4px 24px rgba(26,10,46,0.1);
  --autowp-transition: 0.3s ease;
  --autowp-font-heading: 'Fredoka', cursive;
  --autowp-font-body: 'Nunito', sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--autowp-font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--autowp-dark);
  background: var(--autowp-light);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--autowp-primary); text-decoration: none; transition: color var(--autowp-transition); }
a:hover { color: var(--autowp-secondary); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--autowp-font-heading);
  font-weight: 600;
  line-height: 1.2;
}

@media print {
  header, footer, nav, .site-footer, .hero-scroll-indicator, .cta-banner, .mobile-menu-toggle { display: none !important; }
}

/* ===== ICON STYLES ===== */
.autowp-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.autowp-icon--circle {
  padding: 0.75rem;
  border-radius: 50%;
  background: rgba(255,20,147,0.1);
}

/* ===== CONTAINERS ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--autowp-radius-xl);
  font-family: var(--autowp-font-body);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform var(--autowp-transition), box-shadow var(--autowp-transition), background var(--autowp-transition);
  text-decoration: none;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--autowp-primary);
  color: var(--autowp-white);
  box-shadow: var(--autowp-shadow-primary);
}
.btn-primary:hover {
  background: var(--autowp-secondary);
  box-shadow: var(--autowp-shadow-secondary);
  color: var(--autowp-white);
}

.btn-secondary {
  background: var(--autowp-accent);
  color: var(--autowp-dark);
  box-shadow: 0 4px 16px rgba(255,224,0,0.4);
}
.btn-secondary:hover {
  background: var(--autowp-coral);
  color: var(--autowp-white);
  box-shadow: 0 4px 16px rgba(255,107,53,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--autowp-white);
  border: 2px solid var(--autowp-white);
}
.btn-outline:hover {
  background: var(--autowp-white);
  color: var(--autowp-primary);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.btn-nav {
  padding: 0.6rem 1.4rem;
}

/* ===== MOBILE NAV ===== */
.main-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--autowp-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s, visibility 0.3s;
}

body.nav-open .main-nav {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.nav-open { overflow: hidden; }

.menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--autowp-white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.main-nav .mobile-menu-list {
  list-style: none;
  text-align: center;
  padding: 0;
}

.main-nav .mobile-menu-list li {
  margin: 1rem 0;
}

.main-nav .mobile-menu-list a {
  font-family: var(--autowp-font-heading);
  font-size: 2rem;
  color: var(--autowp-white);
  font-weight: 600;
  transition: color var(--autowp-transition);
}

.main-nav .mobile-menu-list a:hover { color: var(--autowp-accent); }

/* ===== SITE HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,251,240,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(255,20,147,0.1);
  box-shadow: 0 2px 20px rgba(26,10,46,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--autowp-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--autowp-primary);
  text-decoration: none;
}

.site-logo img {
  height: 48px;
  width: auto;
}

.site-logo:hover { color: var(--autowp-secondary); }

/* Desktop nav */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.desktop-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.desktop-nav .nav-list a {
  font-family: var(--autowp-font-body);
  font-weight: 700;
  color: var(--autowp-dark);
  font-size: 0.95rem;
  transition: color var(--autowp-transition);
  position: relative;
}

.desktop-nav .nav-list a::after {
  content: ;
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--autowp-primary);
  transition: width var(--autowp-transition);
}

.desktop-nav .nav-list a:hover { color: var(--autowp-primary); }
.desktop-nav .nav-list a:hover::after { width: 100%; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--autowp-dark);
  transition: all var(--autowp-transition);
  border-radius: 2px;
}

@media (max-width: 820px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: flex; }
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(135deg, var(--autowp-primary) 0%, var(--autowp-secondary) 60%, var(--autowp-dark) 100%);
  color: var(--autowp-white);
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: ;
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,224,0,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-section::after {
  content: ;
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,212,255,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,224,0,0.2);
  border: 1px solid var(--autowp-accent);
  color: var(--autowp-accent);
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title .highlight {
  background: linear-gradient(90deg, var(--autowp-accent), var(--autowp-turquoise));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 480px;
}

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

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: var(--autowp-radius-xl);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.hero-wave svg { display: block; }

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-image { order: -1; }
  .hero-image img { max-height: 280px; width: 100%; object-fit: cover; }
  .hero-section { padding: 4rem 0 3rem; }
}

/* ===== SECTIONS ===== */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-alt { background: var(--autowp-gray-light); }

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

.section-pink {
  background: linear-gradient(135deg, var(--autowp-primary) 0%, var(--autowp-secondary) 100%);
  color: var(--autowp-white);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.1rem;
  opacity: 0.75;
  margin-bottom: 3rem;
  max-width: 600px;
}

.section-header { margin-bottom: 3rem; }
.section-header.text-center { text-align: center; }
.section-header.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ===== SERVICES / CARDS GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--autowp-white);
  border-radius: var(--autowp-radius-xl);
  padding: 2rem;
  box-shadow: var(--autowp-shadow-card);
  transition: transform var(--autowp-transition), box-shadow var(--autowp-transition);
  border-top: 4px solid var(--autowp-primary);
  position: relative;
  overflow: hidden;
}

.service-card:nth-child(2) { border-top-color: var(--autowp-accent); }
.service-card:nth-child(3) { border-top-color: var(--autowp-turquoise); }
.service-card:nth-child(4) { border-top-color: var(--autowp-coral); }
.service-card:nth-child(5) { border-top-color: var(--autowp-lime); }
.service-card:nth-child(6) { border-top-color: var(--autowp-secondary); }

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--autowp-shadow-primary);
}

.service-card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
}

.service-card-icon .autowp-icon {
  color: var(--autowp-primary);
}

.service-card-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--autowp-dark);
}

.service-card-text {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.service-card-link {
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ===== FEATURE LIST ===== */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: rgba(255,255,255,0.08);
  border-radius: var(--autowp-radius);
  transition: background var(--autowp-transition);
}

.section-dark .feature-item { background: rgba(255,255,255,0.05); }
.section-dark .feature-item:hover { background: rgba(255,255,255,0.1); }

.feature-item-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--autowp-accent);
}

.feature-item-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.feature-item-text {
  font-size: 0.9rem;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .features-list { grid-template-columns: 1fr; }
}

/* ===== IMAGE + TEXT ===== */
.image-text-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.image-text-grid.reverse .image-text-image { order: 2; }
.image-text-grid.reverse .image-text-content { order: 1; }

.image-text-image img {
  border-radius: var(--autowp-radius-xl);
  box-shadow: var(--autowp-shadow-card);
}

.image-text-content .section-title { margin-bottom: 1rem; }
.image-text-content p { margin-bottom: 1rem; color: #555; }

@media (max-width: 768px) {
  .image-text-grid { grid-template-columns: 1fr; gap: 2rem; }
  .image-text-grid.reverse .image-text-image { order: 0; }
  .image-text-grid.reverse .image-text-content { order: 0; }
}

/* ===== PROCESS STEPS ===== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.process-step {
  text-align: center;
  padding: 2rem 1.5rem;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--autowp-primary), var(--autowp-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--autowp-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--autowp-white);
  margin: 0 auto 1rem;
  box-shadow: var(--autowp-shadow-primary);
}

.step-icon {
  margin: 0 auto 0.75rem;
  color: var(--autowp-primary);
}

.step-title {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.step-text {
  color: #666;
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .process-steps { grid-template-columns: 1fr; }
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--autowp-accent) 0%, var(--autowp-coral) 50%, var(--autowp-primary) 100%);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--autowp-dark);
  margin-bottom: 1rem;
}

.cta-banner-text {
  font-size: 1.15rem;
  color: var(--autowp-dark);
  opacity: 0.8;
  margin-bottom: 2rem;
}

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

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--autowp-white);
  border-radius: var(--autowp-radius-xl);
  padding: 2rem;
  box-shadow: var(--autowp-shadow-card);
  position: relative;
}

.testimonial-card::before {
  content: 201C;
  font-size: 4rem;
  font-family: var(--autowp-font-heading);
  color: var(--autowp-primary);
  opacity: 0.2;
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  line-height: 1;
}

.testimonial-quote {
  font-size: 1rem;
  font-style: italic;
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--autowp-dark);
}

.testimonial-role {
  font-size: 0.85rem;
  color: #888;
}

/* ===== FAQ ACCORDION ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(26,10,46,0.1);
}

.faq-item summary {
  padding: 1.25rem 0;
  font-family: var(--autowp-font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--autowp-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary .faq-toggle {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--autowp-primary);
  transition: transform var(--autowp-transition);
}

.faq-item[open] summary .faq-toggle { transform: rotate(45deg); }

.faq-answer {
  padding: 0 0 1.25rem;
  color: #555;
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--autowp-dark);
  color: rgba(255,255,255,0.85);
  padding: 4rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .site-logo { color: var(--autowp-accent); margin-bottom: 1rem; }
.footer-brand p { font-size: 0.9rem; opacity: 0.7; max-width: 280px; }

.footer-links h4 {
  font-size: 1rem;
  color: var(--autowp-accent);
  margin-bottom: 1rem;
  font-family: var(--autowp-font-heading);
}

.footer-links ul { list-style: none; padding: 0; }
.footer-links ul li { margin-bottom: 0.5rem; }
.footer-links ul a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  transition: color var(--autowp-transition);
  text-decoration: underline;
  text-decoration-color: transparent;
}
.footer-links ul a:hover {
  color: var(--autowp-accent);
  text-decoration-color: var(--autowp-accent);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-contact-item .autowp-icon {
  color: var(--autowp-accent);
  flex-shrink: 0;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.75);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, var(--autowp-secondary) 0%, var(--autowp-primary) 100%);
  color: var(--autowp-white);
  padding: 4rem 0;
  text-align: center;
}

.page-hero .section-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.5rem; }
.page-hero p { opacity: 0.85; font-size: 1.1rem; }

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  @keyframes float { from, to { transform: none; } }
}

/* ===== 404 PAGE ===== */
.error-404 { text-align: center; padding: 8rem 0; }
.error-404-number {
  font-size: 8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--autowp-primary), var(--autowp-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
}
.error-404 h1 { font-size: 2rem; margin-bottom: 1rem; }
.error-404 p { color: #666; margin-bottom: 2rem; }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 { font-size: 1.5rem; margin-bottom: 1rem; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255,20,147,0.05);
  border-radius: var(--autowp-radius);
  margin-bottom: 1rem;
}

.contact-item-icon { font-size: 1.5rem; }
.contact-item-text { font-size: 0.95rem; }
.contact-item-text a { color: var(--autowp-primary); font-weight: 600; }

.contact-form-wrap {
  background: var(--autowp-white);
  border-radius: var(--autowp-radius-xl);
  padding: 2.5rem;
  box-shadow: var(--autowp-shadow-card);
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--autowp-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid rgba(255,20,147,0.15);
  border-radius: var(--autowp-radius);
  font-family: var(--autowp-font-body);
  font-size: 1rem;
  color: var(--autowp-dark);
  background: var(--autowp-light);
  transition: border-color var(--autowp-transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--autowp-primary);
}

.form-group textarea { height: 120px; resize: vertical; }

.form-success {
  display: none;
  background: rgba(0,212,255,0.1);
  border: 2px solid var(--autowp-turquoise);
  padding: 1rem;
  border-radius: var(--autowp-radius);
  margin-top: 1rem;
  text-align: center;
  font-weight: 700;
  color: var(--autowp-dark);
}

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

/* ===== PRICING ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pricing-card {
  background: var(--autowp-white);
  border-radius: var(--autowp-radius-xl);
  padding: 2rem;
  box-shadow: var(--autowp-shadow-card);
  text-align: center;
  border: 2px solid transparent;
  transition: transform var(--autowp-transition), border-color var(--autowp-transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--autowp-primary);
}

.pricing-card.featured {
  border-color: var(--autowp-primary);
  background: linear-gradient(to bottom, #FFF0FA, var(--autowp-white));
}

@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

/* ===== WP NAV MENU RESETS ===== */
.nav-list .menu-item a,
.mobile-menu-list .menu-item a { text-decoration: none; }
.nav-list .current-menu-item > a { color: var(--autowp-primary); }
.mobile-menu-list .current-menu-item > a { color: var(--autowp-accent); }

/* ===== WP BLOCKS OVERRIDES ===== */
.wp-block-paragraph { line-height: 1.7; margin-bottom: 1rem; }
.wp-block-heading { font-family: var(--autowp-font-heading); }

/* ===== GALLERY STRIP ===== */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--autowp-radius-lg);
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

@media (max-width: 640px) {
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
}

/* === 2026-03-16: Section spacing + typography consistency === */

/* Osioiden välinen tila */
.autowp-hero + .autowp-card-grid,
.autowp-card-grid + .autowp-image-text,
.autowp-image-text + .autowp-card-grid,
.autowp-card-grid + .autowp-testimonial,
.autowp-testimonial + .autowp-cta-banner {
  margin-top: 0;
}

/* Varmista fontit kaikissa lohkoissa */
.autowp-card-grid__card-title,
.autowp-image-text__title,
.autowp-cta-banner__title,
.autowp-testimonial__title,
.autowp-hero__title {
  font-family: var(--autowp-font-heading) !important;
}

.autowp-card-grid__card-text,
.autowp-image-text__body,
.autowp-cta-banner__text,
.autowp-testimonial__quote,
.autowp-hero__subtitle {
  font-family: var(--autowp-font-body) !important;
}

/* Card-grid title: suurempi ja Fredoka */
.autowp-card-grid__card-title {
  font-size: 1.3rem;
  font-weight: 600;
}

/* === Fix font weights to match loaded Fredoka (400,600,700) === */
.autowp-hero__title { font-weight: 700 !important; }
.autowp-card-grid__title { font-weight: 600 !important; }
.autowp-card-grid__card-title { font-weight: 600 !important; color: var(--autowp-dark) !important; }
.autowp-card-grid__card-text { color: #4a3d5e !important; }
.autowp-image-text__title { font-weight: 600 !important; }
.autowp-testimonial__title { font-weight: 600 !important; }
.autowp-cta-banner__title { font-weight: 700 !important; }

/* Section title sizing to match Directus (h2 = ~2.8rem) */
.autowp-card-grid__title,
.autowp-testimonial__title,
.autowp-image-text__title {
  font-size: clamp(1.75rem, 3.5vw, 2.8rem) !important;
  color: var(--autowp-dark) !important;
}

/* === Alternating section backgrounds (like Directus) === */
.autowp-card-grid:nth-of-type(1) {
  background: var(--autowp-light);
}
.autowp-card-grid:nth-of-type(2) {
  background: var(--autowp-gray-light);
}
.autowp-testimonial {
  background: var(--autowp-light);
}

/* === 2026-03-16 v2: Background variation + hero fix + polish === */

/* Poista aiemmat nth-of-type säännöt */

/* Hero: varmista ettei leikkaa */
.autowp-hero { overflow: visible !important; }

/* Taustavärit: kaikki lohkot eksplisiittisesti */
/* 1. Hero: teeman tausta (tumma) - hoituu inline style */
/* 2. Ensimmäinen card-grid (Mitä teemme): lämmin cream */
.autowp-hero + .autowp-card-grid {
  background: #FFF8F0 !important;
}
/* 3. Miksi-osio: tumma - hoituu inline style */
/* 4. Toinen card-grid (Miten se toimii): vaalea laventeli */
.autowp-image-text + .autowp-card-grid {
  background: var(--autowp-gray-light, #F5F0FF) !important;
}
/* 5. Testimonial: lämmin cream */
.autowp-testimonial {
  background: #FFF8F0 !important;
}
/* 6. CTA-banner: teeman primaariväri - hoituu inline style */

/* Miksi-osion otsikko: white */
.autowp-image-text--has-bg .autowp-card-grid__title,
.autowp-image-text--has-bg .autowp-image-text__title {
  color: #ffffff !important;
}

/* Hero-painikkeet: parempi kontrasti */
.autowp-hero__button--primary {
  background: var(--autowp-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(255,20,147,0.35) !important;
}
.autowp-hero__button--primary:hover {
  box-shadow: 0 8px 30px rgba(255,20,147,0.5) !important;
}

/* === Vahvempi taustavärivaihtelu === */
/* Mitä teemme: lämmin cream */
.autowp-hero + .autowp-card-grid {
  background: #FFF5EB !important;
}

/* Miten se toimii: selkeä laventeli */
.autowp-image-text + .autowp-card-grid {
  background: #F0E6FF !important;
}

/* Testimonial: lämmin cream */
.autowp-testimonial {
  background: #FFF5EB !important;
}

/* Card-text väri: lämmin, ei harmaa */
.autowp-card-grid__card-text {
  color: #5B4A6F !important;
}

/* Testimonial quote: lämmin väri */
.autowp-testimonial__quote {
  color: #4A3D5E !important;
  font-style: normal !important;
}

/* === Hero font rendering === */
.autowp-hero__title {
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: optimizeLegibility !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
}

/* Secondary button: thicker border */
.autowp-hero__button--secondary {
  border-width: 2px !important;
  border-color: rgba(255,255,255,0.6) !important;
}
.autowp-hero__button--secondary:hover {
  border-color: #fff !important;
  background: rgba(255,255,255,0.15) !important;
}

/* === FIX: Dark bg sections — body text must be white === */
.autowp-image-text--has-bg .autowp-image-text__body,
.autowp-image-text--has-bg .autowp-image-text__para,
.autowp-image-text--has-bg .autowp-image-text__content {
  color: rgba(255,255,255,0.9) !important;
}

/* === FIX: Nav overlap on subpages === */
.page:not(.home) .site-content,
.page:not(.home) main {
  padding-top: 5rem;
}

/* === FIX: Hero secondary button contrast (ghost button) === */
.autowp-hero__button--secondary {
  background: rgba(255,255,255,0.15) !important;
  color: #ffffff !important;
  border: 2px solid rgba(255,255,255,0.6) !important;
  backdrop-filter: blur(4px) !important;
}
.autowp-hero__button--secondary:hover {
  background: rgba(255,255,255,0.25) !important;
  border-color: #ffffff !important;
}

/* === FIX: Footer text contrast === */
.site-footer p,
.site-footer .footer-description {
  color: rgba(255,255,255,0.75) !important;
}
.site-footer a {
  color: rgba(255,255,255,0.9) !important;
  text-decoration: underline !important;
}

/* === FIX: Mobile horizontal overflow === */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

/* Hero pseudo-element overflow fix for mobile */
@media (max-width: 767px) {
  .autowp-hero::before {
    display: none;
  }
  .autowp-cta-banner {
    overflow: hidden;
  }
}

/* === FIX: Mobile touch targets & readability === */
@media (max-width: 767px) {
  /* Lue lisää links: larger touch target */
  .autowp-card-grid__card-link {
    display: inline-block;
    padding: 0.75rem 0;
    min-height: 44px;
    line-height: 44px;
  }
  
  /* Miksi section: better spacing */
  .autowp-image-text--has-bg .autowp-image-text__para {
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 1rem;
  }
  
  /* Footer links touch target */
  .site-footer a {
    display: inline-block;
    padding: 0.25rem 0;
    min-height: 44px;
    line-height: 2;
  }
}
