/**
Theme Name: SEO Impact
Author: SEO Impact
Author URI: https://seoimpact.co.uk
Description: Version 2.0
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: seo-impact
Template: astra
*/

/* =========================================================
   1. TYPOGRAPHY & TEXT HELPERS
   ========================================================= */

.featured-text {
  font-size: 1.15em;
}

.h2-block span {
  display: block;
  color: rgba(255, 255, 255, 0.52);
}

/* If you do not need to target non-h1 elements, you can remove .h1-block span */
.h1-block span {
  display: block;
  color: rgba(0, 0, 0, 0.52);
}

h1 span {
  display: block;
  color: rgba(0, 0, 0, 0.52);
}

.no-margin p {
  margin-bottom: 0px;
}

dd {
  line-height: 1.2em;
}

.elementor-widget-heading h1.elementor-heading-title,
h2.elementor-heading-title.elementor-size-default {
  line-height: 1.12em;
}

.updated::before {
  content: "Updated:";
}


/* =========================================================
   2. GLOBAL LINKS, BUTTONS & FOCUS STATES
   ========================================================= */

a:focus,
button:focus,
[data-section="section-header-mobile-trigger"] .ast-button-wrap .ast-mobile-menu-trigger-minimal:focus,
.ast-mobile-popup-drawer.active .menu-toggle-close:focus {
  outline: none;
  border: none;
}

.ast-custom-button::after {
  content: "";
  display: inline-block;
  background: url("/wp-content/uploads/2025/10/arrow-alt-ico.svg") no-repeat center;
  background-size: contain;
  height: 0.75em !important;
  width: 0.75em !important;
  margin-left: 12px;
  vertical-align: middle;
}

.wp-block-button__link.has-ast-global-color-4-color.has-text-color.has-link-color.wp-element-button::after {
  content: "";
  display: inline-block;
  background: url("/wp-content/uploads/2025/10/arrow-alt-ico.svg") no-repeat center;
  background-size: contain;
  height: 0.75em !important;
  width: 0.75em !important;
  margin-left: 12px;
  vertical-align: middle;
}

.ast-header-html-1 .ast-builder-html-element a::after {
  content: "";
  display: inline-block;
  background: url('/wp-content/uploads/2025/10/arrow-alt-ico.svg') no-repeat center;
  background-size: contain;
  width: 0.75em;
  height: 0.75em;
  margin-left: 8px;
  flex-shrink: 0;
}


/* =========================================================
   3. FORMS
   ========================================================= */

/* General form fields */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="reset"],
input[type="tel"],
input[type="date"],
select {
  height: 50px;
}

/* Gravity Forms: remove box shadow from all fields */
.gform_wrapper input,
.gform_wrapper textarea,
.gform_wrapper select,
.gform_wrapper button,
.gform_wrapper .gform_button {
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
}

/* Remove focus shadows as well */
.gform_wrapper input:focus,
.gform_wrapper textarea:focus,
.gform_wrapper select:focus,
.gform_wrapper button:focus,
.gform_wrapper .gform_button:focus {
  box-shadow: none !important;
  outline: none;
}

/* Gravity Forms Custom Styling (Form ID 1) */
#gform_1 .gfield:not(:last-child) {
  margin-bottom: -20px !important;
}

#gform_1 input[type="text"],
#gform_1 input[type="email"],
#gform_1 input[type="tel"],
#gform_1 input[type="number"],
#gform_1 textarea,
#gform_1 select {
  min-height: 46px;
  padding: 10px 12px;
  font-size: 16px;
  line-height: 1.2;
  border: 1px solid #ccc !important;
  border-radius: 4px;
}

#gform_1 input:focus,
#gform_1 textarea:focus,
#gform_1 select:focus {
  border-color: #999 !important;
  outline: none;
  box-shadow: none;
}

#gform_1 .gform_footer input[type="submit"],
#gform_1 .gform_footer button {
  background-color: #FF665A;
  color: #ffffff;
  font-weight: 800;
  border: none;
  border-radius: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
  padding-left: 28px;
  padding-right: 28px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#gform_1 .gform_footer input[type="submit"]:hover,
#gform_1 .gform_footer button:hover {
  background-color: #FF4E41;
}


/* =========================================================
   4. HEADER, STICKY HEADER & NAVIGATION
   ========================================================= */

.ast-above-header-bar.ast-above-header.site-header-focus-item {
  background: #000;
}

.menu-toggle.main-header-menu-toggle.ast-mobile-menu-trigger-minimal {
  padding: 0;
}

[data-section="section-header-mobile-trigger"] .ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg {
  width: 36px;
  height: 36px;
}

.ast-hfb-header.ast-desktop .ast-builder-menu-1 .main-header-menu .menu-item.menu-item-heading > .menu-link {
  color: #000;
}

