/* ========================================
   DECK COMMANDOS — CHILD THEME STYLES
   Header, Footer, and Navigation
   ======================================== */

:root {
	--dc-primary-dark: #17224D;
	--dc-deep-blue: #0A4677;
	--dc-medium-blue: #1075B2;
	--dc-yellow: #F9BF0F;
	--dc-bg-light: #EDF1FC;
	--dc-white: #FFFFFF;
	--dc-text-muted: #7A7A7A;
	--dc-font-heading: 'Montserrat', sans-serif;
	--dc-font-body: 'Heebo', sans-serif;
	--dc-max-w: 1280px;
	--dc-radius: 2px;
}

/* ----------------------------------------
   SKIP LINK (Accessibility + SEO)
   ---------------------------------------- */
.dc-skip-link {
	position: absolute;
	top: -100%;
	left: 0;
	z-index: 10000;
	padding: 12px 24px;
	background: var(--dc-yellow);
	color: var(--dc-primary-dark);
	font-family: var(--dc-font-heading);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	outline: none;
}
.dc-skip-link:focus {
	top: 0;
}
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	word-wrap: normal !important;
}
.screen-reader-text:focus {
	clip: auto !important;
	clip-path: none;
	display: block;
	height: auto;
	width: auto;
	position: static;
	overflow: visible;
}

/* ----------------------------------------
   LAYOUT
   ---------------------------------------- */
.dc-wrap {
	max-width: var(--dc-max-w);
	margin: 0 auto;
	padding: 0 24px;
}

/* ----------------------------------------
   LOGO
   ---------------------------------------- */
.dc-logo {
	font-family: var(--dc-font-heading);
	font-size: 28px;
	font-weight: 700;
	color: var(--dc-primary-dark);
	text-decoration: none;
	letter-spacing: -1px;
}
.dc-logo span {
	color: var(--dc-yellow);
}
.dc-logo-footer {
	color: var(--dc-white);
	display: inline-block;
	margin-bottom: 12px;
}

/* ----------------------------------------
   BUTTONS
   ---------------------------------------- */
.dc-btn {
	display: inline-block;
	font-family: var(--dc-font-heading);
	font-weight: 600;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}
.dc-btn-primary {
	background: var(--dc-yellow);
	color: var(--dc-primary-dark);
	padding: 12px 28px;
	border-radius: var(--dc-radius);
	font-size: 14px;
}
.dc-btn-primary:hover {
	background: #e0ab00;
	color: var(--dc-primary-dark);
}
.dc-btn-sm {
	padding: 8px 18px;
	font-size: 13px;
}

/* ----------------------------------------
   HEADER
   ---------------------------------------- */
.dc-header {
	position: relative;
	z-index: 1000;
}

/* Top Bar */
.dc-header-top {
	background: var(--dc-white);
	border-bottom: 1px solid #eee;
	padding: 12px 0;
}
.dc-header-top .dc-wrap {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* Top Bar Phone CTA */
.dc-top-phone {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	background: var(--dc-yellow);
	padding: 10px 24px;
	border-radius: var(--dc-radius);
	transition: background 0.2s;
}
.dc-top-phone:hover {
	background: #e0ab00;
}
.dc-top-phone-icon {
	font-size: 26px;
	color: var(--dc-primary-dark);
	line-height: 1;
}
.dc-top-phone-text {
	display: flex;
	flex-direction: column;
}
.dc-top-phone-label {
	font-family: var(--dc-font-body);
    font-size: 16px;
	font-weight: 900;
	color: var(--dc-deep-blue);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}
.dc-top-phone-number {
	font-family: var(--dc-font-heading);
	font-size: 26px;
	font-weight: 700;
	color: var(--dc-primary-dark);
	letter-spacing: -0.5px;
	line-height: 1.2;
}

/* Social Icons */
.dc-social {
	display: flex;
	gap: 6px;
}
.dc-social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--dc-bg-light);
	color: var(--dc-primary-dark);
	font-family: var(--dc-font-heading);
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s;
}
.dc-social a:hover {
	background: var(--dc-yellow);
}
.dc-social-footer a {
	background: rgba(255,255,255,0.1);
	color: var(--dc-white);
}
.dc-social-footer a:hover {
	background: var(--dc-yellow);
	color: var(--dc-primary-dark);
}

