/* The Home Care Agency - Static Site Styles */
/* Optimized and minified for production */

/* === CSS RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; line-height: 1.6; color: #334155; background-color: #F8F9FA; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* === CSS VARIABLES === */
:root {
  --color-primary: #0F4C75;
  --color-primary-dark: #1B262C;
  --color-secondary: #3282B8;
  --color-accent: #BBE1FA;
  --color-cta: #FF7E67;
  --color-cta-hover: #FF6B52;
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-light-bg: #F8F9FA;
  --color-mint-bg: #E8F6F3;
  --color-white: #ffffff;
  --color-text: #334155;
  --color-text-light: #64748B;
  --color-border: #E2E8F0;
  --font-serif: Georgia, 'Times New Roman', Times, serif;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-serif); color: var(--color-primary); font-weight: 700; line-height: 1.2; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

@media (min-width: 640px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.875rem; }
}
@media (min-width: 1024px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2rem; }
}

/* === LAYOUT === */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* === SECTIONS === */
section { padding: 4rem 0; }
@media (min-width: 768px) { section { padding: 5rem 0; } }
.section-light { background-color: var(--color-light-bg); }
.section-white { background-color: var(--color-white); }
.section-mint { background-color: var(--color-mint-bg); }
.section-dark { background-color: var(--color-primary); color: var(--color-white); }
.section-dark h2, .section-dark h3 { color: var(--color-white); }
.section-dark p { color: var(--color-accent); }

/* === HEADER === */
.header { background: var(--color-white); border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
@media (min-width: 768px) { .header-inner { height: 5rem; } }
.logo { height: 2.5rem; width: auto; }
@media (min-width: 768px) { .logo { height: 3rem; } }
.nav { display: none; align-items: center; gap: 2rem; }
@media (min-width: 1024px) { .nav { display: flex; } }
.nav a { font-size: 0.875rem; font-weight: 500; color: var(--color-text-light); transition: color 0.2s; }
.nav a:hover, .nav a.active { color: var(--color-primary); }
.mobile-menu-btn { display: block; padding: 0.5rem; }
@media (min-width: 1024px) { .mobile-menu-btn { display: none; } }
.mobile-menu { display: none; background: var(--color-white); border-top: 1px solid var(--color-border); padding: 1rem; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 0.75rem 0; font-weight: 500; color: var(--color-text-light); }

/* === BUTTONS === */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1.5rem; font-size: 0.875rem; font-weight: 600; border-radius: var(--radius-full); transition: all 0.2s; cursor: pointer; }
.btn-cta { background: var(--color-cta); color: var(--color-white); padding: 1rem 2rem; font-size: 1rem; }
.btn-cta:hover { background: var(--color-cta-hover); transform: translateY(-1px); }
.btn-primary { background: var(--color-primary); color: var(--color-white); }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-secondary { background: var(--color-white); color: var(--color-primary); border: 2px solid var(--color-primary); }
.btn-secondary:hover { background: var(--color-primary); color: var(--color-white); }
.btn-white { background: var(--color-white); color: var(--color-primary); }
.btn-white:hover { background: var(--color-light-bg); }

/* === CARDS === */
.card { background: var(--color-white); border-radius: var(--radius-xl); padding: 2rem; box-shadow: var(--shadow-sm); transition: box-shadow 0.3s; }
.card:hover { box-shadow: var(--shadow-lg); }
.card-icon { width: 4rem; height: 4rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.card-icon svg { width: 3rem; height: 3rem; stroke: var(--color-primary); stroke-width: 1.5; }

/* === HERO SECTION === */
.hero { background: linear-gradient(135deg, var(--color-mint-bg) 0%, var(--color-white) 100%); padding: 3rem 0; }
@media (min-width: 768px) { .hero { padding: 5rem 0; } }
.hero-content { max-width: 600px; }
.hero-badge { display: inline-block; color: var(--color-secondary); font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; }
.hero h1 { margin-bottom: 1.5rem; }
.hero p { font-size: 1.125rem; color: var(--color-text-light); margin-bottom: 2rem; }
.hero-image { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-xl); }
.hero-image img { width: 100%; height: auto; object-fit: cover; }