.ast-builder-menu-1 .sub-menu li .menu-link:hover {
  color: #FF4E41 !important;
}

/* Sticky header background */
#ast-fixed-header.ast-sticky-active,
#ast-fixed-header.ast-header-sticked {
  background: #fff !important;
}

#ast-fixed-header.ast-sticky-active .ast-primary-header-bar,
#ast-fixed-header.ast-header-sticked .ast-primary-header-bar,
#ast-fixed-header.ast-sticky-active .ast-main-header-wrap,
#ast-fixed-header.ast-header-sticked .ast-main-header-wrap {
  background: #fff !important;
}

/* Sticky header desktop menu items */
#ast-fixed-header.ast-sticky-active #primary-site-navigation-desktop-sticky .menu-link,
#ast-fixed-header.ast-header-sticked #primary-site-navigation-desktop-sticky .menu-link,
#ast-fixed-header.ast-sticky-active #primary-site-navigation-desktop-sticky .main-header-menu > li > a,
#ast-fixed-header.ast-header-sticked #primary-site-navigation-desktop-sticky .main-header-menu > li > a,
#ast-fixed-header.ast-sticky-active .ast-header-button-1 .ast-custom-button-link,
#ast-fixed-header.ast-header-sticked .ast-header-button-1 .ast-custom-button-link {
  color: #000 !important;
}

/* Sticky header desktop dropdown arrows */
#ast-fixed-header.ast-sticky-active #primary-site-navigation-desktop-sticky .ast-arrow-svg,
#ast-fixed-header.ast-header-sticked #primary-site-navigation-desktop-sticky .ast-arrow-svg {
  fill: #000 !important;
}

/* Transparent header megamenu styling */
.ast-theme-transparent-header #masthead #primary-site-navigation-desktop .astra-full-megamenu-wrapper,
.ast-theme-transparent-header #masthead #primary-site-navigation-desktop .astra-megamenu.sub-menu,
.ast-theme-transparent-header #ast-fixed-header #primary-site-navigation-desktop-sticky .astra-full-megamenu-wrapper,
.ast-theme-transparent-header #ast-fixed-header #primary-site-navigation-desktop-sticky .astra-megamenu.sub-menu {
  background: #03038C !important;
}

/* Transparent header megamenu links */
.ast-theme-transparent-header #masthead #primary-site-navigation-desktop .astra-megamenu .menu-link,
.ast-theme-transparent-header #ast-fixed-header #primary-site-navigation-desktop-sticky .astra-megamenu .menu-link {
  color: #fff !important;
}

/* Transparent header megamenu arrows */
.ast-theme-transparent-header #masthead #primary-site-navigation-desktop .astra-megamenu .ast-arrow-svg,
.ast-theme-transparent-header #ast-fixed-header #primary-site-navigation-desktop-sticky .astra-megamenu .ast-arrow-svg {
  fill: #fff !important;
}

/* Transparent header megamenu heading separator */
.ast-theme-transparent-header #masthead #primary-site-navigation-desktop .astra-megamenu .menu-item-heading > .menu-link,
.ast-theme-transparent-header #ast-fixed-header #primary-site-navigation-desktop-sticky .astra-megamenu .menu-item-heading > .menu-link {
  border-bottom: 1px solid rgba(255, 255, 255, 0.35) !important;
}

/* Transparent header megamenu hover/focus */
.ast-theme-transparent-header #masthead #primary-site-navigation-desktop .astra-megamenu .menu-link:hover,
.ast-theme-transparent-header #masthead #primary-site-navigation-desktop .astra-megamenu .menu-link:focus,
.ast-theme-transparent-header #ast-fixed-header #primary-site-navigation-desktop-sticky .astra-megamenu .menu-link:hover,
.ast-theme-transparent-header #ast-fixed-header #primary-site-navigation-desktop-sticky .astra-megamenu .menu-link:focus {
  color: #fff !important;
}

.home .site-header .sticky-custom-logo {
  display: inline !important;
}


/* =========================================================
   5. ASTRA MOBILE MENU
   ========================================================= */

#ast-hf-mobile-menu > li.top-level {
  margin-top: 12px;
  margin-bottom: 0px;
}

/* Hide Astra arrow icons */
#ast-hf-mobile-menu .ast-icon {
  display: none;
}

/* Section header link */
#ast-hf-mobile-menu > li.top-level > a.menu-link {
  position: relative;
  padding-left: 46px;
}

/* Divider line before section label */
#ast-hf-mobile-menu > li.top-level > a.menu-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 26px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-50%);
}

/* Section label text style */
#ast-hf-mobile-menu > li.top-level .menu-text {
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.7);
}