/* Navigation Bar */
.dc-nav-bar {
	background: var(--dc-deep-blue);
	padding: 0;
}
.dc-nav-bar .dc-wrap {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* Nav Menu */
.dc-nav-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
}
.dc-nav-menu li {
	position: relative;
}
.dc-nav-menu li a {
	display: block;
	padding: 16px 20px;
	color: rgba(255,255,255,0.85);
	font-family: var(--dc-font-body);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.2s;
}
.dc-nav-menu li a:hover {
	color: var(--dc-yellow);
}

/* Active page — yellow background pill */
.dc-nav-menu li.current-menu-item > a,
.dc-nav-menu li.current-menu-ancestor > a {
	background: var(--dc-yellow);
	color: var(--dc-primary-dark);
}

/* Dropdown */
.dc-nav-menu .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--dc-white);
	min-width: 220px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
	list-style: none;
	margin: 0;
	padding: 8px 0;
	z-index: 100;
}
.dc-nav-menu li:hover > .sub-menu {
	display: block;
}
.dc-nav-menu .sub-menu li a {
	color: var(--dc-primary-dark);
	padding: 10px 20px;
	font-size: 13px;
}
.dc-nav-menu .sub-menu li a:hover {
	background: var(--dc-bg-light);
	color: var(--dc-deep-blue);
}


/* Mobile Toggle */
.dc-mobile-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
}
.dc-mobile-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--dc-white);
	transition: transform 0.3s;
	border-radius:0px;
}

img.wp-smiley, img.emoji{
	height: 1.5em!important;
	width: 1.5em!important;
}

/* ----------------------------------------
   NEWSLETTER BAR
   ---------------------------------------- */
.dc-newsletter {
	/* Background color set via Customizer inline styles. */
	background-color: var(--dc-deep-blue);
	padding: 30px 0;
}
.dc-newsletter .dc-wrap {
	display: flex;
	justify-content: space-around;
	align-items: center;
	gap: 24px;
}
.dc-newsletter h3 {
	font-family: var(--dc-font-heading);
	color: var(--dc-white);
	font-size: 22px;
	margin: 0 0 4px;
}
.dc-sub {
	color: rgba(255,255,255,0.7);
	font-size: 14px;
}
.dc-nl-form form {
	display: flex;
	align-items: flex-end;
	gap: 12px;
}
.dc-nl-fields {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.dc-nl-form input[type="email"],
.dc-nl-form textarea {
	padding: 12px 16px;
	border: none;
	border-radius: var(--dc-radius);
	font-family: var(--dc-font-body);
	font-size: 14px;
	min-width: 280px;
	outline: none;
	color: var(--dc-primary-dark);
}
.dc-nl-form textarea {
	resize: vertical;
	min-height: 44px;
	max-height: 120px;
}
.dc-nl-form button {
	padding: 12px 24px;
	background: var(--dc-yellow);
	color: var(--dc-primary-dark);
	border: none;
	border-radius: var(--dc-radius);
	font-family: var(--dc-font-heading);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
	align-self: flex-end;
	white-space: nowrap;
}
.dc-nl-form button:hover {
	background: #e0ab00;
}

/* ----------------------------------------
   FOOTER
   ---------------------------------------- */
.dc-footer {
	/* background-color, color, background-image, and gradient
	   are set via Customizer inline styles. Defaults below are
	   fallbacks only if Customizer CSS fails to load. */
	background-color: var(--dc-primary-dark);
	color: rgba(255,255,255,0.75);
	padding: 60px 0 0;
	font-family: var(--dc-font-body);
	font-size: 14px;
}
.dc-footer h5 {
	font-family: var(--dc-font-heading);
	font-size: 17px;
	font-weight: 600;
	margin-bottom: 16px;
}
.dc-footer p {
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 12px;
}

/* Footer Grid */
.dc-footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1.2fr;
	gap: 40px;
}

/* Footer Links */
.dc-footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
}
.dc-footer-links li {
	margin-bottom: 8px;
	color: rgba(255,255,255,0.65);
}
.dc-footer-links a {
	color: rgba(255,255,255,0.65);
	text-decoration: none;
	transition: color 0.2s;
}
.dc-footer-links a:hover {
	color: var(--dc-yellow);
}

