/*
Theme Name: Stature & Integrity for GeneratePress
Theme URI: https://duilawyerhalifax.ca/
Author: Stitch Design Assistant
Description: GeneratePress child theme for Laura McCarthy DUI Law. Keeps GeneratePress functionality while adding editable legal-service block patterns, colors, typography, and menu support.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Template: generatepress
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stature-integrity-gp
Tags: legal, lawyer, generatepress, block-patterns, responsive, custom-menu
*/

:root {
	--si-deep-navy: #1b365d;
	--si-primary: #002046;
	--si-gold: #c5a059;
	--si-surface: #faf9fd;
	--si-surface-low: #f4f3f7;
	--si-surface-alt: #f4f3f7;
	--si-border: #d7d3c9;
	--si-border-soft: #e3e2e6;
	--si-text: #1a1b1e;
	--si-muted: #4a5568;
	--si-white: #ffffff;
}

html {
	scroll-behavior: smooth;
}

body {
	color: var(--si-text);
	background: var(--si-surface);
	font-family: "Hanken Grotesk", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
}

h1,
h2,
h3,
h4,
.site-title {
	color: var(--si-primary);
	font-family: "Source Serif 4", Georgia, serif;
	letter-spacing: 0;
}

a {
	color: var(--si-primary);
}

a:hover,
a:focus {
	color: var(--si-gold);
}

.main-navigation,
.main-navigation ul ul {
	background-color: var(--si-white);
}

.site-header,
.main-navigation {
	position: sticky;
	top: 0;
	z-index: 60;
}

.site-header {
	background: var(--si-white);
	border-bottom: 1px solid rgba(27, 54, 93, 0.14);
	box-shadow: 0 1px 0 rgba(27, 54, 93, 0.04);
}

.inside-header {
	min-height: 80px;
	padding-block: 0;
}

.main-title a,
.site-branding .main-title a {
	color: var(--si-primary);
	font-family: "Source Serif 4", Georgia, serif;
	font-size: clamp(1.25rem, 2vw, 1.75rem);
	font-weight: 700;
}

.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle,
.main-navigation .menu-bar-items {
	color: var(--si-primary);
	font-weight: 700;
	text-transform: none;
	letter-spacing: 0;
}

.main-navigation .main-nav ul li[class*="current-menu-"] > a,
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li:focus > a {
	color: var(--si-gold);
	background: transparent;
}

.main-navigation .main-nav ul li:last-child > a {
	margin-left: 0.5rem;
	background: var(--si-gold);
	color: var(--si-white);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	line-height: 1;
	text-transform: uppercase;
}

.main-navigation .main-nav ul li:last-child > a:hover,
.main-navigation .main-nav ul li:last-child > a:focus {
	background: #b58f44;
	color: var(--si-white);
}

.button,
.wp-block-button__link,
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border-radius: 4px;
	background: var(--si-gold);
	color: var(--si-white);
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.wp-block-button.is-style-outline .wp-block-button__link {
	border: 2px solid currentColor;
	border-color: rgba(255, 255, 255, 0.86);
	color: var(--si-white);
	background: transparent;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	border-color: var(--si-gold);
	color: var(--si-gold);
}

.si-page-template .entry-content > * {
	margin-bottom: 0;
}

.si-page-template .inside-article {
	padding: 0;
}

.si-page-template .entry-content {
	margin-top: 0;
}

.si-eyebrow {
	color: var(--si-gold);
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.si-hero {
	position: relative;
	overflow: hidden;
	min-height: 600px;
	background-color: var(--si-primary);
}

.si-hero .wp-block-cover__background,
.si-hero .wp-block-cover__image-background {
	display: none;
}

.si-hero::after {
	position: absolute;
	inset: 0;
	z-index: 0;
	content: "";
	background:
		linear-gradient(90deg, var(--si-primary) 0%, var(--si-primary) 58%, rgba(27, 54, 93, 0.92) 100%),
		linear-gradient(135deg, transparent 0 72%, rgba(197, 160, 89, 0.16) 72% 72.4%, transparent 72.4% 100%);
	pointer-events: none;
}

.si-hero > .wp-block-group,
.si-hero .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
}

.si-hero h1 {
	color: var(--si-white);
	max-width: 850px;
	font-size: clamp(2.75rem, 5vw, 4.4rem);
	line-height: 1.06;
}

