/* 
* Bisepro - Digitaalisen markkinoinnin blogi
* Tyylitiedosto
*/

/* -----------------------------
   Yleiset tyylit
----------------------------- */
:root {
  --primary-color: #3498db;
  --primary-dark: #2980b9;
  --secondary-color: #2ecc71;
  --secondary-dark: #27ae60;
  --tertiary-color: #e74c3c;
  --text-color: #333333;
  --text-light: #666666;
  --text-lighter: #999999;
  --bg-color: #ffffff;
  --bg-light: #f9f9f9;
  --bg-dark: #2c3e50;
  --border-color: #eeeeee;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --border-radius: 5px;
  --container-width: 1200px;
  --header-height: 80px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--bg-color);
  font-size: 16px;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

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

a:hover {
  color: var(--primary-dark);
}

ul,
ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

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

button,
.btn {
  cursor: pointer;
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  border: none;
  transition: var(--transition);
  text-align: center;
}

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

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

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

.secondary-btn:hover {
  background-color: var(--secondary-dark);
  color: white;
}

.tertiary-btn {
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.tertiary-btn:hover {
  background-color: var(--bg-light);
}

section {
  padding: 60px 0;
}

.page-header {
  background-color: var(--bg-dark);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  color: white;
  margin-bottom: 10px;
}

.page-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 20px;
  font-style: italic;
  color: var(--text-light);
  margin: 20px 0;
}

/* -----------------------------
   Header ja navigaatio
----------------------------- */
header {
  background-color: var(--bg-color);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

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

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

.logo img {
  height: 50px;
  width: auto;
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  color: var(--text-color);
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--primary-color);
}

nav ul li a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 2px 0;
  transition: var(--transition);
}

/* -----------------------------
   Hero-osio
----------------------------- */
.hero {
  background-color: var(--bg-dark);
  color: white;
  padding: 100px 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  color: white;
  margin-bottom: 10px;
}

.hero h2 {
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  font-weight: 400;
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
  margin: 0 auto 40px;
}

/* -----------------------------
   Blogipostit
----------------------------- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.post-card {
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.post-image {
  height: 200px;
  overflow: hidden;
}

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

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

.post-content {
  padding: 20px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-lighter);
}

.post-date,
.post-category,
.post-author {
  margin-right: 15px;
}

.post-category {
  color: var(--primary-color);
}

.post-content h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.post-content h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.post-content p {
  color: var(--text-light);
  margin-bottom: 15px;
}

.featured-posts {
  background-color: var(--bg-light);
}

.featured-posts h2 {
  text-align: center;
  margin-bottom: 40px;
}

/* -----------------------------
   Uutiskirjeen tilaus
----------------------------- */
.newsletter {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
}

.newsletter h2 {
  color: white;
  margin-bottom: 15px;
}

.newsletter p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 30px;
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
}

.newsletter-form button {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  background-color: var(--bg-dark);
  color: white;
  padding: 0 20px;
}

.newsletter-form button:hover {
  background-color: #1a252f;
}

/* -----------------------------
   Blogiartikkeli
----------------------------- */
.blog-post {
  padding: 60px 0;
}

.post-header {
  margin-bottom: 30px;
}

.post-featured-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}

.post-content {
  max-width: 800px;
  margin: 0 auto;
}

.post-content h2 {
  margin-top: 40px;
  margin-bottom: 20px;
}

.post-content h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.post-content ul,
.post-content ol {
  margin-bottom: 30px;
}

.post-content li {
  margin-bottom: 10px;
}

.post-tags {
  margin: 40px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.post-tags span {
  margin-right: 10px;
  font-weight: 500;
}

.tag {
  display: inline-block;
  background-color: var(--bg-light);
  color: var(--text-light);
  padding: 5px 10px;
  border-radius: 20px;
  margin: 5px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.tag:hover {
  background-color: var(--primary-color);
  color: white;
}

.post-share {
  margin: 30px 0;
  display: flex;
  align-items: center;
}

.post-share span {
  margin-right: 10px;
  font-weight: 500;
}

.social-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-light);
  color: var(--text-color);
  margin: 0 5px;
  transition: var(--transition);
}

.social-share a:hover {
  background-color: var(--primary-color);
  color: white;
}

.related-posts {
  margin-top: 60px;
}

.related-posts h3 {
  text-align: center;
  margin-bottom: 30px;
}

