/* ==========================================================================
   Nora Hovsepian Law Offices — single-page responsive theme
   ========================================================================== */

:root {
	--navy: #3b4b6b;
	--navy-dark: #2a3550;
	--navy-darker: #232c42;
	--gold: #ba8d55;
	--gold-light: #e2c8a3;
	--link-color: #8a6a3f;
	--bg-light: #ebf3fc;
	--bg-white: #ffffff;
	--text-dark: #333333;
	--text-muted: #666f80;
	--cream: #fff3e8;
	--header-height: 112px;
	--max-width: 1080px;
	--shadow: 0 6px 24px rgba(35, 44, 66, 0.12);
	--focus-ring: 0 0 0 2px #ffffff, 0 0 0 4px var(--navy);
	--a11y-text-scale: 1;
}

/* ---------- Accessibility: text size scaling ----------
   Every font-size in this sheet is written as calc(<px> * var(--a11y-text-scale, 1))
   so these three classes (toggled on <html> by js/accessibility.js) scale all text. */
html.a11y-text-lg {
	--a11y-text-scale: 1.125;
}

html.a11y-text-xl {
	--a11y-text-scale: 1.25;
}

html.a11y-text-xxl {
	--a11y-text-scale: 1.375;
}

/* ---------- Accessibility: underline links ---------- */
html.a11y-underline-links a:not(.btn):not(.nav-toggle):not(.hero-arrow):not(.hero-pause):not(.a11y-toggle):not(.brand) {
	text-decoration: underline !important;
}

/* ---------- Accessibility: high-contrast mode ----------
   Redefining the palette here cascades through every rule below that
   already reads colors from these custom properties. */
html.a11y-contrast {
	--navy: #000000;
	--navy-dark: #000000;
	--navy-darker: #000000;
	--gold: #6b4a1e;
	--gold-light: #6b4a1e;
	--link-color: #0000cc;
	--bg-light: #ffffff;
	--bg-white: #ffffff;
	--text-dark: #000000;
	--text-muted: #000000;
	--focus-ring: 0 0 0 2px #ffffff, 0 0 0 5px #ffe600;
}

html.a11y-contrast body {
	background: #000000 !important;
	color: #ffffff !important;
}

html.a11y-contrast .header-top,
html.a11y-contrast .site-footer {
	background: #000000 !important;
}

html.a11y-contrast a {
	color: #ffe600 !important;
}

html.a11y-contrast .btn-primary,
html.a11y-contrast .btn-outline {
	background: #ffe600 !important;
	color: #000000 !important;
	border-color: #ffe600 !important;
}

html.a11y-contrast .hero-arrow,
html.a11y-contrast .hero-pause {
	background: #000000 !important;
	border: 2px solid #ffe600 !important;
	color: #ffe600 !important;
}

html.a11y-contrast img {
	filter: grayscale(0.2) contrast(1.1);
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: "Roboto", "Helvetica Neue", Arial, Helvetica, sans-serif;
	color: var(--text-dark);
	background: var(--bg-white);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--link-color);
	text-decoration: none;
}

a:hover {
	color: var(--navy);
}

:focus-visible {
	outline: none;
	box-shadow: var(--focus-ring);
	border-radius: 2px;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 8px;
	z-index: 2000;
	background: var(--navy-darker);
	color: #ffffff;
	padding: 10px 16px;
	border-radius: 4px;
	font-size: calc(14px * var(--a11y-text-scale, 1));
	font-weight: 600;
	transition: top 0.15s ease;
}

.skip-link:focus-visible {
	top: 8px;
	box-shadow: var(--focus-ring);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.hero-slide {
		transition: none;
	}
}

.container {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 24px;
}

section[id],
#home,
#mainContent {
	scroll-margin-top: var(--header-height);
}

/* ---------- Header / Nav ---------- */

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header-top {
	background: rgba(43, 53, 80, 0.97);
}

.header-top-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	height: 64px;
	padding: 0 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.header-top-right {
	display: flex;
	align-items: center;
	gap: 20px;
}

