/* =========================================================
   VORTEX APPLICATION PAGE
   Full-width hero + 3-column content layout
   ========================================================= */

.page-node-type-vortex-application-page .aw-main.aw-vortex-layout {
  position: relative;
  padding: 0 0 3rem;
  background:
    linear-gradient(180deg, rgba(234, 245, 251, 0.72) 0%, rgba(255, 255, 255, 0.96) 220px),
    radial-gradient(circle at top right, rgba(70, 198, 240, 0.08), transparent 26%),
    radial-gradient(circle at top left, rgba(0, 132, 203, 0.07), transparent 24%),
    #f8fbfd;
}

/* Hide default page title block because node template prints title */
.page-node-type-vortex-application-page #block-alivewater-page-title {
  display: none !important;
}

/* Hide default highlighted breadcrumb for this page type */
.page-node-type-vortex-application-page .region-highlighted #block-alivewater-breadcrumbs {
  display: none !important;
}

/* =========================================================
   FULL WIDTH HERO
   ========================================================= */

.page-node-type-vortex-application-page .aw-vortex-hero {
  position: relative;
  margin: 0 0 2rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(225, 239, 246, 0.9), rgba(225, 239, 246, 0.9));
  border-top: 1px solid rgba(0, 132, 203, 0.08);
  border-bottom: 1px solid rgba(0, 132, 203, 0.10);
}

.page-node-type-vortex-application-page .aw-vortex-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 255, 255, 0.32), transparent 18%),
    radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.18), transparent 16%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  opacity: 0.9;
}

.page-node-type-vortex-application-page .aw-vortex-hero__inner {
  position: relative;
  width: min(1440px, 100%);
  margin-inline: auto;
}

.page-node-type-vortex-application-page .aw-vortex-hero .field,
.page-node-type-vortex-application-page .aw-vortex-hero .field__item {
  margin: 0;
}

.page-node-type-vortex-application-page .aw-vortex-hero img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 180px;
  max-height: 320px;
  object-fit: cover;
  object-position: center center;
  border-radius: 0 !important;
  box-shadow: none;
}

/* =========================================================
   MAIN 3-COLUMN GRID
   ========================================================= */

.page-node-type-vortex-application-page .aw-vortex-content-wrap {
  position: relative;
}

.page-node-type-vortex-application-page .aw-vortex-content-grid {
  display: grid;
  grid-template-columns: 24% 50% 24%;
  gap: 1%;
  align-items: start;
}

/* =========================================================
   SIDEBARS
   ========================================================= */

.page-node-type-vortex-application-page .aw-vortex-sidebar,
.page-node-type-vortex-application-page .aw-vortex-main-content {
  min-width: 0;
}

@media (min-width: 992px) {
  .page-node-type-vortex-application-page .aw-vortex-sidebar {
    position: sticky;
    top: 110px;
  }
}

/* Clean region wrappers */
.page-node-type-vortex-application-page .region-sidebar-first,
.page-node-type-vortex-application-page .region-sidebar-second,
.page-node-type-vortex-application-page .aw-sidebar-region {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.page-node-type-vortex-application-page .aw-sidebar-region__inner,
.page-node-type-vortex-application-page .region-sidebar-second {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Shared sidebar card style */
.page-node-type-vortex-application-page #block-alivewater-vortexapplicationsmenu,
.page-node-type-vortex-application-page #block-alivewater-views-block-blog-blog-block,
.page-node-type-vortex-application-page .aw-vortex-sidebar .block {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 132, 203, 0.10);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(14, 50, 67, 0.06);
  overflow: hidden;
  backdrop-filter: blur(6px);
}

/* =========================================================
   LEFT MENU
   ========================================================= */

.page-node-type-vortex-application-page #block-alivewater-vortexapplicationsmenu::before {
  content: "Residential Applications";
  display: block;
  padding: 1rem 1.15rem;
  font-size: 1rem;
  font-weight: 700;
  color: #173a56;
  background:
    linear-gradient(180deg, #f6fbfe 0%, #edf7fc 100%);
  border-bottom: 1px solid rgba(0, 132, 203, 0.10);
}

.page-node-type-vortex-application-page #block-alivewater-vortexapplicationsmenu ul,
.page-node-type-vortex-application-page #block-alivewater-vortexapplicationsmenu li {
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.page-node-type-vortex-application-page #block-alivewater-vortexapplicationsmenu .nav.navbar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0;
  padding: 0.45rem;
}

.page-node-type-vortex-application-page #block-alivewater-vortexapplicationsmenu .nav-link {
  display: block;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  color: #23425c;
  text-decoration: none;
  font-weight: 500;
  line-height: 1.45;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.page-node-type-vortex-application-page #block-alivewater-vortexapplicationsmenu .nav-link:hover,