/* Subitems alignment */
#ast-hf-mobile-menu > li:not(.top-level) > a.menu-link {
  padding-left: 46px !important;
}


/* =========================================================
   6. FOOTER
   ========================================================= */

.ast-builder-footer-grid-columns.site-below-footer-inner-wrap.ast-builder-grid-row {
  border-top: 1px solid #3A3A3A;
}

#menu-footer {
  display: flex;
  justify-content: center;
  gap: 4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

footer .widget_nav_menu li {
  margin-bottom: 12px;
}

footer .elementor-widget .elementor-icon-list-items {
  list-style-type: none;
  margin: 0;
}

footer .elementor-widget .elementor-icon-list-icon svg {
  height: 10px;
  width: 10px;
}

.footer-legal {
  font-size: 14px;
  text-align: center;
  line-height: 1.6;
}

@media (max-width: 767px) {
  .footer-legal {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-legal > .separator {
    display: none;
  }
}

@media (max-width: 544px) {
  .site-below-footer-wrap[data-section="section-below-footer-builder"].ast-footer-row-mobile-stack .site-footer-section {
    margin-bottom: 0;
  }
}


/* =========================================================
   7. SOCIAL ICONS
   ========================================================= */

.wp-social-link a {
  border-radius: 6px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;

  /*
  background-color: #ff665a;
  background-image: linear-gradient(270deg, #ff665a 0%, #ffb36b 100%);
  transition: all 0.3s ease;
  */
}

.wp-social-link svg path {
  fill: #fff !important;
  transition: fill 0.3s ease;
}

.wp-social-link a:hover svg path {
  fill: #0d0d0d !important;
}

.elementor-2650 .elementor-element.elementor-element-2dc18cf .elementor-social-icon {
  padding: 6px;
}

.social-list-footer .elementor-icon-list-icon {
  font-size: 24px !important;
}

.social-list-footer .elementor-icon-list-icon svg {
  width: 0.7em !important;
  height: 0.7em !important;
}


/* =========================================================
   8. ELEMENTOR / CONTENT BLOCKS
   ========================================================= */

.elementor-button-icon svg {
  height: auto;
  width: 0.75em;
}

.elementor-icon svg {
  height: 16px;
  width: 16px;
}

.profile-box {
  max-height: 585px;
}

.elementor-image-box-img img {
  min-width: 40px;
}

.elementor-cta__bg-overlay {
  opacity: 0 !important;
  background: none !important;
  transition: none !important;
}

.elementor-cta:hover .elementor-cta__bg-overlay {
  opacity: 0 !important;
}


/* =========================================================
   9. PROJECT / DETAILS / CARD COMPONENTS
   ========================================================= */

@media only screen and (min-width: 767px) {
  .card-text p {
    min-height: 85px;
  }
}

.project-details dl {
  display: grid;
  grid-template-columns: 160px auto;
  gap: 8px 16px;
  margin: 0;
}

.project-details dt {
  font-size: 0.85em;
  font-weight: 500;
  color: #777;
  line-height: 1em;
}

.project-details dd {
  margin: 0 0 12px 0;
  font-size: 1em;
  font-weight: 600;
  color: #222;
}

.project-details dd:not(:last-child) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 6px;
}

@media (min-width: 768px) {
  .sticky-column {
    position: sticky;
    top: 100px;
    align-self: flex-start;
  }
}


/* =========================================================
   10. BLOG, ARCHIVE & POSTS
   ========================================================= */

.blog .entry-title,
.blog .entry-title a,
.archive .entry-title,
.archive .entry-title a,
.search .entry-title,
.search .entry-title a {
  font-size: 18px;
}

.post-page-numbers.current .page-link,
.ast-pagination .page-numbers.current {
  color: #fff;
  font-weight: 700;
}

.ast-post-filter {
  margin-bottom: 36px;
}

a.ast-post-filter-single {
  padding: 0.5em 0.9em;
  border-radius: 16px;
  border: 1px solid black;
  line-height: 1em;
}

a.ast-post-filter-single.active {
  background: #FF665A;
  color: #FFF;
  border: #FF665A;
}

a.ast-post-filter-single.active:hover {
  border: none;
}

a.ast-post-filter-single:hover {
  color: white;
  background: #FF665A;
  border: 1px solid #FF665A;
}

@media only screen and (min-width: 1190px) {
  .entry-title.ast-blog-single-element {
    min-height: 40px;
  }
}

.single .ast-article-single img:not(.avatar) {
  padding: 24px;
}

@media (max-width: 769px) {
  .single .ast-article-single img:not(.avatar) {
    padding: 12px;
  }
}

.ast-single-entry-banner h1 {
  max-width: 770px;
}

.single-post .entry-content a,
.post-author-desc a {
  color: #000;
  text-decoration: underline;
  text-decoration-color: #FF4E41;
  text-decoration-thickness: 3px;
}