.brand {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.brand-name {
	font-size: calc(20px * var(--a11y-text-scale, 1));
	color: #ffffff;
	font-weight: 600;
	letter-spacing: 0.5px;
}

.brand-sub {
	font-size: calc(11px * var(--a11y-text-scale, 1));
	color: var(--gold-light);
	text-transform: uppercase;
	letter-spacing: 2px;
	margin-top: 2px;
}

.brand:hover .brand-name {
	color: var(--gold-light);
}

.header-phone {
	color: #ffffff;
	font-size: calc(14px * var(--a11y-text-scale, 1));
	font-weight: 500;
	letter-spacing: 0.3px;
	white-space: nowrap;
	text-align: right;
}

.nav-bar {
	background: var(--navy-darker);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-nav {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 10px 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 22px;
}

.site-nav a {
	color: #d9e0ec;
	font-size: calc(13px * var(--a11y-text-scale, 1));
	font-weight: 500;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	white-space: nowrap;
	padding: 8px 0;
	border-bottom: 2px solid transparent;
	transition: color 0.15s, border-color 0.15s;
}

.site-nav a:hover,
.site-nav a.is-active {
	color: #ffffff;
	border-bottom-color: var(--gold);
}

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
}

.nav-toggle span {
	display: block;
	width: 26px;
	height: 2px;
	background: #ffffff;
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero banner ---------- */

.hero {
	position: relative;
	width: calc(100% - 48px);
	max-width: var(--max-width);
	margin: calc(var(--header-height) + 28px) auto 0;
	aspect-ratio: 1536 / 869;
	border-radius: 6px;
	overflow: hidden;
	background: var(--navy-darker);
	box-shadow: var(--shadow);
}

.hero-slide {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-size: cover;
	background-position: center 25%;
	opacity: 0;
	pointer-events: none;
	transition: opacity 1.2s ease-in-out;
}

.hero-slide.is-active {
	z-index: 1;
	opacity: 1;
	pointer-events: auto;
}

.hero-slide-link {
	position: absolute;
	inset: 0;
}

.hero-caption {
	position: absolute;
	z-index: 2;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	background: rgba(51, 51, 51, 0.72);
	color: #ffffff;
	padding: 16px 24px;
	font-size: calc(18px * var(--a11y-text-scale, 1));
	font-weight: 600;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	pointer-events: none;
}

.hero-cta-row {
	width: calc(100% - 48px);
	max-width: var(--max-width);
	margin: 24px auto 0;
}

.hero-cta-inner {
	display: flex;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
}

.btn {
	display: inline-block;
	padding: 12px 26px;
	border-radius: 4px;
	font-size: calc(14px * var(--a11y-text-scale, 1));
	font-weight: 600;
	letter-spacing: 0.3px;
	text-transform: uppercase;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
	background: var(--gold);
	color: var(--navy-darker);
}

.btn-primary:hover {
	background: var(--gold-light);
	color: var(--navy-darker);
}

.btn-outline {
	border: 2px solid var(--navy);
	color: var(--navy);
}

.btn-outline:hover {
	background: var(--navy);
	color: #ffffff;
}

.hero-arrow {
	position: absolute;
	z-index: 2;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.7);
	background: rgba(35, 44, 66, 0.45);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.15s;
}

.hero-arrow:hover {
	background: rgba(35, 44, 66, 0.7);
}

.hero-arrow svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.hero-arrow-prev {
	left: 16px;
}

.hero-arrow-next {
	right: 16px;
}

.hero-pause {
	position: absolute;
	z-index: 2;
	top: 16px;
	right: 16px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.7);
	background: rgba(35, 44, 66, 0.45);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.15s;
}

.hero-pause:hover {
	background: rgba(35, 44, 66, 0.7);
}

.hero-pause svg {
	width: 16px;
	height: 16px;
	fill: currentColor;
}

/* ---------- Intro ---------- */

.intro {
	background: var(--bg-white);
	padding: 56px 0;
}

.intro-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 40px;
	align-items: center;
}

.intro-text p {
	margin: 0 0 16px;
	font-size: calc(16px * var(--a11y-text-scale, 1));
	color: var(--text-dark);
}

.intro-image {
	border-radius: 6px;
	box-shadow: var(--shadow);
	justify-self: center;
	max-width: 440px;
}

/* ---------- Generic sections ---------- */

.section {
	padding: 64px 0;
	background: var(--bg-white);
}

.section.alt {
	background: var(--bg-light);
}

.section.page-top {
	padding-top: calc(var(--header-height) + 48px);
}

.section h1,
.section h2 {
	font-size: calc(26px * var(--a11y-text-scale, 1));
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--navy);
	margin: 0 0 8px;
}

.section h1::after,
.section h2::after {
	content: "";
	display: block;
	width: 56px;
	height: 3px;
	background: var(--gold);
	margin-top: 12px;
}

.section-grid {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 28px;
	margin-top: 28px;
	align-items: start;
}

.section-image {
	border: 1px solid #d7d7d7;
	border-radius: 4px;
}

