/*
 * Vaayu Global additions to Spexo.
 *
 * The brand colours and typefaces reach Spexo and Elementor through Spexo's own
 * CSS variables (inc/vaayu-options.php), so the template's layout, sizes,
 * spacing and components are unchanged. This sheet only covers what those
 * variables cannot: logo size, footer additions and a few responsive fixes.
 */

/* Logo: the lockup is close to square, so cap its height in the header. */
.tmpcoder-site-header .site-branding img {
  display: block;
  width: auto;
  height: 64px;
  max-width: 100%;
}

/* Elementor header (Consultive template). The template recolours its white
   wordmark with a CSS filter: black on light headers, white over the homepage
   hero. A filter would flatten the full-colour Vaayu logo, so remove it and
   show the reversed lockup over the hero instead. */
header .tmpcoder-site-logo-container img[src*="vaayu-global-logo"] {
  filter: none !important;
  width: auto !important;
  height: 52px !important;
  max-width: none !important;
}

@media (min-width: 1025px) {
  body.home header:not(.fixed-header) .tmpcoder-site-logo-container img[src*="vaayu-global-logo"] {
    object-position: -99999px 0;
    /* Change the query when the file changes: browsers cache theme images for a week. */
    background: url("../images/vaayu-global-logo-reversed.png?v=svg-2026-10") left center / contain no-repeat;
  }
}

@media (max-width: 767px) {
  header .tmpcoder-site-logo-container img[src*="vaayu-global-logo"] {
    height: 44px !important;
  }
}

/* Home "Why Vaayu Global" quote card: no avatar beside the attribution (the
   logo has no clean mark-only version to use at that size). */
.elementor-element-bde48cf .tmpcoder-feature-list-icon-wrap {
  display: none;
}

/* Contrast for white on near-white (client review, October 2026): cards and long
   text sit on a pale teal tint (teal-50, the brand guide's "tinted panels") with a
   teal-100 hairline. .vg-card: the template's white cards. .vg-panel: long text set
   in a box. Both classes are added by "Apply Vaayu Global content". */
.vg-card,
.vg-panel {
  background-color: #EAF6F5 !important;
  border: 1px solid #D2ECEA !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.vg-panel {
  padding: 40px 44px !important;
}

/* Icon tiles inside tinted cards: white rather than grey. */
.vg-card .tmpcoder-feature-list-icon-inner-wrap,
.vg-card .elementor-icon-list-icon {
  background-color: #FFFFFF !important;
}

@media (max-width: 767px) {
  .vg-panel {
    padding: 24px 20px !important;
  }
}

/* Insights grids before the first article: a quiet note instead of a headline. */
.elementor-widget-tmpcoder-post-grid > .elementor-widget-container > h2:only-child {
  font-size: 18px !important;
  line-height: 1.5 !important;
  color: #647483 !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
  background: #EAF6F5;
  border: 1px solid #D2ECEA;
  border-radius: 8px;
  padding: 28px 24px;
  text-align: center;
}

/* Engagement pages carry no author byline (see vaayu_body_class()). */
body.vg-engagement .tmpcoder-post-info-author {
  display: none;
}

/* Consultive's Elementor header is fixed over the page. Its Elementor pages leave
   room for it; Spexo's own templates (legal pages, archives) need the same room. */
body.consultive #content.site-main {
  padding-top: 152px;
}

@media (max-width: 767px) {
  body.consultive #content.site-main {
    padding-top: 96px;
  }
}

/* In this kit the archive title band is the dark ink colour, the same as the
   heading colour, so the category title would be invisible. */
body.consultive .site-main .page-header .entry-title,
body.consultive .site-main .page-header .archive-description {
  color: #FFFFFF;
}

/* Long-form text on block pages (Privacy Policy, Terms of Use). */
.site-main .entry-content .wp-block-group > h4.wp-block-heading {
  margin: 1.75em 0 0.5em;
  padding-bottom: 0;
}

.site-main .entry-content .wp-block-group > p {
  margin: 0 0 1em;
}

.site-main .entry-content .wp-block-group > .wp-block-list {
  margin: 0 0 1.25em;
  padding-left: 1.25em;
}

.site-main .entry-content .wp-block-group > .wp-block-list li {
  margin-bottom: 0.4em;
}

/* Footer: legal links beside the copyright, company line and disclaimer underneath. */
.site-footer .vaayu-legal-links {
  margin-left: 12px;
}

.site-footer .vaayu-legal-link {
  margin-right: 12px;
  color: var(--theme-text-color);
}

.site-footer .vaayu-legal-link:hover {
  color: var(--theme-primary-color);
}

.site-footer .vaayu-footer-disclaimer {
  width: 100%;
  order: 3;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--theme-global-border-color);
  font-size: 12px;
  line-height: 1.6;
  color: var(--theme-text-color);
  opacity: 0.8;
}

.site-footer .vaayu-footer-disclaimer p {
  margin: 0 0 4px;
}

.vaayu-insights-disclaimer {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--theme-global-border-color);
  font-size: 13px;
  opacity: 0.8;
}

/* Honour the "Outline" button style declared in Spexo's theme.json, which Spexo's
   button rule otherwise fills in. Hover keeps Spexo's swap. */
body .site-main .wp-block-button.is-style-outline .wp-element-button {
  background-color: transparent;
  color: var(--theme-primary-color);
  border-color: var(--button-border-color);
}

body .site-main .wp-block-button.is-style-outline .wp-element-button:hover,
body .site-main .wp-block-button.is-style-outline .wp-element-button:focus {
  background-color: var(--theme-button-background);
  color: var(--button-text-color);
}

/* Form submit buttons use the global button settings like every other button. */
body .site-main .wpcf7-submit {
  padding: var(--button-padding-top) var(--button-padding-right) var(--button-padding-bottom) var(--button-padding-left);
  border-radius: var(--button-border-radius);
  font-family: var(--button-font-family);
  font-size: var(--button-font-size);
  font-weight: var(--button-font-weight);
  line-height: var(--button-line-height);
  letter-spacing: var(--button-letter-spacing);
  text-transform: var(--button-text-transform);
}

/* Spexo resets paragraph colour inside cover blocks (tinted bands) to the body
   text colour; do the same for list items, which WordPress otherwise sets to black. */
:root :where(.wp-block-cover li:not(.has-text-color)) {
  color: var(--theme-text-color);
}

/* Spexo breaks post titles between any two letters; wrap at word boundaries. */
body .site-main .page-content .blog-list-content .entry-title {
  word-break: normal;
  overflow-wrap: break-word;
}

@media (max-width: 1024px) {
  .tmpcoder-site-header .site-branding img {
    height: 52px;
  }

  .site-footer .vaayu-footer-disclaimer {
    text-align: center;
  }
}

@media (max-width: 767px) {
  .tmpcoder-site-header .site-branding img {
    height: 44px;
  }

  .site-footer .vaayu-legal-links {
    display: block;
    margin: 6px 0 0;
  }

  .site-footer .vaayu-legal-link {
    margin: 0 6px;
  }

  /* Wide and full-width blocks must not push past the screen edge. */
  body .site-main .wp-block-columns.alignfull {
    width: 100%;
  }
}
