/*
Theme Name: Red Rhino Electrical Estimating Software
Theme URI: https://hardhatis.com/
Author: Hard Hat Industry Solutions
Author URI: https://hardhatis.com/
Description: Product-led WordPress theme for Red Rhino Electrical Estimating Software. Independent of SeedProd.
Version: 1.0.17
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: red-rhino
License: Proprietary
*/

/* WordPress menu markup while preserving the source Site navigation layout. */
.rr-menu {
	display: contents;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rr-menu li { margin: 0; }

.mobile-nav .rr-menu,
.footer-main .rr-menu {
	display: grid;
	gap: inherit;
}

.mobile-nav nav .rr-menu { gap: 0; }

/* WordPress archive, search, page, and post content. */
.content-shell {
	width: min(1180px, calc(100% - 40px));
	margin: 0 auto;
	padding: 88px 0 120px;
}

.content-shell-narrow { width: min(820px, calc(100% - 40px)); }

.content-hero {
	padding: 90px max(6vw, calc((100vw - 1180px) / 2));
	background: var(--ink);
	color: var(--white);
}

.content-hero .eyebrow { color: #ff7477; }
.content-hero h1 {
	max-width: 980px;
	margin: 0;
	font-size: clamp(46px, 6vw, 78px);
	line-height: .97;
	letter-spacing: -.045em;
}
.content-hero p { max-width: 760px; margin: 24px 0 0; color: #c2c8cc; }

.post-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}

.post-card {
	display: flex;
	flex-direction: column;
	min-height: 330px;
	padding: 32px;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	background: var(--white);
	box-shadow: 0 12px 40px rgba(17, 19, 21, .045);
}

.post-card .entry-meta,
.single-entry .entry-meta { color: var(--steel); font-size: 13px; }
.post-card h2, .post-card h3 { margin: 15px 0 16px; font-size: 29px; line-height: 1.08; letter-spacing: -.025em; }
.post-card p { color: #505a60; }
.post-card .post-link { margin-top: auto; color: var(--red-dark); font-weight: 800; }

.single-entry h1 { margin: 0 0 20px; font-size: clamp(44px, 6vw, 72px); line-height: 1; letter-spacing: -.045em; }
.single-entry .entry-content { margin-top: 48px; }
.entry-content > * { max-width: 100%; }
.entry-content a { color: var(--red-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content h2 { margin: 2.1em 0 .65em; font-size: clamp(31px, 4vw, 45px); line-height: 1.08; }
.entry-content h3 { margin: 1.8em 0 .55em; font-size: 28px; line-height: 1.15; }
.entry-content blockquote { margin: 36px 0; padding: 24px 28px; border-left: 4px solid var(--red); background: var(--paper); }
.entry-content img { height: auto; border-radius: var(--radius-sm); }
.entry-content .table-scroll { max-width: 100%; margin: 30px 0; overflow-x: auto; overscroll-behavior-inline: contain; }
.entry-content .table-scroll table { width: max(100%, 680px); margin: 0; border-collapse: collapse; }
.entry-content .table-scroll caption { padding: 0 0 12px; color: var(--steel); font-weight: 700; text-align: left; }
.entry-content .table-scroll th,
.entry-content .table-scroll td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content .table-scroll th { background: var(--paper); }

.navigation.pagination { margin-top: 50px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: grid; min-width: 44px; min-height: 44px; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); }
.page-numbers.current { border-color: var(--red-dark); background: var(--red-dark); color: var(--white); }

.search-form { display: flex; gap: 10px; max-width: 680px; margin-top: 34px; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 5px; }
.search-submit { min-height: 52px; padding: 0 24px; border: 0; border-radius: 5px; background: var(--red-dark); color: var(--white); font-weight: 800; cursor: pointer; }

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.screen-reader-text:focus {
	z-index: 100000;
	top: 5px;
	left: 5px;
	width: auto;
	height: auto;
	clip: auto;
	padding: 12px 16px;
	margin: 0;
	background: var(--white);
	color: var(--ink);
	font-weight: 800;
}

.contact-form-slot { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.contact-form-slot-empty { border-left: 4px solid var(--blueprint); background: #edf3f4; }
.contact-form-slot p { margin: 0; }
.contact-form-slot p + p { margin-top: 8px; }

.screen-caption { margin: 13px 0 0; color: var(--steel); font-size: 13px; }
.screen-zoom { display: block; width: 100%; cursor: zoom-in; }
.screen-zoom img { display: block; width: 100%; height: auto; }

.button-red:focus-visible,
.button-dark:focus-visible,
.mobile-trial-bar:focus-visible { box-shadow: 0 0 0 6px #6f0d14; }

.hero-screen-stack {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	align-items: start;
	align-content: start;
	gap: 12px;
	padding: 14px;
}

.hero-screen-panel {
	align-self: start;
	margin: 0;
	overflow: hidden;
	border: 1px solid #c8ccce;
	border-radius: 6px;
	background: #fff;
}

.hero-screen-panel figcaption {
	display: flex;
	align-items: center;
	gap: 9px;
	min-height: 34px;
	padding: 7px 10px;
	border-bottom: 1px solid #d6dadd;
	background: #f5f5f2;
	color: #3f484d;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .055em;
	line-height: 1.2;
	text-transform: uppercase;
}

.hero-screen-panel figcaption span {
	display: inline-grid;
	width: 24px;
	height: 20px;
	place-items: center;
	border-radius: 3px;
	background: var(--red-dark);
	color: #fff;
	font-size: 10px;
}

.hero-screen-panel-setup { grid-column: span 5; }
.hero-screen-panel-sections { grid-column: span 7; }
.hero-screen-panel-takeoff { grid-column: 1 / -1; }

.estimate-detail-grid {
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
	align-items: start;
	gap: 12px;
}

.estimate-detail-grid-hero {
	grid-template-columns: 1fr;
	gap: 6px;
	padding: 6px;
}

.estimate-detail-card {
	min-width: 0;
	overflow: hidden;
	border: 1px solid #c8ccce;
	border-radius: 5px;
	background: #fff;
}

.estimate-detail-label {
	margin: 0;
	padding: 7px 9px;
	border-bottom: 1px solid #d6dadd;
	background: #f5f5f2;
	color: #3f484d;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .055em;
	line-height: 1.2;
	text-transform: uppercase;
}

.estimate-detail-card img {
	display: block;
	width: 100%;
	height: auto;
}

.estimate-detail-grid-hero .estimate-detail-label {
	padding: 5px 6px;
	font-size: 8px;
}

.screen-body-estimate { padding: 12px; }

/* A compact, keyboard-operable product tour with one shared action group. */
.tour-tablist {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
}

.tour-tab {
	min-width: 0;
	min-height: 54px;
	flex: 1 1 20%;
	padding: 10px 16px;
	border: 0;
	border-right: 1px solid #42474b;
	border-radius: 0;
	background: transparent;
	color: #9ba2a7;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	scroll-snap-align: start;
	transition: background 160ms ease, color 160ms ease;
}

.tour-tab:last-child { border-right: 0; }
.tour-tab[aria-selected="true"] { background: var(--red-dark); color: var(--white); }
.tour-tab:focus-visible {
	position: relative;
	z-index: 2;
	outline: 3px solid #fff;
	outline-offset: -4px;
	box-shadow: inset 0 0 0 6px #6f0d14;
}

.tour-panel {
	display: grid;
	grid-template-columns: 1fr;
	align-items: start;
	gap: 28px;
	padding: 34px;
}

.tour-panel[hidden] { display: none; }

.tour-intro {
	display: grid;
	grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr);
	align-items: end;
	gap: clamp(28px, 5vw, 68px);
}

.tour-copy h3 {
	max-width: 590px;
	font-size: clamp(30px, 3.2vw, 44px);
	line-height: 1.03;
	text-wrap: balance;
}

.tour-description {
	max-width: 650px;
	margin: 0;
	color: #c3c9cc;
	font-size: 17px;
	line-height: 1.6;
}

.tour-panel > .screen-frame {
	width: 100%;
	box-shadow: 0 22px 58px rgba(0, 0, 0, .28);
}

.tour-shared-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	max-width: 1180px;
	margin: 28px auto 0;
}

.trust-card h3 { margin: 0 0 22px; font-size: 34px; line-height: 1.08; }
.trust-card ul { display: grid; gap: 12px; margin: 0 0 28px; padding-left: 20px; color: #c1c8cc; }
.trust-card a { color: #ff7b7e; font-weight: 700; }

.contact-path-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
	max-width: 980px;
	margin: 50px auto 22px;
}

.contact-path-card {
	display: grid;
	gap: 6px;
	padding: 30px;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	background: var(--white);
	box-shadow: 0 12px 36px rgba(17, 19, 21, .06);
}
.contact-path-card span { color: var(--red-dark); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.contact-path-card strong { overflow-wrap: anywhere; font-size: 24px; line-height: 1.15; }
.contact-path-card small { color: var(--steel); }
.contact-path-card a { color: var(--red-dark); font-weight: 700; overflow-wrap: anywhere; }
.contact-band .contact-form-slot { max-width: 980px; margin: 0 auto; }
.learning-posts { background: var(--paper); }

@media (max-width: 960px) {
	.post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.contact-path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hero-screen-stack { grid-template-columns: 1fr; }
	.hero-screen-panel-setup,
	.hero-screen-panel-sections,
	.hero-screen-panel-takeoff { grid-column: 1; }
	.estimate-detail-grid-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tour-intro { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 660px) {
	.post-grid { grid-template-columns: 1fr; }
	.content-shell { padding-top: 65px; }
	.search-form { display: grid; }
	.contact-path-grid { grid-template-columns: 1fr; }
	.hero-screen-stack { padding: 7px; gap: 7px; }
	.hero-screen-panel figcaption { min-height: 31px; padding: 6px 8px; font-size: 10px; }
	.estimate-detail-grid,
	.estimate-detail-grid-hero { grid-template-columns: 1fr; gap: 7px; }
	.estimate-detail-label,
	.estimate-detail-grid-hero .estimate-detail-label { padding: 6px 7px; font-size: 9px; }
	.tour-tab { flex: 0 0 42%; min-height: 50px; padding: 9px 14px; }
	.tour-panel { gap: 20px; padding: 24px 14px 16px; }
	.tour-copy h3 { font-size: clamp(28px, 9vw, 38px); }
	.tour-description { font-size: 16px; }
	.tour-panel .screen-topbar { font-size: 10px; }
	.screen-body-estimate { padding: 7px; }
	.tour-shared-actions { display: grid; }
	.tour-shared-actions .button { width: 100%; }
}