.si-hero p {
	color: rgba(255, 255, 255, 0.88);
}

.si-hero-copy {
	max-width: 760px;
}

.si-phone-bar {
	position: sticky;
	top: 80px;
	z-index: 50;
	border-bottom: 4px solid var(--si-gold);
	background: var(--si-deep-navy);
	color: var(--si-white);
}

.si-phone-bar p {
	margin: 0;
	color: var(--si-white);
}

.si-phone-bar a {
	color: var(--si-gold);
	font-family: "Source Serif 4", Georgia, serif;
	font-size: clamp(1.2rem, 2vw, 1.55rem);
	font-weight: 700;
	text-decoration: none;
}

.si-card {
	height: 100%;
	border: 1px solid var(--si-border);
	border-radius: 8px;
	background: var(--si-white);
	box-shadow: 0 10px 30px rgba(27, 54, 93, 0.05);
}

.si-facing-panel {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--si-border);
	border-radius: 8px;
	background: var(--si-surface-low);
}

.si-facing-panel::before {
	position: absolute;
	top: 0;
	right: 0;
	width: 140px;
	height: 140px;
	border-bottom-left-radius: 999px;
	background: rgba(174, 199, 247, 0.22);
	content: "";
}

.si-charge-card {
	position: relative;
	border-left: 4px solid var(--si-gold);
	background: var(--si-white);
	box-shadow: 0 4px 16px rgba(27, 54, 93, 0.04);
}

.si-charge-card h4,
.si-card h4 {
	color: var(--si-deep-navy);
	font-family: "Hanken Grotesk", Arial, sans-serif;
	font-size: 0.82rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.si-feature-list {
	padding-left: 0;
	list-style: none;
}

.si-feature-list li {
	display: grid;
	grid-template-columns: 28px 1fr;
	gap: 12px;
	margin-bottom: 1.25rem;
}

.si-feature-list li::before {
	color: var(--si-gold);
	font-size: 1rem;
	font-weight: 800;
	content: ">";
}

.si-section {
	padding-top: clamp(4rem, 7vw, 6.5rem);
	padding-bottom: clamp(4rem, 7vw, 6.5rem);
}

.si-section-alt {
	background: var(--si-surface-alt);
}

.si-dark-section {
	background: var(--si-primary);
	color: var(--si-white);
}

.si-dark-section h2,
.si-dark-section h3,
.si-dark-section p {
	color: var(--si-white);
}

.si-dark-panel {
	border-left: 4px solid var(--si-gold);
	border-radius: 6px;
	background: var(--si-deep-navy);
}

.si-image-card {
	min-height: clamp(340px, 48vw, 520px);
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: 8px;
	box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
}

.si-faq details {
	border: 1px solid var(--si-border-soft);
	border-radius: 4px;
	background: var(--si-white);
}

.si-faq summary {
	position: relative;
	padding: 1rem 3rem 1rem 1.25rem;
	color: var(--si-primary);
	font-weight: 800;
	letter-spacing: 0.03em;
	list-style: none;
	cursor: pointer;
}

.si-faq summary::-webkit-details-marker {
	display: none;
}

.si-faq summary::after {
	position: absolute;
	top: 50%;
	right: 1.25rem;
	color: var(--si-gold);
	font-size: 1.25rem;
	line-height: 1;
	content: "+";
	transform: translateY(-50%);
}

.si-faq details[open] summary::after {
	content: "-";
}

.si-faq details > *:not(summary) {
	margin: 0 1.25rem 1.25rem;
	padding-left: 1rem;
	border-left: 2px solid var(--si-border-soft);
	color: var(--si-muted);
}

.si-contact-strip {
	background: var(--si-primary);
	color: var(--si-white);
}

.si-contact-strip h2,
.si-contact-strip p {
	color: var(--si-white);
}

.si-muted {
	color: var(--si-muted);
}

.site-footer,
.site-info {
	background: var(--si-primary);
	color: var(--si-white);
}

.site-footer a,
.site-info a {
	color: var(--si-white);
}

@media (max-width: 768px) {
	.inside-header {
		min-height: 68px;
	}

	.main-navigation .main-nav ul li:last-child > a {
		margin-left: 0;
	}

	.si-phone-bar {
		position: static;
	}

	.si-section {
		padding-top: 2.75rem;
		padding-bottom: 2.75rem;
	}

	.wp-block-buttons {
		gap: 0.75rem;
	}
}
