/*
Theme Name: Apex Irrigation
Theme URI: https://www.apexirrigationllc.com
Author: Apex Irrigation LLC
Description: Custom block theme for Apex Irrigation (Denver sprinkler and irrigation services).
Version: 1.1.1
Requires at least: 6.6
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: apex-irrigation
*/

/* ---------- Global ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
a { text-underline-offset: 3px; }
img { height: auto; }

/* ---------- Top bar ---------- */
.apex-topbar { font-size: 0.9rem; }
.apex-topbar a { color: #fff; text-decoration: none; font-weight: 700; }
.apex-topbar a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.apex-header { position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 14px rgba(10, 30, 10, .08); }
.admin-bar .apex-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .apex-header { top: 0; } .apex-header { position: relative; } }
.apex-header .wp-block-site-logo img { max-height: 58px; width: auto; }
.apex-header .wp-block-navigation { font-weight: 600; font-family: var(--wp--preset--font-family--manrope); }
.apex-header .wp-block-navigation .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--primary); }
.apex-header .wp-block-navigation__submenu-container { border: 0 !important; border-radius: 10px; box-shadow: 0 12px 30px rgba(10, 30, 10, .15); padding: 8px 0 !important; min-width: 250px !important; }
.apex-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 9px 18px !important; }
.apex-header-phone a { text-decoration: none; font-weight: 800; color: var(--wp--preset--color--primary); white-space: nowrap; }
@media (max-width: 1100px) { .apex-header-phone { display: none; } }

/* ---------- Buttons ---------- */
.wp-block-button__link { transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(4, 86, 4, .25); }
.is-style-outline > .wp-block-button__link { border-width: 2px; }
.apex-on-dark .is-style-outline > .wp-block-button__link { color: #fff; border-color: #fff; }

/* ---------- Hero ---------- */
.apex-hero { position: relative; }
.apex-hero h1 { text-wrap: balance; }
.apex-hero .apex-eyebrow { letter-spacing: .12em; text-transform: uppercase; font-weight: 800; font-size: .8rem; }
.apex-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0; padding: 0; list-style: none; font-weight: 700; }
.apex-trust li::before { content: "✓"; margin-right: 8px; color: var(--wp--preset--color--accent); }

/* ---------- Cards ---------- */
.apex-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 24px rgba(10, 30, 10, .07); height: 100%; transition: transform .2s ease, box-shadow .2s ease; }
.apex-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(10, 30, 10, .12); }
.apex-card .wp-block-image { margin: 0; }
.apex-card .wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; display: block; }
.apex-card-body { padding: 22px 24px 26px; }
.apex-card h3 { margin-top: 0; }
.wp-block-columns.apex-equal > .wp-block-column { display: flex; flex-direction: column; }

