/* Homepage structural dependencies formerly supplied by style.css.
   Deliberately scoped: no legacy palette, font imports, page-wide themes,
   dashboard rules, old hero/search, or obsolete provider-card implementations.
   Load after web-theme.css and before the existing home/search/auth bridges. */
body.toma-home { margin:0; color-scheme:light; }
body.toma-home.dark-mode { color-scheme:dark; }
body.toma-home *, body.toma-home *::before, body.toma-home *::after { box-sizing:border-box; }
body.toma-home :is(h1,h2,h3,h4,h5,h6,p,ul) { margin:0; padding:0; }
body.toma-home :is(button,input,select,textarea) { font:inherit; }
body.toma-home button { cursor:pointer; }
body.toma-home a { color:var(--link); }
body.toma-home .container { margin:0 auto; }
body.toma-home .navbar { top:0; z-index:100; padding:0; }
body.toma-home .navbar .container, body.toma-home .nav-content { height:100%; overflow:visible; }
body.toma-home :is(.nav-content,.nav-links,.nav-buttons,.logo) { display:flex; align-items:center; }
body.toma-home .nav-content { justify-content:space-between; }
body.toma-home .logo { height:100%; flex-shrink:0; }
body.toma-home .nav-links { gap:2rem; }
body.toma-home .nav-link { text-decoration:none; }
body.toma-home :is(.btn-primary,.btn-secondary,.btn-primary-lg,.btn-secondary-lg) { display:inline-block; padding:.6rem 1.5rem; border:1px solid var(--border); border-radius:var(--radius-button); font:var(--type-label); text-align:center; text-decoration:none; cursor:pointer; }
body.toma-home :is(.btn-primary,.btn-primary-lg) { border-color:var(--primary); }
body.toma-home .toggle-track { position:relative; display:flex; align-items:center; justify-content:space-between; padding:0 8px; border-radius:var(--radius-full); }
body.toma-home .toggle-icon { position:relative; z-index:1; }
body.toma-home .toggle-icon.moon, body.toma-home.dark-mode .toggle-icon.sun { opacity:.5; }
body.toma-home.dark-mode .toggle-icon.moon { opacity:1; }
body.toma-home .toggle-thumb { position:absolute; top:4px; left:4px; border-radius:50%; transition:transform 180ms ease-out; }
body.toma-home .category-tab { position:relative; cursor:pointer; }
body.toma-home .filter-results-btn { display:flex; align-items:center; gap:8px; border-radius:var(--radius-full); cursor:pointer; }
body.toma-home .filter-results-btn svg { flex-shrink:0; }
body.toma-home .services { padding:5rem 0; background:var(--background); }
body.toma-home .services-tabs { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; margin-bottom:3rem; }
body.toma-home .tab-btn { padding:10px 20px; border:0; border-radius:var(--radius-badge); background:var(--transparent); color:var(--text-secondary); cursor:pointer; }
body.toma-home .tab-btn.active, body.toma-home .tab-btn:hover { background:var(--subdued); color:var(--text-primary); }
body.toma-home .results-section { margin-top:2rem; width:100%; }
body.toma-home .search-modal-overlay { display:none; }
body.toma-home .filters-bar { display:none; }
body.toma-home .filter-item { display:flex; flex-direction:column; gap:8px; min-width:0; }
body.toma-home .filter-select { border:1px solid var(--input-border); cursor:pointer; }
body.toma-home :is(select option,.input option) { background:var(--input); color:var(--text-primary); }
body.toma-home .city-search-input svg, body.toma-home .city-item svg { flex-shrink:0; }
body.toma-home :is(.modal,.chat-modal) { display:none; position:fixed; inset:0; z-index:1000; align-items:center; justify-content:center; padding:24px; background:var(--scrim); }
body.toma-home .modal.active { display:flex; }
body.toma-home .modal-content { position:relative; width:90%; max-width:500px; max-height:90dvh; overflow-y:auto; padding:2.5rem; border:1px solid var(--border); border-radius:var(--radius-card); background:var(--elevated); box-shadow:var(--shadow-medium); }
body.toma-home .modal-close { position:absolute; top:1rem; inset-inline-end:1rem; z-index:100; width:40px; height:40px; display:grid; place-items:center; border:1px solid var(--border); border-radius:50%; font-size:24px; cursor:pointer; }
body.toma-home .modal-title { font:var(--type-heading); margin:0 44px 24px 0; padding:0; text-align:start; }
body.toma-home[dir=rtl] .modal-title, [dir=rtl] body.toma-home .modal-title { margin:0 0 24px 44px; }
body.toma-home .modal-large { max-width:600px; }
body.toma-home .modal-text { line-height:1.8; }
body.toma-home .contact-channels { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
body.toma-home .contact-item h3 { font:var(--type-subheading); margin-bottom:8px; }
body.toma-home .contact-item p { color:var(--text-secondary); overflow-wrap:anywhere; }
body.toma-home .auth-form { display:flex; flex-direction:column; gap:1rem; }
body.toma-home .input { width:100%; padding:.9rem; border:1px solid var(--input-border); border-radius:var(--radius-input); font:var(--type-body); }
body.toma-home .btn-primary-full { width:100%; padding:1rem; border:0; border-radius:var(--radius-button); background:var(--primary); color:var(--on-primary); font:var(--type-button); cursor:pointer; }
body.toma-home .link-btn { border:0; background:var(--transparent); color:var(--link); font:var(--type-label); text-decoration:underline; cursor:pointer; }
body.toma-home .account-type-selector { display:flex; gap:1rem; padding:8px; margin-bottom:24px; background:var(--card); border-bottom:1px solid var(--border); }
body.toma-home .account-type-btn { flex:1; padding:12px; border:0; border-radius:var(--radius-input); background:var(--transparent); color:var(--text-primary); cursor:pointer; }
body.toma-home .terms-checkbox { display:flex; align-items:start; gap:8px; margin-top:16px; }
body.toma-home .terms-checkbox input { margin-top:4px; }
body.toma-home .terms-checkbox label { font:var(--type-label); color:var(--text-secondary); }
body.toma-home .mobile-menu-toggle { display:none; }
body.toma-home .mobile-menu { display:none; position:fixed; inset:64px 0 auto; z-index:99; padding:20px; border-bottom:1px solid var(--border); box-shadow:var(--shadow-medium); }
body.toma-home .mobile-menu.active { display:block; }
body.toma-home .mobile-menu .nav-buttons { flex-direction:column; gap:12px; }
body.toma-home .mobile-menu :is(.btn-primary,.btn-secondary) { width:100%; }
body.toma-home .dropdown-menu { overflow:hidden; }
body.toma-home .dropdown-item { display:block; padding:12px 16px; color:var(--text-primary); text-decoration:none; font:var(--type-label); }
body.toma-home .dropdown-item:hover { background:var(--subdued); }
body.toma-home :is(.stats-grid,.how-it-works-grid,.why-toma-grid,.blog-grid,.faq-grid,.footer-content) { display:grid; }
body.toma-home .stats-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
body.toma-home :is(.stat-item,.how-it-works-step,.why-toma-card) { padding:2rem; text-align:center; position:relative; }
body.toma-home .stat-icon { width:56px; height:56px; margin:0 auto 16px; border-radius:var(--radius-card); display:grid; place-items:center; }
body.toma-home .stat-icon svg { width:32px; height:32px; }
body.toma-home .stat-number { font-size:2.5rem; font-weight:700; margin-bottom:8px; }
body.toma-home .stat-label { font:var(--type-body); }
body.toma-home :is(.how-it-works-grid,.blog-grid) { grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); margin-top:2rem; }
body.toma-home .how-it-works-step { border-radius:var(--radius-card); }
body.toma-home .step-number { position:absolute; top:-15px; left:50%; transform:translateX(-50%); width:40px; height:40px; border-radius:50%; display:grid; place-items:center; font-size:1.2rem; font-weight:700; }
body.toma-home .step-icon { width:80px; height:80px; margin:2rem auto 1rem; border-radius:var(--radius-card); display:grid; place-items:center; }
body.toma-home .step-icon svg { width:40px; height:40px; }
body.toma-home .step-title { font-size:1.3rem; font-weight:600; margin-bottom:1rem; }
body.toma-home .step-description { line-height:1.8; font-size:.95rem; }
body.toma-home .why-toma-grid { grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:2rem; margin-top:2rem; }
body.toma-home .why-icon { width:72px; height:72px; margin:0 auto 1rem; border-radius:var(--radius-card); display:grid; place-items:center; }
body.toma-home .why-icon svg { width:36px; height:36px; }
body.toma-home .why-toma-card h3 { font-size:1.2rem; font-weight:600; margin-bottom:.8rem; }
body.toma-home .why-toma-card p { line-height:1.6; font-size:.95rem; }
body.toma-home .app-announcement { padding:5rem 0; background:var(--brand-tint-1); color:var(--text-primary); }
body.toma-home .app-content { display:grid; grid-template-columns:1fr 1fr; gap:4rem; align-items:center; }
body.toma-home .app-text h2 { font-size:2.5rem; line-height:1.4; margin-bottom:1.5rem; }
body.toma-home .app-text p { font-size:1.1rem; line-height:1.8; margin-bottom:2rem; color:var(--text-secondary); }
body.toma-home .app-badges { display:flex; flex-wrap:wrap; gap:1.5rem; }
body.toma-home .coming-soon-badge { display:flex; flex-direction:column; gap:5px; padding:1rem 1.5rem; border:1px solid var(--border); border-radius:var(--radius-input); background:var(--card); color:var(--text-secondary); font:var(--type-caption); }
body.toma-home .coming-soon-badge strong { font:var(--type-subheading); color:var(--text-primary); }
body.toma-home .phone-mockup { display:grid; place-items:center; color:var(--link); }
body.toma-home .phone-mockup svg { width:200px; height:200px; }
body.toma-home .blog-card { border-radius:var(--radius-card); overflow:hidden; }
body.toma-home .blog-image { height:200px; display:grid; place-items:center; }
body.toma-home .blog-image svg { width:60px; height:60px; }
body.toma-home .blog-card h3 { font-size:1.2rem; padding:1.5rem 1.5rem .5rem; }
body.toma-home .blog-card p { padding:0 1.5rem 1.5rem; font-size:.95rem; line-height:1.6; }
body.toma-home .faq-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:2rem; margin-top:2rem; }
body.toma-home .faq-item { padding:2rem; border:1px solid var(--border); border-radius:var(--radius-card); }
body.toma-home .faq-question { font-size:1.1rem; font-weight:600; margin-bottom:1rem; }
body.toma-home .faq-answer { font-size:.95rem; line-height:1.8; }
body.toma-home .footer { border-top:1px solid var(--border); }
body.toma-home .footer-content { grid-template-columns:2fr 1fr 1.5fr 1fr; margin-bottom:3rem; }
body.toma-home .footer-section { display:flex; flex-direction:column; gap:1rem; min-width:0; }
body.toma-home .footer-description { font-size:.95rem; line-height:1.8; }
body.toma-home .footer-links, body.toma-home .footer-contact { list-style:none; display:flex; flex-direction:column; gap:.8rem; }
body.toma-home .footer-contact li { display:flex; align-items:center; gap:.8rem; }
body.toma-home .footer a { text-decoration:none; overflow-wrap:anywhere; }
body.toma-home .contact-icon { display:flex; flex-shrink:0; color:var(--link); }
body.toma-home .contact-icon svg { width:20px; height:20px; }
body.toma-home .social-links { display:flex; gap:1rem; flex-wrap:wrap; }
body.toma-home .social-link { display:grid; place-items:center; width:44px; height:44px; border-radius:50%; background:var(--subdued); color:var(--link); }
body.toma-home .footer-bottom { border-top:1px solid var(--border); padding-top:2rem; text-align:center; font:var(--type-caption); }
body.toma-home .chat-container { width:100%; max-width:600px; height:min(600px,90dvh); display:flex; flex-direction:column; overflow:hidden; border:1px solid var(--border); border-radius:var(--radius-card); background:var(--elevated); box-shadow:var(--shadow-medium); }
body.toma-home .chat-header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:20px; background:var(--primary); color:var(--on-primary); }
body.toma-home .chat-title { font:var(--type-subheading); }
body.toma-home .chat-close { width:40px; height:40px; border:0; background:var(--transparent); color:var(--on-primary); font-size:24px; }
body.toma-home .chat-messages { flex:1; overflow-y:auto; padding:20px; display:flex; flex-direction:column; gap:12px; background:var(--background); }
body.toma-home .message { max-width:70%; padding:12px 16px; border-radius:var(--radius-card); overflow-wrap:anywhere; }
body.toma-home .message-own { align-self:flex-end; background:var(--primary); color:var(--on-primary); }
body.toma-home .message-other { align-self:flex-start; background:var(--card); color:var(--text-primary); }
body.toma-home .message-time { font:var(--type-caption); opacity:.8; margin-top:5px; }
body.toma-home .chat-input-container { display:flex; gap:12px; padding:16px; border-top:1px solid var(--border); }
body.toma-home .chat-input { flex:1; min-width:0; padding:12px; border:1px solid var(--input-border); }
body.toma-home .chat-send { padding:12px 20px; border:0; border-radius:var(--radius-button); background:var(--primary); color:var(--on-primary); }
@media(max-width:767px) {
  body.toma-home .mobile-menu { top:48px; }
  body.toma-home .contact-channels { grid-template-columns:minmax(0,1fr); }
  body.toma-home .modal { padding:12px; }
  body.toma-home .modal-content { width:100%; padding:24px 20px; max-height:calc(100dvh - 24px); }
  body.toma-home .app-content { grid-template-columns:minmax(0,1fr); gap:2rem; }
  body.toma-home .app-text h2 { font-size:2rem; }
}
@media(prefers-reduced-motion:reduce) { body.toma-home .toggle-thumb { transition:none; } }