.page-node-type-vortex-application-page #block-alivewater-vortexapplicationsmenu .nav-link:focus {
  background: rgba(0, 132, 203, 0.07);
  color: var(--primary-dark);
  transform: translateX(3px);
}

.page-node-type-vortex-application-page #block-alivewater-vortexapplicationsmenu .nav-link.active,
.page-node-type-vortex-application-page #block-alivewater-vortexapplicationsmenu .nav-link.is-active,
.page-node-type-vortex-application-page #block-alivewater-vortexapplicationsmenu .nav-link[aria-current="page"] {
  background:
    linear-gradient(135deg, rgba(0, 132, 203, 0.12), rgba(70, 198, 240, 0.10));
  color: #173a56;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(0, 132, 203, 0.08);
}

/* =========================================================
   RIGHT SIDEBAR BLOCKS
   ========================================================= */

.page-node-type-vortex-application-page #block-alivewater-views-block-blog-blog-block > h2,
.page-node-type-vortex-application-page .aw-vortex-sidebar .block > h2,
.page-node-type-vortex-application-page .aw-vortex-sidebar .block > h3 {
  margin: 0;
  padding: 1rem 1.15rem;
  font-size: 1rem;
  font-weight: 700;
  color: #173a56;
  background:
    linear-gradient(180deg, #f6fbfe 0%, #edf7fc 100%);
  border-bottom: 1px solid rgba(0, 132, 203, 0.10);
}

.page-node-type-vortex-application-page #block-alivewater-views-block-blog-blog-block [data-block="sidebar_second"] {
  padding: 0.45rem;
}

.page-node-type-vortex-application-page #block-alivewater-views-block-blog-blog-block .views-row {
  margin: 0;
}

.page-node-type-vortex-application-page #block-alivewater-views-block-blog-blog-block .views-field-title a {
  display: block;
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  color: #23425c;
  text-decoration: none;
  font-weight: 500;
  line-height: 1.45;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.page-node-type-vortex-application-page #block-alivewater-views-block-blog-blog-block .views-field-title a:hover,
.page-node-type-vortex-application-page #block-alivewater-views-block-blog-blog-block .views-field-title a:focus {
  background: rgba(0, 132, 203, 0.07);
  color: var(--primary-dark);
  transform: translateX(3px);
}

/* Generic custom sidebar block content spacing */
.page-node-type-vortex-application-page .aw-vortex-sidebar .block > :not(h2):not(h3) {
  padding-left: 1rem;
  padding-right: 1rem;
}

.page-node-type-vortex-application-page .aw-vortex-sidebar .block > :last-child {
  padding-bottom: 1rem;
}

/* =========================================================
   CENTER CONTENT
   ========================================================= */

.page-node-type-vortex-application-page .aw-page-content {
  min-width: 0;
}

.page-node-type-vortex-application-page .vortex-application-page {
  width: 100%;
}

.page-node-type-vortex-application-page .vortex-page-breadcrumb {
  margin-bottom: 0.45rem;
}

.page-node-type-vortex-application-page .vortex-page-breadcrumb .block {
  margin-bottom: 0;
}

.page-node-type-vortex-application-page .vortex-page-breadcrumb .breadcrumb {
  margin: 0;
  padding: 0;
  background: transparent;
  font-size: 0.93rem;
}

.page-node-type-vortex-application-page .vortex-page-breadcrumb .breadcrumb-item,
.page-node-type-vortex-application-page .vortex-page-breadcrumb .breadcrumb-item a {
  color: #5f7482;
  text-decoration: none;
}

.page-node-type-vortex-application-page .vortex-page-breadcrumb .breadcrumb-item a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.page-node-type-vortex-application-page .vortex-page-title-wrap {
  margin-bottom: 1.2rem;
}

.page-node-type-vortex-application-page .vortex-page-title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #173a56;
  font-weight: 700;
}

.page-node-type-vortex-application-page .vortex-page-content {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(251, 253, 255, 0.98) 100%);
  border: 1px solid rgba(0, 132, 203, 0.10);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-node-type-vortex-application-page .vortex-page-content::before {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(70, 198, 240, 0.07), transparent 70%);
  pointer-events: none;
}

.page-node-type-vortex-application-page .vortex-page-content h2,
.page-node-type-vortex-application-page .vortex-page-content h3,
.page-node-type-vortex-application-page .vortex-page-content h4 {
  color: #173a56;
  line-height: 1.2;
}

.page-node-type-vortex-application-page .vortex-page-content h2 {
  font-size: clamp(1.55rem, 2vw, 2rem);
  margin-bottom: 0.9rem;
}

