/*
  RJB ProCleans Website Styles

  This stylesheet defines the visual identity for the RJB ProCleans static site.
  The design uses a clean, modern aesthetic with a fresh green accent colour
  derived from the company's branding. Sections are spaced generously for
  readability and the layout adapts gracefully to smaller devices. A sticky
  call‑to‑action button appears on mobile to encourage immediate calls.
*/

/* Colour palette */
:root {
  --primary: #8bc34a;       /* Fresh green used for CTAs and highlights */
  --dark: #1d1d1d;         /* Dark header and footer background */
  --light: #ffffff;        /* White text on dark backgrounds */
  --background: #f8f8f8;   /* Page background colour */
  --card-bg: #ffffff;      /* Service and project card backgrounds */
  --card-shadow: rgba(0, 0, 0, 0.05);
}

/* Base styles */
html {
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: #333;
  background: var(--background);
  line-height: 1.6;
}
a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Utility classes */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.mobile-only {
  display: none;
}
.desktop-only {
  display: inline-block;
}

/* Header */
header {
  background: var(--dark);
  color: var(--light);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  display: flex;
  align-items: center;
}
header .logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--light);
}
header nav {
  margin-left: auto;
  display: flex;
  gap: 20px;
}
header nav a {
  color: var(--light);
  font-weight: 500;
  transition: color 0.2s ease;
}
header nav a:hover {
  color: var(--primary);
}
header .call-btn {
  margin-left: 20px;
  padding: 8px 16px;
  background: var(--primary);
  color: var(--dark);
  border-radius: 4px;
  font-weight: 600;
  border: none;
}
header .call-btn:hover {
  background: #7eb841;
}
header .menu-toggle {
  background: none;
  border: none;
  color: var(--light);
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: 20px;
  display: none;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--dark);
  color: var(--light);
  padding: 10px 0;
}
.mobile-menu a {
  color: var(--light);
  padding: 10px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu.open {
  display: flex;
}

/* Hero section */
.hero {
  position: relative;
  color: var(--light);
  height: 60vh;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image: url('assets/hero.jpg');
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  z-index: 0;
}
.hero .content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.hero h1 {
  font-size: 2.5rem;
  margin: 0 0 10px;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 20px;
}
.hero .cta-btn {
  padding: 12px 24px;
  background: var(--primary);
  color: var(--dark);
  border-radius: 4px;
  font-weight: 600;
  display: inline-block;
}
.hero .cta-btn:hover {
  background: #7eb841;
}

/* Services section */
.services {
  padding: 60px 0;
  background: var(--background);
}
.services h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  color: var(--dark);
}
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 4px 8px var(--card-shadow);
  text-align: center;
}
.service-card h3 {
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: var(--dark);
}
.service-card p {
  font-size: 0.95rem;
  color: #555;
}

/* Projects preview section */
.projects-preview {
  padding: 60px 0;
  background: var(--background);
}
.projects-preview h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  color: var(--dark);
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.project-card {
  background: var(--card-bg);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 8px var(--card-shadow);
}
.project-card img {
  width: 100%;
  display: block;
}
.project-card .caption {
  padding: 15px;
  font-size: 0.95rem;
  color: #444;
}

/* CTA section */
.cta {
  background: var(--primary);
  color: var(--dark);
  padding: 40px 0;
  text-align: center;
}
.cta h2 {
  margin-bottom: 20px;
  font-size: 2rem;
}
.cta a {
  padding: 12px 24px;
  background: var(--dark);
  color: var(--light);
  border-radius: 4px;
  font-weight: 600;
}
.cta a:hover {
  background: #333;
}

/* About page */
.about-content {
  padding: 60px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}
.about-content .text {
  flex: 1 1 500px;
}
.about-content .image {
  flex: 1 1 400px;
}
.about-content .image img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 4px 8px var(--card-shadow);
}

/* Contact form */
.contact-section {
  padding: 60px 0;
}
.contact-section h2 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
  color: var(--dark);
}
.contact-details {
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 1rem;
  text-align: center;
}
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 15px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}
.contact-form button {
  padding: 12px;
  background: var(--primary);
  color: var(--dark);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}
.contact-form button:hover {
  background: #7eb841;
}

/* Footer */
footer {
  background: var(--dark);
  color: var(--light);
  padding: 30px 0;
  text-align: center;
  font-size: 0.9rem;
}
footer a {
  color: var(--primary);
  margin: 0 10px;
}
footer a:hover {
  text-decoration: underline;
}

/* Sticky call button (mobile) */
.sticky-call {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--dark);
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: inline-block;
  }
  header nav {
    display: none;
  }
  header .menu-toggle {
    display: inline-block;
  }
  .mobile-menu a {
    text-align: left;
  }
  .sticky-call {
    display: block;
  }
  .about-content {
    flex-direction: column;
  }
}