/*
Theme Name: Prellex49
Author: Oxironix
Description: A custom WordPress theme for Prellex49 (Pty)Ltd
Version: 1.0
*/

/* Import Montserrat font from Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css");

/* Reset default browser margins and padding */
html,
body,
main,
.container {
  margin: 0;
  padding: 0;
}

/* CSS Variables */
:root {
  --text-accent: #efb915;
  --background-primary: #0f3f96;
  --background-secondary: #020b1d;
  --text-primary: #0f3f96;
  --text-secondary: #020b1d;
  --shadow-custom: 0 4px 6px #13131b;
  --hover-accent: #efb915;
  --button-primary: #020b1d;
  --button-primary-hover: #efb915;
}

body {
  font-family: "Montserrat", sans-serif;
}

/* Subheading */
.subheading {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* Navigation */
.nav-height {
  min-height: 40mm;
}

/* Logo */
.logo-container {
  width: 30mm;
  height: 30mm;
  padding: 0;
}

.logo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Menu */
.menu-link:hover {
  color: var(--hover-accent);
}

/* Buttons */
.primary-button {
  background-color: var(--button-primary);
  color: white;
}

.primary-button:hover {
  background-color: var(--button-primary-hover);
}

/*Project Page Grid*/
.services-grid-orange {
  font-family: "Arial", sans-serif;
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.sg-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.sg-col {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 40px 30px;
  flex: 1;
  min-width: 300px;
  max-width: 380px;
  text-align: center;
  transition: all 0.3s ease;
}

.sg-col:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.sg-image {
  margin: 0 auto 28px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.sg-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.sg-col:hover .sg-image img {
  transform: scale(1.05);
}

.sg-col h3 {
  font-size: 22px;
  margin-bottom: 18px;
  color: #222;
}

.sg-col p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 25px;
  font-size: 15px;
}

.sg-col ul {
  text-align: left;
  margin: 0 auto 30px;
  max-width: 260px;
  list-style: none;
  padding: 0;
}

.sg-col ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: #444;
  font-size: 15px;
}

.sg-col ul li:before {
  content: "•";
  color: #efb915;
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 20px;
}

.sg-button {
  display: inline-block;
  background: #efb915;
  color: white;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.sg-button:hover {
  background: #e0a800;
  transform: scale(1.05);
}

.sg-button span {
  margin-left: 8px;
  font-size: 18px;
}

/* Mobile Menu */
#mobile-menu {
  transition: all 0.3s ease-in-out;
}

#mobile-menu-button:hover {
  opacity: 0.8;
}

/* Mobile Styles */
#mobile-menu:not(.hidden) {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 40mm;
  left: 0;
  width: 100%;
  background-color: var(--background-primary);
  padding: 1rem;
  z-index: 1000;
}

.widget-container {
  max-width: 100%;
  padding: 0.5rem;
}

.hero-bg,
.default-hero-img,
.page1-banner-img,
.page2-banner-img,
.page3-banner-img {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.container.mx-auto {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.service-grid {
  gap: 1.5rem !important;
}

/* Hero Sections */
.hero-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 0;
  margin-bottom: 2rem;
}

.big-sleeves-img,
.default-hero-img,
.eskom-germiston-img,
.fiber-installation-img,
.kooshendrik-img,
.nissan-img,
.profile-img,
.pvcwelder-img,
.pvcwelder2-img,
.roadcrossing-1-img,
.rockdrill-action-img,
.sewer-drill-img,
.sewerline-img,
.sleve-mounting-img,
.solidrock-img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  min-height: 24rem;
  max-width: 100%;
}

/* Content */
.content-area img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.content-area p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.content-area h1,
.content-area h2,
.content-area h3,
.content-area h4,
.content-area h5,
.content-area h6 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.content-area.last-paragraph {
  width: 100%;
}

/* About Page */
.about-layout {
  display: block;
}

.about-image {
  float: left;
  width: 50%;
  margin-right: 1rem;
  margin-bottom: 1rem;
}

.about-image img {
  max-width: 100%;
  height: auto;
}

.about-text {
  overflow: hidden;
}

.about-text p.inline-block {
  display: inline-block;
  vertical-align: top;
  width: 50%;
}

.about-text p.text-center {
  text-align: center;
  clear: both;
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
}

.service-card {
  background-color: var(--background-secondary);
  border-radius: 0.5rem;
  padding: 1.5rem;
  height: 100%;
  box-shadow: var(--shadow-custom);
  transition: all 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-5px);
}

