/*
 * Corporate One — design CSS.
 * Ported from site/demo/corporate1/style.css. Colors come from the palette (theme.json / style
 * variations / Global Styles); the old variable names are mapped below so the original rules work.
 */

:root {
  --primary-color: var(--wp--preset--color--primary);
  --secondary-color: var(--wp--preset--color--secondary);
  --tertiary-color: var(--wp--preset--color--tertiary);
  --quaternary-color: var(--wp--preset--color--quaternary);

  --font-color: var(--wp--custom--font-color);
  --alt-bg-color: var(--wp--custom--alt-bg);
  --footer-bg-color: var(--wp--custom--footer-bg);
  --footer-color: var(--wp--custom--footer-color);
  --home-hero-bg-color: var(--wp--custom--home-hero-bg);
  --home-hero-color: var(--wp--custom--home-hero-color);
  --home-hero-padding: var(--wp--custom--home-hero-padding);

  /* Bootstrap follows the palette too */
  --bs-primary: var(--primary-color);
  --bs-secondary: var(--secondary-color);
  --bs-body-color: var(--font-color);
  --bs-link-color: var(--secondary-color);
  --bs-link-hover-color: var(--primary-color);
}

/* ---------- Buttons ---------- */

.btn-primary,
.is-style-btn-primary .wp-block-button__link {
  --bs-btn-color: var(--primary-contrast-color, #fff);
  --bs-btn-bg: var(--primary-color);
  --bs-btn-border-color: var(--primary-color);
  --bs-btn-hover-border-color: var(--primary-color);
  --bs-btn-active-bg: var(--primary-color);
  --bs-btn-active-border-color: var(--primary-color);
  --bs-btn-hover-bg: var(--primary-color);
  --bs-btn-hover-color: var(--secondary-color);
}

.btn-secondary,
.is-style-btn-secondary .wp-block-button__link {
  --bs-btn-color: var(--secondary-contrast-color, #fff);
  --bs-btn-bg: var(--secondary-color);
  --bs-btn-border-color: var(--secondary-color);
  --bs-btn-hover-border-color: var(--secondary-color);
  --bs-btn-active-bg: var(--secondary-color);
  --bs-btn-active-border-color: var(--secondary-color);
  --bs-btn-hover-bg: var(--secondary-color);
  --bs-btn-hover-color: var(--primary-color);
}

.btn-outline-primary,
.is-style-btn-outline-primary .wp-block-button__link {
  --bs-btn-color: var(--primary-color);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--primary-color);
  --bs-btn-border-color: var(--primary-color);
  --bs-btn-hover-border-color: var(--primary-color);
}

.btn-outline-secondary,
.is-style-btn-outline-secondary .wp-block-button__link {
  --bs-btn-color: var(--secondary-color);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--secondary-color);
  --bs-btn-border-color: var(--secondary-color);
  --bs-btn-hover-border-color: var(--secondary-color);
}

/* Core Button block styled as a Bootstrap button (block styles registered in functions.php) */
[class*="is-style-btn-"] .wp-block-button__link {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--bs-btn-color);
  background-color: var(--bs-btn-bg, transparent);
  border: 1px solid var(--bs-btn-border-color);
  border-radius: 0.375rem;
  text-decoration: none;
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}
[class*="is-style-btn-"] .wp-block-button__link:hover {
  color: var(--bs-btn-hover-color);
  background-color: var(--bs-btn-hover-bg);
  border-color: var(--bs-btn-hover-border-color);
}

/* ---------- Base ---------- */

/* Bootstrap sets heading weights with more specificity than theme.json; restate the design here */
h2 {
  text-transform: uppercase;
  font-weight: 700;
}

body {
  background-color: #fff;
  font-optical-sizing: auto;
}

.alt-bg {
  background-color: var(--alt-bg-color);
}

.page-section {
  padding-top: var(--wp--custom--section-padding);
  padding-bottom: var(--wp--custom--section-padding);
}

.bg-circle {
  width: 40px;
  height: 40px;
  opacity: 0.3;
  position: absolute;
  border-radius: 50%;
}
.circle-primary { background-color: var(--primary-color); }
.circle-secondary { background-color: var(--secondary-color); }
.circle-third { background-color: var(--tertiary-color); }

