/*========================================================
	Tyler Dannaway Foundation — Brand Overrides
	Only override what differs from the template defaults.
=========================================================*/

body {
	font: 16px/1.65 'Roboto', Arial, sans-serif;
}

.bq_txt1 { font-family: 'Roboto', Arial, sans-serif; }
.bq_txt2 { font-family: 'Roboto', Arial, sans-serif; }
.bq_txt3 { font-family: 'Roboto', Arial, sans-serif; }

.caption span.slider_txt1,
.caption span.slider_txt2 { color: #fff; }
.caption span.slider_txt2 { font-family: 'Roboto', Arial, sans-serif; }

.more_btn_slider { color: #fff; border-color: #fff; }
.more_btn_slider:hover { background: #fff; color: #cc1f1f; border-color: #fff; }

/* --- Logo graphic: shadow/background baked into logo.png, same as template ---*/
/* No width override — let it render at its natural 230×230px like the template */

/* Footer logo box: same red treatment */
.footer_h1 {
	margin: 0;
	margin-top: 40px;
	display: inline-block;
	background: #cc1f1f;
	padding: 6px;
	box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.35);
}

/* --- Brand color: replace template orange (#ec4700) with foundation red ---*/

/* Filled buttons */
.more_btn2,
.more_btn3 {
	background: #cc1f1f;
	border-color: #cc1f1f;
}
.more_btn2:hover {
	color: #cc1f1f;
	background: #fff;
	border-color: #cc1f1f;
}
.more_btn3:hover {
	color: #cc1f1f;
	background: #000;
}

/* box-1 (About the Foundation) background */
.box-1 {
	background: #0d3068;
}

/* box-2 (Tyler's Story) background */
.box-2 {
	background: #cc1f1f;
	color: #fff;
	padding-bottom: 70px;
}
.box-2 h2,
.box-2 p,
.box-2 blockquote p {
	color: #fff;
}

/* Tyler's Story — pull quote */
.tdf-pullquote {
	font: 300 22px/1.6 'Georgia', serif;
	font-style: italic;
	color: #fff;
	border-top: 1px solid rgba(255,255,255,0.4);
	border-bottom: 1px solid rgba(255,255,255,0.4);
	padding: 32px 0;
	margin: 50px 0 0;
}
.tdf-pullquote strong {
	display: block;
	font: 700 26px/1.4 'Georgia', serif;
	font-style: normal;
	margin-top: 8px;
}

/* Tyler's Story — equal-height cards row */
.tdf-cards-row {
	display: flex;
	align-items: stretch;
}
.tdf-cards-row > [class*="grid_"] {
	display: flex;
	flex-direction: column;
}
.tdf-cards-row .tdf-story-card {
	flex: 1;
}

/* Tyler's Story — His World / His Gifts cards */
.tdf-story-card {
	background: rgba(0,0,0,0.18);
	border-radius: 4px;
	padding: 26px 28px 28px;
}
.tdf-card-title {
	color: #fff;
	font: 700 13px/1 'Roboto', Arial, sans-serif;
	text-transform: uppercase;
	letter-spacing: 2px;
	border-bottom: 1px solid rgba(255,255,255,0.3);
	padding-bottom: 12px;
	margin: 0 0 16px;
}

/* Tyler's Story — memorial line */
.tdf-memorial {
	font-style: italic;
	opacity: 0.8;
	margin-top: 12px;
}

/* Tyler's Story — closing statement */
.tdf-closing-stmt {
	font: 300 22px/1.7 'Georgia', serif;
	font-style: italic;
	color: #fff;
	border-top: 1px solid rgba(255,255,255,0.4);
	padding-top: 32px;
	margin-top: 10px;
}
.tdf-closing-stmt strong {
	display: block;
	font: 700 26px/1.4 'Georgia', serif;
	font-style: normal;
	margin-top: 8px;
}

/* Hover color on links */
a:hover {
	color: #cc1f1f;
}
a.link2 {
	color: #cc1f1f;
}
a.link2:hover {
	color: #000;
}

/* Slider pagination dots — pin to bottom of slider */
.camera_wrap .camera_pag {
	top: auto;
	bottom: 20px;
}
.camera_wrap .camera_pag .camera_pag_ul li span {
	background: #fff;
}
.camera_wrap .camera_pag .camera_pag_ul li.cameracurrent span,
.camera_wrap .camera_pag .camera_pag_ul li:hover span {
	background: #cc1f1f;
}

/* Hero caption position */
.caption {
	top: 250px;
}

/* Keep current nav item white on single-page site */
.sf-menu > li.current > a {
	color: #fff;
}

/* Nav font size — prevent wrapping with longer labels */
.sf-menu > li > a {
	font-size: 16px;
	letter-spacing: 0.5px;
}
.sf-menu > li {
	margin-left: 12px;
}


/* Donate button in nav */
.sf-menu > li > a.nav-donate-btn {
	background: #cc1f1f;
	color: #fff !important;
	border-radius: 3px;
	padding: 8px 18px !important;
	margin-left: 8px;
}
.sf-menu > li > a.nav-donate-btn:hover {
	background: #a81818;
	color: #fff !important;
}

/* Sub-menu hover */
.sf-menu ul li a:hover {
	background: #cc1f1f;
}

/* Search icon hover */
a.link_icon1:hover {
	background: #cc1f1f;
}

/* list active color */
.listWithMarker li a:hover,
.listWithMarker li.current a,
.list3 li a:hover,
.list3 li.current a {
	color: #cc1f1f;
}


/* icon_holder color */
.icon_holder1 {
	background: #cc1f1f;
}

/* num_section color */
.num_section {
	color: #cc1f1f;
}

/* color2 utility */
.color2 {
	color: #cc1f1f;
}

/* txt5 (large stat text) */
.txt5 {
	color: #cc1f1f;
}

/* date section background */
.date_section {
	background-color: #cc1f1f;
}

/* blog section color */
.blog_section {
	color: #cc1f1f;
}

/* Header background */
#header,
#stuck_container {
	background: #000;
}

/* Stuck menu border accent */
.isStuck {
	background: #000;
	border-bottom: 2px solid #cc1f1f;
	padding: 12px 0;
}

/* Mobile select menu border */
.select-menu {
	border-color: #cc1f1f;
}

/* Main section headings — bump letter-spacing from the template's -1px default */
h2 {
	letter-spacing: 2px;
}

/* About the Foundation — section heading */
.box-1 h2 {
	color: #fff;
}

/* About the Foundation — impact stats */
.tdf-stats-row {
	border-top: 1px solid rgba(255,255,255,0.15);
	border-bottom: 1px solid rgba(255,255,255,0.15);
	padding: 40px 0;
}
.tdf-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
}
.tdf-stat-number {
	font: 700 64px/1 'Roboto', Arial, sans-serif;
	color: #fff;
	letter-spacing: -2px;
}
.tdf-stat-label {
	font: 300 14px/1.5 'Roboto', Arial, sans-serif;
	color: rgba(255,255,255,0.7);
	text-transform: uppercase;
	letter-spacing: 1.5px;
	margin-top: 10px;
	max-width: 200px;
}

