/* ============================================================
   The Block Cleaning Services — Site Styles
   ============================================================ */

:root {
  --teal-deep: #157a7e;
  --teal: #2f9b9d;
  --teal-bright: #3eb6b6;
  --green: #8cc63f;
  --green-deep: #6fa42d;
  --ink: #0f1f24;
  --ink-soft: #243239;
  --muted: #6b7a80;
  --line: #e2ddd2;
  --cream: #f7f5f0;
  --cream-deep: #ece7dc;
  --white: #ffffff;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --container: 1240px;

  --shadow-sm: 0 1px 2px rgba(15,31,36,0.04), 0 2px 8px rgba(15,31,36,0.04);
  --shadow-md: 0 6px 24px rgba(15,31,36,0.07), 0 2px 6px rgba(15,31,36,0.04);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: 'Fraunces', 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 0.4em 0;
  text-wrap: balance;
}

h1 { font-size: clamp(40px, 6vw, 88px); }
h2 { font-size: clamp(32px, 4.4vw, 60px); }
h3 { font-size: clamp(22px, 2.4vw, 32px); }
h4 { font-size: 20px; line-height: 1.3; }

p { margin: 0 0 1em 0; text-wrap: pretty; }

.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-deep);
  font-weight: 500;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ============== TOP UTILITY BAR ============== */
.utility-bar {
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  padding: 10px 0;
}
.utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.utility-bar .left, .utility-bar .right {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.utility-bar a:hover { color: var(--teal-bright); }
.utility-bar .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); display: inline-block;
  margin-right: 6px; vertical-align: middle;
}

/* ============== HEADER / NAV ============== */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand img { height: 112px; width: auto; max-width: none; }

.header-phone {
  font-family: var(--font-display, 'Fraunces', serif);
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s;
}
.header-phone:hover { color: var(--green); }
.header-contact-btn {
  background: transparent;
  color: var(--teal-deep);
  border: 1.5px solid var(--teal-deep);
  padding: 10px 18px;
}
.header-contact-btn:hover {
  background: var(--teal-deep);
  color: var(--cream);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.nav {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}
.nav a {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  border-radius: var(--r-pill);
  transition: background 0.15s, color 0.15s;
}
.nav a:hover { background: var(--cream-deep); color: var(--ink); }
.nav a.active { color: var(--teal-deep); }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 8px;
  min-width: 220px;
  box-shadow: var(--shadow-md);
  display: none;
  z-index: 60;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  border-radius: var(--r-sm);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover { background: var(--teal-deep); }
.btn-accent {
  background: var(--green);
  color: var(--ink);
}
.btn-accent:hover { background: var(--green-deep); color: var(--white); }
.btn-teal {
  background: var(--teal-deep);
  color: var(--cream);
}
.btn-teal:hover { background: var(--teal); color: var(--cream); }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--cream-deep); }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-lg { padding: 16px 28px; font-size: 15px; }

/* ============== SECTIONS ============== */
section { padding: 96px 0; }
section.tight { padding: 64px 0; }
section.cream { background: var(--cream); }
section.cream-deep { background: var(--cream-deep); }
section.white { background: var(--white); }
section.ink { background: var(--ink); color: var(--cream); }
section.ink h1, section.ink h2, section.ink h3 { color: var(--cream); }
section.teal { background: var(--teal-deep); color: var(--cream); }
section.teal h1, section.teal h2, section.teal h3 { color: var(--cream); }

/* Page hero */
section.page-hero,
.page-hero {
  position: relative;
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--line);
  background-color: var(--cream);
  background-image:
    linear-gradient(180deg, rgba(247,245,240,0.94) 0%, rgba(247,245,240,0.97) 100%),
    url('https://images.unsplash.com/photo-1556909114-f6e7ad7d3136?auto=format&fit=crop&w=1920&q=70');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(247,245,240,0.45);
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero .breadcrumb {
  display: flex; gap: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.page-hero .breadcrumb a:hover { color: var(--teal-deep); }
.page-hero h1 { margin-bottom: 0.3em; }
.page-hero .lede {
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 720px;
  line-height: 1.5;
}

/* ============== PHOTO PLACEHOLDERS ============== */
.photo-ph {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(21,122,126,0.07) 0px,
      rgba(21,122,126,0.07) 2px,
      transparent 2px,
      transparent 14px
    ),
    var(--cream-deep);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.photo-ph[data-img] {
  color: transparent;
  border-color: transparent;
}
.photo-ph.green {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(140,198,63,0.12) 0px,
      rgba(140,198,63,0.12) 2px,
      transparent 2px,
      transparent 14px
    ),
    var(--cream-deep);
}
.photo-ph.dark {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,0.05) 0px,
      rgba(255,255,255,0.05) 2px,
      transparent 2px,
      transparent 14px
    ),
    var(--ink-soft);
  color: rgba(255,255,255,0.5);
  border-color: rgba(255,255,255,0.1);
}