/* ---------- Header ---------- */

.site-header {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.site-header .wp-block-navigation {
  font-weight: 700;
  text-transform: uppercase;
}

.site-header .wp-block-navigation-item__content {
  color: #000;
  padding: 0.5rem;
}

.site-header .wp-block-navigation-item__content:hover {
  color: var(--primary-color);
}

/* Front page: header sits over the hero image */
.is-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}
.is-overlay .site-header .wp-block-navigation-item__content,
.is-overlay .site-brand .wp-block-site-title a {
  color: #fff;
}
.is-overlay .site-header .wp-block-navigation-item__content:hover {
  color: var(--primary-color);
}
.is-overlay .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  color: #000;
}
.admin-bar .is-overlay {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .is-overlay {
    top: 46px;
  }
}

.site-header .wp-block-site-logo img {
  max-height: 48px;
  width: auto;
}

/* ---------- Home hero ---------- */

.home-hero {
  padding-top: var(--home-hero-padding) !important;
  padding-bottom: var(--home-hero-padding) !important;
  color: var(--home-hero-color);
}

.home-hero h1 {
  font-weight: 900;
  text-transform: uppercase;
  font-size: 3rem;
}

/* ---------- Page header (cover block, "Duotone" style) ---------- */

.wp-block-cover.is-style-duotone {
  padding: 5rem 0;
  min-height: 0;
  background: url('../images/header_bg_06.png') center center / cover no-repeat;
}

.wp-block-cover.is-style-duotone::before,
.wp-block-cover.is-style-duotone::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.wp-block-cover.is-style-duotone::before {
  background-color: var(--primary-color);
  mix-blend-mode: multiply;
}

.wp-block-cover.is-style-duotone::after {
  background-color: #000;
  mix-blend-mode: lighten;
}

.wp-block-cover.is-style-duotone .wp-block-cover__inner-container {
  z-index: 2;
}

.wp-block-cover.is-style-duotone h1 {
  color: #fff;
  text-align: center;
  font-weight: 900;
  text-shadow: 2px 2px 2px #00000044;
  font-size: 3rem;
  text-transform: none;
}

/* ---------- Icon boxes ---------- */

.icon-boxes .card {
  text-align: center;
  border: none;
}
.icon-boxes .card .fa-stack {
  margin: 0 auto;
}
.icon-boxes i {
  color: var(--primary-color);
}
.icon-boxes .fa-inverse {
  color: #fff;
}

/* ---------- Testimonials ---------- */

.testimonials .fa-star {
  color: #e3993f;
}
.testimonials .fa-quote-left {
  font-size: 3rem;
  color: var(--tertiary-color);
}

/* ---------- Projects (home) ---------- */

.projects .portfolio-item .portfolio-link {
  position: relative;
  display: block;
  margin: 0 auto;
  color: #fff;
}
.projects .portfolio-item .portfolio-link .portfolio-hover {
  display: flex;
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--tertiary-color);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity ease-in-out 0.25s;
}
.projects .portfolio-item .portfolio-link:hover .portfolio-hover {
  opacity: 0.85;
}
.projects .portfolio-item {
  height: 100%;
  background-color: #fff;
}
.team h3,
.projects h3 {
  font-size: 1.3rem;
  margin-bottom: 2rem;
}
.portfolio-item {
  box-shadow: 0px 4px 8px rgba(0,0,0,0.15);
}
.portfolio-modal .modal-dialog {
  max-width: 95vw;
}

/* ---------- Team ---------- */

.team-member {
  text-align: center;
}
.team-member img {
  width: 14rem;
  height: 14rem;
  border: 0.5rem solid rgba(0, 0, 0, 0.1);
}
.member-info .btn-social,
.team-member .btn-social {
  height: 2.5rem;
  width: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 100%;
  position: relative;
  top: 0;
  transition: top 0.2s ease;
}
.member-info .btn-social:hover,
.team-member .btn-social:hover {
  top: -6px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px 30px;
}

