/*
Theme Name: Veyra Design Child
Theme URI: https://veyradesign.com/
Description: Astra child theme maintained through the Veyra Design local source repository.
Author: Veyra Design
Template: astra
Version: 0.3.9
Text Domain: veyradesign-child
*/

:root {
  --veyradesign-ink: #1f2a3a;
  --veyradesign-ink-soft: #344050;
  --veyradesign-muted: #5d6875;
  --veyradesign-accent: #9f6739;
  --veyradesign-accent-light: #d6ad78;
  --veyradesign-surface: #f7f4ef;
  --veyradesign-white: #ffffff;
  --veyradesign-line: #e8e3dc;
  --veyradesign-content-width: 1180px;
  --veyradesign-reading-width: 45rem;
  --veyradesign-radius: 0;
  --veyradesign-shadow: 0 16px 38px rgba(31, 42, 58, 0.08);
}

/*
 * Astra header guardrails.
 * The logo is the visual brand in the header; a second text site-title creates
 * a duplicate identity and can collapse into a narrow builder column. These
 * rules keep desktop navigation on one line without taking over Astra's menu
 * or mobile-menu behaviour.
 */
#masthead .site-title,
#masthead .site-description {
  display: none;
}

#masthead .site-logo-img img,
#masthead .custom-logo-link img {
  height: auto;
  max-width: min(280px, 100%);
  width: auto;
}

@media (min-width: 922px) {
  #masthead .ast-builder-menu-1 .main-header-menu,
  #masthead .ast-builder-menu-1 .main-header-menu > .menu-item {
    flex-wrap: nowrap;
  }

  #masthead .ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
    padding-left: 0.7em;
    padding-right: 0.7em;
    white-space: nowrap;
  }
}

/*
 * Default Veyra landing-page frame.
 * Gutenberg sections own the full-bleed backgrounds; their direct children
 * retain the 1180px reading width defined below. This removes the need to set
 * Astra's "Full Width" and "Disable Banner Area" for every normal page.
 */
.veyradesign-landing-page .ast-page-title,
.veyradesign-landing-page .ast-breadcrumbs-wrapper {
  display: none;
}

/* Astra's default page title wrapper can remain even when its banner is off. */
.veyradesign-landing-page #primary .ast-article-single > .entry-header {
  display: none;
}

.veyradesign-landing-page .site-content > .ast-container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.veyradesign-landing-page .site-content > .ast-container > #primary {
  margin: 0;
  padding: 0;
  width: 100%;
}

.veyradesign-landing-page #primary .ast-article-single {
  background: transparent;
  padding: 0 !important;
}

.veyradesign-landing-page #secondary {
  display: none;
}

/*
 * Full-bleed section contract. This also fixes Pages created before the
 * Gutenberg blocks were marked alignfull: named Veyra sections escape any
 * remaining Astra content gutter, while their inner content stays constrained.
 */
body.veyradesign-landing-page {
  overflow-x: clip;
}

.veyradesign-landing-page .entry-content > .veyradesign-section,
.veyradesign-landing-page .entry-content > .veyradesign-home-hero {
  box-sizing: border-box;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
}

