/* maids.cc blog theme (ported from maids.news) — shared: base, layout, buttons, header, footer, mobile menu */

/* ==========================================================================
   CSS Variables - Brand Colors
   ========================================================================== */

:root {
  /* Brand Colors */
  --primary: #4465ad;
  --primary-light: #5575bd;
  --primary-dark: #36528a;
  --secondary: #f97316;
  --secondary-light: #fb923c;
  --secondary-dark: #ea580c;
  
  /* Neutral Colors */
  --background: #ffffff;
  --foreground: #1e293b;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* UI Colors */
  --card: #ffffff;
  --card-foreground: #1e293b;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --accent: #dbeafe;
  --accent-foreground: #4465ad;
  --border: #e2e8f0;
  --input: transparent;
  --input-background: #f8fafc;
  --ring: #4465ad;
  
  /* WhatsApp Color */
  --whatsapp: #25D366;
  --whatsapp-hover: #20BA5A;
  
  /* Spacing */
  --radius: 0.625rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-size-base: 16px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Ensure consistent font across all elements */
body,
button,
input,
select,
textarea,
.site-header,
.site-content,
.site-footer,
.nav-link,
.btn,
.card,
.sidebar,
article,
section,
main,
header,
footer,
nav,
aside {
  font-family: var(--font-sans);
}

/* Text Selection */
::selection {
  background-color: var(--primary);
  color: #ffffff;
}

::-moz-selection {
  background-color: var(--primary);
  color: #ffffff;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: var(--font-weight-bold);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--gray-900);
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.875rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.875rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  font-family: var(--font-sans);
  margin-bottom: 1rem;
  color: var(--gray-600);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--secondary);
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.container-narrow {
  max-width: 768px;
}

.container-wide {
  max-width: 1440px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  line-height: 1.5;
  border-radius: var(--radius-lg);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn:focus {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(68, 101, 173, 0.3);
}

.btn-secondary {
  background-color: var(--secondary);
  color: #ffffff;
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.3);
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: #ffffff;
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.btn-ghost {
  background-color: transparent;
  color: var(--gray-600);
}

.btn-ghost:hover {
  background-color: var(--gray-100);
  color: var(--primary);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-rounded {
  border-radius: 9999px;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-body {
  padding: 1.5rem;
}

/* ==========================================================================
   Badges
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: var(--font-weight-semibold);
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary {
  background-color: var(--primary);
  color: #ffffff;
}

.badge-secondary {
  background-color: var(--gray-100);
  color: var(--gray-700);
}

.badge-accent {
  background: linear-gradient(135deg, var(--accent), rgba(249, 115, 22, 0.1));
  color: var(--primary);
}

.badge-trending {
  background-color: var(--secondary);
  color: #ffffff;
}

/* ==========================================================================
   Forms
   ========================================================================== */

.form-input {
  width: 100%;
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--foreground);
  background-color: var(--input-background);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--background);
  box-shadow: 0 0 0 4px rgba(68, 101, 173, 0.1);
}

.form-input::placeholder {
  color: var(--gray-400);
}

.form-input-lg {
  padding: 1.25rem 1.5rem;
  font-size: 1.125rem;
}

/* ==========================================================================
   Hero Sections
   ========================================================================== */

.hero {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
}

.hero-gradient {
  background: linear-gradient(180deg, var(--gray-50), var(--background));
}

.hero-gradient-brand {
  background: linear-gradient(135deg, var(--primary), var(--primary-light), var(--secondary));
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
}

.hero-blob-1 {
  top: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, rgba(68, 101, 173, 0.25), rgba(249, 115, 22, 0.25));
}

.hero-blob-2 {
  bottom: 0;
  left: 0;
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.25), rgba(68, 101, 173, 0.25));
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.site-header.scrolled .nav-container {
  height: 64px;
}

.site-logo img {
  height: 90px;
  width: auto;
  transition: all 0.3s ease;
}

.site-header.scrolled .site-logo img {
  height: 70px;
}

.nav-menu {
  display: none;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
  }
}

