/*
 * Dutch Window Cleaning Artist — Tailwind Theme CSS
 * Custom styles that supplement Tailwind CDN utility classes.
 *
 * NOTE: The Tailwind CDN <script> with custom color config goes
 * in the master layout <head> (layouts/default.html).
 * This file handles styles that CAN'T be expressed as utility classes.
 */

/* ============================================
   Google Fonts — Ubuntu Sans
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu+Sans:ital,wght@0,100..800;1,100..800&display=swap');

/* ============================================
   CSS Custom Properties (Color Tokens)
   ============================================ */
:root {
  /* Primary (Blue) */
  --color-primary-50:  162, 200, 238;
  --color-primary-100: 126, 178, 230;
  --color-primary-200: 80, 153, 227;
  --color-primary-300: 55, 133, 213;
  --color-primary-400: 29, 106, 185;
  --color-primary-500: 26, 92, 160;
  --color-primary-600: 19, 71, 125;
  --color-primary-700: 14, 53, 94;
  --color-primary-800: 11, 40, 70;
  --color-primary-900: 8, 28, 49;

  /* Secondary (Orange) */
  --color-secondary-50:  237, 178, 160;
  --color-secondary-100: 231, 156, 132;
  --color-secondary-200: 233, 135, 104;
  --color-secondary-300: 223, 119, 86;
  --color-secondary-400: 239, 109, 68;
  --color-secondary-500: 240, 84, 35;
  --color-secondary-600: 197, 69, 29;
  --color-secondary-700: 161, 61, 32;
  --color-secondary-800: 119, 44, 22;
  --color-secondary-900: 83, 26, 9;

  /* Star rating gold */
  --color-star: #ffd701;
}

/* ============================================
   Base / Reset
   ============================================ */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  font-family: 'Ubuntu Sans', ui-sans-serif, system-ui, sans-serif,
    'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Container (matches old Tailwind config)
   Old site: container centered, 1rem padding, max 1400px at 2xl
   ============================================ */
/* The Tailwind CDN handles container, but we override max-width at 2xl */

/* ============================================
   Star Rating (from old Star.DOunqUQL.css)
   ============================================ */
.star {
  margin-right: 4px;
  display: inline-block;
}

.star-path {
  fill: none;
  stroke: var(--color-star);
  stroke-width: 3;
}

.star-path.filled {
  fill: var(--color-star);
}

/* Inline star SVGs in review cards */
.star-rating svg {
  display: inline-block;
  vertical-align: middle;
}

/* ============================================
   Carousel / Before-After
   (from old Carousel.Ds6XcL-s.css — adapted without Svelte scoping)
   ============================================ */
