/* =========================================================================
   RX Cleaning Services — shared stylesheet
   Mobile-first. Plain CSS, no framework/build step.
   Brand colors sampled from the official logo/flyer:
     navy  #0A2A52  |  blue #1CABEF / #0353A5  |  pink #F02E75
   ========================================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
}

body,
h1,
h2,
h3,
p,
figure,
blockquote,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

/* ---- Brand tokens ---- */
:root {
  /* Colors */
  --color-navy: #0a2a52;
  --color-navy-dark: #061c38;
  --color-blue: #0f7fc4;
  --color-blue-light: #eaf6fd;
  --color-pink: #ec2f74;
  --color-pink-dark: #c81f60;
  --color-pink-tint: #fdecf2;
  --color-white: #ffffff;
  --color-bg: #f7f9fb;
  --color-border: #e3e8ee;
  --color-text: #17233b;
  --color-text-muted: #4b5768;

  /* Type */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  --fs-h1: clamp(2rem, 1.4rem + 3vw, 3.25rem);
  --fs-h2: clamp(1.6rem, 1.3rem + 1.6vw, 2.35rem);
  --fs-h3: clamp(1.2rem, 1.05rem + 0.8vw, 1.5rem);
  --fs-lead: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem);

  /* Layout */
  --container-max: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-card: 0 6px 20px rgba(10, 42, 82, 0.08);
  --shadow-card-hover: 0 10px 28px rgba(10, 42, 82, 0.14);
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  display: block;
}

h1,
h2,
h3 {
  color: var(--color-navy);
  line-height: 1.2;
  font-weight: 800;
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

p {
  max-width: 68ch;
}

.lead {
  font-size: var(--fs-lead);
  color: var(--color-text-muted);
}

/* ---- Accessibility helpers ---- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 1rem;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-pink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Layout helpers ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section {
  padding-block: 3rem;
}

.section--tint {
  background: var(--color-pink-tint);
}

.section--navy {
  background: var(--color-navy);
  color: var(--color-white);
}

.section--navy h2,
.section--navy h3 {
  color: var(--color-white);
}

.section-head {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section-head p {
  margin-top: 0.6rem;
}

.text-center {
  text-align: center;
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--color-pink-dark);
  margin-bottom: 0.5rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background-color 0.12s ease, color 0.12s ease;
  line-height: 1.1;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-navy-dark);
}

.btn-outline {
  background: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn-outline:hover {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn-outline-light {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-outline-light:hover {
  background: var(--color-white);
  color: var(--color-navy);
}

.btn-block {
  width: 100%;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ---- Site header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.65rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-navy);
  font-weight: 800;
  font-size: 0.92rem;
  min-width: 0;
}

.brand img {
  height: 40px;
  width: 40px;
  flex-shrink: 0;
}

.brand-name {
  min-width: 0;
}

/* Tagline sub-label: hidden on very narrow phones so the header doesn't
   crowd, shown once there's room from ~480px up. */
.brand-name span {
  display: none;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--color-pink-dark);
  letter-spacing: 0.03em;
}

@media (min-width: 480px) {
  .brand {
    gap: 0.6rem;
    font-size: 1.05rem;
  }

  .brand img {
    height: 44px;
    width: 44px;
  }

  .brand-name span {
    display: block;
  }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 2px solid var(--color-navy);
  border-radius: var(--radius-sm);
  color: var(--color-navy);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

.primary-nav {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  display: none;
  flex-direction: column;
  padding: 0.5rem 1.25rem 1.25rem;
}

.primary-nav.is-open {
  display: flex;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.primary-nav a {
  display: block;
  padding: 0.75rem 0.25rem;
  text-decoration: none;
  font-weight: 600;
  color: var(--color-navy);
  border-bottom: 1px solid var(--color-border);
}

.primary-nav a[aria-current="page"] {
  color: var(--color-pink-dark);
  text-decoration: underline;
}

.primary-nav .btn {
  margin-top: 1rem;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  color: var(--color-white);
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(6, 24, 48, 0.86) 0%,
    rgba(10, 42, 82, 0.78) 45%,
    rgba(236, 47, 116, 0.55) 100%
  );
}

.hero-inner {
  padding-block: 4rem 4.5rem;
}

.hero-inner .eyebrow {
  color: #ffd7e6;
}

.hero h1 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.hero .lead {
  color: #eef3f9;
  margin-bottom: 1.75rem;
}

.hero-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #dbe6f2;
}

