/**
Theme Name: Leading Locksmiths
Author: Really Good Digital
Author URI: https://reallygooddigital.com/
Description: Astra child theme recreating the original Canvas / canvas-child design for Leading Locksmiths.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: leading-locksmiths
Template: astra
*/

/* ==========================================================
   Design tokens (taken from the Canvas site, Oct 2026)
   ========================================================== */
:root {
	--ll-red: #ae5d57;
	--ll-red-divider: #753221;
	--ll-red-dark: #7e2419;
	--ll-grad-red-top: #b4615e;
	--ll-grad-red-bottom: #863c2a;
	--ll-grad-grey-top: #f6f6f6;
	--ll-grad-grey-bottom: #dfdfdf;
	--ll-nav-active-bg: #f1f1f1;
	--ll-blue: #337ab7;
	--ll-blue-border: #2e6da4;
	--ll-phone: #3362ba;
	--ll-link: #428bca;
	--ll-text: #555;
	--ll-heading: #222;
	--ll-sidebar-width: 270px;
	--ll-gutter: 31px;
	--ll-font: Arial, Helvetica, sans-serif;
	--ll-font-heading: Helvetica, Arial, sans-serif;
}

/* ==========================================================
   Base
   ========================================================== */
body {
	background: #fff linear-gradient(to bottom, #e9e9e9, #fff) no-repeat;
	color: var(--ll-text);
	font-family: var(--ll-font);
	font-size: 14px;
	line-height: 1.5;
}
#page, .site-content, .ast-plain-container { background: transparent; }
body, button, input, select, textarea { font-family: var(--ll-font); }
.entry-content p, .entry-content li { font-family: var(--ll-font-heading); font-size: 15px; line-height: 1.5; }
.entry-content p { margin-bottom: 18px; }
h1, h2, h3, h4, h5, h6, .entry-content :where(h1, h2, h3, h4, h5, h6) {
	font-family: var(--ll-font);
	font-weight: 700;
	line-height: 1.4;
}
.entry-title, .entry-content h1 { font-family: var(--ll-font-heading); color: var(--ll-heading); font-size: 28px; line-height: 1.1; }
.entry-content h2 { color: var(--ll-red-dark); font-size: 24px; line-height: 1.5; margin-bottom: 12px; }
.entry-content h3 { color: var(--ll-red-dark); font-size: 18px; }
.entry-content h4 { color: var(--ll-heading); font-size: 15px; }
a, .entry-content a { color: var(--ll-link); text-decoration: none; }
a:hover, .entry-content a:hover { text-decoration: underline; }
/* Astra underlines content links by default; Canvas didn't */
.ast-single-post .entry-content a, .ast-comment-content a:not(.ast-comment-edit-reply-wrap a), .entry-content a { text-decoration: none; }
.ast-single-post .entry-content a:hover, .entry-content a:hover { text-decoration: underline; }
.entry-content strong, .entry-content b { font-weight: 700; }
.entry-content hr, .entry-content .greyline {
	border: 0;
	border-top: 1px solid #dedede;
	height: 1px;
	margin: 20px 0;
	clear: both;
	background: none;
}
.entry-content img { border: 0; }

/* Home: page title hidden, as in Canvas */
.home .entry-header { display: none; }

/* ==========================================================
   Quick Quote tab (top right)
   ========================================================== */
.ll-quick-quote-bar .ast-container { display: flex; justify-content: flex-end; }
.ll-quick-quote-btn {
	background: var(--ll-blue);
	border: 1px solid var(--ll-blue-border);
	border-top: 0;
	border-radius: 0 0 10px 10px;
	color: #fff;
	font-size: 12px;
	font-weight: 400;
	line-height: 18px;
	padding: 5px 10px;
	cursor: pointer;
}
.ll-quick-quote-btn:hover, .ll-quick-quote-btn:focus { background: #286090; color: #fff; }

/* ==========================================================
   Header: logo + phone line
   ========================================================== */
.ast-primary-header-bar { background: transparent !important; border-bottom: 0 !important; }
#ast-desktop-header .site-primary-header-wrap { min-height: 0; padding-top: 10px; padding-bottom: 40px; }
.site-branding, .ast-site-identity { padding: 0; }
#phone-line {
	color: #3f3f3f;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 20px;
	letter-spacing: -1px;
	line-height: 1.2;
	text-align: center;
}
#phone-line .phone-no {
	color: var(--ll-phone);
	font-size: 32px;
	font-weight: 700;
	line-height: 1;
	display: inline-block;
}

/* ==========================================================
   Main navigation (Below Header)
   ========================================================== */