.member-info img {
  border-bottom: 8px solid var(--primary-color);
  margin-bottom: 1.5rem;
}
.member-info h3 {
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 1.4rem;
}
.member-content h2 {
  font-size: 1.3rem;
  text-transform: none;
  color: var(--secondary-color);
}

/* ---------- Partners ---------- */

.partners .wp-block-image {
  display: block;
  margin: 0;
}
.partners .wp-block-image img {
  width: 100%;
  height: 2.75rem;
  object-fit: contain;
}

/* ---------- About ---------- */

.about-boxes .box-01,
.project-boxes .box-01 {
  background-color: var(--secondary-color);
  color: #fff;
}
.about-boxes .box-02,
.project-boxes .box-02 {
  background-color: var(--tertiary-color);
  color: #000;
}
.about-boxes .box-01,
.about-boxes .box-02,
.project-boxes .box-01,
.project-boxes .box-02 {
  border-radius: 20px;
  padding: 3rem;
  height: 100%;
}

.about-contact .row {
  padding: 5rem 0;
}
.about-contact h2 {
  font-size: 3.5rem;
  position: relative;
  z-index: 1;
}
.about-contact .title-wrap::before {
  content: '';
  display: block;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: var(--primary-color);
  top: -10px;
  left: -20px;
  position: absolute;
  opacity: 0.5;
}
.about-contact .title-wrap::after {
  content: '';
  display: block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--tertiary-color);
  top: 25px;
  left: 35px;
  position: absolute;
  opacity: 0.5;
}

/* ---------- Contact ---------- */

.contact-us ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact-us ul li {
  margin-bottom: 0.8rem;
}
.contact-us ul.office li i {
  color: #fff;
  background-color: var(--secondary-color);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.contact-us ul.hours li i {
  color: var(--secondary-color);
}

/* ---------- Projects archive / single ---------- */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.projects-grid .project-img-wrapper {
  overflow: hidden;
  height: 170px;
  width: 100%;
}
.projects-grid .project-img-wrapper img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  object-position: center center;
  transform: scale(1);
  transition: transform 0.3s ease;
}
.projects-grid .card:hover .project-img-wrapper img {
  transform: scale(1.2);
}
.projects-grid .card-body {
  position: relative;
  padding-bottom: 65px;
}
.projects-grid .card-body .btn {
  position: absolute;
  left: 15px;
  width: calc(100% - 30px);
  bottom: 15px;
}

.project-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding: 1.5rem 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
}
.project-desc h5,
.project-photos h5,
.project-info-box h5 {
  color: var(--tertiary-color);
  font-size: 0.9rem;
  text-transform: uppercase;
  font-weight: 700;
}
.project-info-box h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary-color);
}

/* ---------- Services ---------- */

.services-menu {
  padding: 0;
  margin: 0;
  list-style: none;
}
.services-menu li {
  position: relative;
  padding: 20px 10px 20px 45px;
  margin-bottom: 10px;
  background-color: #f0f0f0;
}
.services-menu li:hover {
  background-color: var(--tertiary-color);
}
.services-menu li a {
  color: #000;
  text-decoration: none;
}
.services-menu li::before {
  content: '';
  width: 20px;
  height: 3px;
  position: absolute;
  top: 30px;
  left: 20px;
  background-color: var(--primary-color);
}

.feat-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
  margin-bottom: 1.5rem;
}

.main-content ul {
  list-style: none;
}
.main-content ul li {
  margin-bottom: 0.8rem;
}
.main-content ul li::before {
  font-family: "Font Awesome 6 Free";
  content: '\f00c';
  margin: 0 5px 0 -15px;
  color: var(--secondary-color);
  font-weight: bold;
}

.background-cards-wrap {
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(2, 1fr);
}
.background-card {
  position: relative;
  background-color: var(--secondary-color);
}
.background-card:hover .card-content {
  margin-left: 0.5rem;
}
.card-bg {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  filter: grayscale(1) opacity(0.5);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}
.card-content {
  color: #fff;
  padding: 5rem 8rem 1rem 1rem;
  position: relative;
  margin-left: 0;
  transition: margin-left 0.2s ease;
}
.card-content a {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}
.card-content a i {
  color: var(--primary-color);
  margin-left: 4px;
}
.card-content .text-muted {
  color: #c0c0c0 !important;
}

