/* ============================================================
   BIDEFORD CLEANING — style.css
   Font: Roboto (Google Fonts)
   Palette: #C8102E | #0A0A0A | #F5F5F5 | #FFFFFF | #222222
============================================================ */

/* ── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: #222222;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }

/* ── VARIABLES ──────────────────────────────────────────── */
:root {
  --red:       #C8102E;
  --red-dark:  #a50d26;
  --black:     #0A0A0A;
  --white:     #ffffff;
  --grey-bg:   #F5F5F5;
  --soft-grey: #F2F2F2;
  --border:    #DEDEDE;
  --text:      #222222;
  --muted:     #666666;
  --gold:      #FBBC05;
  --container: 1200px;
}

/* ── CONTAINER ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
  line-height: 1;
}
.btn-red   { background: var(--red);   color: #fff; border-color: var(--red); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-black { background: var(--black); color: #fff; border-color: var(--black); }
.btn-black:hover { background: #2a2a2a; border-color: #2a2a2a; }
.btn-outline-black { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline-black:hover { background: var(--black); color: #fff; }
.btn-white { background: #fff; color: var(--red); border-color: #fff; font-weight: 700; }
.btn-white:hover { background: #f0f0f0; border-color: #f0f0f0; }

/* ── SECTION TITLE ──────────────────────────────────────── */
.section-title {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red);
  margin-bottom: 6px;
}
.section-sub {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 24px;
}

/* =============================================================
   2. HERO SECTION
============================================================= */
.hero-section {
  padding: 40px 20px 40px;
  background: #fff;
  overflow: hidden;
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}
.hero-grid {
  display: grid;
  grid-template-columns: 52fr 48fr;
  gap: 20px;
  align-items: stretch;
  min-height: 580px;
}

/* Hero Left */
.hero-logo {
  max-width: 380px;
  margin-bottom: 32px;
}
.hero-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: left center;
}
.hero-h1 {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text);
}
.hero-h1 strong {
  display: block;
  color: var(--red);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}
.hero-desc {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 30px;
  line-height: 1.65;
}

/* Trust badges */
.trust-row {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.trust-icon { color: var(--red); flex-shrink: 0; margin-top: 2px; }
.trust-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: block;
  margin-bottom: 2px;
}
.trust-desc {
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Hero CTAs */
.hero-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  margin-bottom: 22px;
}

