/**
 * Seven Chambers - Astra Child Theme Custom Styles
 * Elementor compatible overrides
 */

/* Line clamp */
.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; }

/* Mobile drawer */
#mobile-drawer.open { transform: translateX(0) !important; }
#mobile-backdrop.open { opacity: 1 !important; pointer-events: auto !important; }

/* Nav shadow on scroll */
nav.has-shadow { box-shadow: 0 1px 0 #1E3A5F; }

/* Form focus */
input:focus, textarea:focus, select:focus { border-color: #B8956A !important; outline: none; }

/* Grayscale portrait hover */
.group:hover img.grayscale-hover { filter: grayscale(0); }

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Fade up animation base */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* WordPress admin bar fix */
.admin-bar #sc-nav { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar #sc-nav { top: 46px; } }

/* Elementor compatibility - ensure our theme works with Elementor content */
.elementor-location-header ~ #sc-nav { display: none; }
.elementor-location-footer ~ footer { display: none; }

/* Astra compatibility */
.ast-container, .ast-container-fluid { max-width: none; padding: 0; }
.ast-separate-container .ast-article-post, .ast-separate-container .ast-article-single { padding: 0; background: transparent; }
.ast-separate-container .ast-article-post { border-bottom: none; }
.ast-separate-container #primary, .ast-separate-container #secondary { margin: 0; }
.ast-right-sidebar #primary { padding: 0; }
.ast-archive-description { display: none; }
.ast-single-post .entry-header { display: none; }
.ast-page-builder-template .site-content > .ast-container { max-width: none; padding: 0; }
.ast-page-builder-template .ast-article-post, .ast-page-builder-template .ast-article-single { padding: 0; margin: 0; }

/* Hide Astra's default header/footer on our custom templates */
body.page-template-page-home .site-header,
body.page-template-page-practice-areas .site-header,
body.page-template-page-people .site-header,
body.page-template-page-news-insights .site-header,
body.page-template-page-contact .site-header { display: none; }

body.page-template-page-home .site-footer,
body.page-template-page-practice-areas .site-footer,
body.page-template-page-people .site-footer,
body.page-template-page-news-insights .site-footer,
body.page-template-page-contact .site-footer { display: none; }

/* Link reset - no default blue underlines */
a { text-decoration: none; }
a:hover { text-decoration: none; }

/* Selection color */
::selection { background-color: #B8956A; color: #0B1D3A; }

/* Image lazy load */
img[loading="lazy"] { transition: opacity 0.3s ease; }

/* Max width container */
.max-w-container { max-width: 1200px; }
.max-w-container-narrow { max-width: 800px; }

/* Button reset */
button { font-family: 'Inter', system-ui, sans-serif; }

/* Focus visible for accessibility */
*:focus-visible { outline: 2px solid #B8956A; outline-offset: 2px; }

/* Remove default list styles in theme */
ul, ol { list-style: none; padding: 0; margin: 0; }