.nav-link {
  color: var(--gray-600);
  font-weight: var(--font-weight-medium);
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link.active {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: var(--font-weight-semibold);
}

.mobile-menu-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 1024px) {
  .mobile-menu-controls {
    display: none;
  }
}

.mobile-menu-toggle {
  display: flex;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-600);
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  display: none;
  z-index: 40;
}

.site-header.scrolled + .mobile-menu,
.mobile-menu.scrolled {
  top: 64px;
}

.mobile-menu.open {
  display: block;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav-link {
  display: block;
  padding: 0.5rem 0;
  color: var(--gray-600);
  font-weight: var(--font-weight-medium);
  transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--primary);
}

.mobile-nav-link.active {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: var(--font-weight-semibold);
}

.mobile-menu .container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(68, 101, 173, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 100;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(68, 101, 173, 0.5);
}

.scroll-to-top:active {
  transform: scale(0.95);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: var(--primary);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.footer-blob {
  position: absolute;
  width: 400px;
  height: 400px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.footer-blob-1 {
  top: 0;
  right: 0;
  transform: translate(50%, -50%);
}

.footer-blob-2 {
  bottom: 0;
  left: 0;
  transform: translate(-50%, 50%);
}

.footer-content {
  position: relative;
  z-index: 10;
  padding: 4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 5fr 7fr;
    gap: 3rem;
  }
}

.footer-brand h2 {
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.footer-brand p,
.footer-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  line-height: 1.625;
  max-width: 400px;
  margin-bottom: 2rem;
}

.footer-nav-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .footer-nav-section {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-nav h3 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 0.75rem;
}

.footer-nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.footer-nav a:hover {
  color: #ffffff;
}

/* Nav Dot Animation (matching React version) */
.nav-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.footer-nav a:hover .nav-dot {
  width: 8px;
  background-color: #ffffff;
}

/* Popular Articles */
.popular-articles {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.popular-article-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  line-height: 1.375;
  transition: all 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popular-article-link:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-xl);
  color: #ffffff;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: #ffffff;
  color: var(--primary);
  transform: translateY(-3px) scale(1.1);
}

.footer-bottom {
  position: relative;
  z-index: 10;
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: #ffffff;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(68, 101, 173, 0.3); }
  50% { box-shadow: 0 0 40px rgba(249, 115, 22, 0.5); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 15s ease infinite;
}

/* Animation Delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ==========================================================================
   Utilities
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.text-gradient {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hide on mobile */
.hide-mobile {
  display: none;
}

@media (min-width: 768px) {
  .hide-mobile {
    display: block;
  }
}

/* Show on mobile only */
.show-mobile {
  display: block;
}

@media (min-width: 768px) {
  .show-mobile {
    display: none;
  }
}

/* ==========================================================================
   Custom Scrollbar
   ========================================================================== */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary-dark), var(--secondary-dark));
}

/* ==========================================================================
   WordPress Specific
   ========================================================================== */

.wp-block-image img {
  max-width: 100%;
  height: auto;
}

.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.875rem;
  color: var(--gray-500);
  text-align: center;
  margin-top: 0.5rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.gallery-item {
  margin: 0;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

/* Screen Reader Text */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--gray-100);
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: var(--gray-900);
  display: block;
  font-size: 0.875rem;
  font-weight: var(--font-weight-bold);
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Sticky Header Offset for Content */
.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/* Main content - NO padding/margin anywhere - hero handles its own offset */
main,
.site-content,
#content,
#page,
.site,
body,
html {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Remove ALL wrapper spacing */
#content.site-content,
.site-content,
#page.site {
  padding: 0 !important;
  margin: 0 !important;
}

/* WordPress default reset */
body.page,
body.home,
body.blog,
body.archive,
body.single {
  padding: 0 !important;
  margin: 0 !important;
}

/* Ensure hero sections start immediately after header */
.site-main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* All hero sections should account for 80px fixed header */
.hero,
.blog-hero,
.faq-hero,
.contact-hero,
[class*="-hero"] {
  margin-top: 0 !important;
}

