/*
Theme Name: hydraulics
Theme URI: http://hydraulicspng.com.pg/
Author: Your Name
Author URI: http://hydraulicspng.com.pg/
Description: Hydraulics PNG WordPress Theme
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hydraulics
*/


body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
}
header {
  background-color: #003300;
  color: #ffffff;
  padding: 20px;
  text-align: center;
}
nav {
  display: flex;
  width: 100%;
  justify-content: center;
  background-color: #e8c603;

  position: sticky;
  top: 0;
  z-index: 1000;
}
nav a {
  color: #222121;
  text-decoration: none;
  padding: 14px 10px;
  transition: background-color 0.3s, color 0.3s;
  font-weight: bold;
  font-size: 18px;
}

nav a:hover {
  background-color: #333;
  color: #ffd700;
}

.social-icons a {
  color: white;
  margin-left: 10px;
}

nav a:hover {
  background-color: #003300;
}

.nav-image img {
  width: 100%;
  height: auto;
  display: block;
}

.image-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  overflow: hidden;
}

.image-wrapper img {
  display: block;
  width: 100%;
  height: auto;

  height: 250px;
  object-fit: cover;
  border-radius: 6px;
}

.overlay-text {
  position: absolute;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 16px 54px;
  border-radius: 8px;
  max-width: 40%;
  font-family: system-ui, sans-serif;
  line-height: 1.2;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.overlay-text h2 {
  margin: 0 0 6px;
  font-size: 1.5rem;
}

.overlay-text p {
  margin: 0;
  font-size: 1rem;
}

/* Responsive: on narrow viewports, move the box toward bottom and expand */
@media (max-width: 800px) {
  .overlay-text {
    top: auto;
    bottom: 10%;
    right: 5%;
    transform: none;
    max-width: 90%;
  }
}

.hero {
  background: url("https://via.placeholder.com/1200x400?text=Hydraulic+Repair")
    no-repeat center / cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  /* Responsive sizing */
  width: 100%;
  min-height: 180px; /* more flexible than fixed height */
  padding: 24px 16px; /* keeps text from touching edges */
  box-sizing: border-box;
  color: rgb(8, 56, 0);
}

/* Style the inner text only (not the whole hero container) */
.hero > div {
  font-size: clamp(1.1rem, 6vw, 2.2rem); /* scales on mobile */
  line-height: 1.2;
  max-width: 30ch; /* prevents ultra-wide single line */
  overflow-wrap: anywhere;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); /* improves contrast on images */
}

/* Optional: tweak spacing on very small screens */
@media (max-width: 480px) {
  .hero {
    min-height: 130px;
    padding: 16px;
  }
}

.intro-text {
  text-align: center;
  font-size: 1.2rem;
  margin: 20px auto;
  width: 80%; /* Adjust width to make it neat */
  color: #333;
}

.highlight {
  color: #cc6603; /* Makes the 15 years stand out */
  font-weight: bold;
}

.section {
  padding: 40px 20px;
  text-align: center;
}

.services {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  gap: 40px;
}

.services h2 {
  text-align: center;
  margin-bottom: 30px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 10px;
  /* optional subtle shadow */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
}

/* Alternate order: image right on even items */
.service-item:nth-child(even) {
  flex-direction: row-reverse;
}

.service-image {
  flex: 1 1 250px;
  min-width: 220px;
}

.service-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  border: 2px solid #b2a600; /* matches your yellowish theme */
}

.service-content {
  flex: 2 1 400px;
}

.service-content h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.4rem;
}

.service-content p {
  margin: 0;
  line-height: 1.5;
}

:root {
  --services-heading-color: #222222;
  --service-title-color: #cc6600;
  --service-text-color: #444444;
}

.services h2 {
  color: var(--services-heading-color);
}

.service-content h3 {
  color: var(--service-title-color);
  margin: 0 0 0.25rem;
}

.service-content p {
  color: var(--service-text-color);
  margin: 0;
}

/* Optional: hover or accent variants */
.service-content h3 span.accent {
  color: #0077cc; /* you can override per-word if needed */
}

.cta {
  background-color: #e2e2e2;
  padding: 30px;
}
footer {
  background-color: #222;
  color: white;
  padding: 20px;
  text-align: center;
}
.social-icons a {
  color: white;
  margin: 0 10px;
  font-size: 1.5rem;
}

/* Products style */

.product-list {
  display: flex;
  justify-content: center; /* Centers items horizontally */
  gap: 20px; /* Space between product containers */
  flex-wrap: wrap; /* Wraps to next line on smaller screens */
  margin-top: 20px;
}

.product-item {
  background: #fff; /* White background for each container */
  border-radius: 8px;
  padding: 15px;
  width: 300px; /* Set consistent width */
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.product-item:hover {
  transform: translateY(-5px); /* Small lift effect on hover */
}

.product-item img {
  width: 100%; /* Fill the container width */
  height: 200px; /* Fixed height for all images */
  object-fit: cover; /* Crops image to fit without stretching */
  border-radius: 5px;
  margin-bottom: 10px;
}

.product-item h3 {
  margin: 10px 0 5px;
  font-size: 1.2rem;
}

.product-item p {
  font-size: 0.95rem;
  color: #555;
}

/* Responsive layout */
@media (max-width: 900px) {
  .product-item {
    width: 45%; /* Two items per row */
  }
}

@media (max-width: 600px) {
  .product-item {
    width: 100%; /* One item per row */
  }
}