/* ---------- Footer ---------- */

.site-footer {
  background-color: var(--footer-bg-color);
  color: var(--footer-color);
  padding: 2rem 0;
}

.site-footer a {
  color: var(--footer-color);
  text-decoration: none;
}

.site-footer .wp-block-social-links {
  font-size: 1.5rem;
}
.site-footer .wp-block-social-links .wp-social-link {
  color: var(--footer-color);
  transition: color 0.2s ease;
}
.site-footer .wp-block-social-links .wp-social-link:hover {
  color: var(--tertiary-color);
}

.site-footer .footer-top {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ffffff44;
}

.site-footer .copy-right {
  font-size: 0.9rem;
  margin-top: 1rem;
}

.footer-smartcode {
  text-align: center;
  font-size: 13px;
}
.footer-smartcode p {
  margin: 1.5rem 0 0;
}
.footer-smartcode svg {
  max-width: 180px;
  height: auto;
}
.footer-smartcode .smrt-color-1 {
  fill: #fff;
}

/* ---------- Responsive ---------- */

@media screen and (min-width: 992px) {
  .cta-02 .cta-content {
    padding-right: 5rem;
  }
  .member-content {
    padding-left: 5rem;
  }
}

@media screen and (max-width: 1300px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 992px) {
  .page-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .home-hero h1 {
    font-size: 2.5rem;
  }

  .wp-block-cover.is-style-duotone {
    padding: 3rem 15px;
  }
  .wp-block-cover.is-style-duotone h1 {
    font-size: 2rem;
  }

  .project-boxes .row > div,
  .about-boxes .row > div {
    margin-bottom: 20px;
  }

  .about-contact h2 {
    font-size: 2.5rem;
  }

  .projects-grid,
  .team-grid,
  .project-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-content {
    padding: 5rem 1rem 1rem 1rem;
  }

  .site-footer .footer-top > * {
    justify-content: center !important;
  }
  .site-footer .copy-right {
    text-align: center;
  }
}

@media screen and (max-width: 768px) {
  .projects-grid,
  .project-info-grid,
  .team-grid,
  .background-cards-wrap {
    grid-template-columns: 1fr;
  }
  .team-grid {
    gap: 30px;
  }
}

/* Site title is the fallback when no logo is set */
.site-brand .wp-block-site-logo + .wp-block-site-title {
  display: none;
}
.site-brand .wp-block-site-title {
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
}
.site-brand .wp-block-site-title a {
  color: #000;
  text-decoration: none;
}

/* ---------- Pattern helpers ---------- */

/* Icon inside a filled circle (replaces the demo's fa-stack) */
.icon-circle {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}
.icon-circle i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4em;
  height: 2.4em;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #fff;
  font-size: 48px;
}
/* Glyph about half the circle, like the demo's Font Awesome stacked icons (fa-4x) */
.icon-circle i::before {
  font-size: 1.2em;
}

/* Image in the organic "blob" shape (replaces the demo's inline SVG clip path) */
.wp-block-image.is-style-blob img {
  aspect-ratio: 1;
  width: 100%;
  object-fit: cover;
  -webkit-mask: url('../images/blob.svg') center / contain no-repeat;
  mask: url('../images/blob.svg') center / contain no-repeat;
}

/* Decorative palette circles behind a text column (fixed positions instead of the demo's random JS) */
.has-bg-circles {
  position: relative;
}
.has-bg-circles > * {
  position: relative;
  z-index: 1;
}
.has-bg-circles::before,
.has-bg-circles::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
  z-index: 0;
}
.has-bg-circles::before {
  width: 46px;
  height: 46px;
  top: 12%;
  left: 62%;
  background-color: var(--primary-color);
  box-shadow: -220px 190px 0 -8px var(--tertiary-color);
}
.has-bg-circles::after {
  width: 30px;
  height: 30px;
  top: 70%;
  left: 78%;
  background-color: var(--secondary-color);
  box-shadow: -120px -210px 0 6px var(--tertiary-color);
}

