/* Legal pages — Sun Window Cleaning
   Matches homepage nav + footer treatment. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; background: #162640; }
body {
  margin: 0; padding: 0;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #162640; background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font-family: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: clamp(20px, 4vw, 48px);
}

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.announce {
  background: #0D1828;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.announce-row {
  padding-block: 10px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 12.5px; font-weight: 500; letter-spacing: .06em;
  text-align: center;
}
.announce strong { color: #fff; font-weight: 600; }
.announce-row > svg { color: #fff; }
.announce span span { color: #fff; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  background: #0D1828;
  border-bottom: 1px solid rgba(255,255,255,.06);
  z-index: 50;
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 16px; gap: 24px;
}
.logo-link { display: block; text-decoration: none; }
.logo { height: 48px; width: auto; }

.nav-links {
  display: flex; gap: 28px; align-items: center;
}
.nav-links a {
  font-size: 14px; font-weight: 500; text-decoration: none;
  color: #E4DFD6; letter-spacing: 0.1px;
  transition: color .15s ease;
}
.nav-links a:hover { color: #E8A830; }

.nav-actions {
  display: flex; gap: 20px; align-items: center;
}
.nav-phone {
  font-size: 14px; font-weight: 600; text-decoration: none;
  color: #fff;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .35s cubic-bezier(.2,.7,.2,1);
}
.nav-phone svg { transition: color .35s cubic-bezier(.2,.7,.2,1); }
.nav-phone:hover { color: #E8A830; }
.nav-phone:hover svg { color: #E8A830; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: #C8861A; color: #fff;
  font-weight: 600; font-size: 13px;
  padding: 9px 18px; border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta svg {
  transition: transform .25s cubic-bezier(.2,.7,.2,1);
}
.nav-cta:hover svg { transform: translateX(3px); }

/* ── Mobile hamburger button ── */
.nav-burger {
  display: none;
  border: 0; background: transparent;
  padding: 8px; color: #fff; cursor: pointer;
}
.burger-icon {
  width: 22px; height: 22px;
  display: inline-flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 5px;
}
.burger-icon span {
  display: block; width: 22px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform .35s cubic-bezier(.7,-0.25,.25,1.3),
              opacity .25s ease;
}
.nav-burger[data-open="true"] .burger-icon span:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}
.nav-burger[data-open="true"] .burger-icon span:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ── Mobile nav sheet ── */
.nav-sheet {
  display: none;
}
.nav-sheet[data-open] {
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: 100vh; height: 100dvh;
  background: #0D1828;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-block: 32px 48px;
  overflow-x: hidden; /* clip the full-width divider pseudo-elements */
  overflow-y: auto;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .35s cubic-bezier(.2,.7,.2,1),
              transform .35s cubic-bezier(.2,.7,.2,1);
}
.nav-sheet[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-sheet .container {
  display: flex; flex-direction: column; gap: 4px;
}
.nav-sheet a {
  padding: 18px 4px;
  font-size: 22px; font-weight: 500;
  color: #fff; text-decoration: none;
  display: flex; align-items: center; gap: 10px;
  align-self: flex-start; /* shrink to text width — keeps tap target narrow */
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s cubic-bezier(.2,.7,.2,1),
              transform .35s cubic-bezier(.2,.7,.2,1),
              color .15s ease;
}
.nav-sheet .sheet-cta { align-self: stretch; } /* primary CTA stays full-width */
/* Full-width divider under each regular nav link via pseudo-element.
   Skipped on sheet-phone and sheet-cta. Clipped by .nav-sheet overflow-x: hidden. */
.nav-sheet a:not(.sheet-phone):not(.sheet-cta) { position: relative; }
.nav-sheet a:not(.sheet-phone):not(.sheet-cta)::after {
  content: "";
  position: absolute;
  left: -100vw; right: -100vw;
  bottom: 0;
  height: 1px;
  background: rgba(255,255,255,.08);
  pointer-events: none;
}
.nav-sheet a:hover { color: #E8A830; }
.nav-sheet[data-open="true"] a {
  opacity: 1; transform: translateY(0);
  transition-delay: calc(60ms * var(--i, 0));
}
.nav-sheet .sheet-cta {
  margin-top: 16px;
  background: #C8861A;
  color: #fff;
  border-bottom: 0;
  border-radius: 999px;
  justify-content: center;
  padding: 16px;
  font-size: 16px;
}
.nav-sheet .sheet-cta:hover,
.nav-sheet .sheet-cta:focus,
.nav-sheet .sheet-cta:focus-visible,
.nav-sheet .sheet-cta:active {
  color: #fff !important;
  background: #C8861A !important;
  box-shadow: none !important;
  outline: none !important;
}
.nav-sheet .sheet-cta svg {
  transition: transform .25s cubic-bezier(.2,.7,.2,1);
}
.nav-sheet .sheet-cta:hover svg,
.nav-sheet .sheet-cta:focus-visible svg {
  transform: translateX(3px);
}
.nav-sheet .sheet-phone {
  font-weight: 600;
  border-bottom: 0;
}
.nav-sheet .sheet-phone,
.nav-sheet .sheet-phone * {
  transition: color .35s cubic-bezier(.2,.7,.2,1) !important;
}
.nav-sheet .sheet-phone svg { color: #fff; }
.nav-sheet .sheet-phone:hover,
.nav-sheet .sheet-phone:hover * {
  color: #E8A830 !important;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.main {
  padding-block: clamp(60px, 9vw, 112px);
}
.content {
  max-width: 880px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(12px);
  animation: swcFadeUp 1.1s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes swcFadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .content { opacity: 1; transform: none; animation: none; }
}
.content h1 {
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 16px;
  color: #162640;
}
.content .updated {
  font-size: 12px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: #162640; margin-bottom: 40px;
}
.content h2 {
  font-size: clamp(20px, 2vw, 24px); font-weight: 700; letter-spacing: -0.012em;
  margin: 44px 0 14px; color: #162640;
}
.content p, .content li {
  font-size: 16px; line-height: 1.65;
  color: #475B74; margin: 0 0 12px;
}
.content ul { padding-left: 22px; margin: 0 0 16px; }
.content li { margin-bottom: 8px; }
.content strong { color: #162640; font-weight: 600; }
.content a {
  color: #162640; text-decoration: none;
  font-weight: 600;
  transition: color .15s ease;
}
.content a:hover { color: #C8861A; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #0D1828; color: #C5CEDB;
  padding: 72px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(32px, 5vw, 60px);
}
.footer-brand p {
  margin: 20px 0 0; font-size: 14px; line-height: 1.6;
  max-width: 320px; color: #C5CEDB;
}
.footer-col h2 {
  margin: 0 0 18px; font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: #fff;
}
.footer-col ul {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 10px;
}
.footer-col a {
  font-size: 14px; color: #C5CEDB; text-decoration: none;
  transition: color .15s ease;
}
.footer-col a:hover { color: #E8A830; }

.contact-list { gap: 12px !important; }
.contact-list li {
  display: flex; align-items: flex-start; gap: 10px;
  color: #C5CEDB;
  transition: color .15s ease;
}
.contact-list li:has(a):hover { color: #E8A830; cursor: pointer; }
.contact-list li > svg {
  flex: 0 0 auto; margin-top: 2px; color: inherit;
}
.contact-list li a, .contact-list li span {
  font-size: 14px; color: inherit; line-height: 1.45; text-decoration: none;
}

.footer-bottom {
  margin-top: 60px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: #6A7E96;
}
.footer-legal {
  display: inline-flex; gap: 18px;
}
.footer-legal a { color: #6A7E96; text-decoration: none; transition: color .15s ease; }
.footer-legal a:hover { color: #E8A830; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 721px) {
  .nav-links a { font-size: 15px; }
  .nav-phone { font-size: 15px; }
  .nav-cta { font-size: 15px; padding: 11px 22px; }
}

/* Floating phone button — mobile only */
.swc-fab-phone {
  position: fixed; bottom: 20px; right: 20px;
  width: 56px; height: 56px; border-radius: 50%;
  background: #C8861A; color: #fff;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(22,38,64,.18);
  z-index: 100;
  transition: background .2s ease, transform .2s ease;
}
.swc-fab-phone:hover,
.swc-fab-phone:focus-visible,
.swc-fab-phone:active {
  background: #C8861A;
  box-shadow: 0 2px 6px rgba(22,38,64,.18), 0 0 0 6px rgba(232,168,48,.22), 0 0 18px rgba(232,168,48,.35);
  outline: none;
}
@media (min-width: 721px) {
  .swc-fab-phone { display: none; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-phone { display: none !important; }
  .nav-burger { display: inline-flex !important; }
  .nav-sheet { display: block !important; }
  .footer-grid { grid-template-columns: 1fr; }
  .logo-link { flex-shrink: 0; }
  .logo { height: 40px !important; }
  /* Lock body scroll when sheet open */
  body:has(.nav-sheet[data-open="true"]) { overflow: hidden; }
  /* Hide floating phone button when nav is open */
  body:has(.nav-sheet[data-open="true"]) .swc-fab-phone { display: none !important; }
}
