/*
Theme Name: Legal Workspace Biz Theme
Theme URI: https://example.com
Author: Asim
Author URI: https://example.com
Description: A hand-coded, minimal, high-speed WordPress theme. No page builder, no bloat — everything in this theme was put there on purpose.
Version: 1.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: legal-workspace-biz-theme
*/

/* ==========================================================================
   Minimal reset — trim or replace as you like
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	line-height: 1.5;
	color: #1a1a1a;
	background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }

.container {
	max-width: 1100px;
	margin-inline: auto;
	padding-inline: 1.25rem;
}

/* ==========================================================================
   Header / primary nav
   ========================================================================== */
.site-header {
	border-bottom: 1px solid #eee;
	padding: 1rem 0;
	position: relative;
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
.site-title { margin: 0; }
.site-title a { font-weight: 700; font-size: 1.25rem; text-decoration: none; }

.screen-reader-text {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}

/* Top-level menu */
.nav-menu {
	display: flex;
	align-items: center;
	gap: 1.75rem;
}
.nav-menu a {
	display: inline-block;
	padding: 0.5rem 0;
	text-decoration: none;
	color: inherit;
}
.nav-menu > .menu-item-has-children {
	position: relative;
	display: flex;
	align-items: center;
}

/* Submenu (dropdown) — up to 3 levels supported via depth=3 in wp_nav_menu */
.nav-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: #fff;
	border: 1px solid #eee;
	box-shadow: 0 6px 16px rgba(0,0,0,0.08);
	padding: 0.5rem 0;
	z-index: 20;
}
.nav-menu .sub-menu .sub-menu {
	top: 0;
	left: 100%;
}
.nav-menu .sub-menu li { position: relative; }
.nav-menu .sub-menu a { display: block; padding: 0.5rem 1rem; white-space: nowrap; }
.nav-menu .sub-menu.submenu-open { display: block; }

/* Desktop: open submenu on hover as well as the JS toggle */
@media (min-width: 783px) {
	.nav-menu .menu-item-has-children:hover > .sub-menu {
		display: block;
	}
}

/* Caret button injected by navigation.js next to parent links */
.submenu-toggle {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 0.75rem;
	padding: 0.25rem 0.4rem;
	line-height: 1;
}

/* Mobile hamburger toggle — hidden on desktop */
.menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	width: 38px;
	height: 38px;
	background: none;
	border: 1px solid #ddd;
	border-radius: 4px;
	cursor: pointer;
}
.menu-toggle__bar {
	display: block;
	height: 2px;
	width: 20px;
	margin: 0 auto;
	background: #1a1a1a;
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle.is-active .menu-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-active .menu-toggle__bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .menu-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 782px) {
	.menu-toggle { display: flex; }

	.primary-nav {
		display: none;
		width: 100%;
		order: 3;
	}
	.primary-nav.nav-open { display: block; }

	.nav-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 0.5rem 0;
	}
	.nav-menu > li { border-top: 1px solid #f0f0f0; }
	.nav-menu a { padding: 0.75rem 0; }

	.nav-menu .sub-menu {
		position: static;
		box-shadow: none;
		border: none;
		padding-left: 1rem;
	}
	.nav-menu .sub-menu .sub-menu { left: 0; padding-left: 2rem; }
}

/* ==========================================================================
   Hero banner (see template-parts/hero-banner.php — title/description pull
   automatically from each page; edit phone/contact URL/CF7 shortcode in
   Appearance > Customize > Hero Banner)
   ========================================================================== */
.hero {
	background: #f7f7f8;
	padding-block: 3rem;
}
.hero__inner {
	display: flex;
	align-items: center;
	gap: 3rem;
}
.hero__content { flex: 1 1 50%; }
.hero__media { flex: 1 1 50%; }

.hero__title {
	margin-top: 0;
	font-size: clamp(1.75rem, 4vw, 2.75rem);
}
.hero__description {
	color: #444;
	font-size: 1.05rem;
}
.hero__cta {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-top: 1.5rem;
}

.btn {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 600;
	border: 2px solid transparent;
}
.btn--primary {
	background: #1a1a1a;
	color: #fff;
}
.btn--secondary {
	background: transparent;
	color: #1a1a1a;
	border-color: #1a1a1a;
}

.hero__image {
	border-radius: 8px;
	box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.hero__form {
	background: #fff;
	padding: 1.5rem;
	border-radius: 8px;
	box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

@media (max-width: 700px) {
	.hero__inner { flex-direction: column; }
	.hero__content, .hero__media { flex: 1 1 100%; }
}

/* Full-bleed helper, still useful if you insert any wide/full-aligned
   blocks inside page content built with the block editor. */
.entry-content .alignfull,
.site-main > .alignfull {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: 100vw;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	border-top: 1px solid #eee;
	margin-top: 3rem;
	padding: 2.5rem 0 1.5rem;
	font-size: 0.875rem;
	color: #555;
}
.footer-widgets {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	padding-bottom: 2rem;
	margin-bottom: 1.5rem;
	border-bottom: 1px solid #eee;
}
.footer-widgets .widget-title {
	font-size: 0.95rem;
	margin-top: 0;
}
@media (max-width: 700px) {
	.footer-widgets { grid-template-columns: 1fr; gap: 1.5rem; }
}

.site-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
}
.footer-nav-menu {
	display: flex;
	gap: 1.25rem;
}
.footer-nav-menu a { text-decoration: none; color: inherit; }

/* Content area */
.site-main { padding-block: 2rem; }
.entry-title { margin-top: 0; }
