/*
Theme Name:   HomeRenoLab Child
Theme URI:    https://homerenolab.com
Description:  Child theme for GeneratePress – HomeRenoLab
Author:       HomeRenoLab
Template:     generatepress
Version:      1.1.2
Text Domain:  homerenolab-child
*/

:root {
	--hrl-primary: #1f6f5c;
	--hrl-primary-dark: #154d40;
	--hrl-accent: #f2a541;
	--hrl-text: #1e2428;
	--hrl-muted: #5b6770;
	--hrl-border: #dfe5e8;
	--hrl-bg-soft: #f5f8f7;
	--hrl-radius: 10px;
}

body {
	color: var(--hrl-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.65;
}

a { color: var(--hrl-primary); }
a:hover, a:focus { color: var(--hrl-primary-dark); }

h1, h2, h3, h4 { color: var(--hrl-text); line-height: 1.3; font-weight: 700; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; margin-top: 1.8em; }
h3 { font-size: 1.2rem; }

.site-header { border-bottom: 1px solid var(--hrl-border); }
.main-title a { color: var(--hrl-primary); font-weight: 800; letter-spacing: -0.02em; }

button, .button, input[type="submit"] {
	background: var(--hrl-primary);
	border-radius: 6px;
}
button:hover, .button:hover, input[type="submit"]:hover { background: var(--hrl-primary-dark); }

/* Tables (cost breakdowns in articles) */
.entry-content table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.entry-content th, .entry-content td { border: 1px solid var(--hrl-border); padding: 8px 10px; text-align: left; }
.entry-content th { background: var(--hrl-bg-soft); }

/* Ad slots – reserve space to avoid layout shift (CLS) */
.hrl-ad { margin: 24px 0; min-height: 280px; text-align: center; }
.hrl-ad:empty { display: none; }

/* Key takeaway / note box */
.hrl-note {
	background: var(--hrl-bg-soft);
	border-left: 4px solid var(--hrl-accent);
	border-radius: 6px;
	padding: 12px 16px;
	margin: 20px 0;
}

@media (max-width: 768px) {
	body { font-size: 16px; }
	h1 { font-size: 1.6rem; }
}

/* Home page calculator cards */
.hrl-cards { list-style: none; margin: 0 0 1.5em; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.hrl-cards li { border: 1px solid var(--hrl-border); border-radius: var(--hrl-radius); padding: 14px 16px; margin: 0; font-size: .95rem; background: #fff; }
.hrl-cards li a { text-decoration: none; }

/* ===== v1.1 visual refresh ===== */
body { background: #f4f7f6; }
.site-header { background: #fff; box-shadow: 0 1px 0 var(--hrl-border); border-bottom: 0; }
.main-title a { display: inline-flex; align-items: center; gap: 10px; }
.main-title a::before { content: ""; width: 38px; height: 38px; background: url(/wp-content/uploads/2026/11/homerenolab-logo-150x150.png) center / contain no-repeat; flex: none; }
.main-navigation .main-nav ul li a { font-weight: 600; }
.inside-article { border-radius: 14px; box-shadow: 0 2px 14px rgba(20, 60, 50, .05); }

/* Page title band on calculator pages */
.page:not(.home) .entry-header { background: linear-gradient(135deg, #1f6f5c 0%, #2e9478 100%); margin: -40px -40px 28px; padding: 34px 40px 28px; border-radius: 14px 14px 0 0; }
.page:not(.home) .entry-title { color: #fff; margin: 0; }
@media (max-width: 768px) { .page:not(.home) .entry-header { margin: -30px -30px 24px; padding: 26px 30px 22px; } }

/* Home */
.home .entry-header { display: none; }
.hrl-hero { background: linear-gradient(135deg, #1f6f5c 0%, #2e9478 60%, #3fae8c 100%); color: #fff; border-radius: 14px; padding: 44px 36px; margin: -10px 0 32px; position: relative; overflow: hidden; }
.hrl-hero::after { content: "📐"; position: absolute; right: 28px; bottom: -14px; font-size: 140px; opacity: .14; }
.hrl-hero h1 { color: #fff; font-size: 2.3rem; margin: 0 0 10px; }
.hrl-hero p { font-size: 1.1rem; max-width: 620px; margin: 0 0 18px; opacity: .95; }
.hrl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hrl-chips a { background: rgba(255,255,255,.18); color: #fff; padding: 6px 14px; border-radius: 999px; text-decoration: none; font-size: .9rem; font-weight: 600; }
.hrl-chips a:hover { background: rgba(255,255,255,.32); color: #fff; }
.hrl-section-title { display: flex; align-items: center; gap: 8px; font-size: 1.3rem; margin: 28px 0 14px; }
.hrl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.hrl-card { display: block; background: #fff; border: 1px solid var(--hrl-border); border-radius: 12px; padding: 18px; text-decoration: none; color: var(--hrl-text); transition: transform .15s, box-shadow .15s, border-color .15s; }
.hrl-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(20, 60, 50, .1); border-color: #9fd3c2; color: var(--hrl-text); }
.hrl-card .ico { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; font-size: 24px; background: #e8f4f0; border-radius: 10px; margin-bottom: 10px; }
.hrl-card strong { display: block; font-size: 1.05rem; color: var(--hrl-primary); margin-bottom: 4px; }
.hrl-card span.d { font-size: .9rem; color: var(--hrl-muted); line-height: 1.45; }
.hrl-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 10px; }
.hrl-why div { background: var(--hrl-bg-soft); border-radius: 12px; padding: 16px 18px; font-size: .95rem; }
.hrl-why b { display: block; margin-bottom: 4px; }
@media (max-width: 768px) { .hrl-hero { padding: 30px 22px; } .hrl-hero h1 { font-size: 1.7rem; } .hrl-hero::after { font-size: 90px; } }

/* Calculator box */
.hrl-calc__form { padding: 0 !important; overflow: hidden; border-radius: 14px !important; border-color: #cfe5dd !important; box-shadow: 0 6px 24px rgba(20, 60, 50, .08) !important; }
.hrl-calc__title { background: #e8f4f0; color: var(--hrl-primary-dark); padding: 14px 20px; margin: 0 0 14px !important; font-size: 1.1rem !important; }
.hrl-calc__title::before { content: "🧮 "; }
.hrl-calc__regions, .hrl-calc__grid { padding: 0 20px; }
.hrl-calc__result { margin: 18px 20px 20px !important; background: linear-gradient(135deg, #f0faf6, #e3f3ec) !important; border: 1px solid #cfe5dd; }
.hrl-calc__main { font-size: 2.1rem !important; }
.hrl-calc__field input:focus { outline: none; border-color: var(--hrl-primary); box-shadow: 0 0 0 3px rgba(31, 111, 92, .15); }
