/*
Theme Name: Pro Coders Labs
Theme URI: https://www.procoderslabs.com/pro-coders-labs-theme/
Author: Pro Coders Labs
Author URI: https://www.procoderslabs.com/
Description: Custom WordPress theme developed by Pro Coders Labs.
Version: 1.0.1
Tested up to: 6.8
Requires PHP: 7.4
Tags: custom-logo, custom-menu, featured-images, blog
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pro-coders-labs

Copyright © 2026 Pro Coders Labs.
This theme is licensed under the GNU General Public License v2 or later.
*/

:root {
  --primary-color: #0b63ce;
  --secondary-color: #1f2937;
  --text-color: #1f2937;
  --heading-color: #111827;
  --background-color: #ffffff;
  --container-width: 1200px;
  --border-radius: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text-color);
  background: var(--background-color);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

img,
video {
  height: auto;
}

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: clip;
}

/* WordPress core content classes. */
.wp-caption {
  max-width: 100%;
}
.wp-caption-text {
  margin: 0.5rem 0;
  font-size: 0.875rem;
}
.sticky {
  display: block;
}
.gallery-caption {
  display: block;
}
.bypostauthor {
  display: block;
}
.alignright {
  float: right;
  margin: 0 0 1rem 1rem;
}
.alignleft {
  float: left;
  margin: 0 1rem 1rem 0;
}
.aligncenter {
  display: block;
  margin-right: auto;
  margin-left: auto;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  top: 1rem;
  left: 1rem;
  z-index: 100000;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  color: #ffffff;
  background: var(--primary-color);
  border-radius: var(--border-radius);
}

/* Header */
.site-header {
  --header-background: #ffffff;
  --header-text: var(--heading-color);
  --header-muted-text: #6b7280;
  --header-border: #e5e7eb;
  --message-background: #f8fafc;
  --message-text: #374151;

  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: var(--header-background);
}

body.admin-bar .site-header {
  top: 32px;
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  width: min(100%, var(--container-width));
  min-height: 4.5rem;
  padding: 0.75rem 1rem;
  margin: 0 auto;
}

.site-header__main {
  background: var(--header-background);
  border-bottom: 1px solid var(--header-border);
}

.header-message {
  color: var(--message-text);
  background: var(--message-background);
}

.header-message--top {
  border-bottom: 1px solid var(--header-border);
}

.header-message--bottom {
  border-bottom: 1px solid var(--header-border);
}

.header-message__inner {
  width: min(100%, var(--container-width));
  padding: 0.5rem 1rem;
  margin: 0 auto;
  font-size: 0.875rem;
  line-height: 1.45;
  text-align: center;
}

.header-message a {
  display: inline-block;
  padding: 0.125rem 0.25rem;
  margin: -0.125rem -0.25rem;
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  border-radius: var(--border-radius);
}

