/* ==========================================================================
   Jed Glick Law Firm – Global Styles
   Variables · Base · Header · Footer
   ========================================================================== */

/* --------------------------------------------------------------------------
   Custom Properties (edit these to retheme the whole site)
   -------------------------------------------------------------------------- */
:root {
	--color-navy:    #0f1923;
	--color-navy-2:  #1e3247;
	--color-gold:    #5a6375;
	--color-warm-bg: #f8f7f4;
	--color-white:   #ffffff;
	--color-text:    #1a1a1a;
	--color-text-md: #4a4a4a;

	--font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
	--font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	--max-width:     1200px;
	--header-height: 76px;
	--section-v-pad: 6rem;
}

/* --------------------------------------------------------------------------
   Base resets
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
	font-size: 18px;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-weight: 400;
	font-size: 1rem;
	color: var(--color-text);
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	background: var(--color-white);
}

/* Remove default block theme padding/margin that can push content around */
.wp-site-blocks { padding: 0 !important; }

img { max-width: 100%; height: auto; display: block; }

/* ==========================================================================
   Site Header
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 200;
	background: var(--color-white);
	border-bottom: 1px solid rgba(0, 0, 0, 0.07);
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
	transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.site-header__inner {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 2rem;
	height: var(--header-height);
	display: flex;
	align-items: center;
	gap: 2rem;
}

/* ── Brand ── */
.site-header__brand {
	display: flex;
	flex-direction: row;
	align-items: center;
	text-decoration: none;
	flex-shrink: 0;
	gap: 0.75rem;
	margin-left: -1rem;
}

.site-header__firm-name {
	font-family: var(--font-serif);
	font-size: 1.55rem;
	font-weight: 600;
	color: var(--color-navy);
	letter-spacing: -0.01em;
}

.site-header__firm-tagline {
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-gold);
}

/* ── Custom logo image ── */
.site-header__brand .site-logo {
	display: block;
	height: 50px;
	width: auto;
	max-width: 280px;
}


/* ── Nav ── */
.site-header__nav {
	display: flex;
	align-items: center;
	margin-left: auto;
}

/* WordPress wraps the menu in a <ul> with the class we pass */
.site-header__menu,
.site-header__nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 0.2rem;
}

.site-header__menu li a,
.site-header__nav ul li a {
	display: block;
	padding: 0.45rem 0.85rem;
	color: var(--color-text);
	text-decoration: none;
	font-size: 0.88rem;
	font-weight: 600;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	border-radius: 3px;
	transition: color 0.35s ease, background 0.35s ease;
}

.site-header__menu li a:hover,
.site-header__nav ul li a:hover,
.site-header__menu .current-menu-item > a,
.site-header__nav ul .current-menu-item > a {
	color: var(--color-gold);
}

/* ── Dropdown submenu ── */
.site-header__menu li.menu-item-has-children {
	position: relative;
}

.site-header__menu li.menu-item-has-children > ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	transform: none;
	min-width: 180px;
	background: var(--color-white);
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
	padding: 0.4rem 0;
	z-index: 9999;
	flex-direction: column;
	gap: 0;
}

/* Invisible bridge above the dropdown so the cursor doesn't fall through */
.site-header__menu li.menu-item-has-children > ul::before {
	content: '';
	position: absolute;
	top: -10px;
	left: 0;
	right: 0;
	height: 10px;
}

.site-header__menu li.menu-item-has-children:hover > ul {
	display: flex;
}

.site-header__menu li.menu-item-has-children > ul li a {
	padding: 0.6rem 0.85rem;
	font-size: 0.82rem;
	border-radius: 0;
	white-space: nowrap;
	text-align: left;
}

.site-header__menu li.menu-item-has-children > ul li a:hover {
	background: var(--color-warm-bg);
	color: var(--color-gold);
}

/* ── CTA Button ── */
.site-header__cta {
	display: inline-block;
	flex-shrink: 0;
	padding: 0.38rem 1.1rem;
	background: var(--color-white);
	color: var(--color-navy);
	font-family: var(--font-sans);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-decoration: none;
	border: 2px solid var(--color-navy);
	border-radius: 100px;
	transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.site-header__cta:hover {
	background: var(--color-navy);
	color: var(--color-white);
}

/* Transparent state (front page, at top of page) */
.site-header--transparent {
	background: transparent;
	border-color: transparent;
	box-shadow: none;
}

/* On transparent header (front page hero) invert so it pops on dark bg */
.site-header--transparent .site-header__cta {
	border-color: var(--color-white);
	color: var(--color-white);
	background: transparent;
}

.site-header--transparent .site-header__cta:hover {
	background: var(--color-white);
	color: var(--color-navy);
}

/* ── Hamburger ── */
.site-header__toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 36px;
	height: 36px;
	padding: 7px;
	background: none;
	border: none;
	cursor: pointer;
	flex-shrink: 0;
}

