/*
Theme Name: CoolVu of South Jersey
Author: Empirical Edge Inc.
Version: 1.0
*/

:root {
  --cv-primary: #2563eb;
  --cv-primary-dark: #1d4ed8;
  --cv-secondary: #1e293b;
  --cv-slate: #475569;
  --cv-light: #f8fafc;
  --cv-border: #e2e8f0;
  --cv-shadow: 0 10px 30px -12px rgba(30, 41, 59, 0.18);
  --cv-shadow-lg: 0 24px 50px -18px rgba(37, 99, 235, 0.35);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--cv-secondary);
  background-color: #ffffff;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--cv-secondary);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); }

p { color: var(--cv-slate); }

a {
  color: var(--cv-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--cv-primary-dark); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cv-primary);
  margin-bottom: 0.75rem;
}

.hero .eyebrow,
.section-brand .eyebrow {
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Navbar ---------- */
.site-navbar {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--cv-border);
  box-shadow: 0 2px 20px -12px rgba(30, 41, 59, 0.25);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.site-navbar .navbar-brand {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cv-secondary);
}

.site-navbar .navbar-nav a {
  color: var(--cv-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem;
  border-radius: 0.5rem;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site-navbar .navbar-nav a:hover,
.site-navbar .navbar-nav a:focus,
.site-navbar .navbar-nav .active > a,
.site-navbar .navbar-nav a.active {
  color: var(--cv-primary);
  background-color: rgba(37, 99, 235, 0.08);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  width: 100%;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 55%, #1e293b 100%);
  padding: clamp(4rem, 10vw, 7.5rem) 0;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 55%;
  height: 160%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.12), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 100% 3.5rem;
  opacity: 0.5;
  pointer-events: none;
}

.hero > * { position: relative; z-index: 1; }

.hero h1 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 400;
  max-width: 42rem;
}

/* ---------- Brand section ---------- */
.section-brand {
  width: 100%;
  color: #ffffff;
  background: linear-gradient(120deg, var(--cv-secondary) 0%, #24344d 100%);
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-brand h1,
.section-brand h2,
.section-brand h3,
.section-brand h4 {
  color: #ffffff;
}

.section-brand p {
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- Cards ---------- */
.card {
  border: 1px solid var(--cv-border);
  border-radius: 1rem;
  background-color: #ffffff;
  box-shadow: var(--cv-shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--cv-shadow-lg);
  border-color: rgba(37, 99, 235, 0.35);
}

.card .card-title {
  font-weight: 700;
  color: var(--cv-secondary);
}

.card .card-body { padding: 1.75rem; }

/* ---------- Buttons ---------- */
.btn {
  font-weight: 600;
  border-radius: 0.6rem;
  padding: 0.7rem 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
  --bs-btn-bg: var(--cv-primary);
  --bs-btn-border-color: var(--cv-primary);
  --bs-btn-hover-bg: var(--cv-primary-dark);
  --bs-btn-hover-border-color: var(--cv-primary-dark);
  --bs-btn-active-bg: var(--cv-primary-dark);
  box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.6);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -8px rgba(37, 99, 235, 0.7);
}

.btn-outline-primary {
  --bs-btn-color: var(--cv-primary);
  --bs-btn-border-color: var(--cv-primary);
  --bs-btn-hover-bg: var(--cv-primary);
  --bs-btn-hover-border-color: var(--cv-primary);
}

.hero .btn-light {
  color: var(--cv-primary);
  font-weight: 700;
}

.hero .btn-light:hover { transform: translateY(-2px); }

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--cv-secondary);
  color: rgba(255, 255, 255, 0.72);
  padding: 3.5rem 0 2rem;
}

.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5 {
  color: #ffffff;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s ease;
}