/* ---- CTA banner ---- */
.cta-banner {
  background: var(--color-pink);
  color: var(--color-white);
  padding-block: 2.5rem;
}

.cta-banner h2 {
  color: var(--color-white);
}

.cta-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-banner .btn-primary {
  background: var(--color-navy);
}

.cta-banner .btn-primary:hover {
  background: var(--color-navy-dark);
}

/* ---- Cards / grids ---- */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  height: 100%;
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-pink-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 26px;
  height: 26px;
  color: var(--color-navy);
}

.card h3 {
  margin-bottom: 0.5rem;
}

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

.card a.card-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 700;
  color: var(--color-pink-dark);
  text-decoration: underline;
}

.checklist {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 600;
}

.checklist svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--color-pink);
  margin-top: 0.1rem;
}

/* ---- Before / after gallery ---- */
.ba-group {
  margin-bottom: 3rem;
}

.ba-group:last-child {
  margin-bottom: 0;
}

.ba-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  margin-bottom: 2rem;
}

.ba-card:last-child {
  margin-bottom: 0;
}

.ba-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

/* From ~480px up there's enough room for a true side-by-side comparison. */
@media (min-width: 480px) {
  .ba-pair {
    grid-template-columns: 1fr 1fr;
  }
}

.ba-figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-bg);
  aspect-ratio: 4 / 5;
}

.ba-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-figure figcaption {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: var(--color-navy);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

.ba-figure.is-after figcaption {
  background: var(--color-pink);
}

.ba-caption {
  margin-top: 1rem;
  color: var(--color-text-muted);
}

.ba-caption strong {
  color: var(--color-navy);
}

/* ---- Service area / info blocks ---- */
.info-list {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.info-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.info-list svg {
  width: 24px;
  height: 24px;
  color: var(--color-pink-dark);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.contact-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 2rem;
}

.phone-link {
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem);
  font-weight: 800;
  color: var(--color-navy);
  text-decoration: none;
  display: inline-block;
}

.phone-link:hover {
  color: var(--color-pink-dark);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--color-navy);
  color: #cfe0f2;
  padding-block: 2.5rem;
}

.footer-inner {
  display: grid;
  gap: 1.75rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-white);
  font-weight: 800;
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.footer-brand img {
  height: 38px;
  width: 38px;
}

.site-footer h3 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.footer-nav ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.footer-nav a,
.footer-contact a {
  color: #cfe0f2;
  text-decoration: none;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  color: #9fb6cf;
}

/* =========================================================================
   Tablet — 700px and up
   ========================================================================= */
@media (min-width: 700px) {
  .grid--services {
    grid-template-columns: repeat(2, 1fr);
  }

  .checklist {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-banner-inner {
    flex-wrap: nowrap;
  }
}

/* =========================================================================
   Desktop — 960px and up
   ========================================================================= */
@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }

  .primary-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: auto;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .primary-nav ul {
    flex-direction: row;
    gap: 0.5rem;
  }

  .primary-nav a {
    border-bottom: 0;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
  }

  .primary-nav a:hover {
    background: var(--color-pink-tint);
  }

  .primary-nav a[aria-current="page"] {
    background: var(--color-pink-tint);
    text-decoration: none;
  }

  .primary-nav .btn {
    margin-top: 0;
    margin-left: 0.5rem;
  }

  .grid--services {
    grid-template-columns: repeat(4, 1fr);
  }

  .grid--two {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .hero-inner {
    padding-block: 6rem 7rem;
    max-width: 40rem;
  }
}

/* =========================================================================
   Large desktop — 1300px and up (keep content from stretching too wide)
   ========================================================================= */
@media (min-width: 1300px) {
  .hero-inner {
    max-width: 44rem;
  }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
