/*
Theme Name: NOWCAP Services
Theme URI: https://nowcapservices.com
Author: NOWCAP Services
Description: Custom block theme for NOWCAP Services, Casper and Rock Springs, Wyoming. Navy, green and sun-yellow palette with Nunito type; site-wide header and footer editable in Appearance > Editor.
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nowcap
*/

:root {
	--nc-radius: 14px;
	--nc-shadow: 0 6px 20px rgba(22, 62, 115, 0.10);
	--nc-shadow-lg: 0 12px 32px rgba(22, 62, 115, 0.14);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }

/* ---------- Buttons ---------- */
.wp-block-button__link { box-shadow: 0 3px 0 rgba(0,0,0,.12); transition: transform .15s ease, background-color .15s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button.is-style-green .wp-block-button__link { background: var(--wp--preset--color--green); color: #fff; }
.wp-block-button.is-style-green .wp-block-button__link:hover { background: #3B7F24; }
.wp-block-button.is-style-outline-navy .wp-block-button__link { background: transparent; color: var(--wp--preset--color--navy); border: 2px solid var(--wp--preset--color--navy); box-shadow: none; padding: .55rem 1.1rem; font-size: .9rem; border-radius: 999px; }
.wp-block-button.is-style-outline-navy .wp-block-button__link:hover { background: var(--wp--preset--color--navy); color: #fff; }

/* ---------- Header ---------- */
.nc-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 rgba(22,62,115,.08), 0 4px 14px rgba(22,62,115,.05); }
.admin-bar .nc-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .nc-header { top: 46px; } }
.nc-header .wp-block-site-logo img { max-height: 64px; width: auto; }
.nc-header .wp-block-navigation .wp-block-navigation-item__content { color: var(--wp--preset--color--ink); padding: .4rem .1rem; border-bottom: 3px solid transparent; }
.nc-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.nc-header .wp-block-navigation .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--blue); border-bottom-color: var(--wp--preset--color--blue); }
.nc-header .wp-block-navigation__submenu-container { border-radius: 10px; box-shadow: var(--nc-shadow); border: 0 !important; padding: .4rem 0; }
.nc-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { border: 0; padding: .45rem 1rem; }
.nc-header .wp-block-buttons .wp-block-button__link { font-size: .9rem; padding: .6rem 1.1rem; }
@media (max-width: 1080px) { .nc-header-buttons { display: none !important; } }