/* ==========================================================================
   PRODUCTION-READY RESPONSIVE STYLES
   WordPress.com Compatible (No JavaScript Required)
   ========================================================================== */

/* ==========================================================================
   CSS-Only Mobile Menu (Checkbox Hack)
   ========================================================================== */

/* Hide the checkbox visually but keep it functional */
.mobile-menu-checkbox,
#mobile-menu-checkbox {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
  clip: rect(0, 0, 0, 0);
}

/* ==========================================================================
   Mobile Menu - Matches React Header.tsx exactly
   ========================================================================== */

/* Hamburger Icon Button */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 100;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.mobile-menu-toggle:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  position: relative;
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #4b5563; /* gray-600 like React */
  border-radius: 1px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
}

.hamburger-line:nth-child(1) {
  top: 5px;
}

.hamburger-line:nth-child(2) {
  top: 11px;
}

.hamburger-line:nth-child(3) {
  top: 17px;
}

/* Mobile Menu Backdrop */
.mobile-menu-backdrop {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(68, 101, 173, 0.08) 0%, rgba(0, 0, 0, 0.4) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9997;
}

.mobile-menu-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* Prevent body scroll when menu is open */
body.mobile-menu-active {
  overflow: hidden;
}

@media (min-width: 1024px) {
  .mobile-menu-backdrop {
    display: none !important;
  }
  body.mobile-menu-active {
    overflow: auto;
  }
}

/* Mobile Menu - Premium dropdown design */
.mobile-menu {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  border-bottom: 1px solid rgba(68, 101, 173, 0.1);
  box-shadow: 
    0 20px 40px -10px rgba(68, 101, 173, 0.15),
    0 10px 20px -5px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9998;
}

.mobile-menu.open {
  transform: translateY(0);
}

/* Mobile Menu - Shown when checkbox is checked */
/* Using :has() selector for modern browsers (primary method) */
.site-header:has(#mobile-menu-checkbox:checked) .mobile-menu,
.site-header:has(.mobile-menu-checkbox:checked) .mobile-menu,
header:has(#mobile-menu-checkbox:checked) #mobile-menu {
  max-height: 500px;
  opacity: 1;
  visibility: visible;
}

/* Fallback: sibling selector */
.mobile-menu-checkbox:checked + .mobile-menu,
#mobile-menu-checkbox:checked + #mobile-menu,
input#mobile-menu-checkbox:checked + nav#mobile-menu,
input[type="checkbox"]#mobile-menu-checkbox:checked + nav.mobile-menu {
  max-height: 500px;
  opacity: 1;
  visibility: visible;
}

/* JavaScript fallback: .open class */
.mobile-menu.open,
#mobile-menu.open {
  max-height: 500px !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* ==========================================================================
   Hamburger to X Animation - When menu is open
   ========================================================================== */

/* JS class fallback */
.site-header.menu-open .hamburger-line:nth-child(1),
.menu-open .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translateY(6px) !important;
  top: 5px !important;
}

.site-header.menu-open .hamburger-line:nth-child(2),
.menu-open .hamburger-line:nth-child(2) {
  opacity: 0 !important;
  transform: scaleX(0) !important;
}

.site-header.menu-open .hamburger-line:nth-child(3),
.menu-open .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translateY(-6px) !important;
  top: 17px !important;
}

/* CSS :has() selector for modern browsers */
.site-header:has(#mobile-menu-checkbox:checked) .hamburger-line:nth-child(1),
.site-header:has(.mobile-menu-checkbox:checked) .hamburger-line:nth-child(1),
header:has(input:checked) .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translateY(6px);
  top: 5px;
}

