/*
Theme Name: Laurel Home Buyers v3
Theme URI: https://laurelhomebuyers.com
Description: Child theme of Hello Elementor for Laurel Home Buyers. Header, footer, fonts and design tokens live here; page content is built with native Elementor widgets.
Author: Laurel Home Buyers
Template: hello-elementor
Version: 3
Text Domain: laurel-child
*/

/* ============================================================
   1. Fonts
   Lemon Milk and Magnolia Script are not on Google Fonts, so they
   ship with the theme. Public Sans is enqueued from Google.
   ============================================================ */

@font-face { font-family: 'Lemon Milk'; src: url('assets/fonts/LEMONMILK-Regular.otf') format('opentype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Lemon Milk'; src: url('assets/fonts/LEMONMILK-Medium.otf') format('opentype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Lemon Milk'; src: url('assets/fonts/LEMONMILK-Bold.otf') format('opentype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Magnolia Script'; src: url('assets/fonts/MagnoliaScript.otf') format('opentype'); font-weight: 400; font-display: swap; }

/* ============================================================
   2. Tokens
   The full palette from the design. Two background colours only —
   cream and dark green. Do not add more.
   ============================================================ */

:root {
	--laurel-green: #0E4B3D;
	--laurel-green-tint: #154F41;
	--laurel-green-line: #1E5F4E;
	--laurel-green-border: #2A6552;

	--laurel-cream: #F6EFE4;
	--laurel-card: #FFFBF3;
	--laurel-ink: #12261F;

	--laurel-muted: #4A5A52;
	--laurel-muted-2: #5A6B62;
	--laurel-muted-3: #7A8A81;
	--laurel-border: #E4D8C4;

	--laurel-pink: #F9CEE1;
	--laurel-gold: #F4B955;
	--laurel-orange: #F76D3E;
	--laurel-orange-dark: #E45B2C;
	--laurel-rust: #C05A4A;
	--laurel-olive: #8EA341;

	--laurel-on-dark: #DCE9E0;
	--laurel-on-dark-2: #B9CFC3;
	--laurel-on-dark-3: #7FA495;

	--laurel-wrap: 1180px;
	--laurel-gutter: 24px;
	--laurel-radius: 14px;
	--laurel-radius-pill: 40px;
	--laurel-shadow: 0 20px 50px -20px rgba(14, 75, 61, .35);
	--laurel-shadow-dark: 0 20px 50px -18px rgba(0, 0, 0, .4);

	--laurel-head: 'Lemon Milk', sans-serif;
	--laurel-body: 'Public Sans', sans-serif;
	--laurel-script: 'Magnolia Script', cursive;
}

/* ============================================================
   3. Base
   ============================================================ */

body {
	font-family: var(--laurel-body);
	color: var(--laurel-ink);
	background: var(--laurel-cream);
	line-height: 1.7;
}

.laurel-main { display: block; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--laurel-head);
	line-height: 1.1;
	letter-spacing: .005em;
}

h1 { font-size: clamp(28px, 5vw, 54px); font-weight: 700; line-height: 1.05; }
h2 { font-size: clamp(22px, 3.4vw, 40px); font-weight: 700; }
h3 { font-size: clamp(18px, 2.2vw, 26px); font-weight: 700; }

a { color: var(--laurel-green); text-decoration: underline; }
a:hover { color: var(--laurel-rust); }

.laurel-skip {
	position: absolute; left: -9999px; top: 0; z-index: 100;
	background: var(--laurel-cream); color: var(--laurel-ink);
	padding: 10px 16px; border-radius: 0 0 8px 0;
}
.laurel-skip:focus { left: 0; }

/* ============================================================
   4. Header
   ============================================================ */

.laurel-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--laurel-green);
	border-bottom: 1px solid var(--laurel-green-line);
	font-family: var(--laurel-body);
}

.laurel-header__inner {
	max-width: var(--laurel-wrap); margin: 0 auto;
	padding: 14px var(--laurel-gutter);
	display: flex; align-items: center; justify-content: space-between;
	gap: 20px; flex-wrap: wrap;
}

