/* LI Property Maintenance (roofingisus.co.uk): theme stylesheet (source).
   Transcribed from the v2 mockup (src/css/site.css). Layout, colours and type sizes live in the Elementor
   widgets and the kit; this file adds what Elementor free has no control for: the yellow rule under
   headings, the card titles, fixed photo ratios, the two-column link lists, the CF7 form fields, the
   cookie notice. Classes are set on widgets/containers under Advanced > CSS Classes. */

/* Montserrat, self-hosted (SIL Open Font Licence), variable 400-600, latin subset. No requests to Google. */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url('../fonts/montserrat-var-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root { --roof-yellow: #f1ce0b; --roof-black: #000; --roof-text: #333; --roof-muted: #666; --roof-line: #e5e5e5; --roof-field: #f5f5f5; --roof-field-line: #ddd; }
body { font-family: 'Montserrat', Arial, sans-serif; color: var(--roof-text); }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.elementor-widget-text-editor ul { margin: 0 0 1em; padding-left: 20px; }
.elementor-widget-text-editor li { margin-bottom: 8px; }
.roof-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the client's heading: uppercase (kit H1/H2) with a 75x4 yellow rule underneath */
.roof-hd .elementor-heading-title::after { content: ""; display: block; width: 75px; height: 4px; background: var(--roof-yellow); margin-top: 14px; }
.roof-hd { margin-bottom: 8px; }
.roof-yellow .roof-hd .elementor-heading-title::after { background: var(--roof-black); }

/* breadcrumb line */
.roof-crumbs { font-size: 13px; color: var(--roof-muted); margin-bottom: 8px; }
.roof-crumbs a { color: var(--roof-muted); }

/* fixed photo ratios (Image widgets) */
.roof-r43 img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.roof-r1 img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.roof-r1 a:hover img { opacity: .85; }
/* !important: Elementor prints its own object-position on the widget */
.roof-hero img { width: 100%; object-fit: cover; object-position: center 30% !important; display: block; }
.elementor-widget-image img { border-radius: 0; }

/* service cards over the hero: black title bar above the photo */
.roof-card { text-decoration: none; }
.roof-card-title .elementor-heading-title { display: flex; align-items: center; justify-content: center; height: 64px; padding: 0 10px; font: 500 17px/1.2 'Montserrat', Arial, sans-serif; text-transform: uppercase; color: #fff; }
.roof-card:hover .roof-card-title .elementor-heading-title { color: var(--roof-yellow); }
.roof-card .elementor-widget { margin-bottom: 0 !important; }

/* black band */
.roof-on-dark a, .roof-black .elementor-widget-text-editor a { color: #fff; }
.roof-on-dark p { max-width: 980px; }

/* "All our roofing services" links */
.roof-svc-links ul { list-style: none; padding: 0; margin: 0 0 4px; columns: 2; column-gap: 40px; }
.roof-svc-links li { margin: 0; break-inside: avoid; }
.roof-svc-links a { display: block; padding: 8px 0; border-bottom: 1px solid var(--roof-line); text-decoration: none; color: var(--roof-black); }
.roof-svc-links a:hover, .roof-svc-links a.current { color: #b89b00; }

/* areas list */
.roof-towns ul { columns: 3; max-width: 700px; }

/* reviews (Testimonial widget) */
.roof-review .elementor-testimonial-content { font-size: 15.5px; line-height: 1.7; font-style: normal; margin-bottom: 10px; }
.roof-review .elementor-testimonial-name { font-weight: 600; font-size: 15.5px; }
.roof-review .elementor-testimonial-wrapper { text-align: left; }
.roof-review .elementor-testimonial-image, .roof-review .elementor-testimonial-job { display: none; }
.roof-svc-review { margin-top: 10px; padding: 18px 20px; background: #f6f6f6; }
.roof-svc-review .elementor-testimonial-content { font-style: italic; }

/* contact icons (Icon List) */
.roof-icons .elementor-icon-list-text { font-weight: 500; }
.roof-icons a { text-decoration: none; }
.roof-yellow .roof-icons a:hover .elementor-icon-list-text { color: #333; }

/* Contact Form 7 */
.roof-form .wpcf7-form { margin: 0; }
.roof-form input[type=text], .roof-form input[type=email], .roof-form input[type=tel], .roof-form select, .roof-form textarea {
  display: block; width: 100%; font: 400 15px 'Montserrat', Arial, sans-serif; color: var(--roof-text); background: var(--roof-field);
  border: 1px solid var(--roof-field-line); border-radius: 0; padding: 0 14px; height: 48px; margin: 0 0 12px; box-shadow: none; }
.roof-form textarea { height: auto; padding: 12px 14px; }
.roof-form .wpcf7-form-control-wrap { display: block; }
.roof-yellow .roof-form input, .roof-yellow .roof-form select, .roof-yellow .roof-form textarea { background: #fff; }
.roof-form .roof-file { display: block; font-size: 14px; margin: 0 0 14px; }
.roof-form .roof-file input { background: none; border: 0; padding: 6px 0 0; height: auto; font-size: 14px; }
.roof-form input[type=submit] { font: 600 14px/1 'Montserrat', Arial, sans-serif; text-transform: uppercase; background: var(--roof-black); color: #fff; border: 0; border-radius: 0; padding: 15px 26px; cursor: pointer; }
.roof-form input[type=submit]:hover { background: #333; }
.roof-form .wpcf7-not-valid-tip { font-size: 13px; margin: -8px 0 10px; }
.roof-form .wpcf7-response-output { margin: 14px 0 0 !important; padding: 10px 14px !important; border-radius: 0; }
.roof-form .wpcf7-spinner { vertical-align: middle; }

/* gallery (Basic Gallery): square thumbnails */
.roof-gallery .gallery-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 0 !important; }
.roof-gallery .gallery-item a:hover img { opacity: .85; }

/* header (HFE): nav stays on one line on desktop; the Services dropdown. HFE switches to its hamburger at a
   fixed 1024px, so nowrap must stop there (below it the closed menu is a hidden list that would overflow). */
@media (min-width: 1025px) {
  .roof-header .hfe-nav-menu__layout-horizontal .hfe-nav-menu { flex-wrap: nowrap; }
  .roof-header .hfe-nav-menu .menu-item a.hfe-menu-item { white-space: nowrap; }
}
@media (min-width: 1025px) {
  .roof-header .hfe-nav-menu .sub-menu { min-width: 230px; border: 1px solid #333; border-top: 2px solid var(--roof-yellow); }
}
.roof-header .hfe-nav-menu .sub-menu a.hfe-sub-menu-item { text-transform: none; letter-spacing: 0; border-bottom: 1px solid #222; }
.roof-head-contact .elementor-icon-list-item a:hover .elementor-icon-list-text { color: var(--roof-yellow); }
.roof-head-contact .elementor-icon-list-text { white-space: nowrap; }

/* footer */
.roof-f-towns .elementor-icon-list-items { display: block; columns: 2; column-gap: 24px; }
.roof-f-towns .elementor-icon-list-item { break-inside: avoid; }
.roof-footer a { color: #fff; text-decoration: none; }
.roof-footer a:hover { color: var(--roof-yellow); }
.roof-footer .elementor-widget-text-editor { font-size: 14px; }
.roof-f-company p { font-size: 13px; }
.roof-f-links p { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; }
.roof-f-legal p { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }

/* cookie notice (consent for Google Analytics) */
.roof-cookie { position: fixed; left: 16px; bottom: 16px; z-index: 9999; max-width: 380px; background: #000; color: #ddd; border-top: 3px solid var(--roof-yellow); padding: 18px 20px; font: 400 14px/1.6 'Montserrat', Arial, sans-serif; }
.roof-cookie[hidden] { display: none; }
.roof-cookie p { margin: 0 0 12px; }
.roof-cookie a { color: #fff; }
.roof-cookie button { font: 600 13px/1 'Montserrat', Arial, sans-serif; text-transform: uppercase; border: 0; border-radius: 0; padding: 11px 18px; margin-right: 8px; cursor: pointer; }
.roof-cookie .roof-ok { background: var(--roof-yellow); color: #000; }
.roof-cookie .roof-no { background: #333; color: #fff; }

/* HFE hamburger menu (its own fixed 1024px breakpoint): open the menu as a full-width black panel under the
   header, like the mockup, instead of inside the narrow nav column. */
@media (max-width: 1024px) {
  .roof-header, .roof-header > .e-con-inner { position: relative; }
  .roof-header .roof-nav, .roof-header .roof-nav > .elementor-widget-container,
  .roof-header .roof-nav .hfe-nav-menu, .roof-header .e-con:has(> .roof-nav) { position: static !important; }
  .roof-header .roof-nav nav.hfe-dropdown { position: absolute !important; left: 0 !important; right: 0; top: 100%; width: 100% !important;
    z-index: 60; background: #000; overflow: hidden; }
  .roof-header .roof-nav nav.hfe-dropdown .hfe-menu-item::before, .roof-header .roof-nav nav.hfe-dropdown .hfe-menu-item::after { display: none !important; }
  .roof-header .roof-nav nav.hfe-dropdown .hfe-nav-menu { flex-direction: column; }
  .roof-header .roof-nav nav.hfe-dropdown li { border-bottom: 1px solid #222; }
  .roof-header .roof-nav nav.hfe-dropdown a.hfe-menu-item, .roof-header .roof-nav nav.hfe-dropdown a.hfe-sub-menu-item { padding: 15px 24px !important; }
  .roof-header .roof-nav nav.hfe-dropdown .sub-menu { background: #111 !important; }
  .roof-header .roof-nav nav.hfe-dropdown .sub-menu a.hfe-sub-menu-item { padding-left: 40px !important; }
}

/* tablet (Elementor tablet breakpoint is set to 1180px in the kit) */
@media (max-width: 1180px) {
  .roof-header .hfe-nav-menu__toggle { margin-left: auto; }
  .roof-header .hfe-nav-menu .sub-menu { border: 0; }
  .roof-header nav.hfe-dropdown { border-top: 1px solid #222; border-bottom: 3px solid var(--roof-yellow); }
}
/* mobile (700px) */
@media (max-width: 700px) {
  .roof-card-title .elementor-heading-title { height: 48px; font-size: 14px; }
  .roof-towns ul { columns: 2; }
  .roof-svc-links ul { columns: 1; }
  .roof-f-legal p { flex-direction: column; }
  .roof-cookie { left: 10px; right: 10px; bottom: 10px; max-width: none; }
}
