/*!
Theme Name: HiringWise Blocks
Theme URI: https://hiringwise.example
Author: HiringWise
Description: Block-based landing page theme for HiringWise.
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.0
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hiringwise-block
*/
:root {
  --hw-primary: #fb5e3c;
  --hw-text: #1a1a1a;
  --hw-surface: #f9f9f9;
  --hw-dark: #232323;
  --hw-muted: #6b7280;
  --hw-border: #e5e7eb;
  --hw-radius: 16px;
}

html,
body {
  overflow-x: clip;
}

.hw-card {
  height: 100%;
  padding: 24px;
  border: 1px solid var(--hw-border);
  border-radius: var(--hw-radius);
  background: #fff;
}

.hw-card--dark {
  color: #fff;
  background: var(--hw-dark);
  border-color: transparent;
}

.hw-service-grid .wp-block-column,
.hw-testimonials-grid .wp-block-column {
  align-self: stretch;
}

.hw-footer {
  background: #151515;
}

.hw-footer-logo img {
  width: 180px;
  height: auto;
}

.hw-block-placeholder {
  border: 1px dashed var(--hw-border);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

footer {
  margin-block-start: -1px;
}

header {
  padding: 0 !important;
  height: 0;
}

.hw-mainBackground {
  position: relative;
  width: 100%;
  background: #fff url("./assets/images/main-background.svg") no-repeat center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hw-main {
  width: 100%;
  display: flex;
  background: url("./assets/images/job-recruitment.svg") no-repeat center right;
  background-size: 40% 60%;
  font-family: "Inter", sans-serif;
}

.hw-logo {
  height: 64px;
  width: auto;
}

.hw-textContent {
  min-height: 100vh;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: start;
  max-width: 60%;
  box-sizing: border-box;
  padding: 64px 0 64px 64px;
}

.hw-title {
  color: var(--hw-text);
  font-size: 48px;
  font-weight: 700;
  line-height: 64px;
  margin: 0 0 12px;
}

.hw-secondaryText {
  color: var(--hw-text);
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
  margin: 0;
}

.hw-buttonDescription {
  color: var(--hw-muted);
  font-size: 18px;
  font-weight: 700;
  line-height: 28px;
}

.hw-button {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  outline: none;
  color: #fff;
  background-color: var(--hw-primary);
  border: 2px solid var(--hw-primary);
  border-radius: 12px;
  transition: all 0.3s;
}

.hw-button:hover {
  background-color: #fff;
  color: var(--hw-primary);
}

@media (max-width: 781px) {
  .hw-main {
    background: none !important;
  }
  .hw-textContent {
    align-items: center;
    text-align: center;
    padding: 32px;
    max-width: 100%;
  }
  .hw-logo {
    height: 58px;
  }
}
@media (max-width: 480px) {
  .hw-title {
    font-size: 32px;
    line-height: 48px;
  }
  .hw-secondaryText {
    font-size: 14px;
    line-height: 24px;
  }
  .hw-logo {
    height: 52px;
  }
}
@media (max-width: 425px) {
  .hw-buttonContainer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .hw-button {
    width: 100%;
  }
  .hw-logo {
    height: 44px;
  }
}
.hw-companiesWrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hw-companiesContainer {
  padding: 64px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: "Inter", sans-serif;
}

.hw-companiesTitle {
  text-align: center;
  color: var(--hw-text);
  font-size: 30px;
  font-weight: 700;
  line-height: 42px;
  margin-bottom: 32px;
}

.hw-scrollingWrapper {
  display: flex;
  overflow: hidden;
  width: 100%;
}

.hw-companies .hw-scrollingWrapper,
.hw-companies .hw-companiesTitle {
  max-width: 100%;
}

.hw-logoList {
  display: flex;
  gap: 32px;
  padding-right: 32px;
  flex-shrink: 0;
  animation: hw-scroll-logo 40s linear infinite;
}

.hw-logoLink {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hw-logoList .hw-logo {
  width: 116px;
  height: 35px;
  object-fit: contain;
}

@keyframes hw-scroll-logo {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}
.hw-showcase {
  background: var(--hw-surface);
}

.hw-showcaseWrapper {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 64px;
}

.hw-showcaseContainer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: auto;
  gap: 16px;
  font-family: "Inter", sans-serif;
}

.hw-spanTwoRows {
  grid-row: span 2;
}

.hw-showcaseCard {
  position: relative;
  padding: 16px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  border-radius: 12px;
  transition: transform 0.3s ease, background-size 0.3s ease;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hw-showcaseCard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
  transition: background-color 0.3s ease;
}

.hw-showcaseCard:hover {
  transform: scale(1.015);
}

.hw-showcaseTitle {
  font-size: 30px;
  font-weight: 700;
  line-height: 42px;
  margin: 0 0 16px;
}

.hw-showcaseDescription {
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  margin: 0 0 16px;
}

.hw-showcaseTitle,
.hw-showcaseDescription {
  position: relative;
  z-index: 2;
  color: #fff;
}

@media screen and (max-width: 880px) {
  .hw-showcaseWrapper {
    padding: 32px;
  }
  .hw-showcaseContainer {
    display: flex;
    flex-direction: column;
  }
  .hw-spanTwoRows {
    grid-row: auto;
  }
}
.hw-services {
  background: var(--hw-surface);
}

/* Override WP flow spacing for this custom block */
.is-layout-flow > .wp-block-hiringwise-block-services {
  margin-block-start: 0;
}

.hw-servicesWrapper {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0;
  padding: 64px;
}

.hw-servicesContainer {
  display: flex;
  width: 100%;
  height: 512px;
  font-family: "Inter", sans-serif;
  align-items: flex-end;
  gap: 64px;
}

.hw-servicesTextContainer {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  flex: 1;
}

.hw-servicesTitle {
  margin: 0;
  color: var(--hw-text);
  font-size: 30px;
  font-weight: 700;
  line-height: 42px;
}

.hw-servicesDescription {
  margin: 0 0 32px;
  color: var(--hw-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.hw-servicesList {
  margin: -20px 0 32px;
  padding-left: 24px;
  color: var(--hw-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.hw-servicesList li {
  margin-bottom: 4px;
}

.hw-servicesSlides {
  position: relative;
}

.hw-servicesSlide {
  display: none;
}

.hw-servicesSlide.is-active {
  display: block;
}

.hw-servicesButtons {
  display: flex;
  gap: 16px;
}

.hw-servicesArrow {
  display: inline-block;
  height: 44px;
  width: 44px;
  cursor: pointer;
  background-color: #fff;
  border: 1px solid var(--hw-border);
  border-radius: 12px;
  transition: transform 0.3s;
  box-shadow: rgba(149, 157, 165, 0.2) 0 8px 24px;
  font-size: 20px;
  line-height: 1;
}

.hw-servicesArrow:hover {
  transform: scale(1.06);
}

.hw-servicesArrow:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

.hw-servicesImages {
  flex: 1;
  max-width: 50%;
  height: 100%;
  position: relative;
}

.hw-servicesImage {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

.hw-servicesImage.is-active {
  display: block;
}

@media screen and (max-width: 880px) {
  .hw-servicesWrapper {
    padding: 32px;
  }
  .hw-servicesContainer {
    height: 100%;
    flex-direction: column-reverse;
    align-items: center;
    gap: 16px;
  }
  .hw-servicesTextContainer,
  .hw-servicesImages {
    width: 100%;
    max-width: 100%;
  }
  .hw-servicesImage {
    max-height: 350px;
  }
  .hw-servicesDescription,
  .hw-servicesList {
    margin-bottom: 16px;
  }
}
.hw-tech-stacks {
  width: 100%;
  position: relative;
}

/* Remove core flow spacing above custom block */
.is-layout-flow > .wp-block-hiringwise-block-tech-stacks {
  margin-block-start: 0;
}

.hw-techBackground {
  width: 100%;
  position: relative;
}

.hw-techBackground::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--hw-surface);
  z-index: -1;
}

.hw-techBackground::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: #fff;
  z-index: -1;
}

.hw-techClip {
  background: var(--hw-primary);
  clip-path: polygon(0 10%, 100% 0%, 100% 90%, 0 100%);
  padding: 64px 0;
  position: relative;
}

.hw-techWrapper {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 64px;
  font-family: "Inter", sans-serif;
}

.hw-techTitle {
  margin: 0 0 64px;
  text-align: center;
  color: #fff;
  font-size: 30px;
  font-style: normal;
  font-weight: 700;
  line-height: 42px;
}

.hw-techContainer {
  column-count: 3;
  column-gap: 0;
}

.hw-techCardContainer {
  break-inside: avoid;
  padding: 8px;
}

.hw-techCard {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 12px;
  padding: 24px 16px;
  border: 1px solid #e1e1e2;
  background: rgba(252, 252, 252, 0.8);
  backdrop-filter: blur(16px);
}

.hw-techIcon {
  height: 33px;
  margin-bottom: 16px;
}

.hw-techName {
  margin: 0 0 10px;
  color: var(--hw-text);
  text-align: center;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 28px;
}

.hw-techDescription,
.hw-techList {
  margin: 0;
  color: var(--hw-text);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}

.hw-techList {
  padding-left: 20px;
}

@media screen and (max-width: 880px) {
  .hw-techWrapper {
    padding: 32px;
  }
  .hw-techContainer {
    column-count: 2;
  }
}
@media screen and (max-width: 600px) {
  .hw-techClip {
    clip-path: polygon(0 5%, 100% 0%, 100% 95%, 0 100%);
  }
  .hw-techContainer {
    column-count: 1;
  }
}
.hw-aboutWrapper {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 64px;
  font-family: "Inter", sans-serif;
}

.hw-aboutContainer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hw-aboutTitle {
  margin: 0 0 64px;
  font-size: 30px;
  font-style: normal;
  font-weight: 700;
  line-height: 42px;
  color: var(--hw-text);
}

.hw-aboutGrid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.hw-aboutCardWrap {
  min-width: 0;
}

.hw-aboutCard {
  padding: 16px;
  border: 1px solid var(--hw-border);
  border-radius: 12px;
}

.hw-aboutClientInfo {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.hw-aboutAvatar {
  margin-right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 16px;
}

.hw-aboutName,
.hw-aboutRole,
.hw-aboutText {
  margin: 0;
  color: var(--hw-text);
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 28px;
}

.hw-aboutRole {
  color: var(--hw-muted);
  font-size: 16px;
}

.hw-aboutText {
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
}

@media screen and (max-width: 880px) {
  .hw-aboutWrapper {
    padding: 32px;
  }
  .hw-aboutGrid {
    grid-template-columns: 1fr;
  }
}
.hw-contact {
  width: 100%;
  position: relative;
}

.hw-contactBackground {
  width: 100%;
  position: relative;
}

.hw-contactBackground::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: #fff;
  z-index: -1;
}

.hw-contactClip {
  background: #232323;
  clip-path: polygon(0 10%, 100% 0%, 100% 100%, 0 100%);
  padding: 64px 0 0;
  position: relative;
}

.hw-contactWrapper {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 64px;
}

.hw-contactContainer {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Inter", sans-serif;
}

.hw-contactContent {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
}

.hw-contactTitle {
  margin: 0 0 12px;
  font-size: 30px;
  font-style: normal;
  font-weight: 700;
  line-height: 42px;
  color: #fff;
}

.hw-contactDescription {
  margin: 0;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
  color: #fff;
}

.hw-contactSeparator {
  height: 1px;
  width: 100%;
  background: #3d3d3d;
  margin: 16px 0;
}

.hw-contactForm {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  color: #fff;
}

.hw-contactHint {
  margin: 0 0 8px;
  color: #9ca3af;
  font-size: 14px;
}

.hw-contactCode {
  display: block;
  white-space: normal;
  background: #111;
  border: 1px solid #3d3d3d;
  border-radius: 12px;
  padding: 12px;
  color: #fff;
}

/* Contact Form 7 styling mapped to React contact form */
.hw-contactForm .wpcf7 {
  width: 100%;
}

.hw-contactForm .wpcf7 form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.hw-contactForm .wpcf7 form p {
  margin: 0 0 20px;
}

.hw-contactForm .wpcf7 form p:last-child {
  margin-bottom: 0;
}

.hw-contactForm .wpcf7-form-control-wrap {
  display: block;
}

.hw-contactForm input[type=text],
.hw-contactForm input[type=email],
.hw-contactForm input[type=tel],
.hw-contactForm textarea {
  width: 100%;
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-style: normal;
  line-height: 28px;
  color: #fff;
  border: 1px solid #3d3d3d;
  background: #232323;
  border-radius: 12px;
  padding: 10px;
  box-sizing: border-box;
}

.hw-contactForm textarea {
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
  padding: 16px;
  min-height: 182px;
  resize: vertical;
}

.hw-contactForm input[type=submit],
.hw-contactForm button,
.hw-contactForm .wpcf7-submit {
  width: 100%;
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: 32px;
  color: #1a1a1a;
  padding: 10px 20px;
  cursor: pointer;
  height: 58px;
  background-color: var(--hw-primary);
  border: none;
  border-radius: 12px;
  transition: all 0.3s;
}

.hw-contactForm input[type=submit]:hover,
.hw-contactForm button:hover,
.hw-contactForm .wpcf7-submit:hover {
  transform: scale(1.01);
}

.hw-contactForm .wpcf7-not-valid-tip,
.hw-contactForm .wpcf7-response-output {
  font-size: 12px;
  line-height: 16px;
}

.hw-contactForm .wpcf7-not-valid-tip {
  color: #e01717;
  margin-top: 8px;
}

/* CF7 layout helpers to match React contact form rows */
.hw-contactForm .hw-contact-fields-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0 32px;
  margin-bottom: 32px;
}

.hw-contactForm .hw-contact-field {
  display: flex;
  flex-direction: column;
  width: calc(50% - 16px);
}

.hw-contactForm .hw-contact-field-full {
  width: 100%;
}

.hw-contactForm .hw-contact-field p {
  margin: 0 0 12px;
}

.hw-contactForm .hw-contact-field p:last-child {
  margin-bottom: 0;
}

@media screen and (max-width: 880px) {
  .hw-contactWrapper {
    padding: 32px;
  }
  .hw-contactForm .hw-contact-fields-row {
    gap: 16px;
    margin-bottom: 16px;
  }
  .hw-contactForm .hw-contact-field {
    width: 100%;
  }
}
.hw-locations {
  margin-block-start: -1px;
}

.hw-officeBackground {
  background: #232323;
}

.hw-officeWrapper {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.hw-officeContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Inter", sans-serif;
  width: 100%;
  padding-bottom: 64px;
}

.hw-officeBlock {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hw-officeElement {
  width: 100%;
  flex-grow: 1;
  padding: 24px;
}

.hw-officeTitle {
  margin: 0;
  color: #fff;
  font-size: 30px;
  font-style: normal;
  font-weight: 700;
  line-height: 42px;
}

.hw-officePlaceTitle {
  margin: 0 0 8px;
  text-align: center;
  color: #fff;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 28px;
}

.hw-officeAddress {
  margin: 0;
  text-align: center;
  color: #fff;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}

.hw-officeCallUs {
  margin: 8px 0 0;
  color: #fff;
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 42px;
}

.hw-officeNumber {
  margin: 0;
  text-align: center;
  color: #fff;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
}

@media screen and (max-width: 720px) {
  .hw-officeBlock {
    flex-direction: column;
    margin: 32px;
  }
  .hw-officeElement {
    flex-grow: 0;
    width: 100%;
  }
}