.site-header:has(#mobile-menu-checkbox:checked) .hamburger-line:nth-child(2),
.site-header:has(.mobile-menu-checkbox:checked) .hamburger-line:nth-child(2),
header:has(input:checked) .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.site-header:has(#mobile-menu-checkbox:checked) .hamburger-line:nth-child(3),
.site-header:has(.mobile-menu-checkbox:checked) .hamburger-line:nth-child(3),
header:has(input:checked) .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translateY(-6px);
  top: 17px;
}

/* ==========================================================================
   Fixed Header - Always Visible (Matches React Original)
   ========================================================================== */

.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  z-index: 9999 !important;
  background-color: rgba(255, 255, 255, 0.90) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid var(--gray-100) !important;
  transition: all 0.3s ease;
  padding: 0 !important;
  padding-left: 0 !important;
  margin: 0 !important;
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.95) !important;
  border-bottom-color: var(--gray-200) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  height: 80px !important;
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 1rem 0 0 !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
  gap: 2rem;
}

@media (min-width: 640px) {
  .nav-container {
    padding: 0 1.5rem 0 0 !important;
    padding-left: 0 !important;
  }
}

@media (min-width: 1024px) {
  .nav-container {
    padding: 0 2rem 0 0 !important;
    padding-left: 0 !important;
  }
}