.laurel-logo {
	font-family: var(--laurel-script);
	text-transform: lowercase;
	font-size: 36px; font-weight: 400;
	color: var(--laurel-pink);
	text-decoration: none; line-height: 1;
}
.laurel-logo:hover { color: var(--laurel-pink); opacity: .9; }

.laurel-header .main-nav { display: flex; align-items: center; gap: 26px; }
.laurel-header .main-nav a,
.laurel-header__phone {
	color: var(--laurel-cream); text-decoration: none;
	font-size: 15px; font-weight: 500;
}
/* Stated after the rules above so the hover colour is the one that wins. */
.laurel-header .main-nav a:hover,
.laurel-header__phone:hover { color: var(--laurel-gold); }
.laurel-header .main-nav a.is-current,
.laurel-header .main-nav .current-menu-item > a { color: var(--laurel-gold); }

.laurel-header__actions { display: flex; align-items: center; gap: 14px; }

.laurel-header li, .laurel-footer__links li { list-style: none; margin: 0; padding: 0; }
.laurel-header .main-nav li { display: inline-flex; }
.mobile-nav li { display: block; }

/* The cash-offer page: logo and phone only, nothing to wander off to. */
.laurel-header--focus { position: static; background: var(--laurel-cream); border-bottom: 1px solid var(--laurel-border); }
.laurel-header--focus .laurel-logo { color: var(--laurel-green); font-size: 32px; }
.laurel-header--focus .laurel-header__phone { display: inline !important; color: var(--laurel-green); font-weight: 600; }
.laurel-header--focus .laurel-header__phone:hover { color: var(--laurel-rust); }

.nav-hamburger {
	display: none; background: none; cursor: pointer;
	border: 1px solid var(--laurel-green-border); border-radius: 50%;
	width: 38px; height: 38px; font-size: 18px; color: var(--laurel-cream);
}

.mobile-nav {
	display: none; flex-direction: column;
	padding: 8px var(--laurel-gutter) 18px; gap: 14px;
	border-top: 1px solid var(--laurel-green-border);
}
.mobile-nav a { color: var(--laurel-cream); text-decoration: none; font-size: 15px; }
.mobile-nav__call { font-weight: 600; }

/* ============================================================
   5. Buttons
   Scoped to a/button so the rule never paints the Elementor widget
   wrapper div as a full-width block.
   ============================================================ */

a.laurel-btn,
button.laurel-btn,
.laurel-btn .elementor-button {
	display: inline-block;
	padding: 14px 28px;
	border: 0; border-radius: var(--laurel-radius-pill);
	background: var(--laurel-orange); color: var(--laurel-ink);
	font-family: var(--laurel-head); font-weight: 700; font-size: 15px;
	text-transform: uppercase; letter-spacing: .02em; text-decoration: none;
	cursor: pointer; white-space: nowrap;
	transition: background-color .15s ease;
}
a.laurel-btn:hover,
button.laurel-btn:hover,
.laurel-btn .elementor-button:hover { background: var(--laurel-orange-dark); color: var(--laurel-ink); }

.elementor-widget-button.laurel-btn { width: auto; }
.laurel-btn { width: auto !important; flex: 0 0 auto !important; }

.laurel-header .laurel-btn--cta { padding: 10px 20px; font-size: 14px; font-weight: 600; }

/* ============================================================
   6. Footer
   ============================================================ */

