/*!
Theme Name: D-Rus New
Theme URI: http://d-rus.com
Author: Kirill
Description: New custom WordPress theme for D-Rus.
Version: 1.0.0
Tested up to: 6.0
Requires PHP: 7.4
Text Domain: drusnew
*/

:root {
  --primary: #1a3a5f;
  --primary-dark: #0f243c;
  --secondary: #00548b;
  --accent: #0077c8;
  --produr: #08c;
  --light: #f8f6f2;
  --gray: #e0ded9;
  --dark: #333333;
  --text: #444444;
  --transition: all 0.3s ease;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Font Face */
@font-face {
  font-family: "Duravit-Font";
  src: url("assets/dura-rep-webfont-1.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
  color: var(--text);
  font-family: "Duravit-Font", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

/* Main Content Styles */
main {
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 20px;
  /* padding: 0 50px; */
  /* min-height: 500px; */
  background-color: #fff; /* General rule: bg are white */
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.content-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-flex {
  display: flex;
  /* flex-wrap: wrap; */
  justify-content: space-between;
}

@media (max-width: 1220px) {
  main {
    padding: 20px;
  }
}

h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  clear: both;
}

.category-section h3 {
  font-weight: 700;
}

h3 {
  font-size: 32px;
  font-weight: 400;
  color: var(--primary);
  clear: both;
}

h4,
h5,
h6 {
  clear: both;
}

p {
  font-size: 18px;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 1.5em;
}

/* Links
--------------------------------------------- */
a {
  color: var(--accent);
}

a:visited {
  color: var(--accent);
}

a:hover,
a:focus,
a:active {
  color: var(--accent);
}

a:focus {
  outline: thin dotted;
}

a:hover,
a:active {
  outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  border: 1px solid var(--text);
  border-radius: 5px;
  background: var(--text);
  color: #ffffff;
  line-height: 18px;
  padding: 9px 15px;
  font-size: 14px;
  font-weight: 400;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
  border-color: var(--accent);
  background: var(--accent);
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
  border-color: var(--accent);
  background: var(--accent);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
  color: #666;
  border: 1px solid #ccc;
  border-radius: 3px;
  padding: 3px;
  width: 100%;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
  color: #111;
}

select {
  border: 1px solid #ccc;
}

textarea {
  width: 100%;
}

/* Posts and pages */

.page-links {
  clear: both;
  margin: 0 0 1.5em;
}

/* .section-header is only on about us for now...  */
.section {
  margin-bottom: 4rem;
}

.section-header {
  display: flex;
  flex-wrap: wrap; /* Allow items to wrap on smaller screens */
  justify-content: space-between;
  align-items: flex-start; /* Align items to the top */
  margin-bottom: 2rem;
}

.section-header .content {
  flex: 1; /* Allow content to take available space */
  margin-right: 2rem; /* Add some space between text and image */
}

/* -------------------------------------- */
/* Search Results Page Styles */
/* -------------------------------------- */

.search-results-pages {
  background: var(--secondary);
  padding: 2rem 2rem 1rem 2rem;
  border-radius: 12px;
  margin-bottom: 40px;
  margin-bottom: 4rem;
}

.search-results-pages h2,
.search-results-products h2 {
  margin-top: 40px;
  margin-bottom: 20px;
}

.search-results-pages .page-result-item {
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(119, 119, 119, 0.1);
}

.search-results-pages .entry-header {
  margin: 0px;
}

.search-results-pages .entry-title {
  font-size: 18px;
  font-weight: 600;
  margin: 5px 0;
}

.search-results-pages .entry-title a {
  text-decoration: none;
  color: var(--text);
}

.search-results-pages .entry-title a:hover {
  color: var(--accent);
}

/* Ensure product grid from WooCommerce styles is applied */
.search-results-products .product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Responsive adjustments for search results */
@media (max-width: 1000px) {
  .search-results-products .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .search-results-pages h2,
  .search-results-products h2 {
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .search-results-pages .entry-title {
    font-size: 20px;
  }

  .search-results-pages .page-result-item {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .search-results-products .product-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Badges */
.badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-right: 5px;
  margin-bottom: 5px;
}

.badge-project {
  background: var(--primary);
  color: white;
}

.badge-leadtime {
  background: var(--secondary);
  color: white;
}

.badge-compatible {
  background: var(--accent);
  color: white;
}

.product_category {
  background: var(--secondary);
  color: white;
  display: block;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-right: 5px;
  margin-bottom: 5px;
}

/* Home Page Styles */
.hero {
  background: linear-gradient(rgba(26, 58, 95, 0.9), rgba(26, 58, 95, 0.5)),
    url("./assets/homepage_category_showering_tempano.jpg") no-repeat center
      center/cover;
  color: white;
  padding: 120px 0;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 40px;
  font-weight: 300;
  color: var(--light);
}

.hero a,
.hero a:visited,
.zigzag a,
.zigzag a:visited {
  color: white;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  padding: 15px 30px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  font-size: 16px;
}

.btn-primary {
  background-color: var(--secondary);
  color: white;
  border: 2px solid var(--secondary);
}

.btn-primary:hover {
  background-color: transparent;
  color: white !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background-color: white;
  color: var(--primary) !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* Section Styles */
section {
  padding: 50px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 36px;
  color: var(--primary);
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--secondary);
}

/* Tiles Grid */
.tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.tile {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.tile:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.tile-img {
  height: 200px;
  background-size: cover;
  background-position: center;
}

.tile-content {
  padding: 25px;
}

.tile h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--primary);
}

.tile-features {
  list-style: none;
  margin: 20px 0;
  font-size: 14px;
}

.tile-features li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.tile-features li::before {
  content: "•";
  color: var(--secondary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.tile .btn {
  margin-top: 15px;
  padding: 10px 20px;
  font-size: 14px;
}

/* ZigZag Section */
.zigzag {
  background-color: white;
}

.zigzag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: center;
}

.zigzag-content,
.zigzag-media {
  flex: 1;
  min-width: 300px;
}

.zigzag-media img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.zigzag-content h3 {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 25px;
  font-weight: 700;
}

.zigzag-features {
  list-style: none;
  margin: 30px 0;
}

.zigzag-features li {
  margin-bottom: 15px;
  padding-left: 35px;
  position: relative;
  font-weight: 500;
}

.zigzag-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 20px;
  height: 20px;
  background-color: var(--secondary);
  border-radius: 50%;
}

.zigzag-reverse {
  flex-direction: row-reverse;
}

/* Features Section */
section.collections {
  background-color: var(--light);
}

section.features {
  background-color: white;
}

.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.feature-item {
  text-align: center;
  padding: 30px;
  background: white;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  font-size: 40px;
  color: var(--secondary);
  margin-bottom: 20px;
}

.feature-item h4 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--primary);
}

/* FAQ Section */
.faq {
  background-color: var(--light);
}

.faq-item {
  margin-bottom: 20px;
  border: 1px solid var(--gray);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  background: white;
  font-weight: 600;
  font-size: 18px;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  background: var(--gray);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: white;
}

.faq-item.active .faq-answer {
  padding: 20px;
  max-height: 500px;
}

.faq-toggle {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

/* RFQ Form */
.rfq {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  text-align: center;
}

.rfq .section-title h2,
.rfq .section-title p {
  color: white;
}

.rfq .section-title h2::after {
  background-color: var(--secondary);
}

.rfq-form {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: left;
}

/* Product Examples with Badges */
.product-examples {
  background-color: var(--light);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 18px;
  }

  .section {
    padding: 60px 0;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .zigzag-container {
    flex-direction: column;
  }

  .content-flex {
  display: flex;
  flex-wrap: wrap;
  /* flex-direction: column; */
  /* justify-content: space-between; */
}
}