.section-text p {
	margin: 0 0 16px;
	font-size: calc(15px * var(--a11y-text-scale, 1));
}

.section-text ul {
	margin: 0 0 16px;
	padding-left: 22px;
	font-size: calc(15px * var(--a11y-text-scale, 1));
}

.section-text ul li {
	margin-bottom: 8px;
}

.section-text p.disclaimer-text {
	font-size: calc(13px * var(--a11y-text-scale, 1));
	color: var(--text-muted);
	font-style: italic;
}

.section-image-wide {
	width: 100%;
	border-radius: 6px;
	margin: 28px 0;
	box-shadow: var(--shadow);
}

/* ---------- Results ---------- */

.results-intro {
	margin-top: 24px;
}

.results-intro p {
	margin: 0 0 14px;
	font-size: calc(15px * var(--a11y-text-scale, 1));
}

.results-intro p.disclaimer {
	font-size: calc(13px * var(--a11y-text-scale, 1));
	color: var(--text-muted);
	font-style: italic;
}

.results-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	margin-top: 32px;
}

.results-grid h3 {
	color: var(--navy);
	font-size: calc(16px * var(--a11y-text-scale, 1));
	letter-spacing: 1px;
	text-transform: uppercase;
	margin: 0 0 14px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--gold-light);
}

.results-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.results-list li {
	font-size: calc(14px * var(--a11y-text-scale, 1));
	padding: 9px 0;
	border-bottom: 1px solid #e3e8f0;
}

.results-list li:first-child {
	padding-top: 0;
}

/* ---------- Testimonials ---------- */

.testimonial-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	margin-top: 32px;
	align-items: start;
}

blockquote.testimonial {
	margin: 0;
	background: var(--bg-light);
	border-left: 4px solid var(--gold);
	padding: 20px 22px;
	border-radius: 4px;
	font-size: calc(14px * var(--a11y-text-scale, 1));
	color: var(--text-dark);
}

blockquote.testimonial.featured {
	grid-column: 1 / -1;
	background: var(--navy);
	color: #eef1f7;
	border-left-color: var(--gold-light);
}

blockquote.testimonial.featured cite {
	color: var(--gold-light);
}

blockquote.testimonial p {
	margin: 0 0 12px;
}

blockquote.testimonial cite {
	display: block;
	margin-top: 10px;
	font-style: normal;
	font-weight: 600;
	color: var(--navy);
	font-size: calc(13px * var(--a11y-text-scale, 1));
}

/* ---------- FAQ ---------- */

.faq-list {
	margin-top: 28px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.faq-list details {
	background: var(--bg-white);
	border: 1px solid #dfe4ee;
	border-radius: 6px;
	padding: 16px 20px;
}

.section.alt .faq-list details {
	background: var(--bg-white);
}

.faq-list summary {
	cursor: pointer;
	font-weight: 600;
	font-size: calc(15px * var(--a11y-text-scale, 1));
	color: var(--navy);
	list-style: none;
	position: relative;
	padding-right: 28px;
}

.faq-list summary::-webkit-details-marker {
	display: none;
}

.faq-list summary::after {
	content: "+";
	position: absolute;
	right: 0;
	top: -2px;
	font-size: calc(20px * var(--a11y-text-scale, 1));
	color: var(--gold);
}

.faq-list details[open] summary::after {
	content: "\2212";
}

.faq-list .faq-answer {
	margin-top: 12px;
	font-size: calc(14px * var(--a11y-text-scale, 1));
	color: var(--text-dark);
}

.faq-list .faq-answer p {
	margin: 0 0 10px;
}

.faq-list ol {
	margin: 0 0 10px;
	padding-left: 20px;
}

/* ---------- Contact ---------- */

.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	margin-top: 8px;
}

.contact-emails {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.contact-emails a {
	font-size: calc(15px * var(--a11y-text-scale, 1));
	color: var(--navy);
	font-weight: 500;
}

.contact-emails a:hover {
	color: var(--gold);
}

.contact-info p {
	margin: 0 0 16px;
	font-size: calc(15px * var(--a11y-text-scale, 1));
}

.contact-info .map-link {
	display: inline-block;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: calc(13px * var(--a11y-text-scale, 1));
}

/* ---------- Footer ---------- */

.site-footer {
	background: var(--navy-darker);
	color: #b8c1d6;
	padding: 32px 0;
}

.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}

.linkedin-link {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #d9e0ec;
	font-size: calc(13px * var(--a11y-text-scale, 1));
}

.linkedin-link:hover {
	color: var(--gold-light);
}