/* Ensure logo is pushed to the very left */
#site-header .site-logo,
#site-header .custom-logo-link,
.site-header .site-logo,
.nav-container .site-logo,
.nav-container .custom-logo-link {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

/* ==========================================================================
   Logo Responsive Styles (Matches React: h-16 sm:h-20)
   ========================================================================== */

.site-logo {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.site-logo:hover {
  transform: scale(1.05);
}

/* Logo sizing: large for better visibility - high specificity to override WordPress.com */
#site-header .site-logo img,
#site-header .site-logo .custom-logo,
#site-header .custom-logo-link img,
#site-header .custom-logo-link .custom-logo,
.site-header .site-logo img,
.site-header .custom-logo-link img,
.nav-container .site-logo img,
.nav-container .custom-logo-link img,
.site-logo img,
.site-logo .custom-logo,
.custom-logo-link img,
.logo-img,
img.custom-logo {
  height: 100px !important;
  width: auto !important;
  max-height: 100px !important;
  min-height: 100px !important;
  max-width: 300px !important;
  object-fit: contain !important;
  transition: all 0.3s ease !important;
}

@media (min-width: 640px) {
  #site-header .site-logo img,
  #site-header .site-logo .custom-logo,
  #site-header .custom-logo-link img,
  #site-header .custom-logo-link .custom-logo,
  .site-header .site-logo img,
  .site-header .custom-logo-link img,
  .nav-container .site-logo img,
  .nav-container .custom-logo-link img,
  .site-logo img,
  .site-logo .custom-logo,
  .custom-logo-link img,
  .logo-img,
  img.custom-logo {
    height: 140px !important;
    max-height: 140px !important;
    min-height: 140px !important;
    max-width: 400px !important;
  }
}

/* ==========================================================================
   Desktop Navigation
   ========================================================================== */

.nav-menu {
  display: none !important;
  list-style: none !important;
  gap: 1.5rem !important;
  align-items: center !important;
}

@media (min-width: 1024px) {
  .nav-menu {
    display: flex !important;
  }
}

/* Navigation Links - Matches React Original */
.nav-link {
  color: var(--gray-600);
  font-weight: 400;
  font-size: 1rem;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--primary);
  transform: scale(1.1);
}

/* Active navigation link with gradient text like React */
.nav-link.active {
  background: linear-gradient(90deg, #4465ad, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* ==========================================================================
   WhatsApp Button - Matches React Original
   ========================================================================== */

.btn-whatsapp {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  white-space: nowrap !important;
  padding: 0.625rem 1.5rem !important;
  border-radius: 0.5rem !important; /* rounded-lg like React */
  background-color: #25D366 !important;
  color: #ffffff !important;
  font-weight: 500 !important;
  font-size: 0.875rem !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  border: none !important;
}

.btn-whatsapp:hover {
  background-color: #20BA5A !important;
  transform: translateY(-4px) scale(1.1) !important;
  box-shadow: 0 20px 40px rgba(37, 211, 102, 0.4) !important;
  color: #ffffff !important;
}

.btn-whatsapp:active {
  transform: scale(0.95) !important;
}

.btn-whatsapp svg {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
}

.btn-whatsapp.btn-sm {
  padding: 0.5rem 1rem !important;
  font-size: 0.875rem !important;
}

.btn-whatsapp.btn-sm svg {
  width: 12px !important;
  height: 12px !important;
}

.btn-whatsapp.w-full {
  width: 100% !important;
}

/* ==========================================================================
   Mobile Menu Controls
   ========================================================================== */

.mobile-menu-controls {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

@media (min-width: 1024px) {
  .mobile-menu-controls {
    display: none !important;
  }
}

/* ==========================================================================
   Mobile Navigation Links - Premium Design
   ========================================================================== */

.mobile-menu .container {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1rem 1.25rem 1.5rem;
  max-width: 100%;
  margin: 0;
}

/* Mobile Navigation Links */
.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.75rem;
  margin: 0 -0.75rem;
  color: #374151;
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  transition: all 0.25s ease;
  text-align: left;
  text-decoration: none;
  border-radius: 0.75rem;
  position: relative;
}

.mobile-nav-text {
  flex: 1;
}

.mobile-nav-arrow {
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.25s ease;
  color: #4465ad;
}

.mobile-nav-link:hover {
  background: linear-gradient(135deg, rgba(68, 101, 173, 0.06) 0%, rgba(249, 115, 22, 0.03) 100%);
  color: #4465ad;
  padding-left: 1.25rem;
}

.mobile-nav-link:hover .mobile-nav-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Subtle divider between links */
.mobile-nav-link:not(:last-of-type)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.75rem;
  right: 0.75rem;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(68, 101, 173, 0.08) 20%, rgba(68, 101, 173, 0.08) 80%, transparent 100%);
}

/* Active mobile link with gradient text */
.mobile-nav-link.active {
  color: transparent;
  font-weight: 600;
}

.mobile-nav-link.active .mobile-nav-text {
  background: linear-gradient(to right, #4465ad, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mobile-nav-link.active .mobile-nav-arrow {
  opacity: 0.6;
  transform: translateX(0);
  color: #f97316;
}

.mobile-nav-link.active:hover {
  background: linear-gradient(135deg, rgba(68, 101, 173, 0.06) 0%, rgba(249, 115, 22, 0.03) 100%);
}

.mobile-nav-link.active:hover .mobile-nav-arrow {
  opacity: 1;
}

/* Staggered animation for menu items */
.mobile-menu.open .mobile-nav-link:nth-child(1) { animation: slideInMenu 0.4s ease forwards 0.05s; opacity: 0; }
.mobile-menu.open .mobile-nav-link:nth-child(2) { animation: slideInMenu 0.4s ease forwards 0.1s; opacity: 0; }
.mobile-menu.open .mobile-nav-link:nth-child(3) { animation: slideInMenu 0.4s ease forwards 0.15s; opacity: 0; }
.mobile-menu.open .mobile-nav-link:nth-child(4) { animation: slideInMenu 0.4s ease forwards 0.2s; opacity: 0; }
.mobile-menu.open .btn-whatsapp { animation: slideInMenu 0.4s ease forwards 0.25s; opacity: 0; }

@keyframes slideInMenu {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Mobile WhatsApp Button - Premium styling */
.mobile-menu .btn-whatsapp {
  margin-top: 1rem;
  width: 100%;
  justify-content: center;
  padding: 1rem 1.5rem !important;
  border-radius: 0.875rem !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35) !important;
  transition: all 0.3s ease !important;
}

.mobile-menu .btn-whatsapp:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45) !important;
}

.mobile-menu .btn-whatsapp:active {
  transform: translateY(0) scale(0.98) !important;
}

/* ==========================================================================
   Footer - Responsive
   ========================================================================== */

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 5fr 7fr;
  }
}

.footer-nav-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 480px) {
  .footer-nav-section {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-bottom {
  flex-direction: column;
  text-align: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }
}

.footer-legal {
  justify-content: center;
}

@media (min-width: 768px) {
  .footer-legal {
    justify-content: flex-end;
  }
}

/* ==========================================================================
   Buttons - Responsive
   ========================================================================== */

.btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

@media (min-width: 768px) {
  .btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
  }
}

