/* ===== J&P Bathrooms — Checkatrade-inspired design ===== */

:root {
  --blue: #0D3B66;
  --blue-dark: #08243F;
  --blue-light: #EDF5FC;
  --blue-mid: #1F6FB2;
  --red: #F04E3E;
  --red-dark: #D63A2B;
  --ink: #17242F;
  --grey: #5B6B7A;
  --grey-light: #F6F9FC;
  --border: #E1E9F0;
  --star: #F8A912;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(8, 36, 63, 0.10);
  --font: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.6;
  background: #fff;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 { line-height: 1.2; color: var(--blue); }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-align: center;
  font-family: var(--font);
}
.btn:active { transform: scale(0.98); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: var(--blue-light); }
.btn-full { width: 100%; }

/* ===== Top bar ===== */
.topbar {
  background: var(--blue-dark);
  color: #fff;
  font-size: 14px;
  padding: 8px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.topbar-phone {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.topbar-phone:hover { text-decoration: underline; }

/* ===== Header ===== */
.header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-text {
  font-size: 26px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.logo-sub {
  font-weight: 400;
  color: var(--blue-mid);
  margin-left: 6px;
}
.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 6px 0;
  border-bottom: 3px solid transparent;
}
.nav a:hover {
  color: var(--blue);
  border-bottom-color: var(--red);
}
.header-cta { padding: 12px 22px; font-size: 15px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
  color: #fff;
  padding: 64px 0 72px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  color: #fff;
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 18px;
}
.tick-word {
  position: relative;
  display: inline-block;
}
.tick-underline {
  position: absolute;
  left: 0;
  bottom: -14px;
  width: 100%;
  height: 16px;
}
.hero-sub {
  font-size: 19px;
  color: #D8E8F8;
  margin-bottom: 30px;
  max-width: 540px;
}

/* Search-bar style quote form */
.quote-search {
  display: flex;
  background: #fff;
  border-radius: 999px;
  padding: 6px;
  box-shadow: var(--shadow);
  gap: 4px;
  max-width: 640px;
}
.quote-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  flex: 1.4;
  border-right: 1px solid var(--border);
}
.quote-field-postcode { flex: 1; border-right: none; }
.quote-field select,
.quote-field input {
  border: none;
  outline: none;
  font-size: 15px;
  font-family: var(--font);
  color: var(--ink);
  width: 100%;
  background: transparent;
  padding: 12px 0;
}
.quote-btn { padding: 14px 26px; white-space: nowrap; }

.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  font-size: 15px;
  color: #D8E8F8;
}
.hero-trust strong { color: #fff; }

.stars {
  color: var(--star);
  font-size: 18px;
  letter-spacing: 2px;
}
.stars-lg { font-size: 24px; }

/* Hero card */
.hero-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-illustration {
  display: block;
  width: 100%;
  height: auto;
}
.hero-card-list {
  list-style: none;
  padding: 20px 24px 24px;
  color: var(--ink);
}
.hero-card-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  padding: 6px 0;
}
.mini-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

