/* ===== Page Hero ===== */
.page-hero {
  padding: 150px 30px 120px 30px;
}

.page-hero-blue {
  padding: 150px 30px 120px 30px;
  background-color: var(--blue);
}

.page-hero-blue * {
  color: var(--white);
}

.page-hero h1,
.page-hero-blue h1 {
  max-width: 980px;
}

.hero-centered {
  align-items: center;
  text-align: center;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: start;
}

.hero-visual {
  min-height: 620px;
  border-radius: 8px;
  background-color: var(--blue-background);
}

.marker-dark {
  background: linear-gradient(transparent 62%, var(--dark) 62%);
}

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.article-card {
  padding: 56px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.article-card h2,
.article-card .accent {
  color: var(--blue);
}

.feature-card {
  padding: 90px 100px;
  border-radius: 28px;
  background-color: var(--red);
}

.project-card {
  border-radius: 0 0 48px 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--blue-background);
}

.project-card-blue {
  background-color: var(--blue);
}

.project-card-blue h2,
.project-card-blue p {
  color: var(--white);
}

.project-card > img {
  width: calc(100% - 48px);
  margin: 24px 24px 0 24px;
  aspect-ratio: 1.45 / 1;
  object-fit: cover;
  object-position: top;
}

.project-card-content {
  flex: 1;
  padding: 56px;
}

.project-card-content .button {
  margin-top: auto;
}

.project-card h2 {
  color: var(--blue);
}

.project-card-blue h2 {
  color: var(--white);
}

/* ===== Detail Pages ===== */
.detail-intro {
  max-width: 760px;
  margin: 0 auto;
}

.detail-preview {
  max-width: 920px;
  margin: 0 auto;
}

.detail-preview img {
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.article-content {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.article-content img {
  border-radius: 28px;
  max-height: 620px;
  object-fit: cover;
}

.project-detail-content img {
  height: auto;
  max-height: none;
  object-fit: contain;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.author-card {
  padding: 54px 70px 0 70px;
  border-radius: 28px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: end;
  gap: 70px;
  background-color: var(--red);
  overflow: hidden;
}

.author-card img {
  max-height: 280px;
  object-fit: contain;
  object-position: bottom;
}

/* ===== Contact ===== */
.contact-visual {
  min-height: 760px;
  padding: 70px;
  border-radius: 8px;
  background-color: var(--blue-background);
}

.contact-visual img {
  height: 100%;
  object-fit: cover;
}

.contact-visual .wpcf7 {
  width: 100%;
  height: 100%;
}

.contact-visual .wpcf7-form {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-visual .wpcf7-form p {
  margin: 0;
}

.contact-visual label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--blue);
  font-size: 1rem;
  font-weight: 500;
}

.contact-visual label br {
  display: none;
}

.contact-visual .wpcf7-form-control-wrap {
  display: block;
}

.contact-visual input:not([type="submit"]),
.contact-visual textarea {
  width: 100%;
  min-height: 56px;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  outline: 0;
  background-color: var(--white);
  color: var(--dark);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-visual textarea {
  min-height: 190px;
  resize: vertical;
}

.contact-visual input:not([type="submit"]):focus,
.contact-visual textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 83, 255, 0.14);
}

.contact-visual .wpcf7-submit {
  width: fit-content;
  min-width: 180px;
  min-height: 48px;
  margin-top: 8px;
  padding: 12px 30px;
  border: 0;
  border-radius: 999px;
  background-color: var(--blue);
  color: var(--white);
  font-family: inherit;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.15;
  cursor: pointer;
}

.contact-visual .wpcf7-spinner {
  margin-left: 14px;
}

.contact-visual .wpcf7-not-valid-tip {
  margin-top: 8px;
  color: var(--blue);
  font-size: 0.9rem;
}

.contact-visual .wpcf7-response-output {
  margin: 0;
  padding: 14px 18px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  color: var(--blue);
  font-size: 0.95rem;
  line-height: 1.4;
}

.contact-box {
  padding: 80px 100px;
  border-radius: 28px;
}

.contact-appointment {
  min-height: 240px;
  padding: 45px 36px 45px 220px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: visible;
}

.contact-appointment > img {
  width: 205px;
  max-width: none;
  position: absolute;
  left: -35px;
  top: 50%;
  transform: translateY(-50%);
}

.contact-appointment span {
  max-width: 340px;
  display: block;
  font-size: 2rem;
  font-weight: 600;
}

.appointment-card {
  min-height: 410px;
  background-color: var(--blue-background);
}

.appointment-card-row {
  display: flex;
  align-items: center;
  gap: 70px;
}

.appointment-card-row > img {
  width: 260px;
  max-width: none;
  flex-shrink: 0;
}

.appointment-card-content {
  max-width: 420px;
}

.appointment-card .subline {
  margin-top: 0;
}

@media (max-width: 1200px) {
  .contact-page .split-view {
    flex-direction: column;
    gap: 60px;
  }

  .contact-page .split-view > div {
    width: 100%;
  }
}

/* ===== Mobile ===== */
@media (max-width: 800px) {
  .page-hero,
  .page-hero-blue {
    padding: 90px 20px 80px 20px;
  }

  .hero-split,
  .card-grid,
  .author-card {
    grid-template-columns: 1fr;
  }

  .hero-visual,
  .contact-visual {
    min-height: 320px;
  }

  .feature-card,
  .article-card,
  .project-card-content,
  .contact-visual,
  .contact-box {
    padding: 36px 24px;
  }

  .contact-appointment {
    min-height: auto;
    padding: 190px 24px 32px 24px;
    justify-content: center;
    text-align: center;
  }

  .contact-appointment > img {
    width: 150px;
    left: 50%;
    top: -22px;
    transform: translateX(-50%);
  }

  .contact-appointment span {
    max-width: 100%;
  }

  .appointment-card {
    min-height: auto;
  }

  .appointment-card-row {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

  .appointment-card-row > img {
    width: 180px;
  }

  .appointment-card-content {
    max-width: 100%;
    align-items: center;
  }

  .project-card {
    border-radius: 0 0 32px 0;
  }

  .project-card > img {
    width: calc(100% - 32px);
    margin: 16px 16px 0 16px;
  }


  .author-card {
    gap: 30px;
  }

}