/* Mirrors theme.json: shared base rules for native Gutenberg content. */
.entry-content :where(h1, h2, h3, h4),
.wp-site-blocks :where(h1, h2, h3, h4) {
  color: var(--veyradesign-ink);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.entry-content :where(p, li),
.wp-site-blocks :where(p, li) {
  color: var(--veyradesign-muted);
  line-height: 1.7;
}

.entry-content .wp-block-button__link,
.wp-site-blocks .wp-block-button__link {
  background: var(--veyradesign-accent);
  border: 1px solid var(--veyradesign-accent);
  border-radius: var(--veyradesign-radius);
  box-shadow: none;
  font-weight: 700;
  padding: 0.9rem 1.3rem;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.entry-content .wp-block-button__link:hover,
.entry-content .wp-block-button__link:focus-visible,
.wp-site-blocks .wp-block-button__link:hover,
.wp-site-blocks .wp-block-button__link:focus-visible {
  background: var(--veyradesign-ink);
  border-color: var(--veyradesign-ink);
  color: var(--veyradesign-white);
  transform: translateY(-1px);
}

.entry-content .wp-block-button.is-style-outline .wp-block-button__link,
.wp-site-blocks .wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: currentColor;
}

.entry-content .wp-block-button.is-style-outline .wp-block-button__link:hover,
.entry-content .wp-block-button.is-style-outline .wp-block-button__link:focus-visible,
.wp-site-blocks .wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-site-blocks .wp-block-button.is-style-outline .wp-block-button__link:focus-visible {
  background: currentColor;
  color: var(--veyradesign-white);
}

.veyradesign-section {
  color: var(--veyradesign-ink);
  padding: clamp(4rem, 7vw, 7rem) max(1.5rem, calc((100% - var(--veyradesign-content-width)) / 2));
}

.veyradesign-section--white {
  background: var(--veyradesign-white);
}

.veyradesign-section > :where(.wp-block-heading, .wp-block-paragraph, .wp-block-columns, .wp-block-buttons, .veyradesign-card-grid, .veyradesign-checklist) {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--veyradesign-content-width);
}

.veyradesign-section > .wp-block-paragraph:not(.veyradesign-kicker) {
  line-height: 1.75;
  max-width: 45rem;
}

/* Keep narrow copy aligned with the 1180px section content edge. */
.veyradesign-section > .wp-block-paragraph:not(.veyradesign-kicker),
.veyradesign-cta > .wp-block-heading,
.veyradesign-cta > .wp-block-paragraph {
  margin-left: max(0px, calc((100% - var(--veyradesign-content-width)) / 2));
  margin-right: auto;
}