.site-header__toggle span {
	display: block;
	height: 2px;
	background: var(--color-navy);
	border-radius: 2px;
	transition: transform 0.24s ease, opacity 0.24s ease;
	transform-origin: center;
}

.site-header__toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__toggle.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.site-header__toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile nav ── */
@media (max-width: 780px) {
	.site-header__toggle { display: flex; }
	.site-header__cta { display: none; }

	.site-header__nav {
		display: none;
		position: absolute;
		top: var(--header-height);
		left: 0;
		right: 0;
		background: var(--color-white);
		border-bottom: 1px solid rgba(0, 0, 0, 0.08);
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
		padding: 0.75rem 0 1.25rem;
	}

	.site-header__nav.is-open { display: block; }

	.site-header__menu,
	.site-header__nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.site-header__menu li a,
	.site-header__nav ul li a {
		padding: 0.9rem 2rem;
		font-size: 0.875rem;
		border-radius: 0;
	}

	/* Mobile dropdown: show inline, no float */
	.site-header__menu li.menu-item-has-children > ul {
		position: static;
		transform: none;
		left: auto;
		top: auto;
		min-width: 0;
		width: 100%;
		box-shadow: none;
		border: none;
		border-radius: 0;
		border-top: 1px solid rgba(0, 0, 0, 0.06);
		background: var(--color-warm-bg);
		padding: 0;
	}

	.site-header__menu li.menu-item-has-children:hover > ul {
		display: flex;
	}

	.site-header__menu li.menu-item-has-children > ul li a {
		padding: 0.75rem 2.75rem;
		font-size: 0.82rem;
	}
}

/* ==========================================================================
   Site Footer
   ========================================================================== */
.site-footer {
	background: var(--color-white);
	color: var(--color-text-md);
	font-family: var(--font-sans);
	font-size: 0.9rem;
	border-top: 1px solid rgba(15, 25, 35, 0.08);
}

.site-footer__inner {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 5rem 2rem 4rem;
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 3rem;
	border-bottom: 1px solid rgba(15, 25, 35, 0.08);
}

/* Brand column */
.site-footer__logo {
	display: block;
	height: 40px;
	width: auto;
	max-width: 220px;
	margin-bottom: 1.25rem;
}

.site-footer__firm-name {
	font-family: var(--font-serif);
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--color-navy);
	margin: 0 0 4px;
}

.site-footer__firm-tagline {
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-gold);
	margin: 0 0 1.25rem;
}

.site-footer__desc {
	margin: 0;
	line-height: 1.75;
	color: var(--color-text-md);
	max-width: 420px;
	font-size: 0.875rem;
}

/* Column headings */
.site-footer__col-heading {
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--color-gold);
	margin: 0 0 1.25rem;
}

/* Footer nav */
.site-footer__menu,
.site-footer__nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer__menu li,
.site-footer__nav li {
	margin-bottom: 0.65rem;
}

.site-footer__menu a,
.site-footer__nav a {
	color: var(--color-text-md);
	text-decoration: none;
	font-size: 0.875rem;
	transition: color 0.18s;
}

.site-footer__menu a:hover,
.site-footer__nav a:hover {
	color: var(--color-navy);
}

/* Contact + Links columns */
.site-footer__contact p,
.site-footer__links p {
	margin: 0 0 0.6rem;
	color: var(--color-text-md);
	font-size: 0.875rem;
	line-height: 1.65;
}

.site-footer__contact a,
.site-footer__links a {
	color: var(--color-text-md);
	text-decoration: none;
	transition: color 0.18s;
}

.site-footer__contact a:hover,
.site-footer__links a:hover {
	color: #dd5847;
}

/* Bottom bar */
.site-footer__bar {
	border-top: 1px solid rgba(15, 25, 35, 0.08);
}

.site-footer__bar-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 1.4rem 2rem;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.site-footer__bar-inner p {
	margin: 0;
	font-size: 0.825rem;
	color: #4a4a4a;
}


.site-footer__bar-legal {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
	flex-wrap: wrap;
}

@media (max-width: 780px) {
	.site-footer__inner {
		grid-template-columns: 1fr;
		padding: 3rem 1.5rem 2.5rem;
		gap: 2.5rem;
	}

	.site-footer__bar-inner {
		flex-direction: column;
		align-items: flex-start;
		padding: 1.25rem 1.5rem;
		gap: 0.5rem;
	}
}
