/*
 * Ace Plumbers Website Styles
 *
 * This stylesheet defines the core look and feel of the Ace Plumbers website.
 * The palette is inspired by modern plumbing brands: deep blues convey
 * reliability and cleanliness, while a bright orange accent draws
 * attention to call‑to‑action elements【54617002751772†L349-L355】. By combining
 * these colors with generous whitespace and clean typography, the layout
 * feels trustworthy and approachable.
 */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;600&display=swap');

:root {
  --primary-color: #03467E; /* deep navy blue – trust & reliability */
  --secondary-color: #2A88C2; /* medium blue – cleanliness */
  --accent-color: #FF6B2D; /* vivid orange – CTAs stand out【54617002751772†L382-L389】 */
  --background-color: #F7FAFC; /* very light grey for section backgrounds */
  --text-color: #1E2A3A; /* dark slate for body copy */
  --light-color: #FFFFFF;
}

/* Global resets */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  margin-top: 0;
  color: var(--primary-color);
}

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

/* Containers */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation */
.navbar {
  background: var(--light-color);
  border-bottom: 1px solid #e5e5e5;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  transition: all 0.3s ease;
}
.navbar .nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}
.navbar .logo a {
  /* When using the logo image, we hide the text via the image to maintain
     accessibility. */
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* Logo image styling */
.logo img {
  height: 45px;
  width: auto;
  display: block;
}
.nav-menu {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav-menu a {
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-menu a:hover {
  color: var(--secondary-color);
}
.nav-cta {
  display: flex;
  align-items: center;
}
.nav-cta a {
  background: var(--accent-color);
  color: var(--light-color);
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.2s ease;
}
.nav-cta a:hover {
  background: darken(var(--accent-color), 10%);
}

/* Hero */
.hero {
  position: relative;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  height: 60vh;
  color: var(--light-color);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 70, 126, 0.6);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}
.hero h1 {
  font-size: 2.5rem;
  color: var(--light-color);
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.2rem;
  color: var(--light-color);
  margin-bottom: 2rem;
}

/* Sections */
.section {
  padding: 4rem 0;
}
.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

/* Services grid */
.services-grid, .locations-grid, .town-grid {
  display: grid;
  gap: 2rem;
}
.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.service-card {
  background: var(--light-color);
  border-radius: 4px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: left;
}
.service-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}
.service-card p {
  margin-bottom: 0;
}

/* CTA buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.3s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent-color);
  color: var(--light-color);
}
.btn-primary:hover {
  background: #e65a20;
}
.btn-secondary {
  background: var(--secondary-color);
  color: var(--light-color);
}
.btn-secondary:hover {
  background: #1f6fa3;
}

/* Locations grid */
.locations-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.location-card {
  background: var(--light-color);
  border-radius: 4px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
}
.location-card h3 {
  margin-bottom: 0.5rem;
}
.location-card a {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent-color);
  font-weight: 600;
}

/* Contact section */
.contact-section {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}
.contact-info {
  flex: 1;
}
.contact-form {
  flex: 1;
  background: var(--light-color);
  padding: 2rem;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}
.contact-form button {
  width: 100%;
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: var(--light-color);
  padding: 2rem 0;
  text-align: center;
}
.footer a {
  color: var(--light-color);
  margin: 0 0.5rem;
}
.footer a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .locations-grid {
    grid-template-columns: 1fr;
  }
  .contact-section {
    flex-direction: column;
  }
}