/* Testimonials */
.testimonial-card {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  padding: 2rem;
  height: 100%;
  background: #fff;
}
.testimonial-card .testimonial-author {
  margin-bottom: 1rem;
}
.testimonial-card .bi-quote {
  color: var(--tertiary-color);
}
.testimonial-card .rating {
  color: #e3993f;
  letter-spacing: 2px;
  margin: 0;
}

/* Team members (home + team page) */
.team-member .wp-block-image img {
  width: 14rem;
  height: 14rem;
  object-fit: cover;
  border-radius: 50%;
  border: 0.5rem solid rgba(0, 0, 0, 0.1);
}
.team-member .wp-block-heading {
  margin-top: 1.5rem;
  margin-bottom: 0.25rem;
}
.team-member .wp-block-social-links {
  justify-content: center;
}
.team-member .wp-block-social-links .wp-social-link {
  background-color: var(--secondary-color);
  color: #fff;
  transition: transform 0.2s ease;
}
.team-member .wp-block-social-links .wp-social-link:hover {
  transform: translateY(-6px);
}

/* Portfolio item captions (home projects) */
.portfolio-item .wp-block-image {
  margin: 0;
}
.portfolio-item .wp-block-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.portfolio-caption {
  padding: 1rem;
  text-align: center;
}
.portfolio-caption h4,
.portfolio-caption p {
  margin: 0;
}

/* Section titles */
.section-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

/* Hero headings inherit the hero color */
.home-hero h1,
.home-hero h3 {
  color: var(--home-hero-color);
}

/* CTA image */
.cta-02 .wp-block-image img {
  border-radius: 1rem;
}

/* Contact list icons (Bootstrap Icons font, loaded by All Bootstrap Blocks) */
.contact-us .contact-line {
  margin: 0 0 0.8rem;
}
.contact-us [class*="icon-"]::before {
  font-family: bootstrap-icons;
  margin-right: 0.5rem;
}
.contact-us .office [class*="icon-"]::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  background-color: var(--secondary-color);
  font-size: 0.9rem;
}
.contact-us .hours [class*="icon-"]::before {
  color: var(--secondary-color);
}
.contact-us .icon-address::before { content: "\f3e7"; }
.contact-us .icon-phone::before { content: "\f5b4"; }
.contact-us .icon-email::before { content: "\f32c"; }
.contact-us .icon-clock::before { content: "\f293"; }

/* Checkmark bullets in content lists (was Font Awesome in the demo) */
.main-content ul li::before {
  font-family: bootstrap-icons;
  content: "\f633";
}

/* Service cards (cover blocks) */
.background-card {
  min-height: 0 !important;
  padding: 0 !important;
  background-color: var(--secondary-color);
  align-items: flex-end;
}
.background-card .wp-block-cover__image-background {
  filter: grayscale(1) opacity(0.5);
}
.background-card .card-content h2 {
  color: #fff;
}

/* No block gap between header, main and footer */
.wp-site-blocks > * + * {
  margin-block-start: 0;
}

/* Grid children: no flow-layout top margin */
.background-cards-wrap > * {
  margin-block: 0;
}

/* ---------- Content types (smartcode-content Query Loops) ---------- */

.wp-block-post-template.projects-grid,
.wp-block-post-template.team-grid,
.wp-block-post-template.portfolio-grid,
.wp-block-post-template.background-cards-wrap,
.wp-block-post-template.services-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.wp-block-post-template.projects-grid > li,
.wp-block-post-template.team-grid > li,
.wp-block-post-template.portfolio-grid > li,
.wp-block-post-template.background-cards-wrap > li {
  margin: 0;
}

/* Home: 3 portfolio items */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.portfolio-item {
  height: 100%;
  background: #fff;
}
.portfolio-item .wp-block-post-featured-image {
  margin: 0;
}
.portfolio-item .wp-block-post-featured-image img {
  width: 100%;
  object-fit: cover;
}
.portfolio-caption .wp-block-post-title a {
  color: inherit;
  text-decoration: none;
}
.portfolio-caption .wp-block-post-terms a {
  color: var(--bs-secondary-color);
  text-decoration: none;
}