/* ---------- Hero ---------- */
.nc-hero { position: relative; overflow: hidden; background: linear-gradient(90deg, #ffffff 0%, #f4f9ff 45%, #eaf3fc 100%); }
.nc-hero > .wp-block-columns { gap: 0; }
.nc-hero h1 { letter-spacing: -0.5px; }
.nc-hero .nc-swoosh img { width: 230px; height: 14px; object-fit: fill; }
.nc-hero .nc-hero-image { margin: 0; height: 100%; }
.nc-hero .nc-hero-image img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%); mask-image: linear-gradient(90deg, transparent 0%, #000 22%); }
@media (max-width: 781px) {
	.nc-hero .nc-hero-image img { -webkit-mask-image: none; mask-image: none; border-radius: var(--nc-radius); min-height: 220px; }
}

/* ---------- Stats bar ---------- */
.nc-stats { background: var(--wp--preset--color--cream); border-bottom-left-radius: 50% 18px; border-bottom-right-radius: 50% 18px; }
.nc-stats .wp-block-column { display: flex; align-items: center; justify-content: center; gap: .9rem; }
.nc-stats .wp-block-column + .wp-block-column { border-left: 1px solid rgba(22,62,115,.15); }
.nc-stats .wp-block-image { margin: 0; flex: 0 0 auto; }
.nc-stats .wp-block-image img { width: 48px; height: 48px; }
.nc-stats p { margin: 0; line-height: 1.15; }
.nc-stats .nc-stat-big { font-family: var(--wp--preset--font-family--heading); font-weight: 900; font-size: 1.9rem; color: var(--wp--preset--color--navy); }
.nc-stats .nc-stat-label { font-family: var(--wp--preset--font-family--heading); font-weight: 800; color: var(--wp--preset--color--navy); }
.nc-stats .nc-stat-sub { font-size: .78rem; color: var(--wp--preset--color--muted); }
@media (max-width: 781px) {
	.nc-stats .wp-block-column { justify-content: flex-start; }
	.nc-stats .wp-block-column + .wp-block-column { border-left: 0; border-top: 1px solid rgba(22,62,115,.12); padding-top: 1rem; }
}

/* ---------- Section titles with sparkles ---------- */
.nc-section-title { display: flex; align-items: center; justify-content: center; gap: .6rem; }
.nc-section-title .wp-block-image { margin: 0; }
.nc-section-title .wp-block-image img { width: 34px; height: 34px; }
.nc-section-title .nc-flip img { transform: scaleX(-1); }

/* ---------- Service cards ---------- */
.nc-cards { gap: 1rem !important; }
.nc-card { border-radius: var(--nc-radius); padding: 1.4rem 1rem 1.6rem; text-align: center; border-bottom: 6px solid var(--nc-accent, var(--wp--preset--color--blue)); box-shadow: 0 2px 10px rgba(22,62,115,.06); transition: transform .2s ease, box-shadow .2s ease; height: 100%; }
.nc-card:hover { transform: translateY(-3px); box-shadow: var(--nc-shadow-lg); }
.nc-card .wp-block-image { margin: 0 auto .4rem; }
.nc-card .wp-block-image img { width: 52px; height: 52px; }
.nc-card h3 { font-size: 1.2rem; margin: .2rem 0 .6rem; }
.nc-card p { font-size: .9rem; color: var(--wp--preset--color--muted); text-align: left; }
.nc-card--blue { --nc-accent: var(--wp--preset--color--blue); background: var(--wp--preset--color--sky); }
.nc-card--green { --nc-accent: var(--wp--preset--color--green); background: var(--wp--preset--color--mint); }
.nc-card--orange { --nc-accent: var(--wp--preset--color--orange); background: var(--wp--preset--color--peach); }
.nc-card--purple { --nc-accent: var(--wp--preset--color--purple); background: var(--wp--preset--color--lavender); }
.nc-cards > .wp-block-column { display: flex; flex-direction: column; }
@media (min-width: 782px) and (max-width: 1100px) { .nc-cards { flex-wrap: wrap !important; } .nc-cards > .wp-block-column { flex-basis: calc(33.33% - 1rem) !important; flex-grow: 0; } }

/* ---------- Promise & values ---------- */
.nc-promise { position: relative; background: linear-gradient(180deg, #f4f9ff 0%, #e6f1fb 100%); overflow: hidden; }
.nc-promise::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 150px; background: url("assets/icons/mountains-band.svg") bottom / 100% 100% no-repeat; opacity: .75; pointer-events: none; }
.nc-promise > * { position: relative; z-index: 1; }
.nc-value { display: flex; align-items: center; gap: 1rem; justify-content: center; }
.nc-value .wp-block-image { margin: 0; flex: 0 0 auto; }
.nc-value .wp-block-image img { width: 72px; height: 72px; padding: 16px; border-radius: 50%; background: #fff; box-shadow: var(--nc-shadow); }
.nc-value h3 { font-size: 1.25rem; margin: 0; }
.nc-value .nc-swoosh img { width: 140px; height: 10px; object-fit: fill; margin-top: .3rem; }
@media (min-width: 782px) { .nc-values > .wp-block-column + .wp-block-column { border-left: 1px solid rgba(22,62,115,.15); } }

/* ---------- Post feeds (News, Administrator's Corner) ---------- */
.nc-feed-head { align-items: center; }
.nc-feed-head .wp-block-image { margin: 0; }
.nc-feed-head .wp-block-image img { width: 44px; height: 44px; }
.nc-feed-head h2 { margin: 0; }
.nc-feed-head p { margin: 0; font-size: .9rem; color: var(--wp--preset--color--muted); }
.nc-feed .wp-block-post-template { gap: 1.1rem; }
.nc-feed .wp-block-post { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--nc-shadow); display: flex; flex-direction: column; transition: transform .2s ease; }
.nc-feed .wp-block-post:hover { transform: translateY(-3px); }
.nc-feed .wp-block-post-featured-image { margin: 0; }
.nc-feed .wp-block-post-featured-image img { aspect-ratio: 16 / 7; object-fit: cover; width: 100%; }
.nc-feed .nc-post-body { padding: .8rem 1rem 1rem; flex: 1; display: flex; flex-direction: column; gap: .45rem; }
.nc-feed .wp-block-post-title { font-size: 1rem; font-family: var(--wp--preset--font-family--heading); font-weight: 800; margin: 0; }
.nc-feed .wp-block-post-title a { color: var(--wp--preset--color--navy); text-decoration: none; }
.nc-feed .wp-block-post-excerpt { font-size: .85rem; color: var(--wp--preset--color--muted); margin: 0; }
.nc-feed .wp-block-post-excerpt__more-text { display: none; }
.nc-feed .wp-block-post-date { font-size: .8rem; color: var(--wp--preset--color--muted); margin-top: auto; }
.nc-feed .wp-block-post-date::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; background: url("assets/icons/calendar-navy.svg") center / contain no-repeat; }
.nc-admin-corner { background: linear-gradient(180deg, #f3f9ef 0%, #eef7e9 100%); }

/* ---------- Join + Support band ---------- */
.nc-join { background: #fff; }
.nc-join-photo { margin: 0; }
.nc-join-photo img { border-radius: 0 50% 50% 0 / 0 60% 60% 0; background: var(--wp--preset--color--yellow); object-fit: cover; aspect-ratio: 1 / 1; max-width: 220px; }
.nc-join h2, .nc-support h2 { font-size: 1.7rem; margin: 0; }
.nc-join .nc-inline-title { display: flex; align-items: center; gap: .5rem; }
.nc-join .nc-inline-title .wp-block-image { margin: 0; }
.nc-join .nc-inline-title .wp-block-image img { width: 34px; height: 34px; }
.nc-support { background: linear-gradient(135deg, #fff 0%, #fff8ee 100%); border-left: 1px solid rgba(22,62,115,.12); border-radius: var(--nc-radius); }
@media (max-width: 781px) { .nc-support { border-left: 0; } }

/* ---------- Footer ---------- */
.nc-footer { background: var(--wp--preset--color--navy); color: #fff; }
.nc-footer a { color: #fff; text-decoration: none; }
.nc-footer a:hover { text-decoration: underline; }
.nc-footer .wp-block-site-logo img { filter: brightness(0) invert(1); max-height: 60px; width: auto; }
.nc-footer h3 { color: #fff; font-size: 1rem; margin: 0 0 .3rem; }
.nc-footer p { font-size: .9rem; margin: 0; line-height: 1.5; }
.nc-footer .wp-block-columns > .wp-block-column + .wp-block-column { border-left: 1px solid rgba(255,255,255,.25); padding-left: 1.5rem; }
.nc-footer .nc-icon-row { display: flex; gap: .6rem; align-items: flex-start; }
.nc-footer .nc-icon-row .wp-block-image { margin: 0; flex: 0 0 auto; }
.nc-footer .nc-icon-row .wp-block-image img { width: 20px; height: 20px; }
.nc-footer .nc-links p { display: flex; align-items: center; gap: .5rem; }
.nc-footer .nc-links img { width: 18px; height: 18px; }
.nc-footer .nc-bottom { border-top: 1px solid rgba(255,255,255,.15); font-size: .8rem; opacity: .8; }
@media (max-width: 781px) { .nc-footer .wp-block-columns > .wp-block-column + .wp-block-column { border-left: 0; padding-left: 0; } }

/* ---------- Generic pages ---------- */
.nc-page-header { background: linear-gradient(90deg, #f4f9ff 0%, #eaf3fc 100%); }

/* ---------- Image placeholders (demo) ---------- */
.nc-demo-image { position: relative; }