/* Blog archive banner text */
.blog .ast-archive-entry-banner p {
  font-weight: 800;
  color: rgba(0, 0, 0, 0.52);
  font-size: 42px;
}

@media (max-width: 1366px) {
  .blog .ast-archive-entry-banner p {
    font-size: 32px;
    line-height: 1.12em;
  }
}

@media (max-width: 767px) {
  .blog .ast-archive-entry-banner p {
    font-size: 28px;
    line-height: 1.12em;
  }
}

.blog .ast-archive-entry-banner h1 {
  margin-bottom: 6px !important;
}


/* =========================================================
   11. BLOG FILTER - MOBILE SCROLLING
   ========================================================= */

@media (max-width: 1240px) {
  .ast-post-filter {
    position: relative;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
    padding-left: 12px;
    padding-right: 24px;
    scrollbar-width: none;
  }

  .ast-post-filter::-webkit-scrollbar {
    display: none;
  }

  .ast-post-filter > ul.ast-post-filter-list {
    display: inline-flex !important;
    width: max-content;
    flex-wrap: nowrap !important;
    gap: 0.5rem !important;
    margin: 0;
    list-style: none;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }

  .ast-post-filter > ul.ast-post-filter-list::before,
  .ast-post-filter > ul.ast-post-filter-list::after {
    display: none !important;
  }

  .ast-post-filter > ul.ast-post-filter-list > li {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  a.ast-post-filter-single {
    display: inline-flex !important;
    width: auto !important;
    max-width: none !important;
    white-space: nowrap !important;
  }

  .ast-post-filter::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 24px;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.2s;
  }

  .ast-post-filter.is-end::after {
    opacity: 0;
  }
}

@media (max-width: 1024px) {
  .ast-post-filter {
    padding-left: 0;
  }

  .ast-post-filter-list {
    padding-left: 0 !important;
  }
}


/* =========================================================
   12. SIDEBAR / WIDGETS / BLOCKS
   ========================================================= */

.sidebar-main {
  border: 1px solid #F0F0F0;
  border-radius: 16px;
  max-width: 378px;
}

.ast-separate-container.ast-two-container #secondary .widget {
  padding-top: 0px;
  padding-bottom: 0px;
}

.widget ul {
  list-style-type: disc;
  list-style-position: inside;
}

#block-21 .wp-image-2391,
.wp-image-2391 {
  max-width: 200px;
}

#block-23 .wp-block-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  gap: 0;
}

#block-23 .wp-block-list a {
  color: #FFF;
}

#block-23 .wp-block-list > li {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

#block-23 .wp-block-list > li > a {
  display: inline-block;
  text-decoration: none;
  padding: 0;
}

#block-23 .wp-block-list > li:not(:last-child)::after {
  content: "•";
  display: inline-block;
  margin: 0 10px;
  color: #FFF;
  opacity: 0.85;
}

@media (max-width: 768px) {
  #block-23 .wp-block-list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

#block-25 {
  padding-bottom: 2em !important;
}

@media (max-width: 1190px) {
  #block-25 {
    padding-bottom: 1em !important;
  }
}

#block-27 {
  padding-top: 2em !important;
  margin-bottom: 1em !important;
}

#block-29 {
  margin-bottom: 1em !important;
}

#block-29 h3 {
  border-top: 1px solid;
}


/* =========================================================
   13. TESTIMONIALS / EQUAL HEIGHT
   ========================================================= */

@media (min-width: 770px) and (max-width: 1005px) {
  .same-height .elementor-testimonial-content {
    min-height: 280px;
  }
}

@media (min-width: 1006px) and (max-width: 1199px) {
  .same-height .elementor-testimonial-content {
    min-height: 255px;
  }
}

@media (min-width: 1200px) and (max-width: 1384px) {
  .same-height .elementor-testimonial-content {
    min-height: 228px;
  }
}

@media (min-width: 1385px) {
  .same-height .elementor-testimonial-content {
    min-height: 199px;
  }
}


/* =========================================================
   14. MEDIA / GALLERY FIXES
   ========================================================= */

.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption)::before {
  max-height: 0 !important;
}


/* =========================================================
   15. RESPONSIVE / DEVICE-SPECIFIC ADJUSTMENTS
   ========================================================= */

@media only screen and (max-width: 1366px) {
  .ast-header-button-1[data-section*="section-hb-button-"] .ast-builder-button-wrap .ast-custom-button {
    padding-top: 12px;
    padding-bottom: 12px;
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media only screen and (max-width: 544px) {
  .single-post #secondary {
    margin-top: 0;
    margin-bottom: 6em;
    margin-left: 1em;
    margin-right: 1em;
    max-width: 320px;
  }
}