/*
 * Global styles for the professional Airbnb cleaning company website
 *
 * This stylesheet defines the colour palette, typographic scale and layout
 * rules used throughout the site. It ensures a consistent look and feel on
 * every page while making it easy to adjust the design by changing a few
 * variables. Responsive breakpoints are handled with simple media queries
 * so the layout adapts gracefully on mobile, tablet and desktop screens.
 */

/* Colour variables */
:root {
  --primary-color: #0077c8; /* rich blue for buttons and highlights */
  --secondary-color: #00a1e0; /* lighter accent blue for hovers */
  --light-color: #f5f9fc; /* off‑white background for content sections */
  --dark-text: #333333; /* default text colour for readability */
  --muted-text: #555555; /* secondary text colour */
  --star-color: #ffd700; /* gold colour for star ratings */
}

/* Base resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark-text);
  line-height: 1.6;
  background-color: #ffffff;
  overflow-x: hidden;
}

/* Typography utilities */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

p {
  margin-bottom: 1em;
  font-size: 1rem;
  color: var(--muted-text);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Navigation bar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  transition: background-color 0.3s ease;
  background-color: transparent;
}

header.scrolled {
  background-color: rgba(0, 0, 0, 0.6);
}

header .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 40px; /* increase space between navigation items */
}

nav a {
  color: #ffffff;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Hero section */
.hero {
  height: 100vh;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 40px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

.hero h1 {
  font-size: 3rem;
  max-width: 700px;
  z-index: 1;
}

.hero .star-rating {
  font-size: 2rem;
  color: var(--star-color);
  margin: 15px 0;
  z-index: 1;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin-bottom: 30px;
  z-index: 1;
  color: #ffffff !important; /* ensure description text in hero is white */
}

.btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 40px;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  z-index: 1;
}

.btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

/* Features section */
.features {
  padding: 80px 40px;
  background-color: var(--light-color);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: #ffffff;
  border-radius: 15px;
  padding: 40px 20px;
  text-align: center;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
}

.feature-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--muted-text);
}

/* Section titles */
.section-title {
  text-align: center;
  margin-top: 80px;
  margin-bottom: 40px;
  font-size: 2rem;
  color: var(--primary-color);
}

/* About, Services & Contact pages */
.page-header {
  height: 300px;
  background-image: url('images/pattern.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

.page-header h1 {
  font-size: 2.5rem;
  z-index: 1;
}

.content-section {
  padding: 60px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.content-section p {
  font-size: 1rem;
  margin-bottom: 1.2em;
}

/* Services list */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-item {
  background-color: #ffffff;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
}

.service-item i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.service-item h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--primary-color);
}

.service-item p {
  font-size: 0.9rem;
  color: var(--muted-text);
}

/* Contact form */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
}

.contact-details {
  flex: 1 1 300px;
}

.contact-details h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.contact-details p {
  margin-bottom: 8px;
}

.contact-form {
  flex: 1 1 300px;
  background-color: #ffffff;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.contact-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  font-size: 1rem;
}

.contact-form textarea {
  resize: vertical;
  height: 120px;
}

.contact-form button {
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 12px 28px;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: var(--secondary-color);
}

/* Footer */
footer {
  background-color: var(--light-color);
  padding: 40px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted-text);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.3rem;
  }
  .hero p {
    font-size: 1rem;
  }
  header {
    padding: 15px 20px;
  }
}