.ast-below-header-bar { background: transparent !important; border: 0 !important; min-height: 0 !important; }
#ast-desktop-header .site-below-header-wrap { min-height: 0; }
#ast-desktop-header .ast-below-header-bar .ast-builder-grid-row {
	background: var(--ll-red);
	min-height: 0;
}
.ast-below-header-bar .ast-builder-menu-1,
.ast-below-header-bar .main-header-menu { padding: 0; }
.ast-below-header-bar .main-header-menu > .menu-item { border-right: 1px solid var(--ll-red-divider); }
.ast-below-header-bar .main-header-menu > .menu-item > .menu-link {
	color: #fff;
	font-family: var(--ll-font);
	font-size: 12px;
	font-weight: 700;
	line-height: 14px;
	padding: 12px;
	min-height: 0;
}
.ast-below-header-bar .main-header-menu > .menu-item > .menu-link:hover,
.ast-below-header-bar .main-header-menu > .menu-item:hover > .menu-link,
.ast-below-header-bar .main-header-menu > .current-menu-item > .menu-link,
.ast-below-header-bar .main-header-menu > .current-menu-ancestor > .menu-link {
	background: var(--ll-nav-active-bg);
	color: #000;
}
.ast-below-header-bar .main-header-menu .menu-link .ast-icon svg { fill: currentColor; }
.ast-below-header-bar .main-header-menu .sub-menu {
	background: var(--ll-nav-active-bg);
	border: 0 !important;
	border-radius: 0;
	padding: 5px 0;
	box-shadow: 0 2px 4px rgba(0, 0, 0, .15);
}
.ast-below-header-bar .main-header-menu .sub-menu .menu-link {
	color: #000;
	font-size: 12.6px;
	font-weight: 700;
	line-height: 15px;
	padding: 9px 12.6px;
	border: 0;
}
.ast-below-header-bar .main-header-menu .sub-menu .menu-link:hover,
.ast-below-header-bar .main-header-menu .sub-menu .current-menu-item > .menu-link {
	background: #e2e2e2;
	color: #000;
}

/* ==========================================================
   Callback form + slider row (under the nav, every page)
   ========================================================== */