/* === STATE SELECTOR === */
.state-selector { background: var(--color-white); border-radius: var(--radius-xl); padding: 1.5rem; box-shadow: var(--shadow-lg); margin-bottom: 2rem; }
.state-selector h3 { font-size: 1rem; font-weight: 600; color: var(--color-primary); margin-bottom: 1rem; }
.state-select { width: 100%; padding: 1rem; border: 2px solid var(--color-border); border-radius: var(--radius-lg); font-size: 1rem; background: var(--color-white); appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 1rem; cursor: pointer; }
.state-select:focus { outline: none; border-color: var(--color-primary); }

/* === TRUST BADGES === */
.trust-badges { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.trust-badge { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--color-text-light); }
.trust-badge svg { width: 1.25rem; height: 1.25rem; }
.trust-badge .check { stroke: var(--color-success); }
.trust-badge .star { fill: var(--color-warning); stroke: var(--color-warning); }
.trust-badge .shield { stroke: var(--color-success); }

/* === STATS === */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; padding: 1rem; }
.stat-number { font-size: 2rem; font-weight: 700; color: var(--color-primary); }
@media (min-width: 768px) { .stat-number { font-size: 2.5rem; } }
.stat-label { font-size: 0.875rem; color: var(--color-text-light); }

/* === STEPS === */
.steps { max-width: 800px; margin: 0 auto; }
.step { position: relative; display: flex; gap: 1.5rem; margin-bottom: 3rem; }
.step-number { flex-shrink: 0; width: 4rem; height: 4rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 700; color: var(--color-white); }
.step-number.bg-primary { background: var(--color-primary); }
.step-number.bg-secondary { background: var(--color-secondary); }
.step-number.bg-success { background: var(--color-success); }
.step-number.bg-warning { background: var(--color-warning); }
.step-content { flex: 1; background: var(--color-white); border-radius: var(--radius-xl); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.step-content h3 { margin-bottom: 0.5rem; }
.step-content p { color: var(--color-text-light); margin-bottom: 1rem; }
.step-list { margin-top: 1rem; }
.step-list li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--color-text-light); margin-bottom: 0.5rem; }
.step-list svg { width: 1rem; height: 1rem; stroke: var(--color-success); flex-shrink: 0; }

