/* Consul-specific styles: text wordmark logo + components that reuse template
   classes outside their original CSS scope. Values mirror the Governlia theme
   (shadow 0 10px 21.25px rgba(0,0,0,.06), icomoon check \e902, accent #2982e5). */

/* --- wordmark logo (replaces the image logo) --- */
.logo h1, .logo .site-name, .nav-logo .site-name { margin: 0; line-height: 1.05; }
.logo h1 a, .logo .site-name a, .nav-logo .site-name a {
    font-family: 'Merriweather', serif; font-weight: 700; font-size: 30px;
    color: #fff; letter-spacing: -.5px; white-space: nowrap; text-decoration: none;
}
.logo h1 a:hover, .logo .site-name a:hover, .nav-logo .site-name a:hover { color: #2982e5; }
.logo .logo-region { display: block; font-family: 'Arimo', sans-serif; font-weight: 700;
    font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #2982e5; }
.nav-logo .site-name a { font-size: 26px; color: #fff; }
/* sticky header has a #111 background — keep the wordmark readable */
.sticky-header .logo .site-name a { color: #fff; }

/* hide the decorative watermark titles site-wide */
.big-title { display: none; }

/* darker body copy for readability (template default .text is a faint #555) */
.about-section .content-block .text, .services-section .service-block .content .text { color: #333; }

/* dark overlay on the page-title hero so the header nav + title stay readable over photos */
.page-title:before { content: ''; position: absolute; left: 0; right: 0; top: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.60) 0%, rgba(0,0,0,.35) 100%); }
.page-title .auto-container { position: relative; z-index: 2; }

/* --- territory cards (territories.php, .territory-cards only — scoped so it
   does NOT bleed onto .service-block cards that share .services-section) --- */
.territory-cards .inner-box { background: #fff; overflow: hidden; margin-bottom: 30px;
    box-shadow: 0 10px 21.25px 3.75px rgba(0, 0, 0, .06); }
.territory-cards .inner-box .image img { display: block; width: 100%; height: 300px; object-fit: cover; }
.territory-cards .inner-box .content { padding: 35px 40px 40px; }
.territory-cards .inner-box .content h3 { margin-bottom: 4px; }
.territory-cards .inner-box .content h4 { color: #2982e5; font-family: 'Arimo', sans-serif;
    font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px; }
.territory-cards .inner-box .content .text { margin-bottom: 22px; }
.territory-cards .inner-box .content .list { display: flex; flex-wrap: wrap; gap: 10px; }
.territory-cards .inner-box .content .list li { background: #f4f4f4; color: #222; font-weight: 700;
    font-size: 13px; padding: 6px 14px; border-radius: 3px; }

/* --- list/text blocks reused under .city-program-section (mandates initiatives, about purpose) --- */
.city-program-section .content-block .text { color: #222; font-size: 16px; line-height: 30px; margin-bottom: 20px; }
.city-program-section .content-block .list li { position: relative; padding-left: 30px;
    margin-bottom: 12px; font-weight: 700; color: #222; }
.city-program-section .content-block .list li:after { font-family: 'icomoon'; content: "\e902";
    position: absolute; left: 0; top: 5px; font-size: 15px; font-weight: 400;
    border-right: 1px solid #222; padding-right: 5px; }

/* --- relief gallery: uniform tiles, caption overlaid so lengths don't stagger --- */
.relief-gallery { padding: 80px 0 50px; }
.relief-gallery .gallery-item { position: relative; margin: 0 0 30px; overflow: hidden;
    box-shadow: 0 10px 21.25px 3.75px rgba(0,0,0,.06); }
.relief-gallery .gallery-item img { display: block; width: 100%; height: 280px; object-fit: cover; }
.relief-gallery .gallery-item figcaption { position: absolute; left: 0; right: 0; bottom: 0;
    padding: 45px 22px 18px; color: #fff; font-size: 14px; line-height: 20px;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 100%); }

/* --- submission flash message --- */
.portal-flash { margin: 30px 0 0; padding: 16px 24px; border-radius: 4px; font-weight: 700; }
.portal-flash.ok { background: #e8f5e9; color: #1b7a2f; border: 1px solid #b7e0bd; }
.portal-flash.err { background: #fdecea; color: #b3261e; border: 1px solid #f5c6c2; }

/* --- services portal: interactive service picker --- */
.pt-60 { padding-top: 60px !important; } .pt-0 { padding-top: 0 !important; } .pb-0 { padding-bottom: 0 !important; }
.svc-panel { padding: 40px; }
.svc-panel h3 { margin-bottom: 20px; }
.svc-list { display: flex; flex-direction: column; gap: 8px; max-height: 470px; overflow-y: auto; }
.svc-item { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
    border: 1px solid #e5e5e5; background: #fff; color: #222; font-weight: 700; font-size: 15px;
    padding: 14px 18px; border-radius: 4px; cursor: pointer; transition: .25s; }
.svc-item i { color: #2982e5; font-size: 18px; width: 22px; text-align: center; transition: .25s; }
.svc-item:hover { border-color: #2982e5; }
.svc-item.active { background: #2982e5; border-color: #2982e5; color: #fff; }
.svc-item.active i { color: #fff; }
.svc-selected { font-weight: 700; color: #2982e5; }
.svc-subscribe { display: flex; flex-wrap: wrap; gap: 12px; max-width: 620px; margin: 25px auto 0; }
.svc-subscribe input[type=email] { flex: 1 1 240px; height: 55px; padding: 0 20px; border: 1px solid #ddd; border-radius: 4px; }

.svc-item .svc-go { margin-left: auto; font-size: 13px; color: #2982e5; }

/* --- directory / resources rows --- */
.dir-table { max-width: 900px; margin: 0 auto; }
.dir-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
    background: #fff; border: 1px solid #eee; box-shadow: 0 10px 21.25px 3.75px rgba(0,0,0,.05);
    padding: 22px 28px; margin-bottom: 16px; border-radius: 4px; }
.dir-office { flex: 1 1 300px; }
.dir-office h4 { margin-bottom: 4px; }
.res-tag { display: inline-block; background: #eef4fd; color: #2982e5; font-weight: 700;
    font-size: 12px; letter-spacing: .5px; text-transform: uppercase; padding: 4px 12px; border-radius: 3px; }
.res-request { display: flex; gap: 10px; flex-wrap: wrap; }
.res-request input[type=email] { height: 48px; padding: 0 16px; border: 1px solid #ddd; border-radius: 4px; }

/* --- verification result cards --- */
.verify-results { margin-top: 35px; }
.verify-card { padding: 28px 30px; border-radius: 6px; margin-bottom: 18px; }
.verify-card.ok { background: #e8f5e9; border: 1px solid #b7e0bd; }
.verify-card.no { background: #fdf6ec; border: 1px solid #f2d9a6; }
.verify-badge { font-weight: 700; margin-bottom: 10px; font-size: 15px; }
.verify-card.ok .verify-badge { color: #1b7a2f; }
.verify-card.no .verify-badge { color: #a06a12; }
.verify-ref { margin-top: 8px; font-weight: 700; color: #222; letter-spacing: .5px; }

/* --- readable text over photo-background banner sections (overlay + white text) --- */
.video-section, .contact-info-section .wrapper-box { position: relative; }
.video-section:before, .contact-info-section .wrapper-box:before { content: ''; position: absolute;
    left: 0; right: 0; top: 0; bottom: 0; background: rgba(9, 14, 28, .74); border-radius: inherit; }
.video-section > *, .contact-info-section .wrapper-box > * { position: relative; z-index: 1; }
.contact-info-section .wrapper-box, .contact-info-section .wrapper-box h2,
.contact-info-section .wrapper-box h4, .contact-info-section .wrapper-box h5,
.contact-info-section .wrapper-box .text, .contact-info-section .wrapper-box a { color: #fff; }

/* --- donation amount selector --- */
.amount-options { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; }
.amount-btn { border: 1px solid #ddd; background: #f4f4f4; color: #222; font-weight: 700;
    font-size: 16px; padding: 12px 22px; border-radius: 3px; cursor: pointer; transition: .3s; }
.amount-btn:hover { border-color: #2982e5; color: #2982e5; }
.amount-btn.active { background: #2982e5; border-color: #2982e5; color: #fff; }

/* --- contact left column (.contact-form-section .contact-info-block) --- */
.contact-form-section .contact-info-block h3 { margin-bottom: 12px; }
.contact-form-section .contact-info-block .contact-info li { display: flex; align-items: flex-start;
    gap: 15px; margin-bottom: 22px; }
.contact-form-section .contact-info-block .contact-info li .icon img { max-width: 40px; }
.contact-form-section .contact-info-block .contact-info li .text strong { display: block; color: #222; }
.contact-form-section .contact-info-block .contact-info li .text a { color: #2982e5; }

/* ============================================================
   SaaS portal chrome (portal/* pages) — separate from public site
   ============================================================ */
.portal-body { background: #f4f6f9; color: #222; }
.portal-bar { display: flex; align-items: center; justify-content: space-between;
    background: #111; padding: 16px 40px; }
.portal-brand { font-family: 'Merriweather', serif; font-weight: 700; font-size: 22px; color: #fff; text-decoration: none; }
.portal-brand span { color: #2982e5; }
.portal-nav { display: flex; align-items: center; gap: 22px; }
.portal-nav a { color: #ddd; text-decoration: none; font-weight: 700; font-size: 15px; }
.portal-nav a:hover { color: #fff; }
.portal-user { color: #8a94a6; font-weight: 700; }
.portal-cta, .portal-logout { color: #fff !important; background: #2982e5; padding: 8px 18px; border-radius: 4px; }
.portal-logout { background: #333; }
.portal-main { padding: 45px 0 70px; }
.portal-container { max-width: 1100px; margin: 0 auto; padding: 0 25px; }
.portal-narrow { max-width: 480px; margin: 0 auto; }
.portal-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 25px; align-items: start; }
@media (max-width: 860px) { .portal-grid { grid-template-columns: 1fr; } }
.portal-card { background: #fff; border: 1px solid #e8ebef; border-radius: 8px;
    box-shadow: 0 10px 24px rgba(0,0,0,.05); padding: 32px 34px; margin-bottom: 25px; }
.portal-card h2 { font-size: 24px; margin-bottom: 18px; }
.portal-card label { display: block; font-weight: 700; margin-bottom: 16px; font-size: 14px; }
.portal-card input, .portal-card select, .portal-card textarea {
    display: block; width: 100%; margin-top: 6px; padding: 12px 15px; font-weight: 400;
    border: 1px solid #d7dce3; border-radius: 5px; background: #fff; }
.portal-card .muted, .muted { color: #8a94a6; font-size: 14px; }
.portal-card .theme-btn { margin-top: 8px; }
.portal-table { width: 100%; border-collapse: collapse; }
.portal-table th, .portal-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid #eef1f5; font-size: 14px; vertical-align: top; }
.portal-table th { color: #8a94a6; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.portal-table .note { margin-top: 6px; color: #555; font-size: 13px; }
.stat { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.stat.new { background: #eef4fd; color: #2982e5; }
.stat.review { background: #fff4e5; color: #a06a12; }
.stat.ok { background: #e8f5e9; color: #1b7a2f; }
.stat.err { background: #fdecea; color: #b3261e; }
.stat.muted { background: #eceff3; color: #6b7280; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.filters a { font-size: 13px; font-weight: 700; padding: 7px 14px; border-radius: 20px;
    background: #eef1f5; color: #444; text-decoration: none; }
.filters a.on { background: #2982e5; color: #fff; }
.req { border: 1px solid #eef1f5; border-radius: 8px; padding: 20px 22px; margin-bottom: 16px; }
.req-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.req-subj { margin-top: 4px; }
.req-from { text-align: right; font-size: 13px; color: #555; }
.req-detail { margin: 14px 0; padding: 14px 16px; background: #f7f9fb; border-radius: 5px; font-size: 14px; }
.req-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.req-actions select { width: auto; padding: 10px 14px; border: 1px solid #d7dce3; border-radius: 5px; }
.req-actions input[type=text] { flex: 1 1 240px; padding: 10px 14px; border: 1px solid #d7dce3; border-radius: 5px; }
.req-actions .theme-btn { margin: 0; }
.portal-foot { text-align: center; padding: 24px; color: #8a94a6; font-size: 13px; }

/* --- blog / news cards --- */
.blog-card { background: #fff; overflow: hidden; margin-bottom: 30px;
    box-shadow: 0 10px 21.25px 3.75px rgba(0,0,0,.06); }
.blog-cover { display: block; height: 220px; background-size: cover; background-position: center; }
.blog-body { padding: 24px 26px 26px; }
.blog-date { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #2982e5; margin-bottom: 8px; }
.blog-body h4 { margin-bottom: 10px; }
.blog-body h4 a { color: #222; } .blog-body h4 a:hover { color: #2982e5; }
.blog-more { font-weight: 700; color: #2982e5; }
.post-meta { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #2982e5; margin-bottom: 14px; }
.post-lead { font-family: 'Merriweather', serif; font-weight: 400; line-height: 1.5; margin-bottom: 24px; color: #333; }
.post-body p { color: #333; font-size: 16px; line-height: 30px; margin-bottom: 18px; }
.row-actions { display: flex; gap: 10px; align-items: center; }
.row-actions form { display: inline; }
.row-actions button { background: none; border: 0; color: #2982e5; font-weight: 700; cursor: pointer; padding: 0; font-size: 13px; }
.row-actions button.danger { color: #b3261e; }
.portal-card label.check { display: flex; align-items: center; gap: 8px; }
.portal-card label.check input { width: auto; margin: 0; }

/* keep image boxes clipped (was part of the rounded-corner pass; still needed square) */
.contact-form-section .wrapper-box, .contact-form-section .our-facts, .relief-gallery .gallery-item,
.territory-cards .inner-box, .contact-info-section .wrapper-box { overflow: hidden; }

/* --- site-content CMS rows --- */
.cms-sub { font-size: 16px; margin: 22px 0 12px; }
.cms-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.cms-row input[type=text] { flex: 1 1 160px; padding: 10px 14px; border: 1px solid #d7dce3; }
.cms-row .theme-btn { margin: 0; }
.cms-del { background: none; border: 0; color: #b3261e; font-weight: 700; cursor: pointer; font-size: 13px; }

/* --- header language dropdown (Google-translated) --- */
.site-lang { font-size: 13px; font-weight: 700; padding: 5px 10px; margin-left: 18px;
    border: 1px solid rgba(255,255,255,.3); border-radius: 16px;
    background: transparent; color: #fff; cursor: pointer;
    max-width: 140px; transition: border-color .25s; }
.site-lang option { color: #222; }
.site-lang:disabled { opacity: .5; }
.site-lang:hover, .site-lang:focus { border-color: #2982e5; outline: 0; }
/* second copy of the picker lives inside the hamburger menu for small screens
   (the header-top one is display:none below 1500px via responsive.css) */
.menu-lang { padding: 25px 30px; }
.menu-lang .site-lang { width: 100%; max-width: 100%; margin: 0; padding: 10px 14px;
    border-radius: 6px; border-color: rgba(255,255,255,.3); color: #fff; background: rgba(255,255,255,.06); }

/* hamburger active (<=1139px): logo left, burger top-right on one uncrowded row.
   clamp() scales the wordmark with the viewport so it can never collide with the burger,
   and overflow:hidden on the logo box is the belt-and-braces if it somehow still would. */
@media (max-width: 1139px) {
    .main-header .header-upper .inner-container { flex-wrap: nowrap; }
    .main-header .header-upper .logo-box { flex: 1 1 auto; min-width: 0; overflow: hidden; }
    .main-header .header-upper .logo-box .logo h1 a { font-size: clamp(16px, 4.5vw, 24px); }
    .nav-outer { display: flex; align-items: center; flex-shrink: 0; margin-left: auto; padding-left: 15px; }
    .nav-outer .mobile-nav-toggler { float: none; margin: 0; }
}

/* --- translating state: gentle fade while text swaps --- */
.page-wrapper { transition: opacity .3s ease; }
html.translating { cursor: progress; }
html.translating .page-wrapper { opacity: .55; pointer-events: none; }

/* --- forms: responsive + focus/hover polish --- */
.contact-form .form-group input,
.contact-form .form-group textarea {
    font-size: 16px; /* 16px+ stops iOS zooming the page on focus */
    transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
    background: #fff; border-color: #2982e5; outline: 0;
    box-shadow: 0 4px 16px rgba(41, 130, 229, .12);
}
.amount-btn { transition: border-color .2s ease, color .2s ease, background-color .2s ease, transform .2s ease; }
.amount-btn:hover { transform: translateY(-1px); }
.theme-btn.btn-style-one { transition: transform .25s ease, box-shadow .25s ease; }
.theme-btn.btn-style-one:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(41, 130, 229, .25); }
.theme-btn.is-sending { opacity: .7; pointer-events: none; }
.theme-btn.is-sending span::before {
    content: ''; display: inline-block; width: 14px; height: 14px; margin-right: 10px;
    border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%;
    vertical-align: -2px; animation: lw-spin .7s linear infinite;
}
@keyframes lw-spin { to { transform: rotate(360deg); } }

/* gallery: subtle zoom, nothing showy */
.relief-gallery .gallery-item { overflow: hidden; }
.relief-gallery .gallery-item img { transition: transform .5s ease; }
.relief-gallery .gallery-item:hover img { transform: scale(1.04); }

@media (max-width: 991px) {
    .contact-form-section { padding: 60px 0; }
    .contact-form-section .wrapper-box { padding: 0 5px; }
    .contact-form-section .our-facts { max-width: 100%; padding: 160px 25px 35px; margin-bottom: 10px; }
    .contact-form-section .contact-form-area { padding: 35px 20px 45px; }
    .contact-form .form-group input, .contact-form .form-group textarea { padding: 0 18px; }
    .contact-form .form-group textarea { padding-top: 14px; }
    /* preset amounts: 3-up grid instead of a ragged wrap */
    .amount-btn { flex: 1 1 calc(33.33% - 10px); min-width: 0; }
    /* full-width submit reads better on a phone */
    .contact-form .theme-btn.btn-style-one { width: 100%; text-align: center; }
}