/* -----------------------------
   Tietoa meistä
----------------------------- */
.about-intro {
  background-color: var(--bg-light);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  margin-top: 0;
}

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

.mission-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.mission-item {
  text-align: center;
  padding: 30px;
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.mission-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.mission-icon {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.team {
  background-color: var(--bg-light);
}

.team h2 {
  text-align: center;
  margin-bottom: 40px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.team-member {
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  padding-bottom: 20px;
  transition: var(--transition);
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.team-member img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.team-member h3 {
  margin: 15px 0 5px;
  font-size: 1.2rem;
}

.team-member p {
  margin: 5px 20px 10px;
  color: var(--text-light);
}

.team-member .social-icons {
  margin-top: 15px;
}

.clients {
  text-align: center;
}

.clients h2 {
  margin-bottom: 40px;
}

.client-logos {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  align-items: center;
}

.client-logo {
  margin: 20px;
  opacity: 0.7;
  transition: var(--transition);
}

.client-logo:hover {
  opacity: 1;
}

.client-logo img {
  height: 60px;
  width: auto;
}

/* -----------------------------
   Yhteystiedot
----------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.contact-card {
  text-align: center;
  padding: 40px 20px;
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.contact-card h3 {
  margin-bottom: 15px;
}

.contact-card p {
  color: var(--text-light);
  margin-bottom: 5px;
}

.contact-form {
  background-color: var(--bg-light);
}

.contact-form h2 {
  text-align: center;
  margin-bottom: 40px;
}

form {
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

textarea {
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
}

.checkbox-group input {
  width: auto;
  margin-top: 5px;
  margin-right: 10px;
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: 400;
}

form button {
  width: 33%;
  margin-top: 10px;
  padding: 14px;
}

.map {
  padding-bottom: 0;
}

.map h2 {
  text-align: center;
  margin-bottom: 40px;
}

.map-container {
  height: 450px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.thank-you-message {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.thank-you-message.active {
  display: flex;
}

.thank-you-content {
  background-color: var(--bg-color);
  padding: 40px;
  border-radius: var(--border-radius);
  text-align: center;
  position: relative;
  max-width: 500px;
  width: 90%;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
}

.close-btn:hover {
  color: var(--tertiary-color);
}

/* -----------------------------
   Footer
----------------------------- */
footer {
  background-color: var(--bg-dark);
  color: white;
  padding: 60px 0 20px;
}

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

.footer-logo img {
  height: 50px;
  width: auto;
  margin-bottom: 15px;
}

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

.footer-links h3,
.footer-contact h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
}

.footer-contact p {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
}

.footer-contact i {
  margin-right: 10px;
  color: var(--primary-color);
}

.social-icons {
  margin-top: 20px;
  display: flex;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  margin-right: 10px;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
}

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

/* -----------------------------
   Evästeplakki
----------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: var(--bg-color);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: none;
}

.cookie-banner.active {
  display: block;
}

.cookie-content p {
  margin-bottom: 20px;
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.cookie-buttons button {
  margin-right: 10px;
}

.cookie-policy-link {
  margin-left: 10px;
  font-size: 0.9rem;
}

/* -----------------------------
   Responsiivisuus
----------------------------- */
@media (max-width: 1024px) {
  :root {
    --header-height: 70px;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 30px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-text {
    order: 2;
  }

  .about-image {
    order: 1;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  .mobile-menu-btn {
    display: flex;
  }

  nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    padding: 20px;
    transform: translateY(-100%);
    opacity: 0;
    transition: var(--transition);
    visibility: hidden;
  }

  nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  nav ul {
    flex-direction: column;
  }

  nav ul li {
    margin: 15px 0;
  }

  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero h2 {
    font-size: 1.4rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    border-radius: var(--border-radius);
    margin-bottom: 10px;
  }

  .newsletter-form button {
    border-radius: var(--border-radius);
    width: 100%;
  }

  .contact-form {
    padding: 40px 20px;
  }

  .cookie-banner {
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .hero {
    padding: 40px 0;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero h2 {
    font-size: 1.2rem;
  }

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

  section {
    padding: 40px 0;
  }

  .page-header {
    padding: 40px 0;
  }

  .post-meta {
    flex-direction: column;
  }

  .post-date,
  .post-category,
  .post-author {
    margin-bottom: 5px;
  }

  .cookie-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-buttons button,
  .cookie-policy-link {
    margin: 5px 0;
  }
}
