/*
Theme Name: WB Base
Theme URI: https://orphic.ca
Author: Orphic Inc.
Author URI: https://orphic.ca
Description: Generic starting point for websites built with the wb-onboard builder. Registers a few sections (hero, feature cards, FAQ), two page types and brand settings; everything renders to core blocks so the site stays editable in WordPress after hand-off.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wb-base
*/

/* Header, main and footer touch: sections provide their own spacing. */
.wp-site-blocks > * + * {
  margin-block-start: 0;
}

/* Sections are full-width groups stacked in post content: no gap between them. */
.wp-block-post-content > .wb-section {
  margin-block-start: 0;
}

/* Two plain (no background) sections in a row: don't double the spacing. */
.wb-section:not(.has-background) + .wb-section:not(.has-background) {
  padding-top: 0 !important;
}

/* Feature cards */
.wb-card {
  border-radius: 12px;
  padding: var(--wp--preset--spacing--40);
}

.wb-icon {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary-contrast);
}

.wb-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* FAQ */
.wb-faq .wp-block-details {
  border-bottom: 1px solid color-mix(in srgb, currentColor 15%, transparent);
  padding-block: var(--wp--preset--spacing--30);
  margin-block-start: 0;
}

.wb-faq .wp-block-details summary {
  cursor: pointer;
  font-family: var(--wp--preset--font-family--heading);
  font-weight: 600;
  font-size: var(--wp--preset--font-size--large);
}

.wb-faq .wp-block-details > :not(summary):first-of-type {
  margin-block-start: var(--wp--preset--spacing--20);
}

/* Shared text styles */
.wb-eyebrow {
  margin-bottom: 0;
  font-size: var(--wp--preset--font-size--small);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wp--preset--color--primary);
}

.has-primary-background-color .wb-eyebrow,
.wp-block-cover .wb-eyebrow {
  color: inherit;
  opacity: 0.85;
}

.wb-lead {
  font-size: var(--wp--preset--font-size--large);
  opacity: 0.85;
}

/* Cover hero */
.wb-cover-copy h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

/* Key numbers */
.wb-stat {
  gap: 0.25rem;
}

.wb-stat-value {
  margin: 0;
  font-family: var(--wp--preset--font-family--heading);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--wp--preset--color--primary);
}

.wb-stat-label {
  margin: 0;
  font-size: var(--wp--preset--font-size--small);
  opacity: 0.75;
}

/* Photo cards */
.wb-photo-card {
  gap: 0;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px -12px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wb-photo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 18px 36px -16px rgba(0, 0, 0, 0.28);
}

.wb-photo-card > .wp-block-image {
  margin: 0;
}

.wb-photo-card > .wp-block-image img {
  border-radius: 0;
}

.wb-photo-card-body {
  gap: 0.5rem;
  padding: var(--wp--preset--spacing--40);
}

.wb-photo-card-body h3 {
  margin: 0;
}

.wb-card-link a {
  font-weight: 600;
  text-decoration: none;
  color: var(--wp--preset--color--primary);
}

/* Testimonials */
.wb-stars {
  margin: 0;
  letter-spacing: 0.15em;
  color: var(--wp--preset--color--secondary);
}

.wb-quote {
  flex: 1;
  font-size: var(--wp--preset--font-size--large);
  line-height: 1.5;
}

.wb-author-row {
  gap: 0.75rem;
}

.wb-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--primary-contrast);
  font-size: 0.85rem;
  font-weight: 700;
}

.wb-author {
  margin: 0;
  font-size: var(--wp--preset--font-size--small);
  line-height: 1.4;
}

/* Steps */
.wb-step {
  gap: 0.5rem;
  padding-top: var(--wp--preset--spacing--30);
  border-top: 2px solid var(--wp--preset--color--primary);
}

.wb-step-number {
  margin: 0;
  font-family: var(--wp--preset--font-family--heading);
  font-size: var(--wp--preset--font-size--x-large);
  font-weight: 800;
  line-height: 1;
  color: var(--wp--preset--color--primary);
}

.wb-step h3,
.wb-step p {
  margin: 0;
}

/* Contact */
.wb-contact-card {
  gap: var(--wp--preset--spacing--30);
}

.wb-contact-row {
  gap: 0.9rem;
}

.wb-contact-value {
  margin: 0;
  line-height: 1.5;
}

.wb-contact-value a {
  text-decoration: none;
}

/* Two sections in a row on the same background: don't double the spacing. */
.wb-section.has-muted-background-color + .wb-section.has-muted-background-color,
.wb-section.has-primary-background-color + .wb-section.has-primary-background-color {
  padding-top: 0 !important;
}

/* Cover sections: content lines up with the wide content width. */
.wp-block-cover.wb-section {
  padding-left: max(var(--wp--style--root--padding-left, 1.5rem), calc((100% - var(--wp--style--global--wide-size, 1200px)) / 2));
  padding-right: max(var(--wp--style--root--padding-right, 1.5rem), calc((100% - var(--wp--style--global--wide-size, 1200px)) / 2));
}
