/* css/styles.css - Psykoterapia Oulu - Jenni Pylväs */

:root {
  --bg-main: #F7F5F2;
  --bg-light: #DDE7F0;
  --bg-section: #E8DFD3;
  --accent-teal: #6BA8A9;
  --accent-green: #2F4F4F;
  --accent-blue-dark: #1F2A44;
  --text-main: #1F2A44;
  --text-muted: #6B6B6B;
  --white: #ffffff;
}

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

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* Layout */
.container {
  width: min(1120px, 100% - 3rem);
  margin: 0 auto;
}

.section {
  padding: 4rem 0;
}

/* Header / nav */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(247, 245, 242, 0.92);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

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

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", serif;
  color: var(--white);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}

.logo-text {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.nav-links a:not(.btn) {
  color: var(--accent-green);
  opacity: 0.85;
  transition: opacity 0.2s;
}

.nav-links a:not(.btn):hover {
  opacity: 1;
}

.nav-links a:not(.btn).active {
  opacity: 1;
  font-weight: 600;
  color: var(--accent-green);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.6rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.15s ease-out;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-green);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(47, 79, 79, 0.2);
}

.btn-primary:hover {
  background: #254040;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(47, 79, 79, 0.3);
}

/* Mobile menu */
.mobile-menu-toggle {
  display: none;
  background: var(--accent-green);
  color: var(--white);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at top, #d6e4f2 0, #cfdde9 40%, #b7c6d6 80%);
  color: var(--text-main);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
  padding: 4.5rem 0 4.5rem;
}

/* Etusivun H1 - näyttää pill-elementiltä, mutta semanttisesti H1 */
h1.hero-pill {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent-blue-dark);
  font-family: "Inter", system-ui, sans-serif;
  margin-bottom: 0.75rem;
}

/* Etusivun H2 (Jenni Pylväs) - iso pääotsikko */
.hero-text h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 3vw + 1.5rem, 3rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.hero-text h2 span {
  display: block;
}

.hero-subtitle {
  color: var(--text-muted);
  max-width: 30rem;
  margin-bottom: 1.75rem;
  font-size: 0.98rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-visual {
  position: relative;
  height: 100%;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card {
  width: 100%;
  max-width: 360px;
  background: rgba(247, 245, 242, 0.95);
  border-radius: 24px;
  padding: 1.8rem 1.6rem;
  box-shadow: 0 20px 45px rgba(0,0,0,0.18);
  backdrop-filter: blur(4px);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top, rgba(219, 235, 245, 0.8) 0, transparent 60%);
  opacity: 0.7;
}

.hero-card-inner {
  position: relative;
}

.hero-card-top {
  margin-bottom: 1.4rem;
}

.hero-card-title {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.hero-card-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-card-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.hero-card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.hero-card-value {
  font-size: 0.92rem;
  font-weight: 500;
}

.hero-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(107, 168, 169, 0.12);
  color: var(--accent-teal);
  font-size: 0.78rem;
}

.hero-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.2rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-card a {
  color: var(--accent-teal);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.hero-card a:hover {
  color: var(--accent-green);
  text-decoration: underline;
}

/* Content sections */
.content-section {
  max-width: 800px;
  margin: 0 auto;
}

.content-section h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.content-section h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  color: var(--accent-green);
}

.content-section p {
  margin-bottom: 1.2rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.content-section ul {
  margin-left: 1.5rem;
  margin-bottom: 1.2rem;
}

.content-section ul li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

/* Features grid */
.features {
  background: var(--bg-main);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

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

.feature-item {
  text-align: center;
  padding: 1.5rem 1.2rem 1.8rem;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 12px 26px rgba(0,0,0,0.04);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  margin: 0 auto 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  color: var(--accent-blue-dark);
  font-size: 1.2rem;
}

.feature-title {
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.98rem;
}

.feature-text {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Section titles */
.section-title {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
  text-align: center;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 34rem;
  margin: 0 auto 2.5rem;
}

/* Services */
.services {
  background: var(--bg-section);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
}

.service-card {
  border-radius: 20px;
  background: var(--white);
  padding: 1.8rem 1.5rem 2rem;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.12);
}

.service-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--accent-green);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.service-price {
  font-weight: 600;
  color: var(--accent-teal);
  margin-top: 1rem;
  font-size: 0.95rem;
}

/* Price table */
.price-table {
  background: var(--white);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  margin-bottom: 2rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.price-row:last-child {
  border-bottom: none;
}

.price-label {
  font-weight: 500;
}

.price-value {
  color: var(--accent-teal);
  font-weight: 600;
}

.kela-info {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: 16px;
  margin: 2rem 0;
}

.kela-info h4 {
  color: var(--accent-green);
  margin-bottom: 0.8rem;
}

/* Therapist */
.therapist {
  background: var(--bg-main);
}

.therapist-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr);
  gap: 2.6rem;
  align-items: start;
}

.therapist-photo-wrap {
  max-width: 340px;
  margin: 0 auto;
  position: relative;
}

.therapist-photo-bg {
  position: absolute;
  inset: 12% -10% -10%;
  border-radius: 30px;
  background: linear-gradient(160deg, #dfe7ee, #f6efe6);
  z-index: 0;
}

.therapist-photo {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0,0,0,0.16);
  background: #ddd;
  height: 420px;
}

.therapist-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.therapist-text h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.7rem;
  margin-bottom: 0.2rem;
}

.therapist-role {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.therapist-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.6rem;
}

.therapist-body p {
  margin-bottom: 1rem;
}

.education-list {
  list-style: none;
  margin-left: 0;
}

.education-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.education-list li:before {
  content: "✓ ";
  color: var(--accent-teal);
  font-weight: bold;
  margin-right: 0.5rem;
}

/* Contact */
.contact {
  background: var(--bg-light);
}

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

.contact-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.contact-card h3 {
  font-family: "Playfair Display", serif;
  color: var(--accent-green);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.contact-card p {
  margin-bottom: 0.8rem;
  color: var(--text-muted);
}

.contact-card a {
  color: var(--accent-teal);
  font-weight: 600;
}

.contact-card a:hover {
  text-decoration: underline;
}

.map-placeholder {
  background: var(--bg-section);
  height: 300px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

/* Google Maps iframe */
.google-map {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 20px;
  display: block;
}

@media (max-width: 700px) {
  .google-map {
    height: 300px;
  }
}

/* Footer */
footer {
  background: var(--accent-green);
  color: var(--white);
  padding: 2.2rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 2rem;
  font-size: 0.9rem;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

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

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 1.8rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  text-align: center;
}

.footer-bottom a {
  color: inherit;
  transition: opacity 0.2s;
}

.footer-bottom a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 3.5rem 0;
  }

  /* Poistettu order: -1, jotta teksti tulee ensin mobiilissa */
  .hero-visual {
    margin-top: 2rem;
  }

  .features-grid,
  .services-grid,
  .therapist-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-card {
    margin: 0 auto;
  }

  .therapist-photo {
    height: 360px;
  }
}

@media (max-width: 700px) {
  /* Mobiilivalikko */
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 0.8rem;
  }

  .hero-inner {
    padding: 3rem 0;
  }

  /* H1 otsikot pienemmiksi mobiilissa */
  h1 {
    font-size: 1.8rem !important;
    word-wrap: break-word;
  }

  .features-grid,
  .services-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3rem 0;
  }

  .therapist-grid {
    grid-template-columns: 1fr;
  }

  .therapist-photo {
    height: 320px;
  }
}