.site-footer a:hover { color: #ffffff; }

.site-footer hr {
  border-color: rgba(255, 255, 255, 0.12);
  opacity: 1;
}

/* ---------- Contact form (CF7) ---------- */
.wpcf7 input,
.wpcf7 textarea,
.wpcf7 select {
  width: 100%;
  border: 1px solid var(--cv-border);
  border-radius: 0.6rem;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--cv-secondary);
  background-color: #ffffff;
  margin-bottom: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
  outline: none;
  border-color: var(--cv-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.wpcf7 textarea { min-height: 8rem; resize: vertical; }

.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit {
  width: auto;
  background-color: var(--cv-primary);
  color: #ffffff;
  font-weight: 600;
  border: none;
  border-radius: 0.6rem;
  padding: 0.8rem 2rem;
  cursor: pointer;
  box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.6);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 .wpcf7-submit:hover {
  background-color: var(--cv-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -8px rgba(37, 99, 235, 0.7);
}

/* ---------- Utility brand accents ---------- */
.text-brand { color: var(--cv-primary) !important; }
.bg-brand { background-color: var(--cv-primary) !important; }

.section-pad { padding: clamp(3.5rem, 8vw, 6rem) 0; }

.lead {
  font-weight: 400;
  line-height: 1.6;
}

@media (min-width: 992px) {
  .hero .lead { font-size: 1.3rem; }
}

@media (max-width: 575.98px) {
  .card .card-body { padding: 1.35rem; }
}
/* brand-lock (authoritative — loads last) */
:root{--bs-primary:#2563eb;--bs-primary-rgb:37,99,235;--bs-link-color:#2563eb;--bs-link-color-rgb:37,99,235;--bs-link-hover-color:#1e293b}
.btn-primary{--bs-btn-bg:#2563eb;--bs-btn-border-color:#2563eb;--bs-btn-hover-bg:#1e293b;--bs-btn-hover-border-color:#1e293b;--bs-btn-active-bg:#1e293b;--bs-btn-active-border-color:#1e293b}
.btn-outline-primary{--bs-btn-color:#2563eb;--bs-btn-border-color:#2563eb;--bs-btn-hover-bg:#1e293b;--bs-btn-hover-border-color:#1e293b;--bs-btn-active-bg:#1e293b}
.text-primary{color:#2563eb!important}.bg-primary{background-color:#2563eb!important}.link-primary{color:#2563eb!important}
body{font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif}
h1,h2,h3,h4,h5,h6,.navbar-brand,.footer-brand{font-family:'Inter', system-ui, sans-serif}
.topbar{background:#2563eb;color:#fff;font-size:.85rem}
.topbar-inner{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem;padding:.4rem 0}
.topbar a{color:#fff;text-decoration:none;display:inline-flex;align-items:center;gap:.35rem;margin-right:1rem}
.topbar a:hover{color:#1e293b}
.topbar-contact svg,.topbar-social svg{width:15px;height:15px;fill:currentColor}
.topbar-social a{margin-right:.55rem}
@media (max-width:575.98px){.topbar-inner{flex-direction:column;justify-content:center;text-align:center;gap:.3rem;padding:.5rem 0}.topbar-contact{display:flex;flex-wrap:wrap;justify-content:center;gap:.1rem .5rem}.topbar-contact a{margin-right:0}.topbar-social{display:flex;justify-content:center}.topbar-social a{margin:0 .28rem}}
.navbar{background:#fff;border-bottom:1px solid #e9ecef;position:sticky;top:0;z-index:1030}
.navbar .navbar-brand{font-weight:800;color:#2563eb}
.custom-logo-link{display:inline-flex;align-items:center}
header .custom-logo,.site-header .custom-logo,.navbar .custom-logo{height:72px;width:auto;max-width:340px;object-fit:contain}
.navbar .navbar-nav a,.navbar .nav-link{color:#1f2937;font-weight:500;padding:.5rem 1rem;text-decoration:none}
.navbar .navbar-nav a,.navbar .nav-link{transition:color .2s ease}
.navbar .navbar-nav a:hover,.navbar .nav-link:hover{color:#1e293b}
.navbar .current-menu-item>a,.navbar .current_page_item>a,.navbar .current-menu-ancestor>a,.navbar .current-menu-parent>a,.navbar .nav-link.active,.navbar .active>a{color:#2563eb;font-weight:700;box-shadow:inset 0 -2px 0 #2563eb}
.site-footer{background:#0f172a;color:#cbd5e1;border-top:4px solid #2563eb;padding:2.75rem 0 1.5rem;text-align:center}
.site-footer .container>*,.site-footer .footer-brand,.site-footer p,.site-footer h1,.site-footer h2,.site-footer h3,.site-footer h4,.site-footer h5,.site-footer h6{text-align:center!important}
.site-footer .text-start,.site-footer .text-sm-start,.site-footer .text-md-start,.site-footer .text-lg-start,.site-footer .text-xl-start,.site-footer .text-end,.site-footer .text-md-end,.site-footer .text-lg-end{text-align:center!important}
.site-footer .row{justify-content:center}
.site-footer .align-items-start,.site-footer .align-items-end{align-items:center!important}.site-footer .justify-content-start,.site-footer .justify-content-between,.site-footer .justify-content-end{justify-content:center!important}
.site-footer a{color:#fff;text-decoration:none}
.site-footer a:hover{color:#737b86}
.site-footer .footer-brand{color:#fff}
.site-footer p,.site-footer li,.site-footer span,.site-footer small{color:#cbd5e1}
.site-footer .text-muted,.site-footer .text-secondary,.site-footer .text-body-secondary,.site-footer .text-dark,.site-footer .text-black{color:#94a3b8!important}
.site-footer ul{display:flex;flex-wrap:wrap;justify-content:center;gap:.35rem 1.75rem;list-style:none;margin:1.25rem 0;padding-left:0}
.site-footer ul li{list-style:none;margin:0}
.site-footer ul a{display:inline-block;padding:.15rem 0;white-space:nowrap}
.footer-extras{margin-top:1.25rem}
.footer-intro{margin-bottom:1.5rem}
.footer-intro .footer-brand{color:#fff;margin-bottom:.25rem}
.footer-intro .footer-tagline{color:#94a3b8;font-size:.95rem;margin:0}
.footer-logo{margin-bottom:1rem}
.footer-logo img,.footer-logo .custom-logo{max-height:64px;width:auto;height:auto;background:#fff;padding:10px 14px;border-radius:8px}
.footer-contact{display:flex;flex-wrap:wrap;justify-content:center;gap:1.25rem;margin:0 0 1rem}
.footer-cta{display:inline-flex;align-items:center;gap:.4rem;color:#fff;font-weight:500}
.site-footer .footer-cta:hover{color:#737b86}
.footer-cta svg{width:16px;height:16px;fill:currentColor}
.footer-social{display:flex;justify-content:center;gap:.6rem;margin:.5rem 0 0}
.footer-social-link{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.18);color:#fff;transition:background .2s ease,border-color .2s ease,transform .2s ease}
.site-footer .footer-social-link:hover{background:#737b86;border-color:#737b86;color:#fff;transform:translateY(-2px)}
.footer-social-link svg{width:18px;height:18px;fill:currentColor}
.topbar-social-link{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;transition:background .2s ease,transform .2s ease}
.topbar-social-link:hover{background:rgba(255,255,255,.18);transform:translateY(-1px)}
.contact-details{list-style:none;margin:0;padding:0}
.contact-details .contact-item{display:flex;flex-direction:column;padding:.85rem 0;border-bottom:1px solid #e9ecef}
.contact-details .contact-item:last-child{border-bottom:0}
.contact-details .contact-label{font-size:.75rem;text-transform:uppercase;letter-spacing:.06em;color:#6b7280;margin-bottom:.2rem}
.contact-details a{color:#2563eb;font-weight:500;text-decoration:none}
.contact-details a:hover{color:#1e293b;text-decoration:underline}
.footer-copyright{margin:1.5rem 0 0;padding-top:1.25rem;border-top:1px solid rgba(255,255,255,.1);font-size:.85rem;color:#cbd5e1}
.footer-credit{margin:.5rem 0 0;font-size:.8rem;color:rgba(255,255,255,.6)}
.footer-credit a{color:rgba(255,255,255,.7);text-decoration:none}
.footer-credit a:hover{color:#fff;text-decoration:underline}
.card{--bs-card-color:#1f2937;color:#1f2937}
.card .card-body,.card p,.card li,.card .card-title{color:#1f2937}
.card h1,.card h2,.card h3,.card h4,.card h5,.card h6{color:#1f2937}
.hero,.section-brand{color:#fff}
.hero .wp-block-heading,.section-brand .wp-block-heading{color:#fff}
.wp-block-button__link{background:#2563eb;color:#fff;border-radius:.5rem;padding:.7rem 1.6rem;font-weight:600;text-decoration:none;display:inline-block;transition:background .2s ease,color .2s ease,transform .15s ease,box-shadow .2s ease}
.wp-block-button__link:hover,.wp-block-button__link:focus{background:#1e293b!important;color:#fff!important;transform:translateY(-1px);box-shadow:0 4px 12px rgba(0,0,0,.15)}
.hero .wp-block-button__link,.section-brand .wp-block-button__link{background:#fff;color:#2563eb}
.hero .wp-block-button__link:hover,.section-brand .wp-block-button__link:hover{background:#1e293b!important;color:#fff!important}
.wp-block-columns{gap:1.5rem;margin-top:1.5rem}
@media (min-width:768px) and (max-width:991.98px){.wp-block-columns{flex-wrap:wrap!important}.wp-block-columns>.wp-block-column{flex-basis:calc(50% - .75rem)!important}}
@media (max-width:767.98px){.wp-block-columns>.wp-block-column{flex-basis:100%!important}}
.wp-block-columns .wp-block-image{margin:0}
.wp-block-columns .wp-block-image img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:.75rem}
.hero .wp-block-image img{width:100%;height:auto;max-height:360px;object-fit:cover;border-radius:.75rem}
.wp-block-group.card{height:100%}
.card .wp-block-image{margin:0 0 1rem}
.card .wp-block-image img{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:.5rem}
.wp-block-latest-posts.is-grid{display:grid !important;grid-template-columns:repeat(3,1fr);gap:1.5rem;list-style:none;margin:0;padding:0}
@media (max-width:991.98px){.wp-block-latest-posts.is-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width:767.98px){.wp-block-latest-posts.is-grid{grid-template-columns:1fr}}
.wp-block-latest-posts.is-grid>li{width:auto !important;max-width:none !important;margin:0 !important;display:flex;flex-direction:column;min-width:0;overflow:hidden;background:#fff;border:1px solid #e9ecef;border-radius:.85rem;box-shadow:0 6px 20px rgba(15,23,42,.06)}
.wp-block-latest-posts__featured-image{margin:0}
.wp-block-latest-posts__featured-image img{width:100%;aspect-ratio:16/10;object-fit:cover;display:block}
.wp-block-latest-posts.is-grid>li>:not(.wp-block-latest-posts__featured-image){padding-left:1.15rem;padding-right:1.15rem}
.wp-block-latest-posts__post-title{display:block;margin:1rem 0 0;font-weight:700;font-size:1.05rem;line-height:1.35;color:#1f2937;text-decoration:none}
.wp-block-latest-posts__post-title:hover{color:#2563eb}
.wp-block-latest-posts__post-date{display:block;margin-top:.35rem;color:#6b7280;font-size:.8rem}
.wp-block-latest-posts__post-excerpt{margin:.6rem 0 1.15rem;color:#4b5563;font-size:.92rem;line-height:1.6}
.wp-block-latest-posts__post-excerpt a{color:#2563eb;font-weight:600;text-decoration:none}
.wp-block-latest-posts__post-excerpt a:hover{color:#1e293b;text-decoration:underline}
.feature-stack{max-width:100%;margin:0}
.wpcf7 input:not([type=submit]),.wpcf7 textarea{width:100%}
.wpcf7 .wpcf7-submit{width:auto;display:inline-block;min-width:180px}
.wpcf7 .wpcf7-form{max-width:640px}
.text-center h1,.text-center h2,.text-center h3,.text-center h4,.text-center h5,.text-center h6,.text-center p,.text-center .eyebrow{text-align:center}
.text-center .wp-block-buttons{justify-content:center}
.text-center p,.text-center .lead,.text-center .wp-block-paragraph{margin-left:auto;margin-right:auto}
.portal-pagination{display:flex;justify-content:center;margin-top:2.5rem}
.portal-pagination .page-numbers{display:flex;flex-wrap:wrap;gap:.4rem;list-style:none;margin:0;padding:0}
.portal-pagination .page-numbers li{margin:0}
.portal-pagination a.page-numbers,.portal-pagination span.page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:2.5rem;height:2.5rem;padding:0 .7rem;border:1px solid #e5e7eb;border-radius:.5rem;text-decoration:none;color:inherit;font-weight:600;line-height:1}
.portal-pagination a.page-numbers:hover{background:#2563eb;border-color:#2563eb;color:#fff}
.portal-pagination span.page-numbers.current{background:#2563eb;border-color:#2563eb;color:#fff}
.card{border-radius:.9rem}
.btn,.wp-block-button__link{border-radius:.5rem}
.hero{padding-top:7rem;padding-bottom:7rem}
.wp-block-group.py-5{padding-top:5.5rem!important;padding-bottom:5.5rem!important}
html,body{overflow-x:hidden}
img{max-width:100%;height:auto}
