/*
Theme Name: Kids Innovation Studio
Theme URI: https://kidsinnovationstudios.com
Author: Kids Innovation Studio
Description: Custom block theme for Kids Innovation Studio marketing site.
Version: 1.0.0
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kis-theme
*/

/* ── HERO ────────────────────────────────── */
.kis-hero .wp-block-heading {
  max-width: 600px;
}

.kis-hero
  .wp-block-cover__inner-container
  > .wp-block-group
  > .wp-block-group
  > p:not(.has-accent-color) {
  max-width: 520px;
}

/* ── STICKY FOOTER ───────────────────────── */
.wp-site-blocks {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wp-site-blocks > main {
  flex: 1;
}

/* ── HEADER ──────────────────────────────── */
.kis-header {
  z-index: 100;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  min-height: 75px;
}

/* ── FOOTER ──────────────────────────────── */

.kis-footer-columns {
  display: grid !important;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .kis-footer-columns {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

footer.wp-block-template-part {
  margin-top: 0 !important;
}

.kis-footer .kis-footer-link a {
  color: #b0b0b0 !important;
  text-decoration: none;
}

.kis-footer-link a:hover {
  color: #e8e8e8 !important;
}

/* Column section headings */
.kis-footer-columns > .wp-block-group > p:first-child {
  color: #666666 !important;
}

/* Plain text items (phone, address) */
.kis-footer-columns p.has-text-color:not(.has-white-color) {
  color: #b0b0b0 !important;
}

/* Bottom bar */
.kis-footer > .wp-block-group:last-child p {
  color: #888888 !important;
}

.kis-footer > .wp-block-group:last-child .kis-footer-link a {
  color: #888888 !important;
}

.kis-footer > .wp-block-group:last-child .kis-footer-link a:hover {
  color: #cccccc !important;
}

.kis-social-icons {
  display: flex;
  gap: 12px;
}

.kis-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #333333;
  color: #888888;
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s;
}

.kis-social-icon:hover {
  border-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--accent);
}

/* ── CARDS ────────────────────────────────── */
.kis-card {
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* .kis-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
} */

.kis-section-body {
  opacity: 0.8;
  max-width: 600px;
}

/* ── DOMAIN CARDS (hoverable) ──────────── */
.kis-domain-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.kis-domain-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 28px 20px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
  min-height: 180px;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.kis-domain-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(93, 70, 156, 0.15);
}

.kis-domain-front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 12px;
  height: 100%;
  padding-top: 8px;
  transition: opacity 0.25s;
}

.kis-domain-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 4px;
}

.kis-domain-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--wp--preset--color--primary);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kis-domain-front h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--wp--preset--color--primary);
  line-height: 1.4;
  margin: 0;
}

.kis-domain-back {
  position: absolute;
  inset: 0;
  background: var(--wp--preset--color--primary);
  border-radius: 16px;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.25s;
}

.kis-domain-back p {
  font-size: 14px;
  line-height: 1.65;
  color: #fff;
  margin: 0;
}

.kis-domain-card:hover .kis-domain-front {
  opacity: 0;
}

.kis-domain-card:hover .kis-domain-back {
  opacity: 1;
}

/* ── BUTTONS ─────────────────────────────── */
.wp-block-button__link,
.wp-element-button {
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background-color 0.2s;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(109, 88, 186, 0.35);
}

.wp-block-button__link.has-primary-background-color:hover,
.wp-element-button.has-primary-background-color:hover {
  background-color: #5d46a0 !important;
}

.wp-block-button__link.has-accent-background-color:hover,
.wp-element-button.has-accent-background-color:hover {
  background-color: #199f9f !important;
}

/* ── RESPONSIVE SECTION PADDING ──────────── */
@media (max-width: 768px) {
  .wp-block-group.alignfull,
  .wp-block-cover.alignfull {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}

@media (max-width: 1100px) {
  .kis-domain-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .kis-domain-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .kis-domain-grid {
    grid-template-columns: 1fr;
  }
}

/* ── FAQ ACCORDION ────────────────────────── */
.kis-faq-list {
  max-width: 720px;
}

.kis-faq-item {
  border-bottom: 1px solid rgba(247, 242, 248, 0.15);
}

.kis-faq-item:last-child {
  border-bottom: none;
}

.kis-faq-item > summary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 16px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  color: #f6f7fb;
  cursor: pointer;
  list-style: none;
  font-family: var(--wp--preset--font-family--author);
}

.kis-faq-item > summary::-webkit-details-marker {
  display: none;
}

.kis-faq-item > summary::marker {
  display: none;
  content: "";
}

.kis-faq-item > summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 400;
  color: var(--wp--preset--color--accent);
  flex-shrink: 0;
}

.kis-faq-item[open] > summary::after {
  content: "\2212";
}

.kis-faq-item > summary:hover {
  opacity: 0.8;
}

.kis-faq-body-inner {
  padding-bottom: 20px;
}

.kis-faq-item p {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* -- WP Forms ---- */

.wpforms-container .wpforms-field-container .wpforms-field {
  padding: 12px 0;
}

.wpforms-container .wpforms-field-container label.wpforms-field-label {
  font-family: var(--wp--preset--font-family--author);
  font-weight: 700;
  color: var(--wp--preset--color--primary);
  margin-bottom: 8px;
}

.wpforms-container .wpforms-field-container .wpforms-field input,
.wpforms-container .wpforms-field-container .wpforms-field select {
  border-radius: 12px;
  border: 1.5px solid #d5cfc6;
}

.wpforms-container .wpforms-submit {
  color: #fff !important;
}

/* -- Blog Preview ---- */
.wp-block-latest-posts li {
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  padding: 0 32px 32px;
  box-sizing: border-box;
}

.wp-block-latest-posts__featured-image img {
  width: calc(100% + 64px);
  max-width: calc(100% + 64px);
  aspect-ratio: 24 / 9;
  object-fit: cover;
  margin-left: -32px;
  margin-right: -32px;
}

.wp-block-latest-posts__post-title {
  font-size: 18px;
  font-family: var(--wp--preset--font-family--author);
  margin-top: 24px;
  font-weight: 700;
}

.wp-block-latest-posts__read-more {
  display: block;
  margin-top: 16px;
}

.wp-block-latest-posts__post-excerpt {
  margin-bottom: 0;
}
