/* Forever Shine Carpet Cleaning */
:root {
  --header: #1d0b33;
  --darkest: #140726;
  --purple-dark: #2b1145;
  --purple: #5b2a86;
  --green: #8bd448;
  --on-green: #1d1030;
  --lilac: #f7f3fb;
  --text: #1d1030;
  --muted: #5d5170;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 32px; }

h1, h2, h3 { margin: 0; line-height: 1.1; }
h2 { font-size: 34px; font-weight: 900; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.btn-primary { background: var(--green); color: var(--on-green); }
.btn-outline { border: 1.5px solid rgba(255,255,255,.7); color: #fff; background: rgba(29,11,51,.3); font-weight: 600; }
.btn-small { padding: 10px 18px; font-size: 15px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--header);
}
.header-inner { display: flex; align-items: center; gap: 24px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; margin-right: auto; }
.logo-badge {
  width: 58px; height: 58px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-badge img { width: 55px; height: 55px; object-fit: contain; }
/* Centred under the big logo so it is fully hidden until the big one scrolls away */
.logo-badge { margin-left: 43px; }

/* Big logo: sits over the header and the top of the photo at page load, then scrolls away */
.logo-hero-wrap { position: relative; height: 0; z-index: 20; }
.logo-hero {
  position: absolute; top: 25px; left: 32px;
  width: 144px; height: 144px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
  /* The header-coloured ring hides the small header logo behind it and blends into the dark left of the photo */
  box-shadow: 0 0 0 16px var(--header), 0 10px 28px 12px rgba(0,0,0,.35);
  pointer-events: none;
}
.logo-hero img { width: 138px; height: 138px; }
.site-nav { display: flex; gap: 22px; }
.site-nav a, .header-phone { color: #d9ccec; text-decoration: none; font-size: 15px; }
.site-nav a:hover { color: #fff; }
.header-phone { color: #fff; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.phone-icon { width: 18px; height: 18px; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Hero */
.hero {
  position: relative;
  min-height: 560px;
  display: flex; align-items: center;
  /* Photo capped at 1100px wide and kept on the right, so big screens don't zoom in and crop Marty's head.
     The first layer fades the photo's left edge into the purple. */
  background-color: var(--purple-dark);
  background-image: linear-gradient(90deg, var(--purple-dark), rgba(43,17,69,0) 280px), url("../img/hero.jpg");
  background-repeat: no-repeat;
  background-position: right top, right 38%;
  background-size: min(100%, 1100px) 100%, min(100%, 1100px) auto;
  color: #fff;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(29,11,51,.92) 0%, rgba(29,11,51,.80) 32%, rgba(29,11,51,.35) 55%, rgba(29,11,51,0) 75%);
}
.hero-inner { position: relative; padding-top: 70px; padding-bottom: 70px; }
.hero-inner > * { max-width: 470px; }
.eyebrow { margin: 0; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--green); font-weight: 700; }
.eyebrow-dark { color: var(--purple); }
.hero h1 { font-size: 58px; font-weight: 900; line-height: 1.02; margin-top: 10px; }
.accent { color: var(--green); }
.hero-text { font-size: 18px; color: #efe8f8; margin: 16px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Trust strip */
.trust { background: var(--darkest); color: #cdbfe3; }
.trust-list {
  list-style: none; margin: 0 auto; padding-top: 16px; padding-bottom: 16px;
  display: flex; flex-wrap: wrap; justify-content: space-around; gap: 10px 24px; font-size: 15px;
}
.trust-list li::before { content: "\2713"; color: var(--green); font-weight: 800; margin-right: 8px; }

/* Services */
.services { background: var(--lilac); padding: 72px 0; text-align: center; }
.section-sub { color: var(--muted); margin: 8px 0 0; font-size: 17px; }
.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 36px;
}
.service-card {
  background: #fff; border-radius: 16px; padding: 34px 24px; min-height: 210px;
  box-shadow: 0 4px 18px rgba(43,17,69,.08);
  border-top: 4px solid var(--purple);
  display: flex; flex-direction: column; align-items: center;
}
.service-card:nth-child(even) { border-top-color: var(--green); }
.icon {
  width: 60px; height: 60px; fill: none; stroke: var(--purple); stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.service-card:nth-child(even) .icon { stroke: #5a9a24; }
.service-card h3 { font-size: 20px; margin-top: 16px; }
.service-card p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

/* About */
.about { padding: 72px 0; }
.about-inner { display: flex; align-items: center; gap: 40px; }
.about-photo {
  flex: 0 0 40%; height: 320px; width: 100%; object-fit: cover; object-position: 70% 55%;
  border-radius: 16px;
}
.about-text h2 { margin-top: 8px; font-size: 32px; }
.about-text p:last-child { color: var(--muted); font-size: 17px; margin: 12px 0 0; }

/* Contact */
.contact { background: var(--lilac); padding: 72px 0; text-align: center; }
.contact-inner { max-width: 760px; }
.contact .section-sub a { color: var(--purple); font-weight: 700; }
.enquiry-frame {
  display: block; width: 100%; height: 1300px; margin-top: 28px;
  border: 0; border-radius: 16px; background: #fff;
  box-shadow: 0 4px 18px rgba(43,17,69,.08);
}
.frame-fallback { margin-top: 12px; color: var(--muted); font-size: 14px; }
.frame-fallback a { color: var(--purple); font-weight: 700; }

/* Book band */
.book-band {
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
  color: #fff; text-align: center; padding: 56px 0;
}
.book-band p { color: #e6dcf3; margin: 8px 0 22px; font-size: 17px; }

/* Footer */
.site-footer { background: var(--darkest); color: #a996c4; font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 22px; padding-bottom: 22px; }
.site-footer a { text-decoration: none; }

/* Narrower screens: the hero text takes up more of the width, so darken more of the photo */
@media (max-width: 1200px) {
  .hero-overlay {
    background: linear-gradient(90deg, rgba(29,11,51,.92) 0%, rgba(29,11,51,.85) 50%, rgba(29,11,51,.55) 75%, rgba(29,11,51,.15) 100%);
  }
}

/* Tablet */
@media (max-width: 1000px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .site-nav a:not([href="#contact"]) { display: none; }
}

/* Phones */
@media (max-width: 760px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .header-inner { gap: 12px; }
  .logo-badge { width: 56px; height: 56px; }
  .logo-badge img { width: 48px; height: 48px; }
  .logo-hero { top: 20px; left: 18px; width: 92px; height: 92px; box-shadow: 0 0 0 12px var(--header), 0 8px 22px 8px rgba(0,0,0,.35); }
  .logo-badge { margin-left: 18px; }
  .logo-hero img { width: 88px; height: 88px; }
  .site-nav { display: none; }
  .header-phone { padding: 8px; }
  .phone-icon { width: 24px; height: 24px; }
  .phone-number { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hero { min-height: 0; background-image: url("../img/hero.jpg"); background-size: cover; background-position: 70% 35%; }
  .hero-overlay { background: rgba(29,11,51,.72); }
  .hero-inner { padding-top: 56px; padding-bottom: 56px; }
  .hero h1 { font-size: 40px; }
  .hero-text { font-size: 16px; }
  .trust-list { justify-content: flex-start; flex-direction: column; font-size: 14px; }
  h2 { font-size: 28px; }
  .services, .about, .contact { padding: 52px 0; }
  .service-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card { min-height: 0; padding: 28px 20px; }
  .about-inner { flex-direction: column; gap: 24px; }
  .about-photo { flex-basis: auto; height: 260px; }
  .enquiry-frame { height: 1340px; }
}