.ll-header-slider { margin-top: 42px; }
.ll-header-slider-row { display: flex; flex-wrap: wrap; gap: 0; }
.ll-col-callback {
	flex: 0 0 33.333%;
	max-width: 33.333%;
	background: url(/wp-content/uploads/2015/03/main-header.png) no-repeat;
	background-size: 100% 87.5%;
	padding: 0 15px;
}
.ll-col-slider { flex: 0 0 66.666%; max-width: 66.666%; padding-left: 0; }
.ll-col-callback .gform_wrapper.gform_wrapper { margin: 130px 0 0; padding-bottom: 31px; max-width: 100%; }
.ll-col-callback .gform_wrapper .gform_body { color: #fff; }
.ll-col-callback .gform_wrapper .gform_fields { display: block; }
.ll-col-callback .gform_wrapper .gfield { margin: 0 0 8px; padding: 0; }
.ll-col-callback .gform_wrapper .gfield { display: flex; align-items: center; gap: 8px; }
.ll-col-callback .gform_wrapper .gfield_label {
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	flex: 0 0 30%;
	margin: 0;
	padding: 0 0 0 5%;
}
.ll-col-callback .gform_wrapper .gfield_required { color: #e33; }
.ll-col-callback .gform_wrapper .ginput_container { flex: 1; margin: 0; }
.ll-col-callback .gform_wrapper input[type=text],
.ll-col-callback .gform_wrapper input[type=tel] {
	width: 100% !important;
	padding: 4px 6px;
	border: 1px solid #ccc;
	border-radius: 3px;
	background: #fff;
	font-size: 13px;
	line-height: 18px;
	min-height: 0;
}
.ll-col-callback .gform_wrapper .gfield_description,
.ll-col-callback .gform_wrapper .validation_message { color: #fff; font-size: 11px; }
.ll-col-callback .gform_wrapper .gform_footer { margin: 4px 0 0; padding: 0 0 0 35%; }
.ll-col-callback .gform_wrapper .gform_button {
	background: var(--ll-blue);
	border: 1px solid var(--ll-blue-border);
	border-radius: 3px;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 18px;
	padding: 5px 10px;
	text-transform: uppercase;
}
.ll-col-callback .gform_wrapper .gform_button:hover { background: #286090; }
.ll-col-callback .gform_ajax_frame, .ll-col-callback iframe[name^="gform_ajax_frame"] { display: none; }

/* ==========================================================
   Content + left sidebar
   ========================================================== */
#content { padding-top: 30px; }
.ast-plain-container #primary { margin-top: 0; margin-bottom: 30px; }
.ast-left-sidebar #secondary { border-right: 0; margin-top: 0; }
.ast-left-sidebar #primary { border-left: 0; }
@media (min-width: 922px) {
	.ast-left-sidebar #secondary { width: var(--ll-sidebar-width); padding-right: 0; }
	.ast-left-sidebar #primary { width: calc(100% - var(--ll-sidebar-width)); padding-left: var(--ll-gutter); }
}
#primary, #secondary { min-width: 0; }
.entry-header { margin-bottom: 14px; }

/* Sidebar widgets: red gradient title bar + grey gradient body */
#secondary .widget { margin: 0 0 30px; padding: 0; background: none; font-size: 12px; line-height: 21px; }
#secondary .widget-title, #secondary .widget h2.widget-title {
	background: linear-gradient(to bottom, var(--ll-grad-red-top), var(--ll-grad-red-bottom)) no-repeat;
	border-radius: 5px 5px 0 0;
	color: #fff;
	font-family: var(--ll-font-heading);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0;
	padding: 5px;
}
#secondary .widget .textwidget,
#secondary .widget > div:not(.widget-title) {
	background: linear-gradient(to bottom, var(--ll-grad-grey-top), var(--ll-grad-grey-bottom)) no-repeat;
	padding: 16px;
	color: var(--ll-text);
}
#secondary .widget p { margin-bottom: 10px; }
#secondary .widget p:last-child { margin-bottom: 0; }
#secondary .widget hr { border: 0; border-top: 1px solid #bababa; margin: 10px 0; height: 0; background: none; }

/* Sitemap page (replacement for Canvas sitemap.php template) */
.ll-sitemap ul { margin: 0 0 20px 20px; }

/* ==========================================================
   Footer
   ========================================================== */
.site-footer, .site-below-footer-wrap, .site-primary-footer-wrap, .site-above-footer-wrap {
	background: transparent !important;
	border: 0 !important;
}
.site-below-footer-wrap[data-section] { padding-top: 20px; padding-bottom: 20px; }
.site-below-footer-wrap .ast-builder-grid-row { border-top: 1px solid #dedede; padding-top: 20px; }
.site-footer .ast-footer-copyright { color: #999; font-size: 13px; line-height: 18px; }

/* ==========================================================
   Quick Quote modal (replaces Bootstrap 3 modal)
   ========================================================== */
.ll-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: flex-start; justify-content: center; padding: 30px 15px; overflow-y: auto; }
.ll-modal[hidden] { display: none; }
.ll-modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); }
.ll-modal-dialog {
	position: relative;
	width: 100%;
	max-width: 300px;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, .2);
	border-radius: 6px;
	box-shadow: 0 3px 9px rgba(0, 0, 0, .5);
}
.ll-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 15px; border-bottom: 1px solid #e5e5e5; }
.ll-modal-title { margin: 0; font-size: 18px; line-height: 1.4; color: var(--ll-heading); }
.ll-modal-close {
	background: none;
	border: 0;
	color: #000;
	opacity: .2;
	font-size: 21px;
	font-weight: 700;
	line-height: 1;
	padding: 0;
	cursor: pointer;
}
.ll-modal-close:hover, .ll-modal-close:focus { opacity: .5; background: none; color: #000; }
.ll-modal-body { padding: 15px; }
.ll-modal-body .wpcf7-form p { margin-bottom: 10px; }
.ll-modal-body .wpcf7-form input:not([type=submit]):not([type=hidden]),
.ll-modal-body .wpcf7-form select,
.ll-modal-body .wpcf7-form textarea { width: 100%; }
.ll-modal-body .wpcf7-form .input-bg-but { margin-top: 1rem; }
.ll-modal-body .wpcf7-form input[type=submit] {
	width: 100%;
	background: var(--ll-blue);
	border: 1px solid var(--ll-blue-border);
	color: #fff;
}
body.ll-modal-open { overflow: hidden; }

/* ==========================================================
   Tablet / mobile
   ========================================================== */
@media (max-width: 921px) {
	.ll-header-slider { margin-top: 20px; }
	.ll-col-callback, .ll-col-slider { flex-basis: 100%; max-width: 100%; }
	.ll-col-callback { max-width: 360px; margin: 0 auto; }
	#ast-mobile-header .ast-primary-header-bar { border-bottom: 3px solid var(--ll-red) !important; }
	.ll-quick-quote-bar .ast-container { padding-left: 15px; padding-right: 15px; }
}