.footer-a11y-link {
	color: #d9e0ec;
	font-size: calc(13px * var(--a11y-text-scale, 1));
}

.footer-a11y-link:hover {
	color: var(--gold-light);
}

.site-footer p {
	margin: 0;
	font-size: calc(12px * var(--a11y-text-scale, 1));
	color: #8791a8;
}

/* ---------- Accessibility toolbar ----------
   Built dynamically by js/accessibility.js — same widget used across every
   site: a floating ♿ toggle that opens a control panel above it. */

#a11y-toggle {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 1500;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--navy);
	color: #ffffff;
	border: 3px solid #ffffff;
	cursor: pointer;
	font-size: 2.2rem;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

#a11y-toggle:hover {
	background: var(--navy-dark);
}

#a11y-panel {
	position: fixed;
	right: 20px;
	bottom: 100px;
	z-index: 1500;
	width: min(300px, calc(100vw - 32px));
	background: #ffffff;
	color: var(--text-dark);
	border-radius: 10px;
	box-shadow: var(--shadow);
	padding: 18px;
	display: none;
}

#a11y-panel.open {
	display: block;
}

#a11y-panel h2 {
	font-size: 1rem;
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid #e3e1dd;
	color: var(--navy);
	text-transform: none;
	letter-spacing: normal;
}

#a11y-panel h2::after {
	content: none;
}

.a11y-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.a11y-row span {
	font-size: 0.9rem;
	font-weight: 700;
}

.a11y-row .a11y-btns {
	display: flex;
	gap: 6px;
}

.a11y-row button {
	border: 1px solid #e3e1dd;
	background: #ffffff;
	border-radius: 6px;
	padding: 6px 10px;
	font-family: inherit;
	font-weight: 700;
	cursor: pointer;
	font-size: 0.85rem;
	color: var(--text-dark);
}

.a11y-row button:hover {
	border-color: var(--navy);
}

.a11y-row button[aria-pressed="true"] {
	background: var(--navy);
	color: #ffffff;
	border-color: var(--navy);
}

#a11y-reset {
	width: 100%;
	margin-top: 4px;
	border: 1px solid #e3e1dd;
	background: #ffffff;
	border-radius: 6px;
	padding: 8px 10px;
	font-family: inherit;
	font-weight: 700;
	cursor: pointer;
	color: var(--link-color);
}

#a11y-reset:hover {
	border-color: var(--navy);
}

html.a11y-contrast #a11y-panel {
	background: #000000 !important;
	color: #ffffff !important;
	border: 1px solid #ffffff;
}

html.a11y-contrast .a11y-row button {
	background: #000000 !important;
	color: #ffffff !important;
	border-color: #ffffff !important;
}

html.a11y-contrast .a11y-row button[aria-pressed="true"] {
	background: #ffe600 !important;
	color: #000000 !important;
	border-color: #ffe600 !important;
}

html.a11y-contrast #a11y-toggle {
	background: #000000 !important;
	border-color: #ffe600 !important;
	color: #ffe600 !important;
}

@media (max-width: 500px) {
	#a11y-toggle {
		right: 14px;
		bottom: 14px;
		width: 64px;
		height: 64px;
		font-size: 1.9rem;
	}

	#a11y-panel {
		right: 14px;
		bottom: 88px;
	}
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
	.intro-grid {
		grid-template-columns: 1fr;
	}

	.intro-image {
		order: -1;
		max-width: 320px;
	}

	.results-grid,
	.testimonial-grid,
	.contact-grid {
		grid-template-columns: 1fr;
	}

	blockquote.testimonial.featured {
		grid-column: auto;
	}
}

@media (max-width: 1100px) {
	:root {
		--header-height: 64px;
	}

	.nav-toggle {
		display: flex;
	}

	.site-nav {
		position: fixed;
		top: var(--header-height);
		left: 0;
		right: 0;
		bottom: 0;
		max-width: none;
		margin: 0;
		background: var(--navy-dark);
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
		gap: 4px;
		padding: 20px 24px;
		transform: translateX(100%);
		transition: transform 0.25s ease;
		overflow-y: auto;
	}

	.site-nav.is-open {
		transform: translateX(0);
	}

	.site-nav a {
		width: 100%;
		padding: 14px 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	}
}

@media (max-width: 600px) {
	.header-phone {
		display: none;
	}
}

@media (max-width: 760px) {
	.section-grid {
		grid-template-columns: 1fr;
	}

	.section-image {
		max-width: 200px;
	}
}

@media (max-width: 520px) {
	.section {
		padding: 44px 0;
	}
}
