/* Emergency Plumber Battersea - static site */
:root {
  --color-primary: #2d5ba6;
  --color-text: #322c28;
  --color-muted: #8a8a8a;
  --color-bg-light: #f5f5f5;
  --font-body: Verdana, Geneva, sans-serif;
  --font-heading: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text);
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  padding: 12px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text);
}

.logo span { color: var(--color-primary); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #ccc;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 18px;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.main-nav a {
  color: var(--color-text);
  font-weight: 600;
  padding: 6px 0;
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* Hero */
.hero {
  padding: 100px 0 150px;
  background: url('../images/plumber1.jpg') center 50% no-repeat;
  background-size: cover;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 56px;
  line-height: 1.2;
  font-weight: 700;
  color: #000;
  margin: 196px 0 31px;
}

.hero .lead {
  font-size: 23px;
  font-weight: 700;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-light {
  background: var(--color-bg-light);
}

.section-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 36px;
  margin: 0 0 40px;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card .service-image {
  height: 180px;
  background-size: cover;
  background-position: center;
  margin-bottom: 16px;
}

.service-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.service-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.service-card-link:hover h3 {
  color: var(--color-primary);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  text-align: center;
  margin: 0 0 10px;
}

.service-card p {
  text-align: center;
  margin: 0;
  font-size: 14px;
}

/* Image content block */
.image-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 320px;
}

.image-content .image-side {
  background-size: cover;
  background-position: center;
  min-height: 280px;
}

.image-content .text-side {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.image-content h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  margin: 0 0 16px;
}

/* Footer */
.site-footer {
  background: var(--color-bg-light);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-col h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  margin: 0 0 16px;
}

.footer-col p { margin: 0 0 10px; font-size: 14px; }

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  font-size: 13px;
  color: var(--color-muted);
}

/* Article pages */
.page-content {
  padding: 60px 0 80px;
}

.page-content h1 {
  font-family: var(--font-heading);
  font-size: 32px;
  margin: 0 0 24px;
}

.article-body img {
  max-width: 100%;
  height: auto;
  margin: 5px 15px 10px 0;
}

.article-body img[style*="float: right"],
.article-body img[style*="float:right"] {
  margin: 5px 0 10px 15px;
  float: right;
}

.article-body img[style*="float: left"],
.article-body img[style*="float:left"] {
  float: left;
}

.article-body p {
  text-align: justify;
  margin: 0 0 16px;
}

.phone-cta {
  display: inline-block;
  background: var(--color-primary);
  color: #fff !important;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 700;
  margin-top: 16px;
}

.phone-cta:hover {
  background: #1e4480;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 991px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .image-content { grid-template-columns: 1fr; }
  .hero h1 { font-size: 40px; margin-top: 80px; }
}

@media (max-width: 767px) {
  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    width: 100%;
  }

  .main-nav.open { display: block; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }

  .services-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 { font-size: 32px; }
  .section { padding: 50px 0; }
}
