/*
Theme Name: Hello LLDC
Theme URI: https://www.louthlocaldevelopment.ie
Description: Child theme of Hello Elementor for Louth Local Development CLG. Page content is built with Elementor; header menu via Appearance > Menus; footer is the Elementor template "Site Footer".
Author: Cre8 IT
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-lldc
*/

:root {
	--lldc-navy: #14325a;
	--lldc-ink: #1e2b3c;
	--lldc-muted: #5a6778;
	--lldc-red: #e23e3b;
	--lldc-blue: #2d8fd9;
	--lldc-green: #4f9e24;
	--lldc-magenta: #c2378e;
	--lldc-orange: #ee8b1b;
	--lldc-sand: #f6f3ee;
	--lldc-mist: #eef4fa;
	--lldc-line: #e3e8ef;
	--lldc-wrap: 1240px;
	--lldc-radius: 14px;
}

body { color: var(--lldc-ink); font-family: "Nunito Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--lldc-blue); }
.lldc-wrap { max-width: var(--lldc-wrap); margin: 0 auto; padding: 0 24px; }
.lldc-skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 14px; z-index: 1000; }
.lldc-skip:focus { left: 8px; }

/* ---------- Top bar ---------- */
.lldc-topbar { background: var(--lldc-navy); color: #dbe6f3; font-size: 14px; }
.lldc-topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.lldc-topbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; align-items: center; }
.lldc-topbar__contacts li { display: flex; gap: 7px; align-items: center; }
.lldc-topbar a { color: #fff; text-decoration: none; font-weight: 700; }
.lldc-topbar a:hover { text-decoration: underline; }
.lldc-topbar svg { width: 13px; height: 13px; fill: currentColor; opacity: .8; }
.lldc-social { gap: 6px !important; }
.lldc-social a { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; transition: background .2s; }
.lldc-social a:hover { background: rgba(255,255,255,.14); }
.lldc-social svg { width: 14px; height: 14px; opacity: 1; }

/* ---------- Header ---------- */
.lldc-header { position: sticky; top: 0; z-index: 90; background: rgba(255,255,255,.97); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--lldc-line); transition: box-shadow .25s; }
.admin-bar .lldc-header { top: 32px; }
.lldc-header.is-scrolled { box-shadow: 0 6px 24px rgba(20,50,90,.08); }
.lldc-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 24px; }
.lldc-logo img { height: 58px; width: auto; display: block; }
.lldc-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.lldc-menu > li { position: relative; }
.lldc-menu a { display: block; padding: 10px 14px; font-family: "Outfit", sans-serif; font-weight: 600; font-size: 16px; color: var(--lldc-ink); text-decoration: none; border-radius: 8px; transition: color .15s, background .15s; }
.lldc-menu a:hover, .lldc-menu .current-menu-item > a, .lldc-menu .current-menu-ancestor > a { color: var(--lldc-navy); background: var(--lldc-mist); }
.lldc-menu .menu-item-has-children > a::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .6; }
.lldc-menu .sub-menu { list-style: none; margin: 0; padding: 10px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 290px; background: #fff; border: 1px solid var(--lldc-line); border-radius: 12px; box-shadow: 0 18px 40px rgba(20,50,90,.14); opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s ease; }
.lldc-menu li:hover > .sub-menu, .lldc-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.lldc-menu .sub-menu a { font-size: 15px; font-weight: 500; padding: 9px 12px; }
.lldc-menu .lldc-menu-cta > a { background: var(--lldc-red); color: #fff; padding: 11px 22px; border-radius: 999px; margin-left: 8px; }
.lldc-menu .lldc-menu-cta > a:hover { background: #c22f2c; color: #fff; }
.lldc-burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.lldc-burger span:not(.screen-reader-text) { display: block; width: 26px; height: 3px; background: var(--lldc-navy); border-radius: 2px; margin: 5px 0; transition: transform .2s, opacity .2s; }
.lldc-nav-open .lldc-burger span:nth-of-type(2) { transform: translateY(8px) rotate(45deg); }
.lldc-nav-open .lldc-burger span:nth-of-type(3) { opacity: 0; }
.lldc-nav-open .lldc-burger span:nth-of-type(4) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1024px) {
	.lldc-burger { display: block; }
	.lldc-header__inner { min-height: 74px; }
	.lldc-logo img { height: 46px; }
	.lldc-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--lldc-line); box-shadow: 0 18px 30px rgba(20,50,90,.12); display: none; max-height: calc(100vh - 120px); overflow: auto; }
	.lldc-nav-open .lldc-nav { display: block; }
	.lldc-menu { flex-direction: column; align-items: stretch; padding: 12px 20px 20px; gap: 0; }
	.lldc-menu a { padding: 13px 8px; border-bottom: 1px solid var(--lldc-line); border-radius: 0; }
	.lldc-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; display: none; min-width: 0; }
	.lldc-menu li.is-open > .sub-menu { display: block; }
	.lldc-menu .lldc-menu-cta > a { margin: 16px 0 0; text-align: center; border: 0; border-radius: 999px; }
}
@media (max-width: 767px) {
	.lldc-hide-sm { display: none !important; }
	.lldc-topbar__contacts { gap: 14px !important; font-size: 13px; }
	.lldc-topbar__contacts svg { display: none; }
	.lldc-social { display: none !important; }
	.lldc-topbar__inner { justify-content: center; }
}

