/* ============================================================
   Yur Favrit Window Cleaner — brand theme
   Color roles: navy carries ALL readable text; cyan is for
   headings, buttons, borders, and accents only.
   ============================================================ */

@font-face {
  font-family: 'Lazydog';
  src: url('../assets/fonts/Lazydog.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --cyan: #0CD6E8;
  --cyan-soft: #7ee9f4;
  --cyan-tint: #e6fbfd;
  --navy: #1e2e52;
  --navy-soft: #4a5f8f;
  --white: #ffffff;
  --font-display: 'Lazydog', 'Fredoka', sans-serif;
  --font-body: 'Fredoka', sans-serif;
  --radius: 22px;
  --shadow: 0 8px 24px rgba(30, 46, 82, 0.10);
  --shadow-lift: 0 14px 34px rgba(30, 46, 82, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
}

/* ---------- Layering contract ----------
   z 1   bubble canvas (pointer-events none)
   z 2   page content
   z 50  sticky header
----------------------------------------- */

main, .site-footer {
  position: relative;
  z-index: 2;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px clamp(14px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--cyan);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  min-width: 0;
}

.brand-yur {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--cyan);
  letter-spacing: 0.03em;
  text-shadow: 0.5px 0.5px 0 var(--navy);
}

.brand-window {
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.header-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 10px 20px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn:active { transform: translateY(0); }

.btn-solid {
  background: var(--cyan);
  color: var(--navy);
  box-shadow: var(--shadow);
}

.btn-ghost {
  background: var(--white);
  color: var(--navy);
  border: 2.5px solid var(--cyan);
}

.btn-cta {
  background: var(--cyan);
  color: var(--navy);
  font-size: 1.2rem;
  padding: 16px 44px;
  box-shadow: var(--shadow-lift);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  text-align: center;
  padding: clamp(90px, 16vh, 160px) 20px clamp(72px, 14vh, 140px);
  overflow: hidden;
}

.hero-title {
  margin: 0 0 clamp(56px, 10vh, 96px);
  line-height: 1.02;
}

.hero .btn-cta {
  margin-bottom: clamp(32px, 6vh, 64px);
}

.hero-yur {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.2rem, 11vw, 6.5rem);
  color: var(--cyan);
  letter-spacing: 0.02em;
  text-shadow:
    2px 2px 0 var(--navy),
    -1px -1px 0 var(--navy),
    1px -1px 0 var(--navy),
    -1px 1px 0 var(--navy);
}

.hero-window {
  display: block;
  font-weight: 500;
  font-size: clamp(1.6rem, 5vw, 3rem);
  color: var(--navy);
  letter-spacing: 0.06em;
  margin-top: 6px;
}

.sparkle {
  position: absolute;
  color: var(--cyan);
  opacity: 0.8;
  animation: twinkle 2.6s ease-in-out infinite;
}

.sparkle-1 { width: 34px; top: 16%; left: 14%; animation-delay: 0s; }
.sparkle-2 { width: 22px; top: 30%; right: 16%; animation-delay: 0.9s; }
.sparkle-3 { width: 27px; bottom: 18%; left: 24%; animation-delay: 1.7s; }

@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.75; }
  50% { transform: scale(1.25) rotate(12deg); opacity: 1; }
}

/* ---------- Sections ---------- */

section { padding: clamp(46px, 7vh, 80px) clamp(18px, 5vw, 48px); }

.services {
  padding-top: clamp(60px, calc(16vh - 20px), 160px);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5.5vw, 3rem);
  color: var(--cyan);
  text-align: center;
  letter-spacing: 0.02em;
  margin: 0 0 36px;
  text-shadow: 1.5px 1.5px 0 var(--navy);
}

/* ---------- Services ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  max-width: 1050px;
  margin: 0 auto;
}

.card {
  background: var(--white);
  border: 3px solid var(--cyan);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 26px;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

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

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--cyan-tint);
  color: var(--navy);
  margin-bottom: 14px;
}

.card h3 {
  font-weight: 600;
  font-size: 1.18rem;
  color: var(--navy);
  margin: 0 0 8px;
}

.card p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--navy);
}

.card-price {
  font-weight: 600;
  font-size: 1.18rem;
  color: var(--navy);
  margin: 14px 0 0;
}

/* ---------- Booking ---------- */

.booking-box {
  max-width: 760px;
  margin: 0 auto;
}

.booking-placeholder {
  background: var(--cyan-tint);
  border: 3px dashed var(--cyan);
  border-radius: var(--radius);
  text-align: center;
  padding: clamp(36px, 6vw, 60px) 28px;
}

.booking-icon { color: var(--navy); }

.booking-title {
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--navy);
  margin: 14px 0 6px;
}

.booking-text {
  color: var(--navy);
  margin: 0 0 26px;
}

.booking-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.contact-item {
  background: var(--white);
  border-radius: var(--radius);
  border: 3px solid var(--cyan);
  box-shadow: var(--shadow);
  padding: 24px 18px;
}

.contact-item h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--cyan);
  text-shadow: 1px 1px 0 var(--navy);
  margin: 0 0 6px;
}

.contact-item p { margin: 0; font-weight: 500; }

.contact-item a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--cyan);
}

.contact-item a:hover { color: var(--navy-soft); }

/* ---------- Footer ---------- */

.site-footer {
  text-align: center;
  padding: 34px 20px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.92rem;
}

.footer-logo {
  width: 64px;
  margin-bottom: 10px;
}

/* ---------- Ambient bubble canvas (behind content) ---------- */

#foam-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* Hidden by JS when BUBBLES is false */
.no-foam #foam-canvas { display: none; }

/* ---------- Mobile tweaks ---------- */

@media (max-width: 640px) {
  .brand-window { display: none; }
  .brand-yur { font-size: 1.1rem; }
  .btn-solid span { display: none; }        /* icon-only call button */
  .btn-solid { padding: 10px 14px; }
  .btn-ghost span { display: none; }
  .btn-ghost { padding: 10px 14px; }
  .header-actions { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sparkle { animation: none; }
}