.service-card h3 {
  color: white;
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: white;
  opacity: 0.8;
  font-size: 0.875rem;
}

.service-card .icon {
  color: var(--text-accent);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.group:hover .service-card {
  background-color: var(--background-secondary);
  opacity: 0.9;
}

/* Contact Page */
.contact-container {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.form-container {
  background: linear-gradient(
    135deg,
    var(--background-primary) 0%,
    #2a1a7f 100%
  );
}

.info-container {
  background-color: #ffffff;
}

.contact-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(250, 3, 0, 0.1);
  color: var(--text-accent);
  margin-right: 15px;
}

.contact-item {
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Form Elements */
.form-input,
.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-email,
.wpcf7-form-control.wpcf7-textarea {
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 12px 15px;
  width: 100%;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

.form-input:focus,
.wpcf7-form-control.wpcf7-text:focus,
.wpcf7-form-control.wpcf7-email:focus,
.wpcf7-form-control.wpcf7-textarea:focus {
  outline: none;
  border-color: var(--text-accent);
  box-shadow: 0 0 0 3px rgba(250, 3, 0, 0.2);
}

.submit-btn,
.wpcf7-form-control.wpcf7-submit {
  background: linear-gradient(to right, var(--text-accent) 0%, #efb915 100%);
  color: white;
  font-weight: 600;
  padding: 14px 25px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(250, 3, 0, 0.3);
}

.submit-btn:hover,
.wpcf7-form-control.wpcf7-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(250, 3, 0, 0.4);
}

.submit-btn:active,
.wpcf7-form-control.wpcf7-submit:active {
  transform: translateY(0);
}

.contact-info {
  color: var(--text-primary);
}

.contact-label {
  color: var(--text-primary);
  font-weight: 600;
}

/* Hero Subheading */
.hero-bg h2 {
  color: white;
  opacity: 0.9;
}

/* Footer Form - Fixed Paper Plane Alignment */
footer .footer-profile-form {
  display: flex;
  width: 100%;
  align-items: stretch; /* Ensures equal height */
}

footer .footer-profile-form p {
  display: flex;
  width: 100%;
  margin: 0;
}

footer .footer-profile-form input[type="email"] {
  padding: 0.75rem 1rem; /* Increased vertical padding */
  border-radius: 0.375rem 0 0 0.375rem;
  background-color: #ffffff;
  color: #0f3f96;
  width: 100%;
  border: 1px solid #0f3f96;
  box-sizing: border-box;
  outline: none;
  transition: all 0.3s ease;
  height: auto; /* Allow natural height */
  line-height: 1.5; /* Better text alignment */
}

footer .footer-profile-form input[type="email"]::placeholder {
  color: #0f3f96;
  opacity: 0.7;
}

footer .footer-profile-form input[type="email"]:focus {
  border-color: var(--text-accent);
  box-shadow: 0 0 0 3px rgba(250, 3, 0, 0.2);
}

footer .footer-profile-form .paper-plane-submit {
  padding: 0;
  border-radius: 0 0.375rem 0.375rem 0;
  background-color: #0f3f96;
  border: none;
  cursor: pointer;
  width: 50px;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

footer .footer-profile-form .paper-plane-submit i.fas.fa-paper-plane {
  color: white;
  font-size: 1.25rem; /* Slightly larger icon */
  margin: 0; /* Remove any default margins */
  line-height: 1; /* Prevent line-height issues */
  display: block; /* Better alignment control */
}

footer .footer-profile-form .paper-plane-submit:hover i.fas.fa-paper-plane {
  color: #efb915;
}

footer .footer-profile-form .paper-plane-submit:hover {
  background-color: #0f3f96;
}

/* Form Messages */
footer #form-message.text-green-400 {
  color: #ffffff;
}

footer #form-message.text-red-400 {
  color: #efb915;
}

footer .wpcf7-response-output {
  display: none !important;
}

/* ===============================================
   CLEAN MOBILE FIXES – ONLY WHAT YOU NEED (2025)
   Copy and paste this at the VERY BOTTOM of style.css
   =============================================== */
/* FINAL MOBILE FIX – ONLY THESE 6 LINES */
@media (max-width: 768px) {
  /* 1. Remove the huge background image that was only meant for desktop */
  [class$="-img"] {
    background-image: none !important;
  }

  /* 2. Let the real <img> inside those divs take over the full space */
  [class$="-img"] img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }
}