/* ---------- Lists ---------- */
.apex-checks { list-style: none; padding-left: 0; }
.apex-checks li { position: relative; padding-left: 30px; margin-bottom: .55em; }
.apex-checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--wp--preset--color--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M7.6 13.2 4.4 10l-1.1 1.1 4.3 4.3 9-9-1.1-1.1z'/%3E%3C/svg%3E") center/12px no-repeat; }
.apex-on-dark .apex-checks li::before { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23045604'%3E%3Cpath d='M7.6 13.2 4.4 10l-1.1 1.1 4.3 4.3 9-9-1.1-1.1z'/%3E%3C/svg%3E"); }

/* ---------- Content pages ---------- */
.apex-prose h2 { margin-top: 2.2em; }
.apex-prose h3 { margin-top: 1.6em; }
.apex-prose > :first-child { margin-top: 0; }
.apex-prose ol li, .apex-prose ul:not(.apex-checks) li { margin-bottom: .45em; }

/* ---------- FAQ ---------- */
.wp-block-details { border: 1px solid #dfe7dc; border-radius: 10px; padding: 16px 20px; background: #fff; }
.wp-block-details + .wp-block-details { margin-top: 12px; }
.wp-block-details summary { font-weight: 700; font-family: var(--wp--preset--font-family--manrope); cursor: pointer; }

/* ---------- Jobber form ---------- */
.apex-form-wrap { background: #fff; border-radius: 16px; box-shadow: 0 10px 34px rgba(10, 30, 10, .09); padding: clamp(14px, 3vw, 34px); }
.apex-form-wrap iframe { width: 100% !important; }

/* ---------- Blog ---------- */
.apex-post-card { background: #fff; border-radius: 14px; box-shadow: 0 6px 24px rgba(10, 30, 10, .07); padding: 26px 26px 28px; height: 100%; }
.apex-post-card .wp-block-post-title a { text-decoration: none; }
.apex-post-card .wp-block-post-title a:hover { color: var(--wp--preset--color--primary); }
.apex-single-content > * { max-width: 760px; margin-left: auto !important; margin-right: auto !important; }
.wp-block-post-terms a { text-decoration: none; }

/* ---------- Footer ---------- */
.apex-footer a { color: #fff; text-decoration: none; }
.apex-footer a:hover { text-decoration: underline; }
.apex-footer .apex-footer-links { list-style: none; padding: 0; margin: 0; }
.apex-footer .apex-footer-links li { margin-bottom: .5em; }
.apex-footer .wp-block-site-logo img { background: #fff; padding: 10px 14px; border-radius: 10px; }

/* ---------- Mobile call bar ---------- */
.apex-mobile-bar { display: none; }
@media (max-width: 781px) {
  .apex-mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; box-shadow: 0 -4px 16px rgba(0,0,0,.15); }
  .apex-mobile-bar a { flex: 1; text-align: center; padding: 14px 8px; font-weight: 800; text-decoration: none; font-family: var(--wp--preset--font-family--manrope); }
  .apex-mobile-bar a.call { background: #fff; color: var(--wp--preset--color--primary); }
  .apex-mobile-bar a.book { background: var(--wp--preset--color--primary); color: #fff; }
  body { padding-bottom: 52px; }
  .apex-topbar .apex-topbar-tagline { display: none; }
}

/* ---------- Section spacing fixes ---------- */
.wp-site-blocks > * { margin-block-start: 0 !important; }
main > .alignfull, main > .wp-block-post-content, .wp-block-post-content > .alignfull, main > .wp-block-group { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.wp-block-post-content > .alignfull + .alignfull { margin-block-start: 0 !important; }
.apex-card h3 a { text-decoration: none; color: var(--wp--preset--color--ink); }
.apex-card h3 a:hover { color: var(--wp--preset--color--primary); }
.apex-prose .wp-block-image img, .wp-block-column .wp-block-image img { max-height: 460px; width: 100%; object-fit: cover; }
.apex-footer h3 { margin-bottom: .6em; }
.apex-hero.wp-block-cover { min-height: 0; }
@media (max-width: 781px) {
  .apex-header .apex-header-cta { display: none; }
  .apex-header .wp-block-site-logo img { max-height: 46px; }
  .apex-topbar { text-align: center; }
  .apex-topbar .wp-block-group { justify-content: center !important; }
}


/* ---------- 2026-11 design polish ---------- */
/* Content lists get the brand check style */
.apex-prose ul.wp-block-list:not(.apex-chips):not(.apex-checks) { list-style: none; padding-left: 0; }
.apex-prose ul.wp-block-list:not(.apex-chips):not(.apex-checks) > li { position: relative; padding-left: 32px; margin-bottom: .6em; }
.apex-prose ul.wp-block-list:not(.apex-chips):not(.apex-checks) > li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--wp--preset--color--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M7.6 13.2 4.4 10l-1.1 1.1 4.3 4.3 9-9-1.1-1.1z'/%3E%3C/svg%3E") center/13px no-repeat; }
/* Link chips for services and service areas */
.apex-chips { list-style: none; padding: 0; margin: 0 0 1.5em; display: flex; flex-wrap: wrap; gap: 10px; font-size: 0; color: transparent; }
.apex-chips li { margin: 0 !important; padding: 0 !important; }
.apex-chips li::before { display: none !important; }
.apex-chips a { display: inline-block; font-size: .95rem; font-weight: 700; color: var(--wp--preset--color--primary); background: #fff; border: 1.5px solid #cfe0cb; border-radius: 999px; padding: 8px 16px; text-decoration: none; transition: background .15s ease, color .15s ease, border-color .15s ease; margin: 0 8px 8px 0; }
.apex-chips li a { margin: 0; }
.apex-chips a:hover { background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: #fff; }
/* FAQ section as clean cards */
.apex-faq { background: #f3f7f1; border-radius: 18px; padding: clamp(22px, 4vw, 42px) !important; margin-top: 2.2em; }
.apex-faq > h2 { margin-top: 0 !important; margin-bottom: .8em; }
.apex-faq > h3 { background: #fff; margin: 14px 0 0 !important; padding: 18px 22px 6px; border-radius: 12px 12px 0 0; font-size: 1.1rem; }
.apex-faq > h3 + p { background: #fff; margin: 0 !important; padding: 0 22px 18px; border-radius: 0 0 12px 12px; box-shadow: 0 6px 18px rgba(10, 30, 10, .05); }
/* Inline photos on service and city pages */
.apex-inline-photo { margin-top: 1.8em !important; margin-bottom: 1.8em !important; }
.apex-inline-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; box-shadow: 0 12px 34px rgba(10, 30, 10, .12); }
/* Consistent card images */
.apex-card .wp-block-image img { aspect-ratio: 4 / 3 !important; max-height: none !important; height: auto; }
/* Body links: brand underline */
.apex-prose p a { text-decoration-color: rgba(4, 86, 4, .35); text-decoration-thickness: 2px; }
.apex-prose p a:hover { text-decoration-color: currentColor; }
/* Blog featured images */
.wp-block-post-featured-image img { border-radius: 14px; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 781px) {
  .apex-chips a { font-size: .9rem; padding: 7px 13px; }
  .apex-faq > h3 { padding: 16px 16px 4px; }
  .apex-faq > h3 + p { padding: 0 16px 16px; }
}

/* Apex truck photo: keep the truck in frame */
.wp-block-image img[src*="1270667810041323585"] { aspect-ratio: 4 / 3 !important; height: auto !important; object-fit: cover !important; object-position: center 88% !important; max-height: none !important; }