.veyradesign-eyebrow {
  color: var(--veyradesign-accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.veyradesign-home {
  color: var(--veyradesign-ink);
}

.veyradesign-home-hero {
  background: linear-gradient(125deg, #182124 0%, #253437 58%, #4b5e59 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.veyradesign-home-hero::after {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  content: "";
  height: 32rem;
  position: absolute;
  right: -12rem;
  top: -13rem;
  width: 32rem;
}

/* Astra's page-builder rule sets the Cover inner max-width to none. */
body.veyradesign-landing-page .entry-content[data-ast-blocks-layout] > .wp-block-cover.veyradesign-home-hero .wp-block-cover__inner-container {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--veyradesign-content-width);
  padding-block: clamp(5rem, 11vw, 10rem);
  position: relative;
  width: 100%;
  z-index: 1;
}

.veyradesign-home-hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 1.02;
  margin-block: 1.1rem 1.5rem;
  max-width: 760px;
}

.veyradesign-home-hero p:not(.veyradesign-eyebrow) {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.7;
  max-width: 710px;
}

.veyradesign-home-hero .veyradesign-eyebrow {
  color: #e5bd8c;
}

.veyradesign-button .wp-block-button__link {
  background: var(--veyradesign-accent);
  border-radius: 0;
  font-weight: 700;
  padding: 0.9rem 1.3rem;
}

.veyradesign-button.is-style-outline .wp-block-button__link {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.entry-content .veyradesign-home-hero .wp-block-button.is-style-outline .wp-block-button__link {
  border-color: #fff;
  color: #fff;
}

.veyradesign-intro {
  background: var(--veyradesign-surface);
}

.veyradesign-kicker {
  color: var(--veyradesign-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.veyradesign-section-title {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-top: 0.55rem;
}

.veyradesign-card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.5rem;
}

.veyradesign-card {
  background: #fff;
  border: 1px solid #e8e3dc;
  box-shadow: var(--veyradesign-shadow);
  min-height: 100%;
  padding: 2rem;
}

.veyradesign-card h3 {
  font-size: 1.35rem;
  margin-block: 0.7rem;
}

.veyradesign-card p {
  color: #566060;
  line-height: 1.65;
}

.veyradesign-number {
  color: var(--veyradesign-accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.veyradesign-process {
  background: #162329;
  color: #fff;
}

.veyradesign-process .veyradesign-section-title,
.veyradesign-process h2,
.veyradesign-process h3 {
  color: #fff;
}

.veyradesign-process p {
  color: rgba(255, 255, 255, 0.72);
}

.veyradesign-process .veyradesign-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.veyradesign-process .veyradesign-card p {
  color: rgba(255, 255, 255, 0.72);
}

.veyradesign-process .veyradesign-number,
.veyradesign-process .veyradesign-kicker {
  color: #e5bd8c;
}

.veyradesign-cta {
  background: #d6ad78;
}

.veyradesign-cta h2 {
  color: var(--veyradesign-ink);
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  max-width: 760px;
}

.veyradesign-cta > .wp-block-paragraph {
  color: #344050;
  max-width: 46rem;
}

/* Reusable Gutenberg pattern helpers. */
.veyradesign-feature-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.5rem;
}

.veyradesign-feature-card {
  border: 1px solid var(--veyradesign-line);
  padding: clamp(1.5rem, 3vw, 2rem);
}

.veyradesign-feature-card h3 {
  font-size: 1.35rem;
  margin: 0.7rem 0;
}

.veyradesign-feature-card p {
  margin-bottom: 0;
}

.veyradesign-quote-panel {
  background: var(--veyradesign-surface);
  border-left: 3px solid var(--veyradesign-accent);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.veyradesign-quote-panel p {
  color: var(--veyradesign-ink);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.45;
  margin: 0;
  max-width: 46rem;
}

/* The support block follows the process block in the published Gutenberg page. */
.veyradesign-process + .veyradesign-section .wp-block-columns {
  align-items: start;
  gap: clamp(2.5rem, 6vw, 7rem);
}

.veyradesign-process + .veyradesign-section .wp-block-column:first-child {
  flex-basis: 44%;
}

.veyradesign-process + .veyradesign-section .wp-block-column:last-child {
  flex-basis: 46%;
}

.veyradesign-process + .veyradesign-section .wp-block-column > .wp-block-heading {
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  max-width: 15ch;
}

.veyradesign-process + .veyradesign-section .wp-block-column > .wp-block-paragraph {
  color: var(--veyradesign-muted);
  line-height: 1.75;
  max-width: 38rem;
}

.veyradesign-checklist {
  columns: 2;
  gap: 2rem;
  list-style: none;
  margin: 2rem auto 0 !important;
  max-width: var(--veyradesign-content-width);
  padding: 0;
}

/* Gutenberg's global list margins must not pull this custom HTML block left. */
.veyradesign-section > .veyradesign-checklist {
  width: 100%;
}

.veyradesign-checklist li {
  border-bottom: 1px solid rgba(24, 33, 36, 0.16);
  padding: 0.7rem 0 0.7rem 1.5rem;
  position: relative;
}

.veyradesign-checklist li::before {
  color: var(--veyradesign-accent);
  content: "—";
  left: 0;
  position: absolute;
}

@media (max-width: 781px) {
  .veyradesign-section {
    padding-inline: 1.25rem;
  }

  .veyradesign-home-hero {
    padding-inline: 1.25rem;
  }

  .veyradesign-home-hero .wp-block-cover__inner-container {
    padding-inline: 0;
  }

  .veyradesign-home-hero h1 {
    font-size: clamp(2rem, 7vw, 2.6rem);
  }

  .veyradesign-card-grid {
    grid-template-columns: 1fr;
  }

  .veyradesign-feature-grid {
    grid-template-columns: 1fr;
  }

  .veyradesign-checklist {
    columns: 1;
  }

  .veyradesign-process + .veyradesign-section .wp-block-column:first-child,
  .veyradesign-process + .veyradesign-section .wp-block-column:last-child {
    flex-basis: 100%;
  }
}
