/*
Theme Name: WP Frost Child
Template: frost
Author: Rosanna
Version: 1.0.0
*/

@import url("../frost/style.css");

body {
  font-family: var(--wp--preset--font-family--primary, "Helvetica Neue", Arial, sans-serif);
  color: var(--wp--preset--color--contrast, #222);
  background-color: var(--wp--preset--color--base, #fff);
  margin: 0;
  line-height: var(--wp--custom--line-height--body, 1.6);
}

h1, h2, h3 {
  color: var(--wp--preset--color--primary, #010c1e);
  font-weight: var(--wp--custom--font-weight--medium, 700);
  margin-bottom: 0.5em;
}

p {
  color: var(--wp--preset--color--contrast, #333);
  margin-bottom: 1em;
}

a {
  color: var(--wp--preset--color--primary, #032151);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--wp--preset--color--secondary, #e91e63);
}

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-align: center;
  cursor: pointer;
}

.btn-pink {
  background-color: #e31b7f;
  color: #fff;
  border-color: #e91e63;
}

.btn-pink:hover {
  background-color: #c2185b;
  border-color: #c2185b;
}

.btn-blue {
  background-color: #021c45;
  color: #fff;
  border-color: #032151;
}

.btn-blue:hover {
  background-color: #031024;
  border-color: #02183c;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.section-white {
  background-color: #fff;
  padding: 60px 20px;
}

.section-hero {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.lexly-hero {
  position: relative;
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.lexly-hero .hero-content {
  background: rgba(255, 255, 255, 0.5);
  padding: 25px 30px;
  display: flex;
  flex-direction: column;
  max-width: 600px;
  margin-left: 40px;
  border-radius: 0;
}

.lexly-hero h1,
.lexly-hero h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #000;
  font-weight: 700;
}

.lexly-hero p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #000;
  margin-bottom: 20px;
}

.service-grid,
.services-section .service-grid {
  display: grid;
  gap: 25px;
}

.service-grid.service-grid-3 {
  grid-template-columns: repeat(3, minmax(320px, 1fr));
}

.service-card {
  background: #f5f5f5;
  padding: 30px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  font-weight: 700;
}

.service-card p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 0;
}

.service-card a {
  width: 100%;
  padding: 14px 0;
  font-size: 15px;
  text-align: center;
}

.agreement-list {
    list-style: none; 
    padding: 0;
    margin: 12px 0 0;
  }
  
  .agreement-list li {
    margin-bottom: 8px;
    font-size: 15px;
    color: #032151;
  }
  
  .agreement-list li strong {
    font-weight: 700;
  }

.two-column-gray {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: #f5f5f5;
  gap: 0;
  max-width: 1100px;
  margin: 40px auto;
  min-height: 200px;
  overflow: hidden;
}

.two-column-gray .column-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.two-column-gray .column-content {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.two-column-gray .column-content h3 {
  font-size: 24px;
  margin: 0 0 20px;
  font-weight: 700;
  color: #032151;
}

.two-column-gray .column-content p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #000;
}

.two-column-gray .column-content a {
  display: inline-block;
  padding: 12px 24px;
  font-size: 14px;
  line-height: 1;
  background: #032151;
  color: #fff;
  border-radius: 20px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}

.featured-cards {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.featured-cards .wp-block-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  align-items: stretch;
}

.featured-card {
  display: flex;
  flex-direction: column;
  background: #f5f5f5;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s ease;
  height: 100%;
}

.featured-card:hover {
  transform: translateY(-4px);
}

.featured-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 24px 20px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.card-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #000;
  margin: 0 0 12px 0;
}

.card-content p {
  font-size: 15px;
  line-height: 1.6;
  color: #000;
  margin-bottom: 20px;
}

.card-content .btn {
  display: inline-block;
  padding: 8px 18px;
  font-size: 14px;
  background: #032151;
  color: #fff;
  border-radius: 20px;
  font-weight: 600;
  text-decoration: none;
  align-self: flex-start;
  transition: background 0.3s ease;
}

.card-content .btn:hover {
  background: #02183c;
}

.section-contact {
  background-color: #f5f5f5;
  padding: 120px 20px 60px;
}

.section-contact .contact-box {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #fff;
  border-radius: 8px;
  text-align: center;
}

.section-contact .contact-box p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #000;
}

.section-contact .phase-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.section-contact .phase-list li a {
  display: inline-block;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 4px;
  border: 2px solid #032151;
  color: #032151;
  text-decoration: none;
  transition: all 0.3s ease;
}

.section-contact .phase-list li a:hover {
  background-color: #02183c;
  color: #fff;
  border-color: #02183c;
}

.service-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    margin: 40px 0 60px;
    padding: 0;
    justify-content: left;
  }
  
  .service-links li {
    margin: 0;
    padding: 0;
  }

.service-links li a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 30px;
  border: 2px solid #032151;
  background-color: #fff;
  color: #032151;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: nowrap;
}

.service-links li a:hover {
  background-color: #032151;
  color: #fff;
}

.hr-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 18px;
  list-style: none;
  margin: 40px 0 60px;
  padding: 0;
}

.hr-links li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 64px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 600;
  background-color: #f5f5f5;
  color: #032151;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.section-gray {
    background: #f2f2f2;
    padding: 60px 20px;
  }
  
  .contact-hero {
    background: #fff;
    padding: 30px 25px;
    border-radius: 12px;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  }
  
  .contact-hero h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #032151;
  }
  
  .contact-hero hr {
    border: 0;
    border-top: 1px solid #ccc;
    margin: 15px 0;
  }
  
  .contact-hero p {
    font-size: 16px;
    margin-bottom: 25px;
    color: #333;
    text-align: left;
  }
  
  .contact-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  
  .contact-options .wp-block-column a.btn-outline {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 75px;
    padding: 0 14px;
    border: 1px solid #032151;
    border-radius: 20px;
    color: #032151;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    white-space: nowrap; /* Får texten att inte brytas */
    transition: all 0.2s ease;
  }
  
  .contact-options .wp-block-column a.btn-outline:hover {
    background: #032151;
    color: #fff;
  }
  
  /* Centrera sista knapp om den inte fyller hela raden */
  .contact-options .wp-block-column:last-child {
    justify-self: center;
  }
  
  /* Responsivt: en kolumn på små skärmar */
  @media (max-width: 768px) {
    .contact-options {
      grid-template-columns: 1fr;
    }
  }

.hr-links li a:hover {
  background-color: #eaeaea;
  color: #000;
}

@media (max-width: 1024px) {
  .service-links {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .hr-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section-contact .phase-list {
    flex-direction: column;
  }

  .section-contact .phase-list li a {
    width: 100%;
    text-align: center;
  }

  .featured-cards .wp-block-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .service-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .hr-links {
    grid-template-columns: 1fr;
  }

  .service-links li a,
  .hr-links li a {
    font-size: 14px;
    text-align: center;
  }

  .featured-grid .wp-block-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .featured-box img {
    height: auto;
  }

  .service-grid.service-grid-3,
  .services-section .service-grid {
    grid-template-columns: 1fr;
  }

  .lexly-hero .hero-content {
    margin-left: 20px;
    max-width: 90%;
  }

  .service-nav {
    justify-content: center;
  }

  .featured-section {
    flex-direction: column;
  }

  .featured-section a {
    width: 100%;
  }
}