/* ============== CARDS ============== */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: all 0.2s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-bright);
}

/* ============== FOOTER ============== */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 80px 0 32px;
}
.site-footer h4 {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: 18px;
}
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer ul a {
  color: rgba(247,245,240,0.7);
  font-size: 14px;
  transition: color 0.15s;
}
.site-footer ul a:hover { color: var(--green); }
.site-footer .brand-block .tagline {
  color: rgba(247,245,240,0.6);
  font-size: 14px;
  margin: 18px 0 24px;
  max-width: 360px;
}
.site-footer .brand-block img {
  height: 64px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.site-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 32px;
  font-size: 13px;
  color: rgba(247,245,240,0.5);
}
.site-footer .socials {
  display: flex; gap: 12px;
}
.site-footer .socials a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.18s;
}
.site-footer .socials a:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--ink);
}

/* ============== UTILITIES ============== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.center { text-align: center; }
.maxw-lg { max-width: 820px; margin: 0 auto; }
.maxw-md { max-width: 640px; margin: 0 auto; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.section-head .title-block { max-width: 720px; }
.section-head h2 { margin-bottom: 0.2em; }
.section-head .sub {
  color: var(--ink-soft);
  font-size: 18px;
  margin: 0;
  max-width: 520px;
}

.divider-rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cream-deep);
  color: var(--ink-soft);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tag.green { background: rgba(140,198,63,0.15); color: var(--green-deep); }
.tag.teal { background: rgba(63,182,182,0.15); color: var(--teal-deep); }

/* Marquee */
.marquee {
  background: var(--green);
  color: var(--ink);
  padding: 18px 0;
  overflow: hidden;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.marquee-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-style: italic;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 48px;
}
.marquee-track svg { flex-shrink: 0; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Form */
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-row label {
  font-size: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.form-row input, .form-row textarea, .form-row select {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  transition: border-color 0.15s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--teal-deep);
}
.form-row textarea { min-height: 140px; resize: vertical; }
.form-row.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row.row-2 > div { display: flex; flex-direction: column; gap: 6px; }

/* ============== HAMBURGER (hidden on desktop) ============== */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--ink);
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ============== MOBILE DRAWER ============== */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  visibility: hidden;
}
.nav-drawer.open { pointer-events: auto; visibility: visible; }
.nav-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,31,36,0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.nav-drawer.open .nav-drawer-backdrop { opacity: 1; }
.nav-drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(86vw, 360px);
  background: var(--cream);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: -8px 0 32px rgba(15,31,36,0.18);
}
.nav-drawer.open .nav-drawer-panel { transform: translateX(0); }
.nav-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.nav-drawer-close {
  background: transparent;
  border: none;
  font-size: 32px;
  line-height: 1;
  color: var(--ink);
  cursor: pointer;
  padding: 0 8px;
}
.nav-drawer-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}
.nav-drawer-list a, .nav-drawer-group summary {
  display: block;
  padding: 14px 22px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  list-style: none;
}
.nav-drawer-group summary::-webkit-details-marker { display: none; }
.nav-drawer-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-drawer-group .caret { font-size: 12px; opacity: 0.5; transition: transform 0.2s; }
.nav-drawer-group[open] .caret { transform: rotate(180deg); }
.nav-drawer-group a {
  padding-left: 40px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-drawer-list a.active { color: var(--teal-deep); }
.nav-drawer-foot {
  padding: 18px 22px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--white);
}