/* Team cards */
.team-member .wp-block-post-featured-image {
  margin: 0 auto;
}
.team-member .wp-block-post-featured-image img {
  border-radius: 50%;
  border: 0.5rem solid rgba(0, 0, 0, 0.1);
  object-fit: cover;
}
.team-member .wp-block-post-title {
  margin-top: 1.5rem;
  margin-bottom: 0.25rem;
}
.team-member .wp-block-post-title a {
  color: inherit;
  text-decoration: none;
}
.team-member .wp-block-read-more {
  display: inline-block;
}
.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.team-social-links {
  display: flex;
  justify-content: center;
}
.team-social-links .btn-social,
.member-info .btn-social {
  color: #fff;
}

/* Project cards (archive) */
.projects-grid .card {
  height: 100%;
}
.projects-grid .project-img-wrapper {
  margin: 0;
}
.projects-grid .card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.projects-grid .card-title a {
  color: inherit;
  text-decoration: none;
}
.projects-grid .wp-block-post-terms a {
  color: inherit;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
}
.projects-grid .wp-block-read-more {
  color: #fff;
}

/* Service cards (cover with featured image) */
.background-card .wp-block-post-title {
  color: #fff;
}
.background-card .wp-block-read-more {
  color: #fff;
  font-weight: bold;
  text-decoration: none;
}
.background-card .wp-block-read-more::after {
  color: var(--primary-color);
}

/* Single service: sidebar menu */
.services-menu li {
  position: relative;
  padding: 20px 10px 20px 45px;
  margin-bottom: 10px;
  background-color: #f0f0f0;
}
.services-menu li .wp-block-post-title {
  margin: 0;
  font-size: 1rem;
}
.services-menu li .wp-block-post-title a {
  color: #000;
  text-decoration: none;
}
@media screen and (max-width: 781px) {
  .service-layout {
    flex-direction: column-reverse;
  }
}

/* Single project: info boxes */
.project-info-box .wp-block-post-terms {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary-color);
}
.project-info-box .wp-block-post-terms a {
  color: inherit;
  text-decoration: none;
}

/* Single team member */
.member-info .wp-block-post-featured-image img {
  border-bottom: 8px solid var(--primary-color);
}

@media screen and (max-width: 992px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* Featured image block on single service (the demo's .feat-img was on the <img> itself) */
.wp-block-post-featured-image.feat-img {
  height: auto;
  margin-bottom: 1.5rem;
}
.wp-block-post-featured-image.feat-img img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* Project info: grid children without flow margins */
.project-info-grid > * {
  margin-block: 0;
}
.project-info {
  padding-top: 1rem;
}

/* Contact lines: icon + text side by side, wrapped lines stay aligned */
.contact-us .contact-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.contact-us .hours .contact-line {
  align-items: flex-start;
}
.contact-us .contact-line::before {
  flex: none;
  margin-right: 0;
}
.contact-us .hours .contact-line::before {
  line-height: inherit;
}

/* ---------- Mobile (from the 390px pass) ---------- */

/* Menu button: bigger, white over the home hero */
.site-header .wp-block-navigation__responsive-container-open svg {
  width: 32px;
  height: 32px;
}
.is-overlay .site-header .wp-block-navigation__responsive-container-open {
  color: #fff;
}
.site-header .wp-block-navigation__responsive-container.is-menu-open {
  padding-top: 1.5rem;
}

@media screen and (max-width: 781px) {
  /* Footer: side margins, everything centered and stacked */
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  .site-footer .footer-top {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .site-footer .footer-top .wp-block-navigation__container {
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }
  .site-footer .footer-top .wp-block-social-links {
    justify-content: center;
  }
}

@media screen and (max-width: 991px) {
  /* Stacked two-column sections: space between the columns */
  .cta-02 .cta-content,
  .contact-us .col-lg-6:first-child {
    margin-bottom: 2.5rem;
  }
}