/* About the Foundation — closing line */
.tdf-foundation-closing {
	margin-top: 16px;
	font-style: italic;
}
.tdf-foundation-closing strong {
	font-style: normal;
	color: #fff;
}

/* Blockquote on red box-1 background */
.tdf-quote-red {
	background: rgba(0, 0, 0, 0.2);
	border-radius: 4px;
}
.tdf-quote-red::before {
	display: none;
}
.tdf-quote-red .bq_txt1 {
	color: rgba(255, 255, 255, 0.9);
}


/* Programs section — cards */
.tdf-programs-row {
	display: flex;
	align-items: stretch;
}
.tdf-programs-row > [class*="grid_"] {
	display: flex;
	flex-direction: column;
}
.tdf-program-card {
	flex: 1;
	border-top: 3px solid #cc1f1f;
	padding: 28px 28px 32px;
	background: #f8f8f8;
	display: flex;
	flex-direction: column;
}
.tdf-program-card--featured {
	background: #f0f0f0;
}
.tdf-program-logo {
	display: block;
	width: 100%;
	height: auto;
	margin: 12px 0 18px;
	flex-shrink: 0;
}

.tdf-program-title {
	font: 700 16px/1.3 'Roboto', Arial, sans-serif;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	color: #1e1e1e;
	margin: 0 0 16px;
}
.tdf-program-card .more_btn2 {
	display: block;
	margin-top: auto;
	padding-top: 22px;
	padding-bottom: 22px;
	text-align: center;
	margin-top: 28px;
}
.tdf-program-closing {
	font-style: italic;
	color: #444;
	margin-top: 12px;
	border-top: 1px solid #ddd;
	padding-top: 16px;
}