/* ============== MOBILE STICKY CTA BAR (hidden on desktop) ============== */
.mobile-cta-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
  box-shadow: 0 -4px 24px rgba(15,31,36,0.08);
}
.mobile-cta-bar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 12px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  min-height: 48px;
}
.mobile-cta-bar-solo .mcb-call { flex: 1 1 100%; }
.mobile-cta-bar .mcb-call {
  background: var(--teal-deep);
  color: var(--cream);
  flex: 0 0 44%;
}
.mobile-cta-bar .mcb-book {
  background: var(--green);
  color: var(--ink);
}
.mobile-cta-bar .arrow { transition: transform 0.2s; }
.mobile-cta-bar a:active .arrow { transform: translateX(3px); }

/* Responsive */
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 28px; }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-cta-bar { display: flex; }
  /* Reserve space at the bottom of the page so the sticky bar never covers content */
  body { padding-bottom: 76px; }

  section { padding: 56px 0; }
  .container { padding: 0 22px; }
  .form-row.row-2 { grid-template-columns: 1fr; }

  /* Header tightening */
  .utility-bar { font-size: 12px; padding: 8px 0; }
  .utility-bar .right { display: none; }
  .site-header .container { padding-top: 12px; padding-bottom: 12px; gap: 12px; }
  .brand img { height: 64px; max-width: none; }
  .header-phone { display: none; }
  .header-book-btn { display: none; }
  .header-contact-btn { display: none; }
  .header-actions { gap: 8px; }

  /* Headline scale-down */
  h1 { font-size: clamp(34px, 9vw, 48px); }
  h2 { font-size: clamp(28px, 7.6vw, 40px); }
  h3 { font-size: clamp(20px, 5.2vw, 26px); }

  /* Photos: prevent absurdly tall hero/banner photos */
  .photo-ph { aspect-ratio: 4 / 3 !important; }
}

@media (max-width: 600px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  section { padding: 48px 0; }
  .container { padding: 0 18px; }
  .btn { padding: 12px 18px; font-size: 14px; }
}

/* ============== Mobile fixes for inline-styled grids/cards ============== */
@media (max-width: 768px) {
  /* Force inline `grid-template-columns: ...fr ...fr ...` blocks to a single column */
  .container > div[style*="grid-template-columns"],
  section .container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  /* Cards that set min-height to balance with art lose nothing on mobile if we relax it */
  [style*="min-height:380px"], [style*="min-height: 380px"] {
    min-height: 0 !important;
  }
  /* Scale down inline 'huge' display numbers */
  [style*="font-size: 32px"], [style*="font-size:32px"] { font-size: 24px !important; }
  /* Make sure inline max-width:520/640px content sits comfortably */
  [style*="max-width: 520px"], [style*="max-width:520px"],
  [style*="max-width: 640px"], [style*="max-width:640px"] {
    max-width: 100% !important;
  }
  /* Footer seal: shrink so it doesn't dominate the column */
  .site-footer .brand-block svg {
    width: 160px !important; height: 160px !important;
  }
}

/* ============================================================
   Language switcher (EN / ES) — fixed corner pill
   ============================================================ */
.tbcs-lang {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
  display: inline-flex;
  align-items: stretch;
  gap: 0;
  background: var(--white, #fff);
  border: 1px solid var(--line, #e4e0d8);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(15, 61, 62, 0.16);
  padding: 4px;
  font-family: 'JetBrains Mono', monospace;
}
.tbcs-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 7px 12px;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-soft, #44524f);
  line-height: 1;
  transition: background .15s, color .15s;
}
.tbcs-lang-btn span { display: inline-block; }
.tbcs-lang-btn:hover { color: var(--teal-deep, #157a7e); }
.tbcs-lang-btn.active {
  background: var(--teal-deep, #157a7e);
  color: #fff;
}
.tbcs-lang-sep {
  width: 1px;
  align-self: center;
  height: 18px;
  background: var(--line, #e4e0d8);
  margin: 0 1px;
}
/* Lift above the mobile sticky Call/Book bar on small screens */
@media (max-width: 900px) {
  .tbcs-lang { bottom: 84px; right: 14px; }
  .tbcs-lang-btn { padding: 6px 10px; font-size: 11px; }
}
@media print {
  .tbcs-lang { display: none !important; }
}
