/*
Theme Name: Vectura Theme
Theme URI: https://vectura.morko.posso.fi
Author: Arthur S.
Author URI: https://vectura.morko.posso.fi
Description: Custom theme for Vectura Solutions Oy
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vectura-theme
*/

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --color-primary: #1B2A4A;
  --color-primary-light: #2D4A7A;
  --color-accent: #00D4AA;
  --color-accent-dark: #00B894;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F7F9FC;
  --color-bg-dark: #0F172A;
  --color-text: #1E293B;
  --color-text-muted: #64748B;
  --color-text-inverse: #FFFFFF;
  --color-border: #E2E8F0;
  
  --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

button, .btn {
  cursor: pointer;
  font-family: var(--font-base);
  border: none;
  background: none;
  transition: all 0.2s ease;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-md);
}

h1 { font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--spacing-md);
  max-width: 75ch;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-3xl) 0;
}

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

.section-dark {
  background: var(--color-bg-dark);
  color: var(--color-text-inverse);
}

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

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

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  padding: var(--spacing-md) 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
}

.main-nav ul {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
}

.main-nav a {
  font-weight: 500;
  color: var(--color-text);
  padding: var(--spacing-xs) 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-primary);
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
}

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

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.mobile-nav-close svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-primary);
}

.mobile-nav ul {
  list-style: none;
  padding: var(--spacing-md);
}

.mobile-nav li {
  margin-bottom: var(--spacing-sm);
}

.mobile-nav a {
  display: block;
  padding: var(--spacing-sm);
  font-weight: 500;
  color: var(--color-text);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--color-bg-alt);
  color: var(--color-accent);
}

.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
  min-width: 44px;
}

.btn:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

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

.btn-primary:hover,
.btn-primary:focus {
  background: var(--color-accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover,
.btn-outline:focus {
  background: var(--color-primary);
  color: white;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 600px;
  display: flex;
  align-items: center;
  /* background removed — hero-bg.png used via inline style */
  position: relative;
  overflow: hidden;
}

/* removed — replaced by hero-overlay div */
/* removed — replaced by hero-overlay div */
/* removed — replaced by hero-overlay div */
/* removed — replaced by hero-overlay div */
/* removed — replaced by hero-overlay div */
/* removed — replaced by hero-overlay div */
/* removed — replaced by hero-overlay div */
/* removed — replaced by hero-overlay div */
  opacity: 0.3;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  color: #FFFFFF !important;
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
}

.hero-subtitle {
  color: rgba(255,255,255,0.8) !important;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-xl);
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-content p {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--color-text);
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.service-card {
  background: white;
  padding: var(--spacing-xl);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

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

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
  border-radius: 12px;
  margin-bottom: var(--spacing-md);
}

.service-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-accent);
}

.service-card h3 {
  color: var(--color-primary);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.service-card p {
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-md);
}

.service-link {
  color: var(--color-accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.service-link:hover {
  color: var(--color-accent-dark);
}

/* ============================================
   CLIENTS SECTION
   ============================================ */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.client-logo {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 8px;
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.client-logo:hover {
  box-shadow: var(--shadow-md);
}

.client-placeholder {
  width: 100%;
  height: 40px;
  background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
  border-radius: 4px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.testimonial {
  background: white;
  padding: var(--spacing-xl);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-accent);
}

.testimonial-quote {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.testimonial-info {
  flex: 1;
}

.testimonial-name {
  font-weight: 600;
  color: var(--color-primary);
}

.testimonial-role {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: var(--color-primary);
  color: white;
  text-align: center;
}

.cta-section h2 {
  color: white;
}

.cta-section p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
  color: white;
  margin-bottom: var(--spacing-md);
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.footer-section a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  margin-top: var(--spacing-xl);
}

.contact-info h3 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
}

.contact-item {
  margin-bottom: var(--spacing-lg);
}

.contact-item h4 {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-xs);
}

.contact-item p {
  color: var(--color-text);
  font-size: 1.125rem;
}

.contact-form {
  background: var(--color-bg-alt);
  padding: var(--spacing-xl);
  border-radius: 12px;
}

.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--spacing-sm) var(--spacing-md);
  border: 2px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-base);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

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

/* ============================================
   ANIMATIONS
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.6s ease forwards;
  }
  
  @keyframes fadeIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .service-card,
  .testimonial,
  .client-logo {
    animation: fadeIn 0.6s ease forwards;
  }
  
  .service-card:nth-child(1) { animation-delay: 0.1s; }
  .service-card:nth-child(2) { animation-delay: 0.2s; }
  .service-card:nth-child(3) { animation-delay: 0.3s; }
  .service-card:nth-child(4) { animation-delay: 0.4s; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .hero {
    min-height: 500px;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .section {
    padding: var(--spacing-2xl) 0;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

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

/* ============================================
   HERO — Enhanced with background image & animations
   ============================================ */

.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--color-primary, #1B2A4A);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(27, 42, 74, 0.85) 0%,
        rgba(27, 42, 74, 0.6) 50%,
        rgba(27, 42, 74, 0.75) 100%
    );
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
  color: #FFFFFF !important;
    color: #FFFFFF;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    max-width: 700px;
}

.hero-subtitle {
  color: rgba(255,255,255,0.8) !important;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.6;
    max-width: 580px;
    margin-bottom: 2.5rem;
}

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

.hero .btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #FFFFFF;
    background: transparent;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hero .btn-outline:hover {
    border-color: #FFFFFF;
    background: rgba(255, 255, 255, 0.1);
}

.hero .btn-primary {
    background: var(--color-accent, #00D4AA);
    color: #0F172A;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.hero .btn-primary:hover {
    background: var(--color-accent-dark, #00B894);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 212, 170, 0.3);
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.5);
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Fade-in animation */
.hero-content.fade-in {
    animation: heroFadeIn 0.8s ease-out forwards;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Title letter-by-letter stagger effect via CSS */
.hero-title-animated {
    animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
  color: rgba(255,255,255,0.8) !important;
    opacity: 0;
}

.hero-buttons {
    animation: slideUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
}

/* Subtle background parallax on scroll (CSS only) */
@media (prefers-reduced-motion: no-preference) {
    .hero {
        background-attachment: fixed;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-content.fade-in,
    .hero-title-animated,
    .hero-subtitle,
    .hero-buttons {
        animation: none;
        opacity: 1;
    }
    .hero-scroll-indicator {
        animation: none;
    }
}

/* Mobile hero */
@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
        background-attachment: scroll;
    }
    .hero h1 {
  color: #FFFFFF !important;
        font-size: 2.25rem;
    }
}