/* Instagram feed section */
.tdf-ig-feed {
	background: #0d3068;
	margin-top: 60px;
	padding: 50px 0;
}

/* Footer */
.box-4 {
	background: #cc1f1f;
	color: #fff;
	padding: 40px 0 0;
}
.tdf-footer-label {
	font: 700 11px/1 'Roboto', Arial, sans-serif;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: rgba(255,255,255,0.6);
	margin: 0 0 14px;
}
.tdf-footer-contact {
	font: 300 14px/1.8 'Roboto', Arial, sans-serif;
	color: #fff;
	margin: 0;
}
.tdf-footer-contact a {
	color: #fff;
}
.tdf-footer-contact a:hover {
	color: rgba(255,255,255,0.7);
}
.tdf-footer-nav {
	list-style: none;
	margin: 0;
	padding: 0;
}
.tdf-footer-nav li {
	display: inline-block;
	margin: 0 8px;
}
.tdf-footer-nav li a {
	font: 300 14px/1 'Roboto', Arial, sans-serif;
	color: #fff;
	text-decoration: none;
}
.tdf-footer-nav li a:hover {
	color: rgba(255,255,255,0.7);
}
.tdf-footer-social {
	margin: 0 0 14px !important;
}
.tdf-footer-social li a {
	background: rgba(255,255,255,0.15) !important;
}
.tdf-footer-social li a:hover {
	background: rgba(255,255,255,0.3) !important;
}
.tdf-footer-501 {
	font: 300 12px/1 'Roboto', Arial, sans-serif;
	color: rgba(255,255,255,0.6);
	margin: 0;
}
.tdf-footer-copyright {
	border-top: 1px solid rgba(255,255,255,0.2);
	margin-top: 30px;
	padding: 16px 0;
	font: 300 12px/2 'Roboto', Arial, sans-serif;
	color: rgba(255,255,255,0.6);
	text-align: center;
}

/* Contact form section */
.tdf-contact-form {
	background: #fff;
	padding: 60px 0;
}

/* --- Sponsor logo sizing in box-3 (template uses .img3) ---*/
.box-3 .img3 {
	max-height: 70px;
	max-width: 150px;
	width: auto;
	height: auto;
	margin-top: 10px;
	margin-right: 30px;
}

/* ── Mobile hero caption bar ───────────────────────────────────────────────── */
#mobile-hero-captions {
	display: none;
}
.mobile-hero-caption {
	display: none;
}
.mobile-hero-caption.is-active {
	display: block;
}
.mhc-title {
	display: block;
	font: 700 26px/1.2 'Roboto', Arial, sans-serif;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: -0.5px;
	margin-bottom: 12px;
}
.mhc-body {
	font: 300 15px/1.65 'Roboto', Arial, sans-serif;
	color: rgba(255,255,255,0.82);
	margin: 0 0 20px;
}
.mhc-btn {
	display: inline-block;
	border: 1px solid rgba(255,255,255,0.55);
	color: #fff;
	padding: 10px 28px;
	font: 600 12px/1 'Roboto', Arial, sans-serif;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	text-decoration: none;
	border-radius: 2px;
	transition: background 0.2s, color 0.2s;
}
.mhc-btn:hover {
	background: #fff;
	color: #111;
}