.laurel-footer {
	background: var(--laurel-green); color: var(--laurel-on-dark);
	font-family: var(--laurel-body);
	padding: 56px var(--laurel-gutter) 32px;
}
.laurel-footer__grid {
	max-width: var(--laurel-wrap); margin: 0 auto;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 36px;
}
.laurel-logo--footer { font-size: 30px; margin-bottom: 10px; display: block; }
.laurel-footer__blurb { font-size: 14px; line-height: 1.6; color: var(--laurel-on-dark-2); max-width: 280px; }
.laurel-footer__label {
	font-size: 13px; font-weight: 600; letter-spacing: .04em;
	text-transform: uppercase; color: var(--laurel-pink); margin-bottom: 12px;
}
.laurel-footer__areas { font-size: 14px; line-height: 1.9; color: var(--laurel-on-dark); max-width: 280px; }
.laurel-footer__areas a { color: var(--laurel-pink); }
.laurel-footer__contact { display: block; color: var(--laurel-pink); text-decoration: none; font-size: 14px; margin-bottom: 6px; }
.laurel-footer__links { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.laurel-footer__links a { color: var(--laurel-on-dark); text-decoration: none; }
.laurel-footer__links a:hover,
.laurel-footer__contact:hover,
.laurel-footer__areas a:hover { text-decoration: underline; color: var(--laurel-pink); }
.laurel-footer__base {
	max-width: var(--laurel-wrap); margin: 36px auto 0; padding-top: 20px;
	border-top: 1px solid var(--laurel-green-line);
	display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
	font-size: 12px; color: var(--laurel-on-dark-3);
}

/* ============================================================
   7. Elementor layout pins
   Elementor often emits no per-section max-width, so the boxed width
   is forced here or the layout drifts on wide screens.
   ============================================================ */

.elementor-section-boxed > .elementor-container {
	max-width: var(--laurel-wrap);
}
.laurel-designed .e-con { --container-max-width: var(--laurel-wrap); }

/* Sections on the dark green background. Colour is carried per widget
   (.laurel-on-dark), never by descendant rules — a cream card sitting inside a
   dark section must keep dark text. */
.laurel-dark { background: var(--laurel-green); }


/* ============================================================
   8. Tables, FAQ, placeholders
   ============================================================ */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0; }
.table-scroll table { border-collapse: collapse; width: 100%; min-width: 520px; }
.table-scroll th, .table-scroll td {
	border-bottom: 1px solid var(--laurel-border);
	padding: 10px 12px; text-align: left; font-size: 15px;
}
.table-scroll th { font-family: var(--laurel-head); font-size: 13px; text-transform: uppercase; }

.faq-item { border-bottom: 1px solid var(--laurel-border); }
.faq-question {
	width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
	background: none; border: 0; cursor: pointer;
	padding: 18px 0; text-align: left;
	font-family: var(--laurel-head); font-size: 16px; text-transform: uppercase;
	color: var(--laurel-ink);
}
.faq-answer { display: none; padding: 0 0 18px; font-size: 16px; line-height: 1.75; }
.faq-item.is-open .faq-answer { display: block; }
.faq-sign::after { content: '+'; font-size: 22px; line-height: 1; }
.faq-item.is-open .faq-sign::after { content: '\2212'; }

.image-placeholder {
	display: flex; align-items: center; justify-content: center; text-align: center;
	min-height: 220px; padding: 20px; border-radius: var(--laurel-radius);
	border: 1px dashed var(--laurel-border);
	background: repeating-linear-gradient(45deg, #EFE6D6, #EFE6D6 10px, #F6EFE4 10px, #F6EFE4 20px);
	color: var(--laurel-muted-2); font-size: 13px;
}

/* ============================================================
   9. Responsive
   Mobile stacking is pinned here — flex_direction_mobile alone is
   not reliable.
   ============================================================ */

@media (max-width: 780px) {
	.laurel-header .main-nav,
	.laurel-header__phone { display: none !important; }
	.nav-hamburger { display: flex !important; align-items: center; justify-content: center; }
	.mobile-nav.is-open { display: flex !important; }

	.laurel-row-hero > .elementor-container,
	.laurel-row-2up > .elementor-container { flex-wrap: wrap !important; }
	.laurel-row-hero > .elementor-container > .elementor-column { width: 100% !important; }
}

@media (max-width: 767px) {
	.laurel-section { padding-top: 32px !important; padding-bottom: 40px !important; }
	.laurel-footer { padding-top: 40px; }
}

@media (min-width: 768px) and (max-width: 1024px) {
	.laurel-section { padding-top: 44px !important; padding-bottom: 56px !important; }
}

/* ============================================================
   10. Converted pages
   Every page is native Elementor widgets carrying these classes.
   Colours and sizes that differ per element are native widget
   settings (so they stay editable); what is here is the shared look.
   The Kit outranks theme CSS on widget text, hence !important.
   ============================================================ */

.laurel-designed { --kit-widget-spacing: 0px; }
.laurel-designed .elementor-widget:not(:last-child) { margin-block-end: 0; }

/* Faces */
.laurel-f-head .elementor-heading-title,
.laurel-f-head.elementor-widget-text-editor,
.laurel-h1 .elementor-heading-title,
.laurel-h2 .elementor-heading-title,
.laurel-eyebrow .elementor-heading-title,
.laurel-bignum .elementor-heading-title { font-family: var(--laurel-head) !important; }

.laurel-f-body .elementor-heading-title,
.laurel-f-body.elementor-widget-text-editor,
.laurel-prose.elementor-widget-text-editor,
.laurel-small.elementor-widget-text-editor,
.laurel-label.elementor-widget-text-editor,
.laurel-crumbs.elementor-widget-text-editor,
.laurel-table.elementor-widget-text-editor { font-family: var(--laurel-body) !important; }
.laurel-card-title:not(.laurel-f-head) .elementor-heading-title { font-family: var(--laurel-body) !important; }

.laurel-f-script .elementor-heading-title,
.laurel-script .elementor-heading-title { font-family: var(--laurel-script) !important; text-transform: lowercase !important; }
.laurel-mono, .laurel-f-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace !important; }

