/* =============================================================================
   Canine Cab — Core Stylesheet
   Layout, header, footer, common utilities. Patterns and article styling
   live in patterns.css and article.css respectively.
   ============================================================================= */

/* =========================================================
   Site header
   ========================================================= */
.cc-site-header {
	background: #fff;
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.cc-site-header__bar {
	max-width: var(--wp--style--global--wide-size);
	margin: 0 auto;
	padding: 1rem var(--wp--preset--spacing--md);
}

.cc-site-header__brand .wp-block-site-title a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.cc-site-header__brand .wp-block-site-title a:hover {
	color: var(--wp--preset--color--accent-2);
}

/* Top-nav (hardcoded list — used until a real menu is configured) */
.cc-site-header__nav {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.cc-nav-list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
}

.cc-nav-list a {
	color: var(--wp--preset--color--ink);
	font-weight: 500;
	font-size: 0.9375rem;
	padding: 0.5rem 0.75rem;
	text-decoration: none;
	display: inline-block;
	transition: color 0.15s ease;
}

.cc-nav-list a:hover,
.cc-nav-list a:focus {
	color: var(--wp--preset--color--accent-2);
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.cc-nav-toggle {
	display: none;
	background: transparent;
	border: 2px solid var(--wp--preset--color--ink);
	width: 40px;
	height: 40px;
	cursor: pointer;
	padding: 8px;
	flex-direction: column;
	justify-content: space-between;
}

.cc-nav-toggle span {
	display: block;
	height: 2px;
	background: var(--wp--preset--color--ink);
	width: 100%;
}

.cc-nav-toggle[aria-expanded="true"] {
	background: var(--wp--preset--color--accent);
}

@media (max-width: 860px) {
	.cc-nav-toggle { display: flex; width: 44px; height: 44px; }
	.cc-nav-list {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		flex-direction: column;
		padding: 0.5rem var(--wp--preset--spacing--md);
		border-top: 1px solid var(--wp--preset--color--line);
		border-bottom: 4px solid var(--wp--preset--color--accent);
		box-shadow: 0 8px 24px rgba(0,0,0,0.06);
		z-index: 49;
	}
	.cc-nav-list.is-open { display: flex; }
	.cc-nav-list li { border-bottom: 1px solid var(--wp--preset--color--line); }
	.cc-nav-list li:last-child { border-bottom: none; }
	.cc-nav-list a {
		padding: 0.875rem 0;
		font-size: 1rem;
		display: block;
		min-height: 44px;
		line-height: 1.4;
	}
	.cc-site-header { position: relative; }
}

/* Hero home */
.cc-hero-home {
	margin: 0;
}

.cc-hero-home__inner {
	min-height: 480px;
	display: flex;
	align-items: center;
	justify-content: center;
}

@media (max-width: 768px) {
	.cc-hero-home__inner { min-height: 360px; }
}

/* Footer styles live in patterns.css (.cc-site-footer__*).
   Old .cc-footer-nav-list / .cc-footer-legal classes were removed in v0.4.6
   when the footer markup was rewritten as a 4-column grid. */

/* =========================================================
   Section heads (used by patterns)
   ========================================================= */
.cc-section-head {
	margin-bottom: 1rem;
}

.cc-section-head--with-link {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 1rem;
}

.cc-section-head__title {
	font-family: var(--wp--preset--font-family--body);
	font-weight: 700;
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	line-height: 1.15;
	letter-spacing: -0.015em;
	margin: 0.5rem 0 0;
	color: var(--wp--preset--color--ink);
}

.cc-section-head__link {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 0.875rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--wp--preset--color--ink);
	border-bottom: 2px solid var(--wp--preset--color--accent);
	padding-bottom: 0.15rem;
}

.cc-section-head__link:hover {
	background: var(--wp--preset--color--accent);
}

/* =========================================================
   Mobile responsiveness
   ========================================================= */
@media (max-width: 768px) {
	.cc-site-header__bar {
		padding: 0.75rem var(--wp--preset--spacing--sm);
	}

	.cc-section-head__title {
		font-size: 1.5rem;
	}
}