/* ==========================================================================
   Section Spacing - Responsive
   ========================================================================== */

section {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  section {
    padding: 4rem 0;
  }
}

@media (min-width: 1024px) {
  section {
    padding: 5rem 0;
  }
}

/* ==========================================================================
   Typography - Responsive
   ========================================================================== */

h1 {
  font-size: clamp(1.75rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

/* ==========================================================================
   Container - Responsive Padding
   ========================================================================== */

.container {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ==========================================================================
   Utility Classes - Width
   ========================================================================== */

.w-full {
  width: 100% !important;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  .site-header,
  .mobile-menu,
  .mobile-menu-controls,
  .scroll-to-top,
  .btn {
    display: none !important;
  }
  
  main {
    padding-top: 0 !important;
  }
}

/**
 * Custom CSS - Additional styles not covered by Tailwind
 * 
 * @package MaidsCC
 */

/* ==========================================================================
   Custom Scrollbar
   ========================================================================== */

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #4465ad, #f97316);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #36528a, #ea580c);
}

/* ==========================================================================
   Text Selection
   ========================================================================== */

::selection {
  background-color: #4465ad;
  color: #ffffff;
}

::-moz-selection {
  background-color: #4465ad;
  color: #ffffff;
}

/* ==========================================================================
   WordPress Specific
   ========================================================================== */

/* Sticky Header Offset */
.admin-bar .site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }
}

/* WordPress Block Editor Styles */
.wp-block-image img {
  max-width: 100%;
  height: auto;
}

.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.875rem;
  color: #64748b;
  text-align: center;
  margin-top: 0.5rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.gallery-item {
  margin: 0;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 0.625rem;
}

/* Screen Reader Text */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f5f9;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #1e293b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ==========================================================================
   Mobile Menu Overlay
   ========================================================================== */

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   Loading States
   ========================================================================== */

.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  .site-header,
  .site-footer,
  .sidebar,
  .carousel-nav,
  .btn {
    display: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }

  .article-content {
    max-width: 100%;
  }

  a[href]:after {
    content: " (" attr(href) ")";
  }
}

/* Custom CSS (WordPress Additional CSS) */
/* ===== HEADER FIX FOR ALL SCREEN SIZES ===== */

#site-header,
.site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    z-index: 9999 !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.nav-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: 80px !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
}

/* Desktop Navigation */
.nav-menu {
    display: none !important;
}

@media (min-width: 1024px) {
    .nav-menu {
        display: flex !important;
        align-items: center !important;
        gap: 2rem !important;
    }
    
    .mobile-menu-controls {
        display: none !important;
    }
}

/* Mobile Menu Controls */
.mobile-menu-controls {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
}

@media (min-width: 1024px) {
    .mobile-menu-controls {
        display: none !important;
    }
}

/* WhatsApp Button */
.btn-whatsapp {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem !important;
    white-space: nowrap !important;
    padding: 0.625rem 1.5rem !important;
    border-radius: 9999px !important;
    background-color: #25D366 !important;
    color: white !important;
}

/* ===== LOGO FIX ===== */
.site-logo {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

.site-logo img,
.site-logo .custom-logo,
.custom-logo-link img {
    height: 50px !important;
    width: auto !important;
    max-height: 50px !important;
    object-fit: contain !important;
}

/* If logo is showing as text, hide the text version */
.site-logo .logo-text {
    display: none !important;
}

/* Content offset for fixed header */
main,
#content,
.site-content {
    padding-top: 100px !important;
}

/* ==========================================================================
   maids.cc overrides
   ========================================================================== */

/* logo.svg is cropped to the artwork; maids.news used a padded 800x450 PNG at 100px high. */
#site-header .site-logo img.custom-logo {
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    max-width: none !important;
}

/* Theme display rules must not override the hidden attribute used by blog.js. */
[hidden] {
    display: none !important;
}