.header-message a:hover,
.header-message a:focus-visible {
  color: var(--primary-color);
  background: #ffffff;
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.site-branding {
  min-width: 0;
  max-width: calc(100% - 3.5rem);
  margin-right: auto;
}

.custom-logo-link,
.site-title {
  display: inline-flex;
  align-items: center;
  color: var(--header-text);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.custom-logo {
  display: block;
  width: auto;
  max-height: 3rem;
}

.site-header .site-title {
  font-size: 1.25rem;
}

.site-tagline {
  margin: 0.25rem 0 0;
  color: var(--header-muted-text);
  font-size: 0.875rem;
  line-height: 1.35;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: var(--heading-color);
  background: transparent;
  border: 1px solid #d1d5db;
  border-radius: var(--border-radius);
  cursor: pointer;
}

.menu-toggle__icon,
.menu-toggle__icon::before,
.menu-toggle__icon::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  transition: transform 160ms ease;
}

.menu-toggle__icon {
  position: relative;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-toggle__icon::before {
  top: -0.4rem;
}

.menu-toggle__icon::after {
  top: 0.4rem;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgb(17 24 39 / 58%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 240ms ease,
    visibility 0s linear 240ms;
}

.mobile-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.primary-navigation {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  width: min(88vw, 22.5rem);
  padding: 1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #ffffff;
  box-shadow: -12px 0 32px rgb(17 24 39 / 18%);
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 280ms ease,
    visibility 0s linear 280ms;
  will-change: transform;
}

.primary-navigation.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.primary-navigation__content,
.primary-navigation .menu {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.primary-navigation__content {
  min-height: 100%;
}

.mobile-menu-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}

.menu-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  color: var(--heading-color);
  background: transparent;
  border: 1px solid #d1d5db;
  border-radius: var(--border-radius);
  cursor: pointer;
}

.menu-close__icon,
.menu-close__icon::before {
  display: block;
  width: 1.125rem;
  height: 2px;
  background: currentColor;
  content: "";
}

.menu-close__icon {
  position: relative;
  transform: rotate(45deg);
}

.menu-close__icon::before {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(90deg);
}

.primary-navigation .menu {
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-navigation a {
  display: block;
  padding: 0.875rem 0.75rem;
  color: var(--heading-color);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--border-radius);
}

.primary-navigation a:hover,
.primary-navigation a:focus-visible {
  color: var(--primary-color);
  background: #f3f4f6;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.625rem 1rem;
  margin-top: 1rem;
  color: #ffffff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  background: var(--primary-color);
  border-radius: var(--border-radius);
}

.header-cta:hover,
.header-cta:focus-visible {
  color: #ffffff;
  background: var(--secondary-color);
}

body.mobile-menu-open {
  overflow: hidden;
}

/* WhatsApp contact */
.whatsapp-contact-button {
  position: fixed;
  right: calc(1.25rem + env(safe-area-inset-right, 0px));
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 1050;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0;
  color: #ffffff;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgb(18 140 71 / 34%);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.whatsapp-contact-button:hover {
  color: #ffffff;
  background: #1ebe5d;
  transform: scale(1.06);
  box-shadow: 0 10px 24px rgb(18 140 71 / 42%);
}

.whatsapp-contact-button:focus-visible {
  color: #ffffff;
  outline: 3px solid var(--primary-color);
  outline-offset: 3px;
}

.whatsapp-contact-button svg {
  width: 1.75rem;
  height: 1.75rem;
}

/* Footer */
.site-footer {
  --footer-background: var(--secondary-color);
  --footer-text: #f3f4f6;
  --footer-muted-text: #cbd5e1;
  --footer-border: rgb(255 255 255 / 16%);
  --footer-link-hover: #ffffff;

  flex: 0 0 auto;
  color: var(--footer-text);
  background: var(--footer-background);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  width: min(100%, var(--container-width));
  padding: 3.5rem 1.25rem 2.75rem;
  margin: 0 auto;
}

.site-footer .custom-logo-link,
.site-footer .site-title {
  color: #ffffff;
}

.site-footer .custom-logo {
  max-height: 3rem;
}

.site-footer .site-title {
  font-size: 1.375rem;
}

.footer-description {
  max-width: 30rem;
  margin: 1rem 0 0;
  color: var(--footer-muted-text);
  font-size: 1rem;
  line-height: 1.65;
}

.footer-heading {
  margin: 0 0 0.875rem;
  color: var(--footer-text);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
}

.footer-menu,
.footer-social {
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer a {
  color: var(--footer-muted-text);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--footer-link-hover);
  background: rgb(255 255 255 / 10%);
  outline: none;
}

.footer-contact p {
  margin: 0;
}

.footer-menu a,
.footer-social a,
.footer-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.625rem 0.75rem;
  margin-left: -0.75rem;
  font-size: 1rem;
  line-height: 1.35;
  border-radius: var(--border-radius);
}

.footer-menu li + li,
.footer-social li + li,
.footer-contact p + p {
  margin-top: 0.25rem;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: flex-start;
  width: min(100%, var(--container-width));
  padding: 1.5rem 1.25rem;
  margin: 0 auto;
  color: var(--footer-muted-text);
  font-size: 0.875rem;
  line-height: 1.5;
  border-top: 1px solid var(--footer-border);
}

.footer-copyright {
  min-width: 0;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
}

.footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.375rem 0.5rem;
  margin: -0.375rem 0;
  font-size: 0.875rem;
  border-radius: var(--border-radius);
}

@media (min-width: 900px) {
  .site-header__inner {
    flex-wrap: nowrap;
  }

  .site-branding {
    max-width: none;
  }

  .menu-toggle {
    display: none;
  }

  .primary-navigation {
    position: static;
    flex-basis: auto;
    width: auto;
    padding: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    transition: none;
    margin-left: auto;
  }

  .primary-navigation__content,
  .primary-navigation .menu {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .primary-navigation a {
    padding: 0.625rem 0.75rem;
  }

  .header-cta {
    margin-top: 0;
    margin-left: 0.5rem;
  }

  .mobile-menu-overlay,
  .mobile-menu-header {
    display: none;
  }

  .site-footer__inner {
    grid-template-columns: minmax(0, 1.65fr) repeat(3, minmax(0, 1fr));
    gap: 3rem 2rem;
    padding-top: 4rem;
    padding-bottom: 3rem;
  }

  .site-footer__bottom {
    justify-content: space-between;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 480px) {
  .whatsapp-contact-button {
    right: calc(1rem + env(safe-area-inset-right, 0px));
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    width: 3.375rem;
    height: 3.375rem;
  }
}
