/*
Theme Name: Astra Child
Template: astra
Version: 1.0.0
*/

:root {
  --wp--preset--color--primary: #043028;
  --wp--preset--color--secondary: #AD5A21;
  --wp--preset--color--tertiary: ;
  --wp--preset--color--quaternary: #fff;
  --wp--preset--color--quinary: #000;
}

/* Keep the current header nav item green and underline it */
.ast-builder-menu-mobile li.current-menu-item > a, .ast-builder-menu-mobile li a:hover {
  background: color-mix(in srgb, var(--wp--preset--color--secondary) 50%, transparent) !important;
  color: var(--wp--preset--color--primary) !important;
}

.main-header-menu li.current-menu-item>a,
.main-header-menu li.current_page_item>a,
.ast-header-navigation li.current-menu-item>a,
.ast-header-navigation li.current_page_item>a {
  color: var(--wp--preset--color--primary) !important;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

/* Client voices section styling */
section.client-voices {
  background-color: var(--wp--preset--color--primary);
}

section.full-bleed-bg.client-voices .section-heading {
  padding-bottom: 0;
}

.client-voices .section-content-text-only > * {
  background-color: var(--wp--preset--color--quaternary);
  border-radius: 8.5px;
  padding: 1.5rem;
}

@media (max-width: 767px) {
  .client-voices .section-content-text-only > * {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
}

.client-voices .section-content-text-only > * .wp-block-quote {
  border-left: none;
  margin: 0;
  padding: 0;
  color: var(--wp--preset--color--primary);
  position: relative;
}

.client-voices .section-content-text-only > * blockquote::before {
  content: "";
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  margin: 0 auto 0.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='25.175 52 150.825 96' width='200' height='200' preserveAspectRatio='xMidYMid meet'%3E%3Cg fill='%23000002' transform='translate(200 200) scale(-1 -1)'%3E%3Cpath d='M107.443 113.262c0 19.604 16.131 35.483 35.639 34.711 17.787-.701 32.199-15.307 32.891-33.333.762-19.77-14.906-36.117-34.251-36.117h-.121c-6.24.025-10.8-6.023-8.928-12.058a71.563 71.563 0 0 1 4.764-11.628c.39-.592.39-1.381.195-1.974-.195-.394-.584-.789-.974-.789-.584-.197-1.168 0-1.947.592-8.181 7.106-15.192 16.383-19.867 26.647-4.284 9.474-6.816 19.54-7.206 30.199-.191 1.184-.191 2.566-.191 3.75h-.004Z'/%3E%3Cpath d='M25.175 113.262c0 19.604 16.131 35.483 35.64 34.711 17.785-.701 32.198-15.307 32.89-33.333.762-19.77-14.906-36.117-34.25-36.117h-.122c-6.24.025-10.8-6.023-8.928-12.058a71.576 71.576 0 0 1 4.764-11.628c.39-.592.39-1.381.195-1.974-.195-.394-.584-.789-.974-.789-.584-.197-1.168 0-1.947.592-8.18 7.106-15.192 16.383-19.866 26.647-4.285 9.474-6.817 19.54-7.207 30.199-.191 1.184-.191 2.566-.191 3.75h-.004Z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.9;
}

.client-voices .section-content-text-only>* .wp-block-quote:first-child {
  font-size: 18px;
}

.client-voices .section-content-text-only>* .wp-block-quote .wp-block-paragraph:last-child {
  text-transform: uppercase;
  font-style: normal;
}

.client-voices .section-content-text-only>* .wp-block-quote {
  border-left: none;
  margin: 0;
  padding: 0;
  color: var(--wp--preset--color--primary);
  position: relative;
}


/* Style the main pullquote container */
figure.wp-block-pullquote {
  background-color: var(--wp--preset--color--primary);
  text-align: center;
  padding: 2rem 0 8rem;
}

/* Style the text inside the pullquote */
figure.wp-block-pullquote blockquote {
  border: none;
  color: var(--wp--preset--color--quaternary);
  font-size: 1.7rem;
  line-height: 1.5;
  font-style: normal;
  font-family: Georgia, Times, serif;
  font-weight: 700;
}

figure.wp-block-pullquote blockquote:before {
  margin-bottom: 1rem;
}

/* Style the citation/author text if present */
figure.wp-block-pullquote figcaption {
  font-size: 1rem;
  font-style: normal;
  color: var(--wp--preset--color--quaternary);
}

/* Style the grid layout for the group block */

div.c-offer-grid {
  background-color: var(--wp--preset--color--secondary);
  min-height: 12rem;
  height: auto;
  padding: 2rem 1.5rem;
}

ul.wp-block-group.is-layout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  list-style: none;
  height: 100%;
  margin-block-start: 0;
}


ul.wp-block-group.is-layout-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Centers everything horizontally in the grid cell */
  text-align: center;
  /* Ensures text lines up nicely */
}

ul.wp-block-group.is-layout-grid li h3 {
  color: var(--wp--preset--color--quaternary);
  height: 100%;
  font-size: 1.2rem;
  /* Size for "years of executive experience" */
  font-weight: 500;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Centers the span and text inside the h3 */
  justify-content: center;
}

ul.wp-block-group.is-layout-grid li h3 span {
  display: block;
  font-size: 2.5rem;
  /* Larger size for "20+" */
  font-weight: 700;
  line-height: 1.5;
}

