/*
Theme Name:   Hello Elementor Child – St. Croix Landmarks
Theme URI:    https://www.stcroixlandmarks.org/
Description:  Child theme of Hello Elementor for the St. Croix Landmarks Society site.
Author:       St. Croix Landmarks Society
Template:     hello-elementor
Version:      1.0.0
Text Domain:  hello-elementor-child
*/

/* Custom styles go below. */

/* ===== Base typography (replaces Vestige theme CSS) ===== */
body {
	font-family: "Roboto", Arial, Helvetica, sans-serif;
	font-size: 15px;
	line-height: 1.65;
	color: #454545;
	background: #fff;
}
h1, h2, h3, h4, h5, h6 {
	font-family: "Roboto Slab", Georgia, serif;
	font-weight: 400;
	color: #333;
	line-height: 1.3;
	margin: 0 0 .6em;
}
h1 { font-family: "Adamina", Georgia, serif; font-size: 2.1rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; }
a { color: #CE9642; text-decoration: none; }
a:hover, a:focus { color: #a8752c; text-decoration: none; }
/* Underline on hover only for links inside body copy – menus, buttons and cards use their own hover cues. */
.elementor-widget-text-editor a:hover, .elementor-widget-text-editor a:focus,
.elementor-widget-theme-post-content a:hover, .elementor-widget-theme-post-content a:focus { text-decoration: underline; }
.elementor-nav-menu a, .elementor-nav-menu a:hover, .elementor-nav-menu a:focus { text-decoration: none; }
.elementor-widget-text-editor ul,
.elementor-widget-text-editor ol { margin: 0 0 1.1em 1.4em; padding: 0; }
.elementor-widget-text-editor li { margin-bottom: .35em; }
.elementor-widget-text-editor img { max-width: 100%; height: auto; }
.elementor-widget-text-editor > :last-child,
.elementor-widget-text-editor .elementor-widget-container > :last-child { margin-bottom: 0; }
.alignleft  { float: left;  margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.elementor-widget-text-editor::after { content: ""; display: table; clear: both; }
table { width: 100%; border-collapse: collapse; margin-bottom: 1.2em; }
table td, table th { border: 1px solid #e5e5e5; padding: 8px 10px; vertical-align: top; }
p.author { color: #777; }

/* Legacy content buttons (Mailchimp signup, misc. content) */
.button, input[type=submit].button, a.btn, .btn-primary {
	display: inline-block;
	background: #CE9642;
	color: #fff;
	border: 0;
	border-radius: 0;
	padding: 10px 22px;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: .5px;
	cursor: pointer;
}
.button:hover, a.btn:hover { background: #a8752c; color: #fff; text-decoration: none; }
.accent-color { color: #CE9642; }
.lead { font-size: 1.15em; }

/* Mailchimp embedded form (Mailing List page) */
#mc_embed_signup .mc-field-group { margin-bottom: 12px; }
#mc_embed_signup input[type=email], #mc_embed_signup input[type=text] { width: 100%; max-width: 420px; padding: 8px 10px; border: 1px solid #ccc; }

/* Elementor buttons: brand look */
.elementor-button { border-radius: 0; text-transform: uppercase; letter-spacing: .5px; }

/* ===== Title banner + breadcrumbs (Theme Builder) ===== */
.scls-title-banner .elementor-heading-title { font-family: "Adamina", Georgia, serif; font-size: 2.4rem; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
@media (max-width: 767px) { .scls-title-banner .elementor-heading-title { font-size: 1.7rem; } }
.scls-breadcrumbs, .scls-breadcrumbs a { font-size: 13px; color: #888; }
.scls-breadcrumbs a:hover { color: #CE9642; }

/* ===== Sidebar boxes (were pojo-sidebars widgets) ===== */
.scls-sidebar-box .scls-sidebar-title .elementor-heading-title {
	font-family: "Adamina", Georgia, serif;
	font-size: 18px;
	line-height: 24px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #222;
	padding-bottom: 10px;
	border-bottom: 1px dashed #5eba94;
	margin: 0;
}
.scls-sidebar-box .widget-image-caption { font-size: 12px; font-style: italic; color: #666; }
.scls-sidebar-box ul { list-style: none; margin: 0; padding: 0; }
.scls-sidebar-box li { padding: 4px 0; font-size: 13px; }
.scls-side-menu .elementor-nav-menu--main .elementor-item { padding: 6px 0; font-size: 13px; color: #454545; }
.scls-side-menu .elementor-nav-menu--main .elementor-item:hover { color: #CE9642; }
.scls-side-menu .sub-menu { position: static !important; width: auto !important; box-shadow: none; background: transparent; margin-left: 12px !important; display: block !important; }

/* ===== Home: "Connect With Us" band + featured blocks (recreates the original Vestige look) ===== */
/* Full-width tan band with a charcoal tab slanted 30°, left-aligned to the content edge. */
.scls-skewed-band .scls-skewed-title { text-align: left; }
.scls-skewed-title .elementor-heading-title {
	display: inline-block;
	position: relative;
	margin: 0 0 0 16px;
	padding: 15px 40px;
	color: #fff;
	font-family: "Roboto", Arial, sans-serif;
	font-weight: 700;
	font-size: 18px;
	letter-spacing: .5px;
	text-transform: uppercase;
	line-height: 1.2;
	z-index: 0;
}
.scls-skewed-title .elementor-heading-title::before {
	content: "";
	position: absolute;
	inset: 0;
	background: #454545;
	transform: skewX(30deg);
	z-index: -1;
}

/* "History Comes Alive" column */
.scls-history-title .elementor-heading-title { margin: 0; }
.scls-history-col .elementor-widget-divider { line-height: 0; }
.scls-history-col .elementor-divider { padding: 0 !important; line-height: 0; }

/* Feature cards: image on top, title + text + link below; whole card clickable; lifts on hover. */
.scls-card-grid { align-items: stretch; }
.scls-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid transparent;
	border-radius: 4px;
	overflow: hidden;
	box-shadow: none;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.scls-card:hover, .scls-card:focus-within {
	transform: translateY(-4px);
	border-color: #e3d3ae;
	box-shadow: 0 4px 10px rgba(0,0,0,.06), 0 16px 36px rgba(0,0,0,.12);
}
.scls-card .elementor-widget-image { overflow: hidden; margin: 0; line-height: 0; }
.scls-card .elementor-widget-image a { display: block; }
.scls-card .elementor-widget-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 0;
	transition: transform .4s ease;
}
.scls-card:hover .elementor-widget-image img { transform: scale(1.06); }
.scls-card > .elementor-widget-heading { padding: 20px 22px 0; margin: 0; }
.scls-card .elementor-widget-heading .elementor-heading-title { margin: 0; font-family: "Roboto Slab", Georgia, serif; font-size: 20px; font-weight: 400; line-height: 1.3; }
.scls-card .elementor-widget-heading .elementor-heading-title a { color: #2f2f2f; transition: color .2s; }
.scls-card:hover .elementor-widget-heading .elementor-heading-title a { color: #CE9642; }
/* Stretch the title link over the whole card so any click opens the page. */
.scls-card > .elementor-widget-heading, .scls-card .elementor-widget-heading .elementor-widget-container, .scls-card .elementor-widget-heading .elementor-heading-title { position: static; }
.scls-card .elementor-widget-heading .elementor-heading-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.scls-card > .elementor-widget-text-editor { padding: 8px 22px 0; margin: 0; }
.scls-card p { font-size: 14.5px; line-height: 1.6; color: #555; margin: 0; }
.scls-card > .elementor-widget-button { margin-top: auto; padding: 16px 22px 22px; position: relative; z-index: 2; }
.scls-card .scls-basic-link .elementor-button-text::after { transition: transform .2s; }
.scls-card:hover .scls-basic-link .elementor-button-text::after { transform: translateX(4px); }

.scls-basic-link .elementor-button {
	background: none !important;
	border: 0;
	border-radius: 0;
	padding: 0;
	color: #CE9642;
	font-family: "Roboto", Arial, sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .3px;
	text-transform: uppercase;
	box-shadow: none;
}
.scls-basic-link .elementor-button:hover, .scls-basic-link .elementor-button:focus { color: #454545; background: none !important; }
.scls-basic-link .elementor-button-text::after { content: "\203A"; display: inline-block; margin-left: 5px; font-weight: 400; }

/* ===== Events & content types ===== */
.scls-event-date { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: #CE9642; }
.scls-event-title { font-family: "Roboto Slab", Georgia, serif; font-size: 1.3rem; margin: 0; }
.scls-event-title a { color: #333; }
.scls-read-more a { font-size: 13px; text-transform: uppercase; }
.scls-meta-line { font-size: 14px; color: #555; }
.scls-event-meta { border-left: 3px solid #CE9642; padding-left: 14px !important; }
.scls-gallery .gallery { margin: 0 -5px; }
.scls-gallery .gallery-item { padding: 5px; }
.scls-video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }
.jet-listing-not-found { padding: 20px; background: #f7f5ef; border-left: 3px solid #CE9642; }

/* Home uses the full-width page template: keep a side gutter on smaller screens. */
@media (max-width: 1200px) {
	.elementor-12 > .e-con:not(.scls-hero) { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 767px) {
	.scls-skewed-title .elementor-heading-title { font-size: 16px; padding: 12px 30px; margin-left: 10px; }
}

/* Sidebar vertical menu (History Pages): plain list, no dropdown styling */
.scls-side-menu .elementor-nav-menu--main .elementor-nav-menu a,
.scls-side-menu .elementor-nav-menu--main .elementor-nav-menu .sub-menu a {
	background: transparent !important;
	color: #454545 !important;
	padding: 6px 0 !important;
	font-family: "Roboto", Arial, sans-serif;
	font-size: 13px;
	border: 0 !important;
}
.scls-side-menu .elementor-nav-menu--main .sub-menu a { padding-left: 14px !important; }
.scls-side-menu .elementor-nav-menu--main a:hover,
.scls-side-menu .elementor-nav-menu--main a.elementor-item-active,
.scls-side-menu .elementor-nav-menu--main a.elementor-sub-item.elementor-item-active { color: #CE9642 !important; }
.scls-side-menu .sub-arrow { display: none; }
.scls-featured img { max-width: 100%; height: auto; }
.scls-sidebar-box .elementor-post__title, .scls-sidebar-box .elementor-post__title a { font-size: 14px; line-height: 1.35; font-family: "Roboto Slab", Georgia, serif; }
.scls-sidebar-box .elementor-posts-container { row-gap: 14px !important; }

/* Events Calendar (page 342) */
.scls-events-calendar .jet-calendar-caption__name { font-family: "Adamina", Georgia, serif; font-size: 1.4rem; }
.scls-events-calendar .jet-calendar-week__day.has-events { background: #faf6ee; }
.scls-cal-time { font-size: 11px; color: #CE9642; text-transform: uppercase; }
.scls-cal-title a { font-size: 12px; line-height: 1.3; color: #333; }
@media (max-width: 767px) { .scls-cal-title a { font-size: 10px; } }

/* ===== Heading line-height =====
   Elementor's default .elementor-heading-title { line-height: 1 } makes any heading that wraps
   look cramped (e.g. "History Comes Alive", long post titles). Match the theme's 1.3.
   Widgets with their own line-height setting still override this. */
.elementor-widget-heading .elementor-heading-title { line-height: 1.3; }