/* === STATE GRID === */
.state-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 640px) { .state-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .state-grid { grid-template-columns: repeat(8, 1fr); } }
.state-link { background: var(--color-light-bg); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1rem; text-align: center; transition: all 0.2s; }
.state-link:hover { background: var(--color-mint-bg); border-color: var(--color-secondary); box-shadow: var(--shadow-md); }
.state-link .code { font-size: 1.125rem; font-weight: 700; color: var(--color-primary); }
.state-link .name { font-size: 0.75rem; color: var(--color-text-light); margin-top: 0.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* === TESTIMONIALS === */
.testimonial { background: var(--color-white); border-radius: var(--radius-xl); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.testimonial-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.testimonial-avatar { width: 3.5rem; height: 3.5rem; border-radius: 50%; object-fit: cover; }
.testimonial-name { font-weight: 600; color: var(--color-primary); }
.testimonial-location { font-size: 0.875rem; color: var(--color-text-light); }
.testimonial-quote { font-style: italic; color: var(--color-text-light); }

/* === STARS === */
.stars { display: flex; gap: 0.125rem; }
.star { width: 1.25rem; height: 1.25rem; fill: var(--color-warning); stroke: var(--color-warning); }

/* === FOOTER === */
.footer { background: var(--color-primary-dark); color: var(--color-white); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand p { color: #94A3B8; font-size: 0.875rem; line-height: 1.7; margin: 1rem 0; }
.footer-logo { height: 3rem; filter: brightness(0) invert(1); margin-bottom: 1rem; }
.footer h4 { font-size: 1rem; font-weight: 600; color: var(--color-white); margin-bottom: 1rem; }
.footer ul li { margin-bottom: 0.5rem; }
.footer ul a { color: #94A3B8; font-size: 0.875rem; transition: color 0.2s; }
.footer ul a:hover { color: var(--color-white); }
.footer-contact { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; }
.footer-contact svg { width: 1rem; height: 1rem; stroke: var(--color-accent); flex-shrink: 0; margin-top: 0.25rem; }
.footer-contact span { font-size: 0.875rem; color: #94A3B8; }
.footer-contact a { color: var(--color-white); }
.footer-bottom { border-top: 1px solid #334155; padding-top: 1.5rem; display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
@media (min-width: 768px) { .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-bottom p { font-size: 0.875rem; color: #64748B; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.875rem; color: #64748B; }
.footer-links a:hover { color: var(--color-white); }
.footer-disclaimer { font-size: 0.75rem; color: #475569; text-align: center; margin-top: 1rem; }

/* === FORMS === */
.form-card { background: var(--color-white); border-radius: var(--radius-xl); padding: 2rem; box-shadow: var(--shadow-xl); max-width: 500px; }
.form-header { text-align: center; margin-bottom: 2rem; }
.form-header h2 { margin-bottom: 0.5rem; }
.form-header p { color: var(--color-text-light); font-size: 0.875rem; }
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--color-primary); margin-bottom: 0.5rem; }
.form-label small { display: block; font-size: 0.75rem; color: var(--color-text-light); font-weight: 400; margin-top: 0.25rem; }
.form-input { width: 100%; padding: 0.875rem 1rem; border: 2px solid var(--color-border); border-radius: var(--radius-lg); font-size: 1rem; transition: border-color 0.2s; }
.form-input:focus { outline: none; border-color: var(--color-primary); }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.radio-group { display: flex; flex-wrap: wrap; gap: 1rem; }
.radio-option { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.radio-option input { width: 1.25rem; height: 1.25rem; accent-color: var(--color-primary); }
.checkbox-option { display: flex; align-items: flex-start; gap: 0.75rem; }
.checkbox-option input { width: 1.25rem; height: 1.25rem; accent-color: var(--color-primary); margin-top: 0.125rem; }
.checkbox-option label { font-size: 0.75rem; color: var(--color-text-light); line-height: 1.5; cursor: pointer; }
.form-privacy { display: flex; align-items: center; justify-content: center; gap: 0.25rem; font-size: 0.75rem; color: var(--color-text-light); margin-top: 1rem; }
.form-privacy svg { width: 0.75rem; height: 0.75rem; }

/* === STEP INDICATOR === */
.step-indicators { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 2rem; }
.step-indicator { width: 2.5rem; height: 2.5rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.875rem; }
.step-indicator.active { background: var(--color-primary); color: var(--color-white); }
.step-indicator.inactive { background: var(--color-border); color: var(--color-text-light); }
.step-line { width: 3rem; height: 0.25rem; background: var(--color-border); border-radius: var(--radius-full); overflow: hidden; }
.step-line-fill { height: 100%; background: var(--color-primary); transition: width 0.3s; }

/* === FAQ ACCORDION === */
.faq-item { background: var(--color-white); border-radius: var(--radius-lg); margin-bottom: 0.75rem; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-question { width: 100%; padding: 1.25rem 1.5rem; display: flex; align-items: center; justify-content: space-between; text-align: left; font-weight: 600; color: var(--color-primary); background: var(--color-white); }
.faq-question svg { width: 1.25rem; height: 1.25rem; transition: transform 0.3s; flex-shrink: 0; }
.faq-question.open svg { transform: rotate(180deg); }
.faq-answer { display: none; padding: 0 1.5rem 1.25rem; color: var(--color-text-light); line-height: 1.7; }
.faq-answer.open { display: block; }

/* === BENEFITS LIST === */
.benefits-list { display: flex; flex-direction: column; gap: 0.75rem; }
.benefit-item { display: flex; align-items: center; gap: 0.75rem; }
.benefit-item svg { width: 1.25rem; height: 1.25rem; stroke: var(--color-success); flex-shrink: 0; }
.benefit-item span { color: var(--color-text); }

/* === BLOG === */
.blog-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
.blog-card { background: var(--color-white); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow 0.3s; }
.blog-card:hover { box-shadow: var(--shadow-lg); }
.blog-card img { width: 100%; height: 12rem; object-fit: cover; }
.blog-card-content { padding: 1.5rem; }
.blog-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.75rem; color: var(--color-text-light); margin-bottom: 0.75rem; }
.blog-category { background: var(--color-mint-bg); color: var(--color-primary); padding: 0.25rem 0.5rem; border-radius: var(--radius-full); font-weight: 500; }
.blog-card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card h3 a:hover { color: var(--color-secondary); }
.blog-excerpt { font-size: 0.875rem; color: var(--color-text-light); margin-bottom: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-link { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.875rem; font-weight: 500; color: var(--color-primary); }
.blog-link:hover { color: var(--color-secondary); }
.blog-link svg { width: 1rem; height: 1rem; }

/* === SIDEBAR === */
.sidebar { background: var(--color-white); border-radius: var(--radius-xl); padding: 1.5rem; box-shadow: var(--shadow-sm); position: sticky; top: 6rem; }
.sidebar h3 { font-size: 1rem; margin-bottom: 1rem; }
.sidebar-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.sidebar-nav button { width: 100%; text-align: left; padding: 0.625rem 0.75rem; border-radius: var(--radius-lg); font-size: 0.875rem; color: var(--color-text-light); transition: all 0.2s; }
.sidebar-nav button:hover { background: var(--color-light-bg); }
.sidebar-nav button.active { background: var(--color-mint-bg); color: var(--color-primary); font-weight: 500; }
.sidebar-cta { background: var(--color-primary); border-radius: var(--radius-lg); padding: 1rem; margin-top: 2rem; }
.sidebar-cta h4 { color: var(--color-white); font-size: 0.875rem; margin-bottom: 0.5rem; }
.sidebar-cta p { color: var(--color-accent); font-size: 0.75rem; margin-bottom: 0.75rem; }

/* === ARTICLE === */
.article { background: var(--color-white); border-radius: var(--radius-xl); padding: 1.5rem; box-shadow: var(--shadow-sm); }
@media (min-width: 768px) { .article { padding: 2.5rem; } }
.article-content { line-height: 1.8; }
.article-content h2 { font-size: 1.5rem; margin: 2rem 0 1rem; padding-top: 1rem; }
.article-content h3 { font-size: 1.25rem; margin: 1.5rem 0 0.75rem; }
.article-content p { margin-bottom: 1rem; }
.article-content ul, .article-content ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.article-content li { margin-bottom: 0.5rem; }
.article-content ul li { list-style-type: disc; }
.article-content ol li { list-style-type: decimal; }
.article-content a { color: var(--color-secondary); text-decoration: underline; }
.article-content a:hover { color: var(--color-primary); }
.article-content strong { color: var(--color-primary); }
.article-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }
.article-tag { background: var(--color-light-bg); color: var(--color-text-light); padding: 0.375rem 0.75rem; border-radius: var(--radius-full); font-size: 0.875rem; }

/* === MOBILE CTA === */
.mobile-cta { display: block; position: fixed; bottom: 0; left: 0; right: 0; padding: 1rem; background: var(--color-white); border-top: 1px solid var(--color-border); box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1); z-index: 90; }
@media (min-width: 768px) { .mobile-cta { display: none; } }
.mobile-cta .btn { width: 100%; }

/* === PHONE ANIMATION === */
.phone-pulse { animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 126, 103, 0.4); }
  50% { box-shadow: 0 0 0 15px rgba(255, 126, 103, 0); }
}

/* === 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; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }

/* === RESPONSIVE VISIBILITY === */
.hidden-mobile { display: none; }
@media (min-width: 768px) { .hidden-mobile { display: block; } }
.hidden-desktop { display: block; }
@media (min-width: 768px) { .hidden-desktop { display: none; } }

/* === PRINT STYLES === */
@media print {
  .header, .footer, .mobile-cta, .btn { display: none !important; }
  body { font-size: 12pt; line-height: 1.5; }
  a { text-decoration: underline; }
  h1, h2, h3 { page-break-after: avoid; }
}