/* Google rating */
.google-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.stars { color: var(--gold); font-size: 1.05rem; letter-spacing: 2px; }
.rating-text { font-size: 0.8rem; font-weight: 600; }
.g-logo { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.5px; }
.g-blue   { color: #4285F4; }
.g-red    { color: #EA4335; }
.g-yellow { color: #FBBC05; }
.g-green  { color: #34A853; }

/* Hero Right – phone/buttons bar + Quote Form */
.hero-right {
  display: flex;
  flex-direction: column;
  background: #fff;
}
.quote-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: nowrap;
  padding: 0 0 16px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}
.quote-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}
.quote-phone svg { flex-shrink: 0; }
.quote-phone-num {
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--black);
  display: block;
  line-height: 1.1;
}
.quote-phone-sub {
  font-size: 0.68rem;
  color: var(--muted);
  display: block;
}
.quote-top-ctas { display: flex; gap: 8px; flex-wrap: nowrap; flex-shrink: 0; }
.quote-card {
  background: var(--red);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.quote-card-head {
  padding: 24px 24px 16px;
  text-align: center;
  background: var(--red);
}
.quote-card-head h2 {
  color: #fff;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 4px;
}
.quote-card-head p {
  color: rgba(255,255,255,0.85);
  font-size: 0.84rem;
}
.quote-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0 14px 0;
}
.field-wrap { position: relative; }
.field-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #bbb;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.field-wrap.area-wrap .field-icon { top: 14px; transform: none; left: 14px; }
.area-wrap .form-textarea { padding-left: 46px; padding-top: 14px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 16px 12px 16px 40px;
  background: #fff;
  border: none;
  font-size: 0.85rem;
  color: var(--text);
  outline: none;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  transition: box-shadow 0.2s;
}
.form-select {
  padding-left: 12px;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}
.form-textarea {
  padding: 14px 12px;
  resize: vertical;
  min-height: 110px;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  box-shadow: 0 0 0 2px rgba(255,255,255,0.5) inset;
}
.form-input::placeholder, .form-textarea::placeholder { color: #aaa; }
.form-submit {
  width: 100%;
  padding: 18px;
  background: var(--black);
  color: #fff;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  border: none;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
}
.form-submit:hover { background: #2a2a2a; }
.form-privacy {
  color: rgba(255,255,255,0.85);
  font-size: 0.7rem;
  text-align: center;
  padding: 12px 20px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--red);
}
/* Error / success states */
.field-error {
  display: none;
  font-size: 0.68rem;
  color: #ffd0d0;
  padding: 3px 6px 4px;
  background: rgba(0,0,0,0.15);
}
.field-wrap.has-error .field-error { display: block; }
.field-wrap.has-error .form-input,
.field-wrap.has-error .form-select,
.field-wrap.has-error .form-textarea {
  box-shadow: 0 0 0 2px #ff6b6b inset;
}
.form-success {
  display: none;
  background: rgba(0,0,0,0.25);
  color: #fff;
  text-align: center;
  padding: 24px 20px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  margin: 0 14px 14px;
  border-radius: 4px;
}
.form-success p {
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  font-weight: 400;
  margin: 6px 0 16px;
}
.btn-back {
  display: inline-block;
  background: #fff;
  color: var(--red);
  border: 2px solid #fff;
  padding: 9px 22px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: background .2s, color .2s;
}
.btn-back:hover {
  background: rgba(255,255,255,0.85);
}
.form-error {
  background: #fff3f3;
  color: #a50d26;
  border: 1px solid #f5c6cb;
  border-radius: 3px;
  padding: 12px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0 14px 14px;
}

/* =============================================================
   3. SERVICES SECTION
============================================================= */
.services-section {
  padding: 48px 20px 46px;
  background: #fff;
  border-top: 1px solid var(--border);
  text-align: center;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 0;
}
.service-card {
  background: #fff;
  padding: 28px 16px 24px;
  text-align: center;
  transition: background 0.2s;
}
.service-card:hover { background: var(--soft-grey); }
.service-icon {
  color: var(--red);
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.service-icon img {
  /* Convert black SVG paths to brand red #C8102E */
  filter: brightness(0) saturate(100%) invert(14%) sepia(98%) saturate(4778%) hue-rotate(342deg) brightness(88%) contrast(96%);
  display: block;
}
.service-name {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  line-height: 1.35;
  color: var(--text);
}
.service-desc {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.55;
}

/* =============================================================
   4. TESTIMONIALS SECTION
============================================================= */
.testi-section {
  padding: 0;
  background: #fff;
  border-top: 1px solid var(--border);
}
.testi-inner {
  display: grid;
  grid-template-columns: 1fr 42%;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}
.testi-left {
  padding: 44px 40px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}
.testi-left .section-title { text-align: left; margin-bottom: 16px; }
.testi-slide { flex-shrink: 0; box-sizing: border-box; display: flex; align-items: stretch; }
.s-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #DEDEDE; border: none; cursor: pointer;
  padding: 0; transition: background .2s, transform .2s;
}
.s-dot.active { background: var(--red); transform: scale(1.3); }
#sliderPrev:hover, #sliderNext:hover {
  background: var(--red) !important;
  border-color: var(--red) !important;
  color: #fff !important;
}
.testi-card {
  border: 1px solid var(--border);
  padding: 20px 18px 18px;
  background: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tc-stars { color: var(--gold); font-size: 1rem; letter-spacing: 2px; margin-bottom: 10px; }
.tc-text {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 12px;
  flex: 1;
}
.tc-author { font-size: 0.8rem; font-weight: 700; color: var(--text); }
.testi-google {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.testi-google .stars { color: var(--gold); letter-spacing: 2px; }
.testi-google .rating-text { font-size: 0.82rem; font-weight: 600; }
/* Cleaner photo */
.testi-photo {
  position: relative;
  overflow: hidden;
  min-height: 460px;
}
.testi-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* =============================================================
   5. COVERAGE + WHY CHOOSE SECTION
============================================================= */
.coverage-section {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.coverage-why {
  display: grid;
  grid-template-columns: 26% 30% 44%;
  align-items: stretch;
  max-width: var(--container);
  margin: 0 auto;
}

/* Coverage panel */
.coverage-panel {
  background: var(--red);
  color: #fff;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.coverage-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.coverage-panel h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 5px;
}
.coverage-text > p {
  font-size: 0.74rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 16px;
}
.areas-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 10px;
  margin-bottom: 18px;
}
.area-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: rgba(255,255,255,0.95);
}
.area-item svg { flex-shrink: 0; }
.map-wrap {
  background: #fff;
  padding: 20px;
  overflow: hidden;
  min-width: 0;
  display: flex;
  align-items: center;
}
.map-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* Why panel */
.why-panel {
  background: #fff;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.why-panel .section-title { text-align: left; margin-bottom: 16px; font-size: 0.85rem; }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}
.why-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.why-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.why-title {
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--text);
  line-height: 1.3;
}
.why-desc {
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.55;
}

/* =============================================================
   6. CTA STRIP
============================================================= */
.cta-strip {
  background: var(--red);
  padding: 26px 20px;
}
.cta-strip-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cta-strip-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.cta-phone-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cta-strip-text h3 {
  color: #fff;
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 3px;
}
.cta-strip-text p {
  color: rgba(255,255,255,0.7);
  font-size: 0.76rem;
}
.cta-strip-phone {
  text-align: center;
}
.cta-phone-num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1;
  margin-bottom: 4px;
  text-decoration: none;
}
.cta-phone-sub {
  color: rgba(255,255,255,0.55);
  font-size: 0.7rem;
}

/* =============================================================
   7. FOOTER
============================================================= */
.site-footer {
  background: #000000;
  border-top: 1px solid #1a1a1a;
  padding: 30px 20px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.footer-logo img {
  height: 70px;
  width: auto;
}
.footer-center { text-align: center; flex: 1; min-width: 0; }
.footer-copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 7px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}
.footer-links a { font-size: 0.72rem; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-links .sep { color: rgba(255,255,255,0.3); font-size: 0.72rem; }
.footer-address { font-size: 0.67rem; color: rgba(255,255,255,0.4); line-height: 1.7; }
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.footer-social a:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* =============================================================
   RESPONSIVE — 991px (Tablet)
============================================================= */
@media (max-width: 991px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-right { flex-direction: column; }
  .quote-top { display: none; }
  .quote-card { max-width: 100%; flex: none; width: 100%; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .testi-inner { grid-template-columns: 1fr; }
  .testi-photo { min-height: 340px; position: relative; height: 340px; }
  .testi-photo img { position: absolute; }
  .coverage-why { grid-template-columns: 1fr; }
  .coverage-panel { grid-template-columns: 1fr; }
  .map-wrap { padding: 16px; min-height: 260px; align-items: stretch; }
  .map-wrap img { width: 100%; height: auto; object-fit: contain; }
  .why-panel { padding: 36px 28px; }
  .cta-strip-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* =============================================================
   RESPONSIVE — 767px
============================================================= */
@media (max-width: 767px) {
  .hero-section { padding: 24px 16px 32px; }
  .hero-logo { max-width: 240px; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: center; }
  .quote-top { flex-direction: column; align-items: flex-start; gap: 10px; }
  .quote-phone { width: 100%; }
  .quote-top-ctas { width: 100%; }
  .quote-top-ctas .btn { flex: 1; justify-content: center; }
}

/* =============================================================
   RESPONSIVE — 575px
============================================================= */
@media (max-width: 575px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-ctas { flex-wrap: wrap; }
  .hero-ctas .btn { flex: 1; min-width: 0; justify-content: center; }
  .trust-row { gap: 14px; }
  .trust-item { flex: 1 1 calc(50% - 7px); min-width: 0; }
  .areas-list { grid-template-columns: 1fr; }
  .cta-strip-inner { text-align: center; justify-content: center; }
  .cta-strip-left { flex-direction: column; align-items: center; text-align: center; }
  .cta-strip-phone { width: 100%; }
  .hero-section { padding: 20px 14px 28px; }
  .quote-card-head { padding: 18px 16px 12px; }
}

@media (max-width: 420px) {
  .services-grid { grid-template-columns: 1fr; }
}