.laurel-upper .elementor-heading-title,
.laurel-upper.elementor-widget-text-editor { text-transform: uppercase !important; }

/* Headings */
.laurel-designed .elementor-widget-heading .elementor-heading-title { line-height: normal; }
.laurel-h1 .elementor-heading-title { font-size: clamp(28px, 5vw, 54px); font-weight: 700; line-height: 1.05; color: var(--laurel-ink); }
.laurel-h2 .elementor-heading-title { font-size: clamp(22px, 3.4vw, 40px); font-weight: 700; color: var(--laurel-ink); }
.laurel-h3 .elementor-heading-title,
.laurel-card-title .elementor-heading-title { font-size: 17px; font-weight: 600; color: var(--laurel-ink); }
.laurel-eyebrow .elementor-heading-title { font-size: 12px; font-weight: 600; letter-spacing: .06em !important; color: var(--laurel-rust); }
.laurel-bignum .elementor-heading-title { font-size: 56px; font-weight: 700; line-height: 1; color: var(--laurel-rust); }
.laurel-card-title .elementor-heading-title a { color: inherit; text-decoration: none; }
.laurel-card-title .elementor-heading-title a:hover { text-decoration: underline; }

/* Body copy */
.laurel-designed .elementor-widget-text-editor { line-height: normal; }
.laurel-designed .elementor-widget-text-editor p,
.laurel-designed .elementor-widget-text-editor li { font-size: inherit; line-height: inherit; }
.laurel-prose.elementor-widget-text-editor { font-size: 16px; color: var(--laurel-ink); }
.laurel-small.elementor-widget-text-editor { font-size: 12px; color: var(--laurel-muted-3); }
.laurel-label.elementor-widget-text-editor { font-size: 13px; color: var(--laurel-muted-2); }
.laurel-crumbs.elementor-widget-text-editor { font-size: 13px; color: var(--laurel-on-dark-2); }
.laurel-crumbs a { color: inherit !important; text-decoration: none; }
.laurel-crumbs a:hover { text-decoration: underline; }

.laurel-designed .elementor-widget-text-editor p { margin: 0 0 1em; }
.laurel-designed .elementor-widget-text-editor p:last-child,
.laurel-designed .elementor-widget-text-editor ul:last-child,
.laurel-designed .elementor-widget-text-editor ol:last-child { margin-bottom: 0; }
.laurel-designed .elementor-widget-text-editor ul,
.laurel-designed .elementor-widget-text-editor ol { margin: 0 0 1em; padding-left: 1.25em; }
.laurel-designed .elementor-widget-text-editor li { margin: 0 0 .4em; }
.laurel-designed .elementor-widget-text-editor a { color: var(--laurel-green); text-decoration: underline; text-underline-offset: 2px; }
.laurel-designed .elementor-widget-text-editor a:hover { color: var(--laurel-rust); }

/* On the dark green */
.laurel-on-dark.elementor-widget-text-editor { color: var(--laurel-on-dark); }
.laurel-on-dark .elementor-heading-title { color: var(--laurel-pink); }
.laurel-on-dark.laurel-card-title .elementor-heading-title { color: var(--laurel-cream); }
.laurel-on-dark.elementor-widget-text-editor a { color: var(--laurel-cream); text-decoration-color: var(--laurel-olive); }
.laurel-on-dark.elementor-widget-text-editor a:hover { color: var(--laurel-pink); }
.laurel-on-dark.laurel-label.elementor-widget-text-editor { color: var(--laurel-on-dark-2); }