/* Footer Headings — styled like h5 but using <p> to avoid heading hierarchy issues */
.dc-footer-heading {
	font-family: var(--dc-font-heading);
	color: var(--dc-white);
	font-size: 17px;
	font-weight: 600;
	margin-bottom: 16px;
}

/* Footer Address — semantic <address> without italic default */
.dc-address {
	font-style: normal;
	list-style: none;
	margin: 0;
	padding: 0;
	line-height: 1.8;
}
.dc-contact-link {
	color: rgba(255,255,255,0.65);
	text-decoration: none;
	transition: color 0.2s;
}
.dc-contact-link:hover {
	color: var(--dc-yellow);
}

/* Newsletter heading — styled smaller so it doesn't compete with page H2s */
.dc-newsletter-heading {
	font-family: var(--dc-font-heading);
	color: var(--dc-white);
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 4px;
}

/* Footer Legal Links Bar */
.dc-footer-legal {
	border-top: 1px solid rgba(255,255,255,0.1);
	margin-top: 40px;
	padding: 20px 0;
	text-align: center;
}
.dc-footer-legal-text {
	font-size: 13px;
	color: rgba(255,255,255,0.5);
	margin-bottom: 12px;
	line-height: 1.6;
}
.dc-footer-legal-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	gap: 8px;
}
.dc-footer-legal-links li {
	display: flex;
	align-items: center;
}
.dc-footer-legal-links li + li::before {
	content: '|';
	color: rgba(255,255,255,0.25);
	margin-right: 8px;
	font-size: 12px;
}
.dc-footer-legal-links a {
	color: rgba(255,255,255,0.55);
	text-decoration: none;
	font-size: 13px;
	transition: color 0.2s;
}
.dc-footer-legal-links a:hover {
	color: var(--dc-yellow);
}

/* Footer Bottom */
.dc-footer-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid rgba(255,255,255,0.06);
	margin-top: 0;
	padding: 20px 0;
	font-size: 13px;
	color: rgba(255,255,255,0.45);
}

/* ----------------------------------------
   RESPONSIVE
   ---------------------------------------- */
@media (max-width: 991px) {
	/* Header */
	.dc-mobile-toggle {
		display: flex;
		border-radius:0px;
	}
	.dc-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--dc-deep-blue);
		z-index: 999;
	}
	.dc-nav.is-open {
		display: block;
	}
	.dc-nav-menu {
		flex-direction: column;
	}
	.dc-nav-menu li a {
		padding: 14px 24px;
		border-bottom: 1px solid rgba(255,255,255,0.06);
	}
	.dc-nav-menu .sub-menu {
		position: static;
		box-shadow: none;
		background: rgba(0,0,0,0.15);
	}
	.dc-nav-menu .sub-menu li a {
		color: rgba(255,255,255,0.75);
		padding-left: 40px;
	}
	/* Top phone — compact on tablet */
	.dc-top-phone {
		padding: 8px 16px;
	}
	.dc-top-phone-number {
		font-size: 16px;
	}

	/* Footer */
	.dc-footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 30px;
	}
	.dc-footer-legal-links {
		flex-wrap: wrap;
		gap: 6px 8px;
	}

	/* Newsletter */
	.dc-newsletter .dc-wrap {
		flex-direction: column;
		text-align: center;
	}
}

@media (max-width: 600px) {
	/* Phone — icon-only on small screens */
	.dc-top-phone-label {
		display: none;
	}
	.dc-top-phone-icon{
		font-size:18px;
	}
	.dc-top-phone {
		padding: 8px 14px;
		gap: 8px;
	}
	.dc-top-phone-number {
		font-size: 15px;
	}
	.dc-footer-grid {
		grid-template-columns: 1fr;
		gap: 24px;
	}
	.dc-footer-legal-links {
		flex-direction: column;
		gap: 10px;
	}
	.dc-footer-legal-links li + li::before {
		display: none;
	}
	.dc-footer-bottom {
		flex-direction: column;
		gap: 8px;
		text-align: center;
	}
	.dc-nl-form form {
		flex-direction: column;
		align-items: stretch;
	}
	.dc-nl-form input[type="email"],
	.dc-nl-form textarea {
		min-width: unset;
		width: 100%;
	}
	.dc-nl-form button {
		align-self: stretch;
	}
}