/* ── Hamburger / mobile nav ────────────────────────────────────────────────── */
.tdf-hamburger {
	display: none;
}
.tdf-mobile-nav {
	display: none;
	background: #b01a1a;
	border-top: 1px solid rgba(255,255,255,0.15);
	position: fixed;
	left: 0;
	right: 0;
	z-index: 999;
	/* top is set by JavaScript to sit flush below the sticky header */
}
.tdf-mobile-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.tdf-mobile-nav ul li a {
	display: block;
	padding: 15px 24px;
	color: #fff;
	text-decoration: none;
	border-bottom: 1px solid rgba(255,255,255,0.15);
	font: 400 15px/1 'Roboto', Arial, sans-serif;
	letter-spacing: 0.5px;
}
.tdf-mobile-nav ul li:last-child a {
	border-bottom: none;
}
.tdf-mobile-nav ul li a:hover {
	background: rgba(0,0,0,0.15);
	color: #fff;
}

/* ── Responsive fixes ─────────────────────────────────────────────────────────
   camera.css sets .caption responsive top values at 1749px / 979px / 767px,
   but custom.css loads after it so the base .caption { top: 250px } wins
   at every breakpoint. These media queries restore the intended behaviour.
   ───────────────────────────────────────────────────────────────────────── */
@media only screen and (max-width: 1749px) {
	.caption { top: 80px; }
}
@media only screen and (max-width: 979px) {
	.caption { top: 60px; }
}
@media only screen and (max-width: 767px) {
	.caption { top: 40px; }

	/* Hide text overlay on slider — copy moves to #mobile-hero-captions below */
	.camera_wrap .caption {
		display: none !important;
	}

	/* Show the black caption bar below the slider */
	#mobile-hero-captions {
		display: block;
		background: #111;
		padding: 28px 20px;
		text-align: center;
	}

	/* Shift slide images to show right-side logo content instead of centering.
	   camera.js centers via margin-left; pinning right: 0 overrides that. */
	.cameraSlide .imgLoaded {
		right: 0 !important;
		left: auto !important;
		margin-left: 0 !important;
	}

	/* Red header bar — replaces black */
	#header,
	#stuck_container,
	.isStuck {
		background: #cc1f1f !important;
		border-bottom: none !important;
	}

	/* Give container full width + relative context for the hamburger */
	#stuck_container .container {
		width: 100% !important;
		box-sizing: border-box;
		padding: 0 20px;
		position: relative;
	}

	/* Hide desktop nav and the select dropdown the mobilemenu plugin generates */
	#stuck_container .container nav,
	.select-menu {
		display: none !important;
	}

	/* Hamburger button — top-right corner of the header block */
	.tdf-hamburger {
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		width: 28px;
		height: 20px;
		background: none;
		border: none;
		padding: 0;
		cursor: pointer;
		position: absolute;
		top: 20px;
		right: 20px;
		z-index: 200;
	}
	.tdf-hamburger span {
		display: block;
		width: 100%;
		height: 3px;
		background: #fff;
		border-radius: 2px;
		transition: transform 0.25s, opacity 0.25s;
	}
	.tdf-hamburger.is-open span:nth-child(1) {
		transform: translateY(8.5px) rotate(45deg);
	}
	.tdf-hamburger.is-open span:nth-child(2) {
		opacity: 0;
	}
	.tdf-hamburger.is-open span:nth-child(3) {
		transform: translateY(-8.5px) rotate(-45deg);
	}

	/* Mobile nav panel */
	.tdf-mobile-nav.is-open {
		display: block;
	}

	/* Stack flex rows that override the grid's float-based mobile collapse */
	.tdf-programs-row,
	.tdf-cards-row {
		flex-wrap: wrap;
	}
	.tdf-programs-row > [class*="grid_"],
	.tdf-cards-row > [class*="grid_"] {
		width: 100%;
		min-width: 100%;
	}

	/* Stats row: stack vertically */
	.tdf-stats-row {
		flex-direction: column;
	}

	/* Program card images: cap height so they don't dominate on small screens */
	.tdf-program-logo {
		max-height: 120px;
		width: auto;
		margin-left: auto;
		margin-right: auto;
	}

	/* Footer: center Contact block and add breathing room above Navigate + Connect */
	.box-4 .grid_4:first-child {
		text-align: center;
	}
	.box-4 .grid_4:first-child .tdf-footer-contact {
		text-align: center;
	}
	.box-4 .grid_4:nth-child(2),
	.box-4 .grid_4:nth-child(3) {
		margin-top: 36px;
	}
}