/* Buttons */
.laurel-btn .elementor-button {
	font-family: var(--laurel-head) !important; font-weight: 700 !important;
	text-transform: uppercase !important; letter-spacing: .02em !important;
	line-height: 1.2 !important; border-radius: var(--laurel-radius-pill);
}
.laurel-textlink .elementor-button {
	font-family: var(--laurel-body) !important; font-weight: 600 !important;
	text-transform: none !important; letter-spacing: 0 !important;
	text-decoration: underline !important; text-underline-offset: 3px;
	white-space: normal !important; text-align: left; line-height: 1.5 !important;
	box-shadow: none !important;
}

/* Cards: colour, radius, padding and gutters are native column settings.
   Elementor's flex columns already make cards in a row equal height. */

/* Tables */
.laurel-table table { width: 100%; border-collapse: collapse; background: var(--laurel-card); border-radius: 12px; overflow: hidden; font-size: 14px; }
.laurel-table th, .laurel-table td { padding: 11px 14px; border-bottom: 1px solid var(--laurel-border); text-align: left; vertical-align: top; }
.laurel-table th { font-family: var(--laurel-head); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--laurel-green); background: #F1E8D8; }
.laurel-table tr:last-child td { border-bottom: 0; }
.laurel-on-dark.laurel-table table { background: var(--laurel-green-tint); }
.laurel-on-dark.laurel-table th { background: var(--laurel-green-line); color: var(--laurel-pink); }
.laurel-on-dark.laurel-table td { border-color: var(--laurel-green-border); color: var(--laurel-on-dark); }

/* FAQ (native Toggle widget) — one answer open at a time, see nav.js */
.laurel-faq .elementor-toggle-item { border-bottom: 1px solid var(--laurel-border); }
.laurel-faq .elementor-tab-title {
	display: flex !important; justify-content: space-between; align-items: center; gap: 16px;
	padding: 18px 0 !important; border: 0 !important; cursor: pointer;
	font-family: var(--laurel-head) !important; font-size: 16px !important; font-weight: 600 !important;
	text-transform: uppercase; color: var(--laurel-ink) !important; line-height: 1.35;
}
.laurel-faq .elementor-tab-title a { color: inherit !important; text-decoration: none; }
.laurel-faq .elementor-toggle-icon { order: 2; color: var(--laurel-orange); }
.laurel-faq .elementor-tab-content {
	padding: 0 0 18px !important; border: 0 !important;
	font-family: var(--laurel-body) !important; font-size: 16px; line-height: 1.8; color: var(--laurel-muted);
}
.laurel-on-dark.laurel-faq .elementor-tab-title { color: var(--laurel-cream) !important; }
.laurel-on-dark.laurel-faq .elementor-toggle-item { border-color: var(--laurel-green-border); }
.laurel-on-dark.laurel-faq .elementor-tab-content { color: var(--laurel-on-dark); }

/* Photo slots — swap in a real photo in Elementor; the caption says what goes there. */
.laurel-photo-slot img { border-radius: var(--laurel-radius); width: 100%; object-fit: cover; }
.laurel-photo-round img { border-radius: 50% !important; aspect-ratio: 1 / 1; }
.laurel-photo-slot .widget-image-caption,
.laurel-photo-slot figcaption { font-size: 12px; font-style: italic; color: var(--laurel-muted-3); margin-top: 8px; text-align: center; }

/* Forms dropped in with the Shortcode widget */
.laurel-form-slot .lhb-form-wrap { width: 100%; }

/* Card grids wrap onto a second row on tablets (4-up becomes 2-up). */
.laurel-grid > .elementor-container { flex-wrap: wrap; }

/* Small pill links (e.g. "Sell in Gresham ->" on the Areas cards) */
.laurel-pill .elementor-button {
	font-family: var(--laurel-body) !important; font-weight: 600 !important;
	text-transform: none !important; letter-spacing: 0 !important; line-height: 1.3 !important;
}
