/* 
 * Corefiner - Nordic Executive Minimalism
 * Staattinen CSS-versio
 */

/* CSS Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* CSS Variables */
:root {
  /* Colors */
  --navy: #1a365d;
  --navy-light: #2d4a6f;
  --gold: #b8860b;
  --gold-light: #d4a017;
  --cream: #fafaf9;
  --white: #ffffff;
  --warm-gray: #6b7280;
  --muted: #9ca3af;
  --border: #e5e5e5;
  --foreground: #1f2937;
  
  /* Fonts */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, sans-serif;
  
  /* Spacing */
  --container-max: 1280px;
  --radius: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

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

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

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (min-width: 768px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 1.75rem; }
}

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

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

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

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(26, 54, 93, 0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: none;
  gap: 2rem;
  list-style: none;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy);
  padding: 0.5rem 0;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: none;
}

@media (min-width: 768px) {
  .nav-cta {
    display: inline-flex;
  }
}

/* Mobile Menu */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--navy);
  transition: all 0.3s ease;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--white);
  padding: 2rem;
  z-index: 99;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-menu a {
  font-size: 1.25rem;
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

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

.btn-primary:hover {
  background-color: var(--navy-light);
  color: var(--white);
}

.btn-secondary {
  background-color: var(--gold);
  color: var(--navy);
}

.btn-secondary:hover {
  background-color: var(--gold-light);
  color: var(--navy);
}

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

.btn-outline:hover {
  background-color: var(--navy);
  color: var(--white);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
  padding: 4rem 0;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .hero {
    padding: 6rem 0;
  }
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 1rem;
  background-color: rgba(26, 54, 93, 0.05);
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero h1 .highlight {
  color: var(--gold);
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: rgba(26, 54, 93, 0.8);
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.5rem;
  }
}

.hero-text {
  font-size: 1.125rem;
  color: var(--warm-gray);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hero-stat {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background-color: var(--white);
  padding: 1rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
}

.hero-stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
}

.hero-stat-label {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Section Styles */
.section {
  padding: 4rem 0;
}

@media (min-width: 1024px) {
  .section {
    padding: 6rem 0;
  }
}

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

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

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

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

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--warm-gray);
}

.section-divider {
  width: 5rem;
  height: 4px;
  background-color: var(--gold);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.benefit-card {
  background-color: var(--cream);
  padding: 2rem;
  border-radius: var(--radius-xl);
  border-left: 4px solid var(--gold);
}

.benefit-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.benefit-card p {
  color: var(--warm-gray);
}

/* Ideatehdas Section */
.ideatehdas-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .ideatehdas-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.ideatehdas-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.section-navy .ideatehdas-label {
  color: var(--gold);
}

.ideatehdas-content h2 {
  margin-bottom: 1.5rem;
}

.ideatehdas-block {
  margin-bottom: 1.5rem;
}

.ideatehdas-block h3 {
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.section-navy .ideatehdas-block p {
  color: rgba(255, 255, 255, 0.8);
}

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

.ideatehdas-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ideatehdas-feature-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(184, 134, 11, 0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ideatehdas-feature-icon svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
}

.ideatehdas-feature span {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Process Visual */
.process-visual {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}

@media (min-width: 1024px) {
  .process-visual {
    padding: 2rem;
  }
}

.process-visual h3 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.process-step-number {
  width: 48px;
  height: 48px;
  background-color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  flex-shrink: 0;
}

.process-step-content h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.process-step-content p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.process-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

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

.process-stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}

.process-stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Case Solutions */
.case-solution {
  display: grid;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}

@media (min-width: 1024px) {
  .case-solution {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
  
  .case-solution:nth-child(even) .case-solution-image {
    order: 2;
  }
}

.case-solution:last-child {
  margin-bottom: 0;
}

.case-solution-image img {
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.case-solution-badge {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  background-color: rgba(184, 134, 11, 0.1);
  color: var(--gold);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.case-solution-content h3 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.case-solution-goal,
.case-solution-desc {
  color: var(--warm-gray);
  margin-bottom: 1rem;
}

.case-solution-goal strong,
.case-solution-desc strong {
  color: var(--navy);
}

.case-benefits {
  background-color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.case-benefits h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.case-benefits ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.case-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.case-benefits li svg {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.case-benefits li span {
  color: var(--warm-gray);
}

.case-result {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(184, 134, 11, 0.2);
  font-weight: 500;
  color: var(--navy);
}

/* Services Section */
.services-card {
  background-color: var(--cream);
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid var(--border);
}

.services-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.services-icon {
  width: 56px;
  height: 56px;
  background-color: rgba(26, 54, 93, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.services-icon svg {
  width: 28px;
  height: 28px;
  color: var(--navy);
}

.services-header h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.services-header p {
  color: var(--muted);
}

.services-desc {
  color: var(--foreground);
  margin-bottom: 1.5rem;
}

.services-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-item {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  border: 1px solid var(--border);
}

.service-item h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.service-item p {
  font-size: 0.875rem;
  color: var(--muted);
}

.services-panel {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.services-panel-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(26, 54, 93, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.services-panel-icon svg {
  width: 20px;
  height: 20px;
  color: var(--navy);
}

.services-panel h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.services-panel p {
  color: var(--muted);
}

/* Clients Section */
.clients-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .clients-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.client-card {
  background-color: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid var(--border);
}

.client-card-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(26, 54, 93, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.client-card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--navy);
}

.client-card h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.client-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.client-card li {
  font-size: 0.875rem;
  color: var(--muted);
}

/* CTA Section */
.cta {
  text-align: center;
}

.cta h2 {
  margin-bottom: 1.5rem;
}

.cta p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Contact Page */
.contact-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.contact-info h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .contact-info h1 {
    font-size: 2.5rem;
  }
}

.contact-info > p {
  color: var(--warm-gray);
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(26, 54, 93, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 20px;
  height: 20px;
  color: var(--navy);
}

.contact-item-label {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.contact-item-value {
  font-weight: 500;
  color: var(--navy);
}

.contact-item-value a {
  color: var(--navy);
}

.contact-item-value a:hover {
  color: var(--gold);
}

/* Contact Form */
.contact-form-wrapper {
  background-color: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border);
}

.contact-form-wrapper h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.contact-form-wrapper > p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

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

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.form-group label .required {
  color: #dc2626;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

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

.form-submit {
  width: 100%;
}

.form-success {
  background-color: #dcfce7;
  border: 1px solid #86efac;
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  color: #166534;
}

/* Footer */
.footer {
  background-color: var(--navy);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-brand h3 {
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links h4 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-contact h4 {
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-contact a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.footer-contact a:hover {
  color: var(--gold);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.footer-legal a:hover {
  color: var(--gold);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-muted { color: var(--muted); }
.text-white { color: var(--white); }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.max-w-3xl { max-width: 48rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Icons (inline SVG placeholders) */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
}
