/*
Theme Name:   Brounes Dad
Theme URI:    https://brounesdad.com/
Description:  GeneratePress child theme recreating the original 2012 "Dear 'Old' Dad" design (navy header, light content panel, thin headings, shadowed sidebar). Works with the free GeneratePress theme; GP Premium is not required.
Author:       Levy Marketing
Template:     generatepress
Version:      1.0.0
Requires PHP: 7.4
Text Domain:  brounesdad
*/

/* ==========================================================================
   Design tokens (taken from the original theme's screen.css / skin settings)
   ========================================================================== */
:root {
	--bd-navy: #072945;          /* header + footer background */
	--bd-navy-deep: #051d31;     /* dropdowns, mobile menu */
	--bd-blue: #0027af;          /* page titles + h4 */
	--bd-heading: #333333;       /* h2 / h3 / widget titles */
	--bd-text: #222222;
	--bd-link: #666666;
	--bd-rule: #e5e5e5;
	--bd-panel: #f9f9f9;         /* content panel */
	--bd-panel-shade: #e6e6e6;   /* gradient at the bottom of the panel */
	--bd-overlap: 29px;          /* how far the panel rides up into the header */
	--bd-body-size: 13px;        /* original was 12px; nudged up for modern screens */
	--bd-font-thin: "Titillium Web", "Segan", "Helvetica Neue", Arial, sans-serif; /* stand-in for the original Segan Light */
	--bd-font-body: "Lucida Sans Unicode", "Lucida Grande", "Droid Sans", "Segoe UI", sans-serif;
}

/* ==========================================================================
   Base typography
   ========================================================================== */
body {
	background: #ffffff;
	color: var(--bd-text);
	font-family: var(--bd-font-body);
	font-size: var(--bd-body-size);
	line-height: 1.65;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.widget-title {
	font-family: var(--bd-font-thin);
	font-weight: 300;
	line-height: 1.15;
	color: var(--bd-heading);
}

h1, .entry-title { font-size: 36px; color: var(--bd-blue); }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; color: var(--bd-blue); }
h5 { font-size: 15px; }
h6 { font-size: 13px; }

a { color: var(--bd-link); }
a:hover, a:focus { color: var(--bd-navy); }

