/*!
 * Theme Name: Verboza
 * Description: Verboza child theme for Twenty Twenty-Four.
 * Version: 0.1.34
 * Template: twentytwentyfour
 * Text Domain: verboza
 * License: GPL-2.0-or-later
 */

/* ---------------------------------------------------------
   Verboza homepage / product layout
   --------------------------------------------------------- */
:root {
  --verboza-navy: #10213f;
  --verboza-blue: #155eef;
  --verboza-muted: #5e718f;
  --verboza-line: #dbe3ef;
  --verboza-soft: #f4f7fb;
  --verboza-card: #ffffff;
  --verboza-green: #16845b;
}

body.home {
  background:
    radial-gradient(circle at 50% 7%, rgba(226, 239, 255, .72), transparent 31rem),
    #fff;
  color: var(--verboza-navy);
}

/* Header: one consistent layout across the entire site.
   Keep header styling global; homepage-only rules must not alter it. */
header.wp-block-template-part,
header {
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  position: relative;
  z-index: 100;
  border-bottom: 1px solid #edf1f6;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
}

header .wp-block-group.is-layout-flex:has(> .wp-block-site-logo):has(> .wp-block-navigation) {
  width: min(1200px, calc(100% - 48px));
  max-width: 1200px;
  margin-inline: auto;
  padding: 0;
  min-height: 64px;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

header .wp-block-site-logo {
  flex: 0 0 auto;
  margin: 0;
}

header .wp-block-site-logo img {
  width: 165px;
  max-width: 165px;
  height: auto;
  max-height: none;
}

header .wp-block-navigation {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  margin: 0;
  transform: none;
}

header .wp-block-navigation .wp-block-navigation-item__content {
  color: var(--verboza-navy);
}

/* Navigation dropdown: keep the submenu attached to its parent so it
   does not disappear while moving the pointer down to deeper items. */
header .wp-block-navigation .has-child {
  position: relative;
}

header .wp-block-navigation .has-child > .wp-block-navigation__submenu-container {
  left: 0;
  right: auto;
  top: 100%;
  z-index: 110;
}

@media (max-width: 780px) {
  header .wp-block-group.is-layout-flex:has(> .wp-block-site-logo):has(> .wp-block-navigation) {
    width: calc(100% - 28px);
  }

  header .wp-block-site-logo img {
    width: 125px;
    max-width: 125px;
  }
}

/* Hero */
body.home main > .wp-block-group:first-child,
body.home main > .wp-block-cover:first-child {
  padding-top: clamp(3rem, 6vw, 5.75rem);
}

body.home h1.wp-block-heading {
  max-width: 900px;
  margin-inline: auto;
  color: #101d35;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.9rem, 5.3vw, 5.1rem);
  line-height: .98;
  letter-spacing: -.045em;
  text-align: center;
}

body.home .wp-block-heading + p {
  max-width: 920px;
  margin: 1.25rem auto 0;
  color: #536783;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.55;
  text-align: center;
}

/* Main analyzer card */
body.home .verboza-tool {
  max-width: 1080px;
  margin: 3.5rem auto 0;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  background: var(--verboza-card);
  border: 1px solid var(--verboza-line);
  border-radius: 22px;
  box-shadow: 0 20px 55px rgba(32, 55, 92, .08);
}

body.home .verboza-tool__header {
  margin-bottom: 1.9rem;
}

body.home .verboza-tool__intro {
  color: var(--verboza-muted);
  font-size: .98rem;
}

body.home .verboza-clear {
  border: 0;
  border-radius: 11px;
  background: #edf3ff;
  color: #1553cf;
  font-weight: 600;
  padding: .7rem 1rem;
}

body.home .verboza-textarea {
  min-height: 260px;
  border: 1px solid #d3deec;
  border-radius: 15px;
  background: #fbfcfe;
  color: #16243b;
  padding: 1.15rem;
  font-size: 1rem;
  line-height: 1.6;
  resize: vertical;
  box-sizing: border-box;
}

body.home .verboza-textarea:focus {
  border-color: #8db2f8;
  box-shadow: 0 0 0 3px rgba(21, 94, 239, .10);
  outline: none;
}

body.home .verboza-stats {
  gap: 12px;
  margin-top: 1rem;
}

body.home .verboza-stat {
  min-height: 112px;
  border: 0;
  border-radius: 14px;
  background: var(--verboza-soft);
  padding: 1rem .65rem;
}

body.home .verboza-stat strong {
  color: #101c33;
  font-size: 1.55rem;
}

body.home .verboza-stat span {
  color: #536783;
  font-size: .82rem;
  line-height: 1.25;
}

body.home .verboza-privacy {
  margin-top: 1.65rem;
  color: #66809e;
  text-align: center;
}

/* More text tools: keep each card description left-aligned. */
body.home main .wp-block-columns .wp-block-column > p {
  text-align: left !important;
}

/* More tools */
body.home main h2.wp-block-heading {
  color: #10213f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -.025em;
}

body.home main .verboza-tool + .wp-block-heading {
  margin-top: 4.5rem;
}

/* Tool cards: preserve the existing block content but give it the
   softer product-card treatment used in the Verboza mockup. */
body.home .wp-block-group:has(> .wp-block-heading a),
body.home .wp-block-group:has(> .wp-block-heading + p) {
  border-radius: 16px;
}

body.home a.wp-block-button__link {
  border-radius: 10px;
}

@media (max-width: 800px) {
  body.home .verboza-tool {
    margin-top: 2.25rem;
    border-radius: 18px;
  }

  body.home .verboza-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.home .verboza-stat:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  body.home main > .wp-block-group:first-child,
  body.home main > .wp-block-cover:first-child {
    padding-top: 2.25rem;
  }

  body.home h1.wp-block-heading {
    font-size: 2.65rem;
  }

  body.home .verboza-tool {
    margin-top: 1.75rem;
    padding: 1rem;
    border-radius: 15px;
  }

  body.home .verboza-textarea {
    min-height: 220px;
  }

  body.home .verboza-stats {
    grid-template-columns: 1fr;
  }

  body.home .verboza-stat:last-child {
    grid-column: auto;
  }
}

/* Mobile navigation: prevent the open menu from being trapped beneath page content.
   The header's backdrop-filter can create a containing/stacking context for the
   responsive navigation overlay, so disable it on mobile and keep the overlay
   above the page. */
@media (max-width: 780px) {
  header.wp-block-template-part,
  header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  header .wp-block-navigation__responsive-container.is-menu-open {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    overflow-y: auto !important;
  }
}
