/*
 Theme Name:   Outpost Catering Theme
 Theme URI:    https://outpostcatering.com
 Description:  Child theme of Divi 5 for The Outpost Catering
 Author:       Kirby Kalbaugh
 Author URI:   http://kalbaughenterprises.com
 Template:     Divi-5
 Version:      1.1.0
 Text Domain:  divi-outpost
*/

/*------------------------------------------------*/
/*-----------------[TOKENS]-----------------------*/
/*------------------------------------------------*/
/* Brand direction lives here; everything below reads these. */
:root {
	--op-ink: #1d2433;          /* body/headline text */
	--op-surface: #f6f3ef;      /* warm section background */
	--op-deep: #293357;         /* dark band background (current navy) */
	--op-on-deep: #f6f3ef;
	--op-on-deep-muted: #c9cbd6;
	--op-accent: #8a6829;       /* text-safe gold (5.2:1 on white) */
	--op-cta: #293357;          /* primary button */
	--op-cta-hover: #1c2440;
	--op-on-cta: #ffffff;
	--op-focus: #8a6829;
	--op-radius: 4px;
}

::selection { background: var(--op-accent); color: #fff; }
:focus-visible { outline: 2px solid var(--op-focus); outline-offset: 3px; }

/*------------------------------------------------*/
/*-----------------[NAV STYLES]-------------------*/
/*------------------------------------------------*/
/* Current page: Divi's stock #2ea3f2 is 2.7:1 on white. Use ink plus an underline marker. */
#top-menu li.current-menu-item > a,
#top-menu li.current_page_item > a {
	color: var(--op-ink) !important;
	text-decoration: underline;
	text-decoration-color: var(--op-accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

/* "Contact Us" reads as the primary action. */
#top-menu #menu-item-59 > a {
	background: var(--op-cta);
	color: var(--op-on-cta) !important;
	padding: 10px 16px !important;
	border-radius: var(--op-radius);
	text-decoration: none;
	transition: background-color .2s ease-out;
}
#top-menu #menu-item-59 > a:hover { background: var(--op-cta-hover); opacity: 1; }

/*------------------------------------------------*/
/*-----------------[HOMEPAGE]---------------------*/
/*------------------------------------------------*/
/* Spaced-caps kicker labels above each H2 were <h4>s, breaking heading order (h2 -> h4)
   and repeating "The Outpost Catering". The headings carry the sections on their own. */
.home .et_pb_text_0,
.home .et_pb_text_6,
.home .et_pb_text_8,
.home .et_pb_text_10 { display: none !important; }

/* Long lines (~135ch at desktop) -> readable measure. */
.et_pb_text_inner p { max-width: 72ch; }
.et_pb_text_align_center .et_pb_text_inner p { margin-inline: auto; }

/*------------------------------------------------*/
/*-----------------[EVENT STYLES]-----------------*/
/*------------------------------------------------*/
/* Weddings: #cfab79 heading (2.2:1) and #d89837 inline accents (2.5:1) fail contrast on white. */
.page-id-39 .et_pb_heading_0 .et_pb_heading_container :is(h1, h2, h3, h4, h5, h6) { color: var(--op-accent) !important; }
.page-id-39 span[style*="d89837"] { color: var(--op-accent) !important; }

/*------------------------------------------------*/
/*-----------------[Contact Form]-----------------*/
/*------------------------------------------------*/
/* Divi hides labels and leans on placeholders, which vanish once you type. Show them. */
.et_pb_contact_form .et_pb_contact_form_label {
	display: block !important;
	margin-bottom: 6px;
	font-weight: 600;
	color: var(--op-ink);
}
.et_pb_contact_form .input::placeholder { color: #5c5c5c; opacity: 1; } /* 5.9:1 on #eee */

/*------------------------------------------------*/
/*-----------------[CLOSING CTA]------------------*/
/*------------------------------------------------*/
.outpost-cta {
	background: var(--op-deep);
	color: var(--op-on-deep);
	padding: clamp(56px, 8vw, 104px) 24px;
	text-align: center;
}
.outpost-cta__inner { max-width: 640px; margin: 0 auto; }
.outpost-cta__title {
	color: var(--op-on-deep) !important;
	font-size: clamp(30px, 4vw, 44px);
	line-height: 1.1;
	padding: 0;
	margin: 0 0 16px;
	text-wrap: balance;
}
.outpost-cta__text {
	color: var(--op-on-deep-muted);
	font-size: 18px;
	line-height: 1.6;
	margin: 0 auto 32px;
	padding: 0;
	text-wrap: pretty;
}
.outpost-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.outpost-btn {
	display: inline-block;
	padding: 14px 24px;
	border-radius: var(--op-radius);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .2s ease-out, color .2s ease-out;
}
.outpost-btn--primary { background: var(--op-on-deep); color: var(--op-deep); }
.outpost-btn--primary:hover { background: #fff; }
.outpost-btn--ghost { color: var(--op-on-deep); box-shadow: inset 0 0 0 1px var(--op-on-deep-muted); }
.outpost-btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--op-on-deep); }
.outpost-cta :focus-visible { outline-color: var(--op-on-deep); }

/*------------------------------------------------*/
/*-----------------[MOBILE QUICK BAR]-------------*/
/*------------------------------------------------*/
.outpost-mobilebar { display: none; }
@media (max-width: 980px) {
	.outpost-mobilebar {
		display: grid;
		grid-template-columns: 1fr 2fr;
		position: fixed;
		inset: auto 0 0 0;
		z-index: 9999;
		background: var(--op-deep);
		padding: 8px max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
		gap: 8px;
		box-shadow: 0 -4px 16px rgba(0, 0, 0, .18);
	}
	.outpost-mobilebar a {
		display: flex; align-items: center; justify-content: center;
		min-height: 48px;
		border-radius: var(--op-radius);
		font-weight: 600; font-size: 16px; text-decoration: none;
	}
	.outpost-mobilebar__call { color: var(--op-on-deep); box-shadow: inset 0 0 0 1px var(--op-on-deep-muted); }
	.outpost-mobilebar__quote { background: var(--op-on-deep); color: var(--op-deep); }
	body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}

/*------------------------------------------------*/
/*-----------------[FOOTER]-----------------------*/
/*------------------------------------------------*/
#footer-info { color: #a3a3a3; } /* was #666 on #171717 (3.1:1) */

/*------------------------------------------------*/
/*-----------------[TYPOGRAPHY]-------------------*/
/*------------------------------------------------*/
/* Direction B (navy & gold, refined): two families instead of four (was Alegreya, Jost, Inter, Open Sans). */
body { font-family: 'Jost', sans-serif !important; }
:is(h1, h2, h3, h4, h5, h6, .et_pb_module_header) { font-family: 'Alegreya', serif !important; font-weight: 700 !important; }
:is(h1, h2, h3, .et_pb_module_header) { color: var(--op-deep); }
:is(p, li, .et_pb_text_inner, #top-menu a, input, textarea, button) { font-family: 'Jost', sans-serif !important; }

/* Divi buttons share the theme button style. */
.et_pb_button {
	background: var(--op-cta) !important; color: var(--op-on-cta) !important; border: 0 !important;
	border-radius: var(--op-radius) !important; padding: 14px 24px !important; font-size: 16px !important;
}
.et_pb_button:hover { background: var(--op-cta-hover) !important; }
.et_pb_button::after { display: none !important; }

.et_contact_bottom_container { align-items: center; gap: 16px; flex-wrap: wrap; }
.outpost-reassure { margin: 0; padding: 0; color: #4a4a4a; font-size: 15px; }