.carousel {
  position: relative;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.carousel-btn {
  position: absolute;
  width: 40px;
  height: 40px;
  top: 50%;
  z-index: 50;
  margin-top: -20px;
  border: none;
  background-color: transparent;
  cursor: pointer;
}

.carousel-btn:focus {
  outline: none;
}

.carousel-btn.left {
  left: 2vw;
}

.carousel-btn.right {
  right: 2vw;
}

.carousel-dots {
  list-style-type: none;
  position: absolute;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: -30px;
  padding: 0;
}

.carousel-dots li {
  margin: 6px;
  border-radius: 100%;
  background-color: rgba(255, 255, 255, 0.5);
  height: 8px;
  width: 8px;
  cursor: pointer;
}

.carousel-dots li:hover {
  background-color: rgba(255, 255, 255, 0.85);
}

.carousel-dots li.active {
  background-color: #fff;
}

/* ============================================
   Accordion (FAQ sections)
   (from old page DhYPLAbu.css — adapted without Svelte scoping)
   ============================================ */
details {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

details summary svg.accordion-chevron {
  transform: rotate(90deg);
  transition: all 0.3s;
}

details[open] summary svg.accordion-chevron {
  transform: rotate(-90deg);
}

details[open] summary ~ * {
  animation: ease-opacity-t-b 0.5s ease;
}

details summary {
  cursor: pointer;
}

details summary::-webkit-details-marker {
  display: none;
}

@keyframes ease-opacity-t-b {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   YouTube Video Embed (responsive 16:9)
   ============================================ */
/* Wrapper div for responsive 16:9 video */
.yt-video-embed-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}

.yt-video-embed-wrapper iframe,
.yt-video-embed-wrapper .yt-video-embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Standalone iframe class — direct responsive sizing */
iframe.yt-video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
}

/* ============================================
   Prose (blog content typography)
   Tailwind CDN includes @tailwindcss/typography via plugin,
   but we add overrides for brand consistency.
   ============================================ */
.prose {
  --tw-prose-body: #374151;
  --tw-prose-headings: rgb(var(--color-primary-700));
  --tw-prose-links: rgb(var(--color-primary-500));
  --tw-prose-bold: #111827;
  --tw-prose-counters: #6b7280;
  --tw-prose-bullets: #9ca3af;
  --tw-prose-hr: #e5e7eb;
  --tw-prose-quotes: #111827;
  --tw-prose-quote-borders: rgb(var(--color-primary-300));
  --tw-prose-code: #111827;
  --tw-prose-pre-code: #e5e7eb;
  --tw-prose-pre-bg: #1f2937;
  overflow-wrap: break-word;
  word-break: break-word;
}

.prose a {
  text-decoration: underline;
  font-weight: 500;
}

.prose a:hover {
  color: rgb(var(--color-primary-600));
}

.prose img {
  border-radius: 0.75rem;
  max-width: 100%;
  height: auto;
}

/* ============================================
   HubSpot Form Overrides
   Make HubSpot embedded forms match site styling
   ============================================ */
.hs-form input[type="text"],
.hs-form input[type="email"],
.hs-form input[type="tel"],
.hs-form input[type="number"],
.hs-form select,
.hs-form textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-family: 'Ubuntu Sans', sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #374151;
  background-color: #fff;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.hs-form input:focus,
.hs-form select:focus,
.hs-form textarea:focus {
  outline: none;
  border-color: rgb(var(--color-primary-400));
  box-shadow: 0 0 0 3px rgba(var(--color-primary-500), 0.15);
}

.hs-form .hs-button {
  background-color: rgb(var(--color-secondary-500));
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  font-family: 'Ubuntu Sans', sans-serif;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}

.hs-form .hs-button:hover {
  background-color: rgb(var(--color-secondary-600));
}

.hs-form label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: #374151;
}

.hs-form .hs-error-msgs {
  color: #dc2626;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  list-style: none;
  padding: 0;
}

.hs-form .hs-form-field {
  margin-bottom: 1rem;
}

/* ============================================
   Mailchimp Form Overrides
   ============================================ */
#mc_embed_signup input[type="email"],
#mc_embed_signup input[type="text"] {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-family: 'Ubuntu Sans', sans-serif;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

#mc_embed_signup input[type="email"]:focus,
#mc_embed_signup input[type="text"]:focus {
  outline: none;
  border-color: rgb(var(--color-primary-400));
  box-shadow: 0 0 0 3px rgba(var(--color-primary-500), 0.15);
}

#mc_embed_signup .button,
#mc_embed_signup input[type="submit"] {
  background-color: rgb(var(--color-secondary-500));
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  font-family: 'Ubuntu Sans', sans-serif;
  font-size: 1rem;
  transition: background-color 0.2s ease;
}

#mc_embed_signup .button:hover,
#mc_embed_signup input[type="submit"]:hover {
  background-color: rgb(var(--color-secondary-600));
}

#mc_embed_signup label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
  font-size: 0.875rem;
  color: #374151;
}

/* ============================================
   Navigation Menu Items
   ============================================ */
.menu--item {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #374151;
  border-radius: 0.375rem;
  transition: color 0.15s ease, background-color 0.15s ease;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

.menu--item:hover {
  color: rgb(var(--color-primary-500));
  background-color: rgba(var(--color-primary-50), 0.3);
}

.menu--item.active {
  color: rgb(var(--color-primary-600));
  font-weight: 600;
}

/* ============================================
   Button Components
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 0.375rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background-color: rgb(var(--color-secondary-500));
  color: #fff;
}

.btn--primary:hover {
  background-color: rgb(var(--color-secondary-600));
}

/* ============================================
   Utility: Smooth transitions for interactive elements
   ============================================ */
.transition-smooth {
  transition: all 0.3s ease;
}

/* ============================================
   Mobile nav overlay
   ============================================ */
.nav-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================
   Print styles
   ============================================ */
@media print {
  nav, footer, .quote-form-section, .mailing-list-section {
    display: none !important;
  }
}


#hubspot-form-container{
  width: 100% !important
}