/*
 * Primary stylesheet for the Ipswich&nbsp;Panel&nbsp;&amp;&nbsp;Paint website.
 *
 * This file defines the global styles, colour palette and layout
 * components used across all pages. The design favours a clean,
 * professional look that reflects our heritage and craftsmanship since 2006
 * while introducing modern conveniences like online quoting and booking.
 */

/* Colour palette */
:root {
  --primary: #0066cc;      /* vibrant blue accent inspired by futuristic speed trails */
  --dark: #222222;         /* dark neutral for headers and footers */
  --light: #f7f7f7;        /* soft off‑white background */
  --muted: #777777;        /* muted grey for secondary text */
}

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

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

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

p {
  margin: 0 0 1rem 0;
}

/* Header and navigation */
header {
  background-color: var(--dark);
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .logo {
  /* Ensure the logo container accommodates either text or an image */
  display: flex;
  align-items: center;
}

header .logo img {
  height: 60px;
  width: auto;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--primary);
}

/* Hero banner */
.hero {
  position: relative;
  background-image: url('assets/hero.png');
  background-size: cover;
  background-position: center;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

.hero .content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 0 1rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: #eee;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  background-color: var(--primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background-color: #004999;
}

/* Sections */
.section {
  padding: 4rem 2rem;
}

.section:nth-of-type(even) {
  background-color: #ffffff;
}

.section:nth-of-type(odd) {
  background-color: var(--light);
}

.section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

/* Service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.service-card p {
  color: var(--muted);
}

/* Process steps */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.process-step {
  text-align: center;
  padding: 1rem;
}

.process-step .number {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.process-step h4 {
  margin: 0.5rem 0;
}

/* Forms */
.form-container {
  max-width: 700px;
  margin: 0 auto;
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.form-container label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
}

.form-container input,
.form-container textarea,
.form-container select {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.25rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

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

.form-container button {
  margin-top: 1.5rem;
  background-color: var(--primary);
  color: #fff;
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.form-container button:hover {
  background-color: #004999;
}

/*
 * Photo example thumbnails
 * These styles apply to the small example images shown in the
 * quote page's photo checklist. They ensure the images scale
 * appropriately, have a consistent border radius and subtle
 * shadow, and separate themselves from the list text.
 */
.photo-example {
  display: block;
  max-width: 140px;
  width: 100%;
  height: auto;
  margin-top: 0.5rem;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* Footer */
footer {
  background-color: var(--dark);
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
}

footer p {
  margin: 0.3rem 0;
  color: #ccc;
}

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

footer a:hover {
  text-decoration: underline;
}

/*
 * Third‑party recovery banner
 * This banner appears on the home page to draw attention to our
 * accident‑not‑your‑fault service. It uses the primary colour
 * for the background and white text for contrast.
 */
.third-party-banner {
  background-color: var(--primary);
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
}

.third-party-banner h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.75rem;
  color: #fff;
}

.third-party-banner p {
  margin: 0 0 1.25rem 0;
  color: #e6ecf8;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.third-party-banner a {
  display: inline-block;
  background-color: #fff;
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.third-party-banner a:hover {
  background-color: #f0f0f0;
}

/*
 * Logo text next to the image
 * Displays the business name alongside the logo artwork in the header.
 */
.logo-text {
  margin-left: 0.5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  line-height: 1;
}