.page-node-type-vortex-application-page .vortex-page-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
}

.page-node-type-vortex-application-page .vortex-page-content p,
.page-node-type-vortex-application-page .vortex-page-content li {
  color: rgba(35, 31, 32, 0.82);
  line-height: 1.85;
  font-size: 1rem;
}

.page-node-type-vortex-application-page .vortex-page-content a {
  color: var(--primary);
  text-decoration: none;
}

.page-node-type-vortex-application-page .vortex-page-content a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* =========================================================
   MAIN PAGE INTRO + CARD GRID
   ========================================================= */

.page-node-type-vortex-application-page .vortex-residential-intro {
  margin-bottom: 2rem;
}

.page-node-type-vortex-application-page .vortex-residential-intro h2 {
  margin-top: 0;
}

.page-node-type-vortex-application-page .vortex-application-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
  margin-top: 1.75rem;
}

.page-node-type-vortex-application-page .vortex-application-card {
  position: relative;
  background: rgba(255, 255, 255, 0.99);
  border: 1px solid rgba(0, 132, 203, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.045);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}

.page-node-type-vortex-application-page .vortex-application-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.075);
  border-color: rgba(0, 132, 203, 0.16);
}

.page-node-type-vortex-application-page .vortex-application-card__image {
  display: block;
  overflow: hidden;
}

.page-node-type-vortex-application-page .vortex-application-card__image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 0 !important;
  transition: transform 0.35s ease;
}

.page-node-type-vortex-application-page .vortex-application-card:hover .vortex-application-card__image img {
  transform: scale(1.04);
}

.page-node-type-vortex-application-page .vortex-application-card__content {
  padding: 1.15rem;
}

.page-node-type-vortex-application-page .vortex-application-card__content h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
}

.page-node-type-vortex-application-page .vortex-application-card__content h3 a {
  color: #173a56;
  text-decoration: none;
}

.page-node-type-vortex-application-page .vortex-application-card__content h3 a:hover {
  color: var(--primary-dark);
}

.page-node-type-vortex-application-page .vortex-application-card__content p {
  margin-bottom: 0;
}

/* =========================================================
   INNER PAGE DETAIL PANELS
   ========================================================= */

.page-node-type-vortex-application-page .vortex-application-detail {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.page-node-type-vortex-application-page .vortex-application-intro {
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--border);
}

.page-node-type-vortex-application-page .vortex-detail-section {
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid rgba(0, 132, 203, 0.08);
  border-radius: 18px;
  padding: 1.45rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.035);
}

.page-node-type-vortex-application-page .vortex-detail-section h2 {
  margin-top: 0;
  margin-bottom: 0.9rem;
}

.page-node-type-vortex-application-page .vortex-detail-section p:last-child,
.page-node-type-vortex-application-page .vortex-application-intro p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1199.98px) {
  .page-node-type-vortex-application-page .aw-vortex-content-grid {
    grid-template-columns: 26% 48% 24%;
    gap: 1%;
  }

  .page-node-type-vortex-application-page .aw-vortex-hero img {
    max-height: 290px;
  }
}

@media (max-width: 991.98px) {
  .page-node-type-vortex-application-page .aw-vortex-hero {
    margin-bottom: 1.5rem;
  }

  .page-node-type-vortex-application-page .aw-vortex-content-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .page-node-type-vortex-application-page .aw-vortex-sidebar {
    position: static;
  }

  .page-node-type-vortex-application-page .vortex-page-content {
    padding: 1.4rem;
  }

  .page-node-type-vortex-application-page .aw-vortex-hero img {
    min-height: 160px;
    max-height: 240px;
  }

  .page-node-type-vortex-application-page .vortex-application-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .page-node-type-vortex-application-page .vortex-page-title {
    font-size: 1.85rem;
  }

  .page-node-type-vortex-application-page .vortex-page-content {
    padding: 1.15rem;
    border-radius: 16px;
  }

  .page-node-type-vortex-application-page .aw-vortex-hero img {
    min-height: 140px;
    max-height: 190px;
  }

  .page-node-type-vortex-application-page .vortex-application-card__image img {
    height: 190px;
  }

  .page-node-type-vortex-application-page .vortex-detail-section {
    padding: 1.1rem;
    border-radius: 16px;
  }

  .page-node-type-vortex-application-page #block-alivewater-vortexapplicationsmenu,
  .page-node-type-vortex-application-page #block-alivewater-views-block-blog-blog-block,
  .page-node-type-vortex-application-page .aw-vortex-sidebar .block {
    border-radius: 16px;
  }
}