/*!
Theme Name: Sting
Theme URI: https://www.notion.so/luuk-arends/Sting-v1-0-1-2ae58397e72b8002af4ac6f01e333a49?source=copy_link
Author: Luuk Arends
Author URI: https://luukarends.nl
Description: Sting is a lightweight, flexible WordPress theme that cuts through the noise. Custom-built for speed and adaptability, every line of code serves a purpose. Clean, precise, and ready to shape around your vision.
Version: 1.0.1
Tested up to: 8.3
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: sting
*/

/* Root */

:root {
  --darkgrey: #27262a;
  --darkgreen: #16331b;
  --green: #518268;
  --lightgreen: #97b18b;
  --lightgrey: #f8f9f6;
  --darkblue: #093666;
  --white: #ffffff;
  --black: #000000;
  --orange: #ff5722;
  --shadow: 0px 3px 20px #00000029;
}

/* Fonts */

@font-face {
  font-family: "Inter Tight";
  src: url("assets/theme/fonts/inter-tight-v9-latin-regular.woff2")
    format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter Tight";
  src: url("assets/theme/fonts/inter-tight-v9-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter Tight";
  src: url("assets/theme/fonts/inter-tight-v9-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Body */

body {
  font-family:
    "Inter Tight",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-weight: 400;
  color: var(--darkgrey);
}

/* Headings */

h1,
h2,
h3 {
  font-family: "Inter Tight";
  font-weight: 700;
  margin: 0;
}

.title {
  font-size: 2.5rem;
}

.title-small {
  font-size: 2rem;
}

/* Backgrounds */

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

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

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

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

/* Anchors */

a {
  color: inherit;
  text-decoration: none;
  transition: all ease 0.6s;
}

/* Buttons */

:root :where(.wp-element-button, .wp-block-button__link),
.btn {
  color: var(--white) !important;
  text-decoration: none !important;
  padding: 0.75rem 2rem;
  font-family: "Inter Tight";
  font-weight: 600;
  font-size: 0.925rem;
  border-radius: 0.5rem;
  transition: all ease 0.6s;
}

:root :where(.wp-element-button, .wp-block-button__link):hover,
.btn:hover {
  transform: scale(1.05);
}

:root :where(.wp-element-button, .wp-block-button__link),
:root :where(.wp-element-button, .wp-block-button__link):hover,
.btn-primary,
.btn-primary:hover {
  background-color: var(--darkblue);
  border-color: var(--darkblue);
}

.btn-trans,
.btn-trans:hover {
  background-color: transparent;
  border-color: transparent;
  color: var(--white);
}

/* Header */

.topbar {
  padding: 0.75rem 0;
}

.topbar-items {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  justify-content: end;
}

.topbar-item {
  color: var(--white);
  font-size: 0.925rem;
}

.navbar {
  padding: 1rem 0;
}

.navbar-nav {
  gap: 1rem;
}

.navbar-nav .nav-link {
  font-size: 1.05rem;
  color: var(--darkgrey);
}

.has-quote {
  width: 12px;
  height: 12px;
  display: inline-block;
  background-color: var(--lightgreen);
  border-radius: 50%;
}

.mm-collapse {
  padding: 3rem;
  background-color: var(--lightgrey);
  box-shadow: var(--bs-box-shadow-sm);
}

.mm-title {
  font-size: 1.25rem;
  font-family: "Inter Tight";
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.mm-items {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
}

.mm-items_1 {
  grid-template-columns: 1fr;
}

/* Hero */

.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-page {
  min-height: 40vh;
}

.hero::after {
  content: "";
  inset: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 10;
  background: linear-gradient(
    -90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(81, 130, 105, 1) 100%
  );
}

.hero-content {
  color: var(--white);
  position: relative;
  z-index: 20;
}

@media (min-width: 1200px) {
  .hero-content {
    max-width: 50%;
  }
}

.hero-title {
  margin-bottom: 1rem;
  line-height: 1.25;
}

.hero .button-group {
  margin: 1.5rem 0;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clients {
  display: flex;
  flex-wrap: wrap;
}

.client-img {
  border-radius: 50%;
  object-fit: cover;
}

.client-img:not(:first-child) {
  margin-left: -0.5rem;
}

.client-copy {
  width: 100%;
  font-style: italic;
  margin-top: 0.5rem;
  font-size: 0.925rem;
}

/* Categories */

.cat-item {
  color: var(--white);
  width: 100%;
  height: 300px;
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
}

.cat-item::after {
  content: "";
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(39, 38, 42, 1) 100%
  );
  position: relative;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: all ease 0.6s;
  z-index: 10;
}

.cat-item:hover::after {
  opacity: 1;
}

.cat-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-title {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 20;
  padding: 2rem;
}

.cat-title::after {
  content: "";
  display: block;
  height: 5px;
  width: 50px;
  background-color: var(--white);
  margin-top: 0.25rem;
}

/* Content */

.usps {
  display: grid;
  gap: 2rem;
}

.usp-item {
  display: flex;
  gap: 1rem;
}

.usp-item .bi {
  font-size: 3rem;
  color: var(--lightgreen);
  line-height: 0;
}

.usp-title {
  margin-bottom: 1.5rem;
}

.content-media {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 1rem;
  overflow: hidden;
}

.content-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 1200px) {
  .content-block {
    padding: 0 3rem;
  }

  .applications .content-block {
    padding: 3rem;
  }
}

.applications .content-block {
  background-color: var(--white);
  border-radius: 1rem;
}

.content-block h2 {
  font-size: 2.5rem;
  margin: 1.5rem 0;
}

.content-block h2:first-child {
  margin-top: 0;
}

.content-block a:not(.btn) {
  color: var(--darkblue);
  text-decoration: underline;
}

.content-form {
  padding: 2rem;
  background-color: var(--white);
  box-shadow: var(--shadow);
  border-radius: 0.5rem;
}

.content-form .gform_heading {
  display: none;
}

.content-form .gform-theme--foundation .gform_fields {
  gap: 1rem;
}

.content-form .gform-theme--foundation .gform_fields .gfield_label {
  display: none;
}

.content-form .gform-theme--foundation .gform_fields input,
.content-form .gform-theme--foundation .gform_fields textarea {
  border: 1px solid #0000004d;
  background-color: var(--lightgrey);
  border-radius: 0.5rem;
}

.content-form .gform-theme--foundation form .gform-footer input[type="submit"] {
  padding: 1rem 2rem !important;
  font-family: "Inter Tight" !important;
  font-weight: 600 !important;
  font-size: 0.925rem !important;
  border-radius: 0.5rem !important;
  transition: all ease 0.6s !important;
  background-color: var(--darkblue) !important;
  border-color: var(--darkblue) !important;
}

.content-form
  .gform-theme--foundation
  form
  .gform-footer
  input[type="submit"]:hover {
  background-color: var(--darkblue);
  border-color: var(--darkblue);
  transform: scale(1.05);
}

.socials {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  text-decoration: none !important;
}

.social-item .bi {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--lightgreen);
  color: var(--white);
  border-radius: 50%;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
}

/* Quote */

.table-wrapper {
  padding: 1rem;
  background-color: var(--white);
  border-radius: 1rem;
}

.badge {
  background-color: var(--darkblue);
}

.offcanvas-actions {
  display: grid;
  gap: 1rem;
}

.page-template-quotation .hero-page,
.page-template-contact .hero-page {
  margin-bottom: -3rem;
}

.form-wrapper {
  padding: 3rem;
  background-color: var(--lightgrey);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 10;
}

.form-wrapper h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.form-wrapper h3 {
  margin: 1.5rem 0;
}

/* Archive */

.rank-math-breadcrumb p {
  margin-bottom: 0;
  font-size: 0.925rem;
}

.archive-intro .descr {
  margin: 1.5rem 0;
}

.read-more {
  color: var(--green);
}

.archive-filter {
  display: grid;
  gap: 1rem;
}

.filter-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.filter-choice {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.925rem;
  line-height: 0;
}

.filter-choice input {
  width: 20px;
  height: 20px;
  margin: 0;
}

.show-all {
  font-size: 0.925rem;
  color: var(--green);
}

.filter-hidden {
  display: none;
}

.filter-link {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.filter-link:hover {
  color: var(--green);
}

/* Archive Toolbar */

.archive-toolbar {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 1rem;
}

.archive-count {
  font-size: 0.925rem;
  color: #666;
}

.archive-sort .form-select {
  width: auto;
  min-width: 220px;
  font-size: 0.925rem;
}

/* Archive loading state */
.archive-loading {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* Archive Pagination */

.archive-pagination ul {
  display: flex;
  gap: 0.25rem;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 0.375rem;
  text-decoration: none;
  font-size: 0.925rem;
  color: var(--darkgrey);
  background-color: var(--lightgrey);
  transition: all 0.2s ease;
}

.archive-pagination .page-numbers.current {
  background-color: var(--green);
  color: var(--white);
  font-weight: 600;
}

.archive-pagination .page-numbers:hover:not(.current) {
  background-color: var(--lightgreen);
  color: var(--darkgreen);
}

.archive-pagination .page-numbers.dots {
  background-color: transparent;
}

.archive-pagination .page-numbers.dots:hover {
  background-color: transparent;
  color: var(--darkgrey);
}

/* Products */

.product-item {
  padding: 1rem;
  display: flex;
  gap: 1rem;
  flex-direction: column;
  height: 100%;
  background-color: var(--lightgrey);
  border-radius: 0.5rem;
  transition: all ease 0.6s;
}

.product-item:hover {
  box-shadow: var(--shadow);
}

.product-media {
  position: relative;
}

.product-image {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

.product-item .btn {
  margin-top: auto;
}

.product-tech {
  width: 100%;
  height: 250px;
  object-fit: contain;
  border-radius: 0.5rem;
  background-color: var(--white);
}

.product-sku {
  font-family: monospace;
  font-size: 0.925rem;
}

.product-title {
  font-size: 1.125rem;
  font-weight: 600;
}

.product-usps {
  margin-top: 1rem;
}

.product-usps .bi {
  color: var(--lightgreen);
  font-size: 1.125rem;
}

.product-summary .product-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--green);
}

.product-summary .product-descr {
  margin: 1.5rem 0;
}

.product-summary .product-usps {
  color: var(--green);
  margin-bottom: 1.5rem;
}

.product-actions {
  display: flex;
  gap: 1rem;
}

.product-amount {
  width: 175px;
}

.product-amount .btn {
  padding: 0;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  border: var(--bs-border-width) solid var(--bs-border-color);
  color: var(--darkblue) !important;
  transition: all ease 0.3s;
}

.product-amount .btn:hover {
  color: var(--white) !important;
  background-color: var(--darkblue);
}

.gallery-block {
  padding: 1.5rem;
  background-color: var(--lightgrey);
  border-radius: 0.5rem;
}

.gallery-image {
  width: 100%;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.nav-image {
  width: 100px;
  height: 100px;
  border-radius: 0.5rem;
}

.info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  border-radius: 0.5rem;
  background-color: var(--lightgrey);
}

.info-item {
  display: flex;
  gap: 1rem;
}

.info-label {
  min-width: 500px;
  font-weight: 600;
}

/* Reviews */

.review-item {
  padding: 1.5rem;
  background-color: var(--lightgrey);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

.review-header {
  margin-top: auto;
}

.review-author {
  font-weight: 700;
}

.review-rating {
  color: var(--orange);
  font-size: 1.5rem;
}

/* Footer */

.site-footer,
.copyright {
  color: var(--white);
}

.footer-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.copyright {
  padding: 1rem 0;
}