.entry-content a { text-decoration: underline; text-decoration-color: #c4c4c4; text-underline-offset: 2px; }
.entry-content a:hover { text-decoration-color: currentColor; }
.entry-content h1 a, .entry-content h2 a, .entry-content h3 a, .entry-content h4 a { color: inherit; text-decoration: none; }

/* Bold-italic all-caps subheads Ron uses inside posts */
.entry-content p > strong > em:only-child,
.entry-content p > em > strong:only-child { letter-spacing: 0.02em; }

/* ==========================================================================
   Header: navy with the original diagonal "sheen" overlay
   ========================================================================== */
.site-header {
	background: var(--bd-navy) url("assets/header-sheen.png") no-repeat center top;
	padding-bottom: var(--bd-overlap);
}

.site-header .inside-header {
	max-width: 1000px;
	padding: 36px 0;
	align-items: flex-start;
}

.site-header .site-logo img,
.site-header .header-image {
	width: 275px;
	max-width: 100%;
	height: auto;
}

/* Primary navigation (floated right of the logo) */
.site-header .main-navigation,
.site-header .main-navigation ul ul {
	background: transparent;
}

.site-header .main-navigation {
	margin-top: 30px;
}

.site-header .main-navigation .main-nav > ul > li > a {
	font-family: var(--bd-font-thin);
	font-weight: 300;
	font-size: 17px;
	line-height: 26px;
	padding: 0 15px;
	margin-left: 2px;
	color: #ffffff;
	border-radius: 6px;
	transition: background-color 0.15s ease;
}

.site-header .main-navigation .main-nav > ul > li:hover > a,
.site-header .main-navigation .main-nav > ul > li:focus-within > a {
	color: #ffffff;
	background: rgba(0, 0, 0, 0.18);
}

.site-header .main-navigation .main-nav > ul > li[class*="current-menu-"] > a,
.site-header .main-navigation .main-nav > ul > li.current_page_parent > a {
	color: #ffffff;
	background: rgba(0, 0, 0, 0.32);
}

.site-header .main-navigation .dropdown-menu-toggle { color: #ffffff; }

/* Drop-down (the 8 category pages under "Ron's Observations") */
.site-header .main-navigation ul ul {
	background: var(--bd-navy-deep);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
	border-radius: 0 0 6px 6px;
	width: 220px;
	top: 100%;
}

.site-header .main-navigation .main-nav ul ul li a {
	font-family: var(--bd-font-thin);
	font-size: 14px;
	line-height: 1.4;
	padding: 9px 16px;
	color: #dfe7ef;
	background: transparent;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.site-header .main-navigation .main-nav ul ul li:last-child > a { border-bottom: 0; }

.site-header .main-navigation .main-nav ul ul li:hover > a,
.site-header .main-navigation .main-nav ul ul li[class*="current-menu-"] > a {
	color: #ffffff;
	background: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Content panel: light gray box that overlaps the bottom of the header
   ========================================================================== */
.site.grid-container {
	max-width: 1000px;
	position: relative;
	z-index: 2;
	margin-top: calc(var(--bd-overlap) * -1);
	margin-bottom: -26px;
	box-shadow: 0 4px 0 #0b1c2c, 0 10px 24px rgba(0, 0, 0, 0.18);
}

.one-container .site.container,
.separate-containers .site.container {
	background: linear-gradient(to bottom, var(--bd-panel) calc(100% - 150px), var(--bd-panel-shade) 100%);
}

.separate-containers .inside-article,
.separate-containers .comments-area,
.separate-containers .page-header,
.separate-containers .paging-navigation,
.one-container .site-content,
.inside-page-header {
	background: transparent;
}

.one-container .site-content { padding: 28px 25px 50px; }
.separate-containers .inside-article { padding: 28px 25px; }

/* ==========================================================================
   Posts & pages
   ========================================================================== */
.entry-header .entry-title { margin-bottom: 6px; }

/* Single post: big light "Posted: date | categories" line under the title */
.single .entry-header .entry-meta {
	font-family: var(--bd-font-thin);
	font-weight: 300;
	font-size: 18px;
	line-height: 1.4;
	color: #111111;
	margin: 4px 0 22px;
}
.single .entry-header .entry-meta a { color: inherit; }

/* Blog / archive listings: small caps metadata between hairlines */
.blog .entry-header .entry-meta,
.archive .entry-header .entry-meta,
.search .entry-header .entry-meta {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #555555;
	padding: 6px 0;
	margin: 6px 0 16px;
	border-top: 1px solid var(--bd-rule);
	border-bottom: 1px solid var(--bd-rule);
}

.entry-meta .gp-icon { display: none; }
.entry-header .posted-on::before { content: "Posted: "; }
.entry-header .cat-links::before { content: "|"; margin: 0 0.4em; }
.entry-header .cat-links { display: inline; }

.blog .entry-title, .archive .entry-title, .search .entry-title { font-size: 28px; }
.blog .entry-title a, .archive .entry-title a, .search .entry-title a { color: var(--bd-navy); }
.blog .entry-title a:hover, .archive .entry-title a:hover { color: var(--bd-blue); }

.blog article, .archive article { margin-bottom: 36px; }

.read-more-container a, a.read-more {
	font-weight: bold;
	color: var(--bd-navy);
	text-decoration: none;
}

/* Footer meta (comments link, prev/next) */
footer.entry-meta { font-size: 12px; border-top: 1px solid var(--bd-rule); padding-top: 14px; margin-top: 30px; }
footer.entry-meta a { color: var(--bd-link); }

/* Page title on pages */
.page .entry-header .entry-title { margin-bottom: 18px; }

/* Legacy layout classes still present in the imported About/Contact content */
.one_half { width: 48%; float: left; margin-right: 4%; }
.one_half.last { margin-right: 0; }
.entry-content::after { content: ""; display: table; clear: both; }

.image_frame { display: block; padding: 5px; background: #ffffff; border: 1px solid var(--bd-rule); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); margin-bottom: 15px; }
.image_frame.alignright { margin-left: 25px; }
.image_frame.alignleft { margin-right: 25px; }
.image_holder, .image_frame img { display: block; max-width: 100%; height: auto; }

.contactInfo p { margin-bottom: 4px; }
.contactName { font-weight: bold; }

/* ==========================================================================
   Home page
   ========================================================================== */
.bd-hero { margin: -3px 0 34px; }
.bd-hero img { display: block; width: 100%; height: auto; }

.home .entry-content > .wp-block-columns { gap: 50px; }

.wp-block-latest-posts.wp-block-latest-posts__list { margin-left: 0; }
.wp-block-latest-posts.wp-block-latest-posts__list li {
	margin: 0;
	padding: 20px 0;
	border-bottom: 1px solid var(--bd-rule);
}
.wp-block-latest-posts.wp-block-latest-posts__list li:first-child { padding-top: 6px; }

.entry-content .wp-block-latest-posts__post-title {
	font-family: var(--bd-font-thin);
	font-weight: 300;
	font-size: 26px;
	line-height: 1.2;
	color: var(--bd-navy);
	text-decoration: none;
}
.entry-content .wp-block-latest-posts__post-title:hover { color: var(--bd-blue); }

.wp-block-latest-posts__post-date {
	display: block;
	margin: 6px 0 10px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #555555;
}
.wp-block-latest-posts__post-excerpt { margin: 0; }

.bd-home-cats h3 { text-align: center; font-size: 22px; margin-bottom: 30px; }
.bd-home-cats h2 { font-size: 30px; margin-bottom: 14px; }
.bd-home-cats h4 { margin: 18px 0 2px; }
.bd-home-cats p { margin-bottom: 0; color: #444444; }

/* ==========================================================================
   Sidebar: shadowed box with thin titles and arrow lists
   ========================================================================== */
.sidebar .inside-right-sidebar {
	background: #fbfbfb;
	padding: 28px 20px 24px;
	margin-top: 40px;
	box-shadow: -10px 10px 18px -6px rgba(0, 0, 0, 0.2);
}

.sidebar .widget,
.one-container .sidebar .widget,
.separate-containers .sidebar .widget {
	background: transparent;
	padding: 0;
	margin-bottom: 34px;
	font-size: 12px;
}
.sidebar .widget:last-child { margin-bottom: 0; }

.sidebar .widget-title {
	font-size: 26px;
	color: var(--bd-heading);
	padding-bottom: 12px;
	margin-bottom: 4px;
	border-bottom: 1px solid var(--bd-rule);
}

.sidebar .widget ul { margin: 0; }
.sidebar .widget ul li {
	list-style: none;
	margin: 0;
	padding: 5px 0;
	border-bottom: 1px solid var(--bd-rule);
}
.sidebar .widget ul li a {
	display: block;
	padding-left: 15px;
	color: #333333;
	background: url("assets/arrow.png") no-repeat 0 0.45em;
}
.sidebar .widget ul li a:hover { color: var(--bd-blue); }

.sidebar .bd-popular li { padding: 12px 0; }
.sidebar .bd-popular li a { background: none; padding-left: 0; }
.sidebar .bd-popular .bd-date { display: block; font-size: 11px; color: #777777; margin-top: 2px; }

/* Hide GeneratePress's default Search/Archives fallback if it still prints */
.bd-fallback ~ .widget_search,
.bd-fallback ~ #archives { display: none; }

/* Social icons (sidebar + footer) */
.bd-social { display: flex; gap: 8px; margin: 14px 0 0; padding: 0; }
.bd-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 4px;
	background: #3a5a8c;
	color: #ffffff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}
.bd-social a.bd-linkedin { background: #3b7fb6; }
.bd-social a:hover { filter: brightness(1.15); color: #ffffff; }
.bd-social svg { width: 16px; height: 16px; fill: currentColor; }

/* ==========================================================================
   Footer: navy bar with sheen, copyright right-aligned
   ========================================================================== */
.site-footer .site-info {
	background: var(--bd-navy) url("assets/footer-sheen.png") no-repeat center top;
	color: #ffffff;
}

.site-footer .inside-site-info {
	max-width: 1000px;
	padding: 52px 0 26px;
	justify-content: flex-end;
}

.site-footer .copyright-bar {
	display: flex;
	align-items: center;
	gap: 16px;
	text-align: right;
	font-family: var(--bd-font-thin);
	font-size: 14px;
	color: #ffffff;
}
.site-footer .copyright-bar a { color: #a9bccd; }
.site-footer .copyright-bar a:hover { color: #ffffff; }
.site-footer .bd-social { margin: 0; }

.generate-back-to-top,
.generate-back-to-top:visited { background: var(--bd-navy); color: #ffffff; }
.generate-back-to-top:hover { background: var(--bd-blue); color: #ffffff; }

/* ==========================================================================
   Comments
   ========================================================================== */
.comments-area { font-size: 13px; }
.comments-title, .comment-reply-title { font-size: 24px; }
.comment-author cite { font-style: normal; font-weight: bold; }

/* Form fields (comments, any contact form plugin) */
input[type="text"], input[type="email"], input[type="url"], input[type="tel"], textarea {
	background: linear-gradient(#ffffff, #f7f7f7);
	border: 1px solid #dddddd;
	border-radius: 5px;
	color: #333333;
}
button, input[type="submit"], .wp-block-button__link {
	background: var(--bd-navy);
	color: #ffffff;
	border-radius: 4px;
	font-family: var(--bd-font-thin);
	font-weight: 600;
	font-size: 16px;
}
button:hover, input[type="submit"]:hover, .wp-block-button__link:hover { background: var(--bd-blue); color: #ffffff; }

/* ==========================================================================
   Mobile
   ========================================================================== */
@media (max-width: 1040px) {
	.site-header .inside-header,
	.site-footer .inside-site-info { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 768px) {
	:root { --bd-overlap: 0px; }

	.site-header { padding-bottom: 0; }
	.site-header .inside-header { padding: 14px 16px; align-items: center; }
	.site-header .main-navigation { margin-top: 0; }

	.site-header .menu-toggle,
	.site-header .menu-toggle:hover,
	.site-header .menu-toggle:focus { color: #ffffff; background: transparent; }

	.site-header .main-navigation.toggled .main-nav > ul,
	.site-header .main-navigation.toggled .main-nav ul ul {
		background: var(--bd-navy-deep);
		border-radius: 0;
		box-shadow: none;
		width: auto;
	}
	.site-header .main-navigation.toggled .main-nav > ul > li > a { line-height: 44px; border-radius: 0; margin: 0; }

	.site.grid-container { margin: 0; box-shadow: none; }
	.one-container .site-content,
	.separate-containers .inside-article { padding: 24px 16px 36px; }

	h1, .entry-title { font-size: 30px; }
	.single .entry-header .entry-meta { font-size: 16px; }

	.one_half { float: none; width: auto; margin-right: 0; }
	.image_frame.alignright, .image_frame.alignleft { float: none; margin: 0 auto 15px; display: table; }

	.sidebar .inside-right-sidebar { margin-top: 10px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12); }

	.site-footer .inside-site-info { padding: 30px 16px 24px; justify-content: center; }
	.site-footer .copyright-bar { flex-direction: column; text-align: center; gap: 12px; }
}
