/*
Theme Name: OFS GeneratePress Child
Theme URI: https://orlandofuneralservices.com/
Description: Child theme of GeneratePress (free) for OrlandoFuneralServices.com. Holds visual design only: colors, typography, header, footer, mobile call bar, 404 and print styles. Site functionality lives in the "OFS Core" plugin.
Author: Orlando Funeral Services Editorial Team
Template: generatepress
Version: 1.0.0
Text Domain: ofs-generatepress
*/

/* ==========================================================================
   1. Design tokens. Change colors here only.
   ========================================================================== */
:root {
	--ofs-ivory: #fbf8f3;        /* page background */
	--ofs-paper: #ffffff;        /* cards, content surface */
	--ofs-charcoal: #2b2f33;     /* body text (13.9:1 on ivory) */
	--ofs-muted: #565d66;        /* secondary text (6.5:1 on ivory) */
	--ofs-blue: #34546e;         /* primary actions, links (7.6:1 on white) */
	--ofs-blue-dark: #253f55;
	--ofs-blue-soft: #edf2f6;
	--ofs-bronze: #8c6d3f;       /* accent lines, labels (4.9:1 on white) */
	--ofs-bronze-soft: #f5efe4;
	--ofs-line: #e3dccf;
	--ofs-focus: #1a73e8;
	--ofs-radius: 10px;
	--ofs-shadow: 0 1px 2px rgba(43, 47, 51, .06), 0 4px 16px rgba(43, 47, 51, .06);
	--ofs-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	--ofs-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================================
   2. Base typography
   ========================================================================== */
body {
	background: var(--ofs-ivory);
	color: var(--ofs-charcoal);
	font-family: var(--ofs-sans);
	font-size: 18px;
	line-height: 1.7;
}
h1, h2, h3, h4, .ofs-cta__heading, .ofs-signup__heading, .ofs-featured__heading {
	font-family: var(--ofs-serif);
	color: var(--ofs-charcoal);
	font-weight: 600;
	line-height: 1.25;
}
h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin-bottom: .6em; }
h2 { font-size: clamp(1.45rem, 3.2vw, 1.9rem); margin: 1.6em 0 .6em; }
h3 { font-size: 1.3rem; margin: 1.4em 0 .5em; }
h4 { font-size: 1.1rem; margin: 1.2em 0 .4em; }
p, ul, ol, dl, table { margin-bottom: 1.2em; }
a { color: var(--ofs-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ofs-blue-dark); }
.entry-content a:not(.ofs-btn):not(.ofs-card__link) { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--ofs-focus); outline-offset: 2px; }
.entry-content ul, .entry-content ol { margin-left: 1.3em; }
.entry-content li { margin-bottom: .35em; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { border: 1px solid var(--ofs-line); padding: .55em .7em; text-align: left; vertical-align: top; }
thead th { background: var(--ofs-blue-soft); }
.wp-block-table { overflow-x: auto; }
blockquote { border-left: 4px solid var(--ofs-bronze); background: var(--ofs-bronze-soft); padding: 1em 1.2em; margin: 1.5em 0; font-style: normal; }

/* ==========================================================================
   3. Layout surfaces (GeneratePress)
   ========================================================================== */
.site-header { background: var(--ofs-paper); border-bottom: 1px solid var(--ofs-line); }
.inside-header { padding-top: 14px; padding-bottom: 14px; }
.separate-containers .inside-article,
.one-container .site-content,
.separate-containers .comments-area,
.separate-containers .page-header,
.separate-containers .paging-navigation { background: var(--ofs-paper); border-radius: var(--ofs-radius); }
.separate-containers .inside-article { padding: clamp(20px, 4vw, 48px); }
.site-content .content-area { width: 100%; }
.single .entry-content, .page .entry-content { max-width: 760px; margin-left: auto; margin-right: auto; }
.single .entry-header, .page .entry-header { max-width: 760px; margin: 0 auto 1rem; }
.ofs-wide .entry-content, .ofs-wide .entry-header { max-width: none; }
.entry-meta { display: none; } /* Byline is rendered by OFS Core. */

/* Site title with a simple mark (text, not an image, for accessibility). */
.main-title { font-family: var(--ofs-serif); font-size: 1.35rem; font-weight: 600; line-height: 1.2; }
.main-title a { color: var(--ofs-charcoal); text-decoration: none; display: inline-flex; align-items: center; gap: .55rem; }
.main-title a::before {
	content: ""; width: 30px; height: 30px; flex: none; border-radius: 50%;
	border: 5px solid var(--ofs-bronze); border-right-color: transparent; transform: rotate(-35deg);
}
.site-description { display: none; }

/* Navigation */
.main-navigation, .main-navigation ul ul { background: var(--ofs-paper); }
.main-navigation .main-nav ul li a { color: var(--ofs-charcoal); font-size: 15.5px; padding-left: 11px; padding-right: 11px; line-height: 54px; }
.main-navigation .main-nav ul li.menu-item-has-children > a { padding-right: 0; }
.main-navigation .main-nav ul li.menu-item-has-children .dropdown-menu-toggle { padding-left: 4px; padding-right: 11px; }
@media (min-width: 1025px) { .nav-below-header .main-navigation .inside-navigation { justify-content: space-between; flex-wrap: nowrap; } .main-navigation .main-nav ul li a { padding-left: 8px; padding-right: 8px; font-size: 15px; } .main-navigation .main-nav ul li.menu-item-has-children .dropdown-menu-toggle { padding-right: 8px; } }
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current-menu-ancestor > a { color: var(--ofs-blue); background: transparent; }
.main-navigation ul ul { box-shadow: var(--ofs-shadow); border: 1px solid var(--ofs-line); border-radius: 0 0 8px 8px; width: 260px; }
.main-navigation .main-nav ul ul li a { line-height: 1.4; padding: 11px 16px; font-size: 15px; }
.main-navigation .menu-toggle, .main-navigation .menu-bar-item > a, .main-navigation .menu-bar-items { color: var(--ofs-charcoal); background: transparent; font-size: 16px; }
.main-navigation .menu-toggle { min-height: 48px; }
.main-navigation .menu-toggle:hover, .main-navigation .menu-toggle:focus { color: var(--ofs-blue); background: var(--ofs-blue-soft); }
.nav-below-header .main-navigation { border-top: 1px solid var(--ofs-line); }
.nav-below-header .main-navigation .inside-navigation { max-width: 1200px; }
.main-navigation .main-nav ul li[class*="current-menu-"] > a { font-weight: 600; }
.main-navigation.toggled .main-nav > ul { background: var(--ofs-paper); }
@media (max-width: 768px) {
	.main-navigation .main-nav ul li a { line-height: 1.4; padding-top: 14px; padding-bottom: 14px; }
	.main-navigation .main-nav ul ul { width: 100%; box-shadow: none; border: 0; }
}

/* Top utility bar (immediate-need help) */
.ofs-topbar { background: var(--ofs-blue-dark); color: #fff; font-size: 15px; }
.ofs-topbar__inner { max-width: 1200px; margin: 0 auto; padding: 7px 20px; display: flex; flex-wrap: wrap; gap: .3rem 1rem; justify-content: space-between; align-items: center; }
.ofs-topbar a { color: #fff; font-weight: 600; }
.ofs-topbar .ofs-sponsored-note { color: #dfe6ec; font-size: 13px; }
@media (max-width: 768px) {
	.ofs-topbar__inner { justify-content: center; padding: 6px 16px; }
	.ofs-topbar__inner > span:last-child { display: none; } /* phone is in the mobile call bar */
}

/* ==========================================================================
   4. Homepage
   ========================================================================== */
.home .inside-article { padding: 0; background: transparent; }
.home .entry-header { display: none; }
.home .entry-content { max-width: none; }
.ofs-home-section { background: var(--ofs-paper); border-radius: var(--ofs-radius); padding: clamp(22px, 4vw, 44px); margin: 0 0 22px; }
.ofs-home-section > :first-child, .ofs-home-section > p:empty + * { margin-top: 0 !important; }
.ofs-home-section p:empty, .entry-content > p:empty { display: none; }
.ofs-home-section.is-layout-constrained > * { max-width: none; }
.ofs-hero { background: linear-gradient(160deg, #f4efe6 0%, #eef2f6 100%); border-radius: var(--ofs-radius); padding: clamp(28px, 6vw, 72px) clamp(20px, 5vw, 56px); margin-bottom: 22px; }
.ofs-hero h1 { margin: 0 0 .4em; max-width: 18em; }
.ofs-hero p { font-size: 1.15rem; max-width: 36em; color: var(--ofs-muted); }
.ofs-hero .ofs-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }
.ofs-hero .ofs-btn { font-size: 1.05rem; padding: 14px 24px; }
.ofs-hero__help { font-size: .95rem !important; margin-top: 1rem; }
@media (max-width: 560px) { .ofs-hero .ofs-hero__actions .ofs-btn { width: 100%; } }

/* ==========================================================================
   5. Footer
   ========================================================================== */
.ofs-footer { background: #23272b; color: #d9dde1; font-size: 15.5px; line-height: 1.6; margin-top: 40px; }
.ofs-footer a { color: #fff; text-decoration: none; }
.ofs-footer a:hover { text-decoration: underline; }
.ofs-footer__inner { max-width: 1200px; margin: 0 auto; padding: 48px 20px 24px; display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.ofs-footer h2 { font-family: var(--ofs-sans); color: #fff; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
.ofs-footer ul { list-style: none; margin: 0; }
.ofs-footer li { margin: 0 0 8px; }
.ofs-footer__sponsor { border: 1px solid #454b52; border-radius: 8px; padding: 14px 16px; }
.ofs-footer__sponsor .ofs-sponsor-tag { color: #d8c29d; }
.ofs-footer__bottom { border-top: 1px solid #3a4046; max-width: 1200px; margin: 0 auto; padding: 18px 20px 28px; font-size: 14px; color: #b4bac1; }
.ofs-footer__bottom p { margin: 0 0 6px; }

/* Mobile call bar (only on pages where immediate help is relevant). */
.ofs-callbar { display: none; }
@media (max-width: 768px) {
	.ofs-callbar {
		display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
		background: var(--ofs-blue-dark); color: #fff; align-items: center; justify-content: space-between; gap: 10px;
		padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -2px 10px rgba(0,0,0,.15); font-size: 14px; line-height: 1.3;
	}
	.ofs-callbar a { background: #fff; color: var(--ofs-blue-dark); font-weight: 700; border-radius: 6px; padding: 10px 14px; text-decoration: none; white-space: nowrap; }
	.ofs-callbar small { display: block; opacity: .85; font-size: 12px; }
	body.ofs-has-callbar { padding-bottom: 68px; }
}

/* ==========================================================================
   6. Search, archives, 404
   ========================================================================== */
.page-header { padding: 24px 32px; }
.search-form { display: flex; gap: 8px; max-width: 520px; }
.search-form .search-field { flex: 1; min-height: 48px; border: 1px solid #b9b1a3; border-radius: 6px; padding: 0 12px; font-size: 17px; }
.search-form .search-submit { min-height: 48px; }
.ofs-404-links { columns: 2 220px; }
.archive .inside-article .entry-summary p { margin-bottom: .5em; }
.post-image img { border-radius: 8px; }

/* Forms (Contact Form 7) */
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=url], textarea, select {
	border: 1px solid #b9b1a3; border-radius: 6px; padding: 10px 12px; font-size: 17px; background: #fff; color: var(--ofs-charcoal); max-width: 100%;
}
button, input[type=submit], .button { background: var(--ofs-blue); color: #fff; border-radius: 6px; padding: 12px 20px; font-size: 17px; }
button:hover, input[type=submit]:hover { background: var(--ofs-blue-dark); color: #fff; }
.wpcf7 label { display: block; font-weight: 600; margin-bottom: 1rem; }
.wpcf7 input:not([type=submit]):not([type=checkbox]), .wpcf7 textarea { width: 100%; font-weight: 400; margin-top: 4px; }

/* ==========================================================================
   7. Print (tools + articles)
   ========================================================================== */
@media print {
	.site-header, .ofs-topbar, .ofs-footer, .ofs-callbar, .main-navigation, .ofs-cta, .ofs-signup, .ofs-related, .comments-area, .ofs-affiliate-notice { display: none !important; }
	body { background: #fff; font-size: 12pt; }
	body.ofs-printing .entry-header, body.ofs-printing .ofs-byline { display: none !important; }
	body.ofs-printing .entry-content > *:not(.ofs-print-target):not(:has(.ofs-print-target)) { display: none !important; }
	body.ofs-printing .ofs-print-target > *:not(.ofs-tool__result):not(.ofs-table-wrap) { display: none !important; }
	body.ofs-printing .ofs-worksheet.ofs-print-target .ofs-table-wrap { display: block !important; }
	.ofs-tool__buttons, .ofs-help { display: none !important; }
	a { color: #000; text-decoration: none; }
}

/* reCAPTCHA v3 badge hidden; the contact form shows Google's required text notice instead. */
.grecaptcha-badge { visibility: hidden; }