/* ===== Trust strip ===== */
.trust-strip {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 26px 0;
}
.trust-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.trust-item strong {
  display: block;
  color: var(--blue);
  font-size: 15px;
}
.trust-item span {
  display: block;
  color: var(--grey);
  font-size: 13px;
  line-height: 1.4;
}

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section-blue { background: var(--blue-light); }
.section-grey { background: var(--grey-light); }
.section-title {
  font-size: 34px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.5px;
}
.section-title-left { text-align: left; }
.section-sub {
  text-align: center;
  color: var(--grey);
  font-size: 17px;
  max-width: 620px;
  margin: 12px auto 44px;
}

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.service-img {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-img-1 { background: linear-gradient(135deg, #1F6FB2, #0D3B66); }
.service-img-2 { background: linear-gradient(135deg, #2E86D1, #1F6FB2); }
.service-img-3 { background: linear-gradient(135deg, #3D6C99, #1E4468); }
.service-img-4 { background: linear-gradient(135deg, #F04E3E, #C0301F); }
.service-img-5 { background: linear-gradient(135deg, #2B88C8, #176092); }
.service-img-6 { background: linear-gradient(135deg, #135E8C, #082F47); }
.service-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.service-body h3 {
  font-size: 19px;
  margin-bottom: 8px;
}
.service-body p {
  color: var(--grey);
  font-size: 14.5px;
  flex: 1;
}
.service-link {
  margin-top: 14px;
  color: var(--red);
  font-weight: 700;
  font-size: 15px;
}
.service-card:hover .service-link { text-decoration: underline; }

/* ===== Why choose us ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.why-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: 0 2px 8px rgba(0, 43, 84, 0.06);
}
.why-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.why-card h3 { font-size: 18px; margin-bottom: 8px; }
.why-card p { color: var(--grey); font-size: 14.5px; }

/* ===== Reviews ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.review-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.review-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-light);
  padding: 4px 10px;
  border-radius: 999px;
}
.review-badge .mini-tick { width: 16px; height: 16px; min-width: 16px; font-size: 10px; }
.review-card h3 { font-size: 17px; margin-bottom: 8px; }
.review-card p {
  color: var(--grey);
  font-size: 14.5px;
  font-style: italic;
  flex: 1;
}
.review-meta {
  margin-top: 16px;
  font-size: 14px;
  color: var(--grey);
}
.review-meta strong { color: var(--ink); }
.reviews-summary {
  text-align: center;
  margin-top: 40px;
}
.reviews-summary p {
  margin-top: 6px;
  color: var(--grey);
  font-size: 16px;
}
.reviews-summary strong { color: var(--blue); }

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item {
  height: 220px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.gallery-item figcaption {
  width: 100%;
  padding: 14px 16px;
  background: linear-gradient(transparent, rgba(0, 27, 51, 0.85));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.gallery-1 { background: linear-gradient(160deg, #BFD9EE 0%, #7FAED4 55%, #4E86B4 100%); }
.gallery-2 { background: linear-gradient(160deg, #D9E8F4 0%, #9DBFDC 55%, #5F8FB8 100%); }
.gallery-3 { background: linear-gradient(160deg, #CCE0EF 0%, #8FB6D8 55%, #55809F 100%); }
.gallery-4 { background: linear-gradient(160deg, #E4EEF6 0%, #AFCBE2 55%, #7899B8 100%); }
.gallery-5 { background: linear-gradient(160deg, #C5DCEE 0%, #86AEd2 55%, #4C7CA8 100%); }
.gallery-6 { background: linear-gradient(160deg, #D2E4F2 0%, #97BCDB 55%, #5A88AE 100%); }
.gallery-note {
  text-align: center;
  color: var(--grey);
  margin-top: 28px;
  font-size: 15px;
}

/* ===== Guarantee band ===== */
.guarantee-band {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
  color: #fff;
  padding: 48px 0;
}
.guarantee-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}
.guarantee-inner h2 {
  color: #fff;
  font-size: 26px;
  margin-bottom: 8px;
}
.guarantee-inner p {
  color: #D8E8F8;
  max-width: 640px;
  font-size: 15.5px;
}
.guarantee-inner .btn { margin-left: auto; white-space: nowrap; }

/* ===== Areas ===== */
.areas-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 24px;
  max-width: 820px;
  margin: 0 auto;
}
.areas-list li {
  position: relative;
  padding-left: 26px;
  font-weight: 600;
  color: var(--ink);
  font-size: 15px;
}
.areas-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 800;
}
.areas-note {
  text-align: center;
  color: var(--grey);
  margin-top: 28px;
  font-size: 15px;
}

/* ===== Contact ===== */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}
.contact-info > p {
  color: var(--grey);
  margin: 12px 0 28px;
  font-size: 16px;
}
.contact-list {
  list-style: none;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  color: var(--blue);
  font-weight: 600;
  font-size: 16px;
}
.contact-list a {
  color: var(--blue);
  text-decoration: none;
}
.contact-list a:hover { text-decoration: underline; }
.contact-list span { color: var(--ink); font-weight: 600; }

.contact-form {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--blue);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(11, 90, 164, 0.15);
}
.form-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--grey);
  text-align: center;
}
.form-success {
  margin-top: 14px;
  padding: 12px 16px;
  background: #E7F6EC;
  color: #1D7A3E;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
}

/* ===== Footer ===== */
.footer {
  background: var(--blue-dark);
  color: #B9CFE4;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding: 56px 20px 40px;
}
.footer-brand p {
  font-size: 14px;
  margin-top: 14px;
  max-width: 260px;
}
.logo-footer .logo-text { color: #fff; }
.logo-footer .logo-sub { color: #9DC1E4; }
.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-col a,
.footer-col span {
  display: block;
  color: #B9CFE4;
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
}
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-brand .logo { display: inline-flex; }
.footer-brand .logo-text,
.footer-brand .logo-sub { display: inline; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 18px 0;
  font-size: 13px;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { max-width: 480px; }
  .trust-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .services-grid, .reviews-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .areas-list { grid-template-columns: repeat(3, 1fr); }
  .contact-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .guarantee-inner { flex-wrap: wrap; }
  .guarantee-inner .btn { margin-left: 0; }
}

@media (max-width: 680px) {
  .topbar-inner span:first-child { display: none; }
  .topbar-inner { justify-content: center; }
  .nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--grey-light); }
  .header-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .hero { padding: 44px 0 52px; }
  .hero h1 { font-size: 32px; }
  .quote-search {
    flex-direction: column;
    border-radius: 16px;
    padding: 10px;
  }
  .quote-field {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .quote-field-postcode { border-bottom: none; }
  .trust-strip-inner { grid-template-columns: 1fr; }
  .services-grid, .reviews-grid, .gallery-grid, .why-grid { grid-template-columns: 1fr; }
  .areas-list { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .section-title { font-size: 28px; }
}
