/* --- KIPINA LOMAT MODERN NORDIC SAAS STYLES --- */
:root {
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  
  /* Vaalea teema (oletus) */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: rgba(0, 0, 0, 0.03);
  
  --text-primary: #18181b;
  --text-secondary: #52525b;
  
  --aurora-green: #10b981; /* Syvempi vihreä vaalealle taustalle */
  --ice-blue: #0284c7;
  
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.08);
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme='dark'] {
  --bg-primary: #0a0a0b;
  --bg-secondary: #141416;
  --bg-tertiary: rgba(255, 255, 255, 0.03);
  
  --text-primary: #f8f9fa;
  --text-secondary: #a1a1aa;
  
  --aurora-green: #34d399; /* Raikas vihreä tummalle */
  --ice-blue: #38bdf8;
  
  --glass-bg: rgba(10, 10, 11, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.8);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 2rem;
}

/* --- BUTTONS --- */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--aurora-green) 0%, var(--ice-blue) 100%);
  color: #000;
  font-weight: 600;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-xl);
  font-family: var(--font-heading);
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(52, 211, 153, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 211, 153, 0.5);
  color: #000;
}

.btn-primary-sm {
  display: inline-block;
  background: linear-gradient(135deg, var(--aurora-green) 0%, var(--ice-blue) 100%);
  color: #000 !important;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-xl);
  font-family: var(--font-heading);
}

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

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  padding: 0.8rem 2rem;
  border-radius: var(--radius-xl);
  font-family: var(--font-heading);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--bg-tertiary);
  border-color: rgba(255, 255, 255, 0.2);
}

/* --- NAVIGATION --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: var(--transition);
  padding: 1.5rem 0;
}

.navbar.scrolled {
  padding: 1rem 0;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.logo span {
  font-weight: 300;
  color: var(--text-secondary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links li a {
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links li a:not(.btn-primary-sm):hover {
  color: var(--aurora-green);
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle:hover {
  background: var(--bg-tertiary);
  color: var(--aurora-green);
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1.05); /* helps with parallax/animations */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10, 10, 11, 0.4) 0%, rgba(10, 10, 11, 1) 100%);
  z-index: -1;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin-top: 5rem;
}

.hero-title {
  font-size: clamp(3rem, 5vw, 5rem);
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- PRICING SECTION --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.price-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  transition: var(--transition);
}

.price-card:hover {
  transform: translateY(-5px);
  border-color: var(--aurora-green);
  box-shadow: 0 10px 30px rgba(0,255,163,0.1);
}

.price-header h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.price-header.highlight h3 {
  color: var(--aurora-green);
}

.price {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.price span {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.extras-grid {
  margin-top: 3rem;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 2.5rem;
}

.extras-grid h4 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--aurora-green);
}

.extras-grid ul {
  list-style: none;
}

.extras-grid ul li {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
}

.extras-grid ul li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.extras-grid ul li span {
  font-weight: 500;
  color: var(--text-primary);
}

/* --- GALLERY SECTION --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 3rem;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

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

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* --- LIGHTBOX --- */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content-wrapper {
  position: relative;
  margin: auto;
  max-width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.3s ease;
}

.lightbox-image.loaded {
  opacity: 1;
  transform: scale(1);
}

.lightbox-caption {
  margin-top: 1rem;
  color: #fff;
  text-align: center;
  font-size: 1.1rem;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.5px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 1001;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: var(--aurora-green);
  text-decoration: none;
  cursor: pointer;
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition);
  backdrop-filter: blur(5px);
  z-index: 1001;
}

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

.lightbox-btn.prev {
  left: 5%;
}

.lightbox-btn.next {
  right: 5%;
}

@media (max-width: 768px) {
  .lightbox-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  .lightbox-btn.prev { left: 10px; }
  .lightbox-btn.next { right: 10px; }
  .lightbox-image { max-height: 70vh; }
}

/* --- CONTACT SECTION --- */
.contact-section {
  padding: 6rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.contact-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  text-align: center;
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: var(--aurora-green);
  box-shadow: 0 10px 30px rgba(0,255,163,0.1);
}

.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--aurora-green);
}

.contact-card h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1rem;
  color: var(--text-primary);
}

.mt-2 {
  margin-top: 0.5rem;
}

.text-sm {
  font-size: 0.875rem;
}

.instagram-link {
  color: var(--aurora-green);
  font-weight: 500;
}

.instagram-link:hover {
  text-decoration: underline;
}

.map-container {
  width: 100%;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  background: var(--bg-secondary);
  padding: 10px;
  border: 1px solid var(--glass-border);
}

.map-container iframe {
  border-radius: calc(var(--border-radius) - 5px) !important;
  display: block;
}

.hero-subtitle {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* --- SECTIONS --- */
.section {
  padding: 8rem 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-desc {
  max-width: 600px;
  margin: 0 auto 4rem;
  font-size: 1.1rem;
}

/* --- ABOUT SECTION --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2rem;
}

.feature-list {
  margin-top: 2.5rem;
}

.feature-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--aurora-green);
  font-weight: bold;
}

.about-image-wrapper {
  position: relative;
}

.about-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  pointer-events: none;
}

.about-img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.about-image-card:hover .about-img {
  transform: scale(1.05);
}

.img-badge {
  position: absolute;
  bottom: 2rem;
  right: -1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  font-family: var(--font-heading);
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 10;
}

/* --- SERVICES GRID --- */
.features-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

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

.feature-card {
  background: var(--bg-primary);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  text-align: left;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.card-img-wrapper {
  height: 220px;
  overflow: hidden;
  position: relative;
}

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

.feature-card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.card-img-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-primary) 0%, transparent 100%);
  pointer-events: none;
}

.card-content {
  padding: 2rem;
}

.card-content h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* --- CTA SECTION --- */
.cta-section {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cta-bg {
  z-index: -2;
}

.cta-overlay {
  background: linear-gradient(to bottom, var(--bg-primary) 0%, rgba(10, 10, 11, 0.7) 50%, var(--bg-primary) 100%);
}

.cta-content {
  max-width: 600px;
}

/* --- FOOTER --- */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 4rem 0 2rem;
}

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

.footer-brand h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-brand span {
  font-weight: 300;
  color: var(--text-secondary);
}

.footer-contact h3 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 2rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* --- ANIMATIONS --- */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  animation: revealUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { animation-delay: 0.2s; transition-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; transition-delay: 0.4s; }

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* simple mobile nav override */
  }
  
  .about-grid, .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .img-badge {
    position: static;
    display: inline-block;
    margin-top: 1rem;
    transform: none;
  }
}