/* Full-bleed background color for specific sections or media-text blocks */
.full-bleed-bg {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* Full-bleed section container adjustments */
.full-bleed-bg .section-heading {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  padding: 6.1rem 3.5rem 3rem 3.5rem;
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--quaternary);
}

.full-bleed-bg .section-content {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0;
}

.full-bleed-bg .section-content-text-only {
  padding: 3.5rem;
}

/* Style the h2 inside that first child */
.full-bleed-bg .section-heading h2,
.full-bleed-bg .section-heading p.h2,
.full-bleed-bg .section-heading h1
 {
  text-transform: uppercase;
  font-size: 18px;
  font-weight: 400;
  font-family: "Manrope", sans-serif;
  line-height: 1.5;
  color: var(--wp--preset--color--quaternary);
}

/* Style the p inside the section heading */
.full-bleed-bg .section-heading p {
  font-size: 40px;
  font-weight: 700;
  font-family: Georgia, Times, serif;
  margin-block-start: 0;
  line-height: 1.3;
}

/* Style the content after heading on pages */
.page-content {
  margin-top: 2rem;
}

/* Force the image container column to take full height */
.wp-block-media-text:not(.graphic-chart) .image-wrapper img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.wp-block-media-text.graphic-chart .image-wrapper {
    display: flex;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
    padding-right: 3.5rem;
}

@media (max-width: 767px) {
  .wp-block-media-text.graphic-chart .image-wrapper {
    padding-top: 3.5rem;
    padding-left: 3.5rem;
  }
}

.wp-block-media-text .wp-block-media-text__content {
  padding: 3.5rem;
}

.wp-block-media-text .wp-block-media-text__content ul {
  margin: 0;
  padding-left: 1.25rem;
  list-style: disc;
}

.wp-block-media-text .wp-block-media-text__content ul li {
  margin-bottom: 1.5rem;
}

.wp-block-media-text .wp-block-media-text__content ul li > span {
  display: block;
  font-weight: 700;
  margin-bottom: 0.25rem;
  font-style: italic;
}

/* section contact */
.section-contact {
  text-align: center;
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.section-contact p:first-of-type {
  font-size: 1.25rem;
  font-weight: 600;
  color: #085042;
  margin-bottom: 0.75rem;
}

.section-contact p:not(:first-of-type) {
  max-width: 600px;
  color: #555;
  margin-bottom: 2rem;
}

.section-contact .wp-block-button__link {
  background-color: #085042;
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.section-contact .wp-block-button__link:hover {
  background-color: #063d32;
  transform: translateY(-2px);
}

/* to top button */

.to-top-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: underline;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-underline-offset: 6px;
}

.to-top-btn:hover {
  transition: all 0.2s ease; 
  color: #fff;
}

.to-top-btn:focus {
  color: #fff;
}

footer .has-small-font-size {
  font-size: 14px !important;
}

footer a:focus-visible {
  outline-color: white;
}

footer .social-show-label-true .ast-builder-social-element {
  margin-right: 0 !important;
}

/* Contact Us Page Container */

.contact-us>.wp-block-paragraph {
  max-width: 600px;
  margin-bottom: 2.5rem;
  color: #555;
  font-size: 1.1rem;
}

/* Form Layout & Centering */
.contact-us form {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  text-align: left;
}

/* Form Fields Setup */
.contact-us form p {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
  font-weight: 500;
  color: #333;
}

.contact-us form label {
  font-size: 16px;
}

/* Inputs and Textarea Styling (Not Full Width of Page, Restricted to Form Container) */
.contact-us form input[type="text"],
.contact-us form input[type="email"],
.contact-us form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #333;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Input Focus State */
.contact-us form input[type="text"]:focus,
.contact-us form input[type="email"]:focus,
.contact-us form textarea:focus {
  outline: none;
  border-color: #085042;
  box-shadow: 0 0 0 3px rgba(8, 80, 66, 0.15);
  background-color: #fff;
}

/* Submit Button */
.contact-us form input[type="submit"] {
  background-color: #085042;
  color: #fff;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  width: 100%;
  transition: background-color 0.2s ease, transform 0.2s ease;
  margin-top: 1rem;
}

/* Submit Button Hover */
.contact-us form input[type="submit"]:hover {
  background-color: #063d32;
  transform: translateY(-2px);
}

/* Submit Button Hover */
.contact-us form input[type="submit"]:focus-visible {
  outline: 2px solid #063d32;
  outline-offset: 2px;
}

/* Colored Sections Media */

.full-bleed-bg.colored-section {
  padding: 65px 20px 40px 20px;
}

.full-bleed-bg.colored-section h2 {
  text-align: center;
  margin-bottom: 50px;
}

.full-bleed-bg.colored-section h3 {
  font-size: 20px;  
}

.full-bleed-bg.colored-section p {
  font-size: 18px;
}

.full-bleed-bg.colored-section blockquote {
  text-align: center;
  border-left: none !important;
  max-width: 600px;
}

.full-bleed-bg.colored-section blockquote p {
  margin-block-start: 0;
}

.full-bleed-bg.colored-section blockquote p:last-child {
  text-transform: uppercase;
  font-size: 16px;
  font-style: normal;
}