/* ---------- Elementor content helpers (add these classes in Advanced > CSS Classes) ---------- */
.lldc-card { transition: transform .25s ease, box-shadow .25s ease; overflow: hidden; }
.lldc-card:hover { transform: translateY(-4px); box-shadow: 0 22px 44px rgba(20,50,90,.14) !important; }
.lldc-card .elementor-widget-image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.lldc-cover img { width: 100%; height: 100%; object-fit: cover; }
.lldc-ratio-43 img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.lldc-ratio-45 img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.lldc-eyebrow .elementor-heading-title { letter-spacing: .12em; text-transform: uppercase; }
.lldc-pill .elementor-heading-title { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.16); }
.lldc-link .elementor-button { padding-left: 0 !important; padding-right: 0 !important; }
.lldc-link .elementor-button:hover .elementor-button-icon { transform: translateX(4px); }
.lldc-link .elementor-button-icon { transition: transform .2s; }
.elementor-widget-text-editor ul { padding-left: 1.2em; }
.elementor-widget-text-editor li { margin-bottom: .35em; }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.lldc-ticks ul { list-style: none; padding: 0; }
.lldc-ticks li { position: relative; padding-left: 30px; }
.lldc-ticks li::before { content: "\2713"; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--lldc-green); color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 800; }
.lldc-funders img { mix-blend-mode: multiply; }

/* Contact Form 7 styling */
.wpcf7 form { display: grid; gap: 14px; }
.wpcf7 label { font-weight: 700; font-size: 15px; color: var(--lldc-navy); display: block; }
.wpcf7 input[type=text], .wpcf7 input[type=email], .wpcf7 input[type=tel], .wpcf7 select, .wpcf7 textarea { width: 100%; margin-top: 6px; border: 1px solid #cdd6e1; border-radius: 10px; padding: 12px 14px; font: inherit; background: #fff; }
.wpcf7 textarea { min-height: 140px; }
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus { outline: 3px solid rgba(45,143,217,.25); border-color: var(--lldc-blue); }
.wpcf7 input[type=submit] { background: var(--lldc-red); color: #fff; border: 0; border-radius: 999px; padding: 14px 30px; font-family: "Outfit", sans-serif; font-weight: 600; font-size: 16px; cursor: pointer; justify-self: start; }
.wpcf7 input[type=submit]:hover { background: #c22f2c; }
.wpcf7 .lldc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .wpcf7 .lldc-row { grid-template-columns: 1fr; } }
.wpcf7 .wpcf7-form-control-wrap { display: block; }
.wpcf7 .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
.wpcf7 .wpcf7-acceptance label { font-weight: 400; font-size: 14px; color: var(--lldc-muted); display: flex; gap: 10px; align-items: flex-start; }

/* Blog / single posts (theme templates) */
body:not(.elementor-page) .site-main { max-width: 860px; margin: 0 auto; padding: 56px 24px 80px; }
body.blog .site-main, body.archive .site-main { max-width: var(--lldc-wrap); }
.site-main .page-header .entry-title, .site-main .entry-title { font-family: "Outfit", sans-serif; color: var(--lldc-navy); font-weight: 700; }
.single .site-main .entry-title { font-size: clamp(32px, 4vw, 46px); line-height: 1.12; }
.single .post-thumbnail img, .single .wp-post-image { border-radius: var(--lldc-radius); margin: 8px 0 28px; width: 100%; height: auto; }
.single .page-content { font-size: 18px; line-height: 1.7; }
.lldc-footer-fallback { padding: 30px 0; background: var(--lldc-navy); color: #fff; }

/* News cards ([lldc_news] shortcode) */
.lldc-news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.lldc-news__item { background: #fff; border-radius: var(--lldc-radius); border: 1px solid var(--lldc-line); display: flex; flex-direction: column; }
.lldc-news__img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.lldc-news__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.lldc-news__meta { margin: 0; font-size: 13px; font-weight: 700; color: var(--lldc-muted); text-transform: uppercase; letter-spacing: .08em; display: flex; gap: 10px; align-items: center; }
.lldc-news__meta span { background: var(--lldc-mist); color: var(--lldc-navy); padding: 4px 10px; border-radius: 999px; }
.lldc-news__title { margin: 0; font-family: "Outfit", sans-serif; font-size: 22px; line-height: 1.25; font-weight: 700; }
.lldc-news__title a { color: var(--lldc-navy); text-decoration: none; }
.lldc-news__title a:hover { color: var(--lldc-red); }
.lldc-news__excerpt { margin: 0; color: var(--lldc-muted); line-height: 1.6; flex: 1; }
.lldc-news__more { font-family: "Outfit", sans-serif; font-weight: 600; color: var(--lldc-red); text-decoration: none; }
@media (max-width: 1024px) { .lldc-news { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .lldc-news { grid-template-columns: 1fr; } }
@media (min-width: 1025px) { .lldc-sticky { position: sticky; top: 120px; } }
.lldc-map iframe { border-radius: 18px; }
.lldc-map { min-height: 460px; background: var(--lldc-mist); border-radius: 18px; }
.lldc-header .lldc-burger, .lldc-header .lldc-burger:hover, .lldc-header .lldc-burger:focus { background: transparent !important; border: 0 !important; border-radius: 8px; padding: 10px; box-shadow: none; }
.lldc-header .lldc-burger:focus-visible { outline: 3px solid rgba(45,143,217,.35); }
