/* Softnexa — Avista Home 02 inspired theme */
:root {
  --red: #FF4D4D;
  --blue: #4D8BFF;
  --green: #3DFF8A;
  --bg: #0A0A0B;
  --bg-2: #111113;
  --surface: #161618;
  --surface-2: #1E1E22;
  --text: #FAFAFA;
  --text-2: #C4C4CC;
  --text-muted: #8A8A96;
  --border: rgba(255, 255, 255, 0.08);
  --dock-bg: rgba(235, 235, 240, 0.92);
  --dock-text: #0A0A0B;
  --primary: var(--theme-primary, var(--red));
  --theme-primary: var(--red);
  --theme-accent: var(--blue);
  --theme-secondary: var(--green);
  --theme-primary-soft: color-mix(in srgb, var(--theme-primary) 18%, transparent);
  --theme-accent-soft: color-mix(in srgb, var(--theme-accent) 18%, transparent);
  --theme-secondary-soft: color-mix(in srgb, var(--theme-secondary) 18%, transparent);
  --radius: 20px;
  --radius-pill: 100px;
  --font: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --section-y: 7.5rem;
  --section-y-lg: 8.5rem;
  --section-hero-y: 9.5rem;
  --section-hero-bottom: 5.5rem;
  --container-px: 1.5rem;
}

[data-theme="light"] {
  --bg: #F5F5F5;
  --bg-2: #EBEBEB;
  --surface: #FFFFFF;
  --surface-2: #F0F0F0;
  --text: #0A0A0B;
  --text-2: #3F3F46;
  --text-muted: #71717A;
  --border: rgba(0, 0, 0, 0.08);
  --dock-bg: rgba(10, 10, 11, 0.92);
  --dock-text: #FAFAFA;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.avista-body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-2);
  line-height: 1.7;
  padding: 0 0 8.5rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

#mainContent > section,
#mainContent > article {
  scroll-margin-top: 6rem;
}

.container {
  padding-left: var(--container-px);
  padding-right: var(--container-px);
}

@media (min-width: 1200px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

h1, h2, h3, h4, h5, h6, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: var(--sn-theme-font-heading, var(--font));
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.03em;
}

a { color: inherit; text-decoration: none; transition: color 0.3s var(--ease), opacity 0.3s; }
a:hover { color: var(--theme-primary, var(--red)); }

.text-muted { color: var(--text-muted) !important; }
.lead { color: var(--text-2); }

/* Loader */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.6s, visibility 0.6s;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-text {
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.35em;
  color: var(--text);
}
.loader-text .char { display: inline-block; opacity: 0; transform: translateY(20px); }
.loader-bar {
  width: 200px;
  height: 3px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.loader-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--theme-primary, var(--red));
  border-radius: 4px;
}

/* Top meta bar */
.sn-top-meta {
  position: relative;
  z-index: 20;
  padding: 1.5rem 0 0.75rem;
}
.meta-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.meta-link { font-weight: 600; color: var(--text); font-size: 0.9rem; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: pulse 2s ease infinite;
}
@keyframes pulse { 50% { opacity: 0.5; } }
.social-pill {
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-2);
}
.social-pill:hover { border-color: var(--text); color: var(--text); }
.btn-search {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Floating dock nav */
.sn-dock {
  position: fixed;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1050;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.65rem 0.65rem 0.85rem;
  background: var(--dock-bg);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-pill);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  max-width: calc(100vw - 2rem);
}
.dock-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.dock-logo-img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 168px;
  object-fit: contain;
  flex-shrink: 0;
}
@media (max-width: 575.98px) {
  .dock-logo-img {
    height: 36px;
    max-width: 130px;
  }
}
.meta-sep { opacity: 0.35; margin: 0 0.35rem; }
.page-loader .loader-logo {
  margin-bottom: 1rem;
  border-radius: 14px;
  animation: loaderPulse 1.2s ease-in-out infinite;
}
@keyframes loaderPulse {
  0%, 100% { opacity: 0.7; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1); }
}
.dock-links {
  list-style: none;
  margin: 0;
  padding: 0 0.5rem;
  gap: 0.15rem;
}
.dock-links a {
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dock-text);
  border-radius: var(--radius-pill);
  opacity: 0.75;
}
.dock-links a:hover,
.dock-links a.active { opacity: 1; background: rgba(0, 0, 0, 0.06); }
[data-theme="light"] .dock-links a:hover,
[data-theme="light"] .dock-links a.active { background: rgba(255, 255, 255, 0.12); }
.dock-cta {
  padding: 0.75rem 1.5rem;
  background: #0A0A0B;
  color: #fff !important;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
[data-theme="light"] .dock-cta { background: #fff; color: #0A0A0B !important; }
.dock-toggle {
  border: none;
  background: transparent;
  color: var(--dock-text);
  font-size: 1.5rem;
  padding: 0.5rem;
}
.dock-mobile-collapse { position: fixed; bottom: 5.5rem; left: 1rem; right: 1rem; z-index: 1040; }
.dock-mobile-menu {
  background: var(--dock-bg);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: var(--shadow-lg, 0 20px 50px rgba(0,0,0,0.4));
}
.dock-mobile-menu a {
  padding: 0.65rem 1rem;
  font-weight: 600;
  color: var(--dock-text);
  border-radius: 12px;
}
.dock-mobile-menu a:hover { background: rgba(0,0,0,0.06); }

/* Dock hosting mega menu */
.dock-links { display: flex; align-items: center; }
.dock-hosting-wrap { position: relative; list-style: none; }
.dock-hosting-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dock-text);
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  opacity: 0.85;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s, box-shadow 0.25s;
}
.dock-hosting-trigger .dock-hosting-icon-main {
  font-size: 1rem;
  color: #06B6D4;
}
.dock-hosting-trigger .dock-hosting-chevron {
  font-size: 0.65rem;
  opacity: 0.7;
  transition: transform 0.25s ease;
}
.dock-hosting-trigger:hover,
.dock-hosting-trigger.active,
.dock-hosting-trigger.is-open {
  opacity: 1;
  background: rgba(6, 182, 212, 0.12);
  box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.25);
}
.dock-hosting-trigger.is-open .dock-hosting-chevron {
  transform: rotate(180deg);
}
.dock-hosting-panel {
  position: absolute;
  bottom: calc(100% + 0.85rem);
  left: 50%;
  transform: translateX(-50%);
  width: min(440px, calc(100vw - 2.5rem));
  padding: 1rem;
  border-radius: 20px;
  background: var(--dock-bg);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  z-index: 1060;
}
.dock-hosting-panel::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 14px;
  height: 14px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--dock-bg);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.dock-hosting-panel[hidden] { display: none !important; }
.dock-hosting-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.dock-hosting-eyebrow {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted, var(--text-2));
  margin-bottom: 0.15rem;
}
.dock-hosting-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.dock-hosting-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  white-space: nowrap;
}
.dock-hosting-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}
.dock-hosting-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.55rem 0.6rem;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.dock-hosting-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  transform: translateY(-1px);
  color: var(--text);
}
.dock-hosting-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--hosting-accent) 18%, transparent);
  color: var(--hosting-accent);
  font-size: 1rem;
}
.dock-hosting-item-body { min-width: 0; flex: 1; }
.dock-hosting-item-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}
.dock-hosting-badge {
  font-style: normal;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  background: rgba(255, 77, 77, 0.15);
  color: #FF6B6B;
}
.dock-hosting-item-desc {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted, var(--text-2));
  line-height: 1.3;
  margin-top: 0.1rem;
}
.dock-hosting-item-arrow {
  font-size: 0.75rem;
  opacity: 0;
  color: var(--hosting-accent);
  transition: opacity 0.2s;
  margin-top: 0.15rem;
}
.dock-hosting-item:hover .dock-hosting-item-arrow { opacity: 1; }
.dock-hosting-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}
.dock-hosting-foot-link {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted, var(--text-2));
  text-decoration: none;
}
.dock-hosting-foot-link:hover { color: var(--text); }
.dock-hosting-foot-cta {
  font-size: 0.72rem;
  font-weight: 800;
  color: #06B6D4;
  text-decoration: none;
}
.dock-hosting-foot-cta:hover { color: #22D3EE; }

.dock-mobile-hosting {
  margin: 0.35rem 0 0.5rem;
  padding: 0.85rem;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(6, 182, 212, 0.12), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(6, 182, 212, 0.2);
}
.dock-mobile-hosting-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #06B6D4;
  margin: 0 0 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.dock-mobile-hosting-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
}
.dock-mobile-hosting-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.55rem 0.6rem;
  border-radius: 12px;
  background: var(--dock-bg);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--dock-text);
  text-decoration: none;
}
.dock-mobile-hosting-card i {
  font-size: 1.1rem;
  color: var(--hosting-accent);
}
.dock-mobile-hosting-all {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #06B6D4 !important;
  text-align: center;
  padding: 0.5rem !important;
  border-radius: 10px;
  background: rgba(6, 182, 212, 0.1) !important;
}
.dock-mobile-hosting-all.active {
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.35);
}

.hosting-type-nav { scroll-margin-top: 6rem; }
.hosting-type-chip {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-2);
  border: 1px solid var(--border);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.hosting-type-chip:hover,
.hosting-type-chip.active {
  color: var(--text);
  border-color: rgba(6, 182, 212, 0.45);
  background: rgba(6, 182, 212, 0.12);
}
.hosting-card.popular {
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.12);
}
.hosting-provider-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.hosting-provider-hostinger { color: #a78bfa; border-color: rgba(103, 61, 230, 0.35); }
.hosting-provider-namecheap { color: #f87171; border-color: rgba(222, 55, 35, 0.35); }
.hosting-affiliate-btn.hosting-affiliate-hostinger {
  background: linear-gradient(135deg, #673de6, #8b5cf6);
  border: none;
}
.hosting-affiliate-btn.hosting-affiliate-namecheap {
  background: linear-gradient(135deg, #de3723, #f97316);
  border: none;
}
[id^="plans-"] { scroll-margin-top: 7rem; }

.hosting-category-block {
  scroll-margin-top: 7rem;
  padding-top: 1.5rem;
  margin-bottom: 4.5rem !important;
}
.hosting-category-head {
  padding-bottom: 1.25rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid var(--border);
}
.hosting-type-nav {
  margin-bottom: 3.5rem !important;
}
.hosting-category-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: color-mix(in srgb, var(--hosting-accent) 18%, transparent);
  color: var(--hosting-accent);
  flex-shrink: 0;
}

/* Hero Avista */
.avista-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  padding-bottom: 7rem;
  overflow: hidden;
}
.avista-hero .hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  flex: 0 0 auto;
  padding-bottom: 0.5rem;
}
.hero-watermark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -55%);
  font-size: clamp(6rem, 22vw, 18rem);
  font-weight: 800;
  color: var(--text);
  opacity: 0.06;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
  letter-spacing: -0.04em;
}
.hero-glow-red {
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(circle, var(--theme-primary-glow, color-mix(in srgb, var(--theme-primary, #ff4d4d) 45%, transparent)) 0%, transparent 70%);
  pointer-events: none;
  z-index: 2;
}
.hero-glow-blue {
  position: absolute;
  top: 10%;
  right: -5%;
  width: 45%;
  height: 70%;
  background: radial-gradient(circle, var(--theme-accent-glow, color-mix(in srgb, var(--theme-accent, #4d8bff) 28%, transparent)) 0%, transparent 65%);
  pointer-events: none;
  z-index: 2;
}
.hero-portrait-wrap {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.hero-portrait-inner {
  position: relative;
  display: inline-block;
  max-height: min(85vh, 820px);
  line-height: 0;
}
.hero-portrait {
  display: block;
  max-height: min(85vh, 820px);
  width: auto;
  max-width: min(520px, 55vw);
  object-fit: cover;
  object-position: center top;
  opacity: 1;
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  filter: contrast(1.05);
}
.hero-duotone {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 50, 80, 0.35) 0%, transparent 45%, transparent 55%, rgba(50, 120, 255, 0.35) 100%);
  z-index: 4;
  pointer-events: none;
  mix-blend-mode: color;
  border-radius: 2px;
}
.hero-content {
  padding: 2rem 0 0;
}
.hero-star {
  color: var(--red);
  font-size: 1.25rem;
  margin-right: 0.35rem;
}
.hero-kicker {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 0.75rem;
  overflow: visible;
}
.hero-kicker-text {
  display: inline;
  opacity: 1;
}
.hero-kicker [data-split-chars],
.hero-kicker .char {
  overflow: visible;
}
.hero-kicker .char {
  display: inline-block;
}
.hero-tagline {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 420px;
}

/* Split / spaced headings */
.split-heading,
[data-split] {
  overflow: hidden;
}
.split-heading .word,
.split-heading .char,
[data-split] .char {
  display: inline-block;
  will-change: transform, opacity;
}

/* Marquee titles */
.marquee-headings {
  padding: 5.5rem 0;
  border-block: 1px solid var(--border);
  overflow: hidden;
}
.marquee-headings .track {
  display: flex;
  gap: 4rem;
  width: max-content;
  animation: scroll-left 30s linear infinite;
}
.marquee-headings h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  white-space: nowrap;
  margin: 0;
  color: var(--text);
  opacity: 0.9;
}
.marquee-headings h2 em {
  font-style: normal;
  color: var(--red);
}
@keyframes scroll-left { to { transform: translateX(-50%); } }

/* Sections */
.section-padding {
  padding: var(--section-y-lg) 0;
}
.section-padding-sm {
  padding: var(--section-hero-y) 0 var(--section-hero-bottom);
}
.section-padding.pt-0,
.page-hero + .section-padding.pt-0,
.section-padding-sm + .section-padding.pt-0 {
  padding-top: 4.5rem;
}
.section-padding.pb-0 {
  padding-bottom: 4rem;
}
.bg-section { background: var(--bg-2); }
.section-eyebrow,
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: inline-block;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.section-padding .text-center.mb-5,
.section-padding .mb-5[data-reveal] {
  margin-bottom: 3.5rem !important;
}

/* About block */
.about-avista {
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--border);
}
.about-avista .quote {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
}
.founder-pill {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}
.founder-pill img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

/* Story cards */
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
}
.story-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.4s var(--ease), border-color 0.4s;
}
.story-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 77, 77, 0.4);
}
.story-card h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }

/* Services accordion */
.services-avista { max-width: 900px; margin: 0 auto; }
.service-acc-item {
  border-bottom: 1px solid var(--border);
}
.service-acc-btn {
  width: 100%;
  display: grid;
  grid-template-columns: 4rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.75rem 0;
  background: none;
  border: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.service-acc-num { font-weight: 800; color: var(--text-muted); font-size: 0.9rem; }
.service-acc-btn h3 { font-size: 1.35rem; margin: 0; font-weight: 700; }
.service-acc-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: transform 0.35s var(--ease), background 0.35s;
}
.service-acc-item.open .service-acc-icon {
  transform: rotate(45deg);
  background: var(--theme-primary, var(--red));
  border-color: var(--red);
  color: #fff;
}
.service-acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}
.service-acc-item.open .service-acc-body { max-height: 320px; }
.service-acc-body p {
  padding: 0 0 1.5rem 4rem;
  margin: 0;
  color: var(--text-muted);
}

/* Portfolio grid */
.projects-avista .project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
}
.projects-avista .project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.projects-avista .project-card:hover img { transform: scale(1.08); }
.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0.9;
  transition: opacity 0.35s;
}
.project-tag {
  font-size: 0.75rem;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.project-overlay h4 { color: #fff; margin: 0; font-size: 1.25rem; }
.project-year { font-size: 0.8rem; color: rgba(255,255,255,0.7); }

/* Team swiper */
.team-swiper { padding: 2rem 0 4rem; overflow: hidden; }
.team-card {
  text-align: center;
  padding: 1rem;
}
.team-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  filter: grayscale(20%);
  transition: filter 0.4s, transform 0.4s;
}
.team-card:hover img { filter: grayscale(0); transform: scale(1.02); }
.team-card h4 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.team-card p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.swiper-pagination-bullet { background: var(--text-muted) !important; }
.swiper-pagination-bullet-active { background: var(--red) !important; }

/* Testimonial swiper */
.testimonial-swiper .swiper-slide { height: auto; }
.testimonial-slide {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  min-height: 280px;
}
.testimonial-slide p { font-size: 1.05rem; color: var(--text-2); margin-bottom: 1.5rem; }
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-author img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

/* FAQ + form */
.faq-avista .accordion-item {
  background: var(--surface);
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-avista .accordion-button {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow: none !important;
}
.faq-avista .accordion-button:not(.collapsed) {
  background: var(--surface-2);
  color: var(--red);
}
.faq-avista .accordion-button::after { filter: invert(1); }
[data-theme="light"] .faq-avista .accordion-button::after { filter: none; }
.faq-avista .accordion-body { color: var(--text-muted); background: var(--surface); }

.project-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.form-control {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 14px;
  padding: 0.85rem 1rem;
}
.form-control:focus {
  background: var(--bg);
  border-color: var(--red);
  color: var(--text);
  box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.2);
}

/* Blog cards */
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.blog-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 77, 77, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}
.blog-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
}
.blog-card--featured .blog-card-media { aspect-ratio: 16 / 9; }
.blog-card--compact .blog-card-media { aspect-ratio: 4 / 3; }
.blog-card-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--theme-primary, var(--red));
  border-radius: var(--radius-pill);
}
.blog-card-badge--inline {
  position: static;
  display: inline-block;
}
.blog-card-body { padding: 1.35rem 1.5rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}
.blog-card-dot { opacity: 0.5; }
.blog-card-title { font-size: 1.2rem; margin: 0 0 0.65rem; line-height: 1.35; }
.blog-card-title a { color: var(--text); }
.blog-card-title a:hover { color: var(--red); }
.blog-card-excerpt {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  flex: 1;
  line-height: 1.6;
}
.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.blog-card-author { font-size: 0.8rem; color: var(--text-muted); }
.blog-card-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--red);
}
.blog-card--featured {
  flex-direction: row;
  align-items: stretch;
}
.blog-card--featured .blog-card-media {
  flex: 1.1;
  min-height: 280px;
  aspect-ratio: auto;
}
.blog-card--featured .blog-card-body {
  flex: 1;
  padding: 2rem;
  justify-content: center;
}
.blog-card--featured .blog-card-title { font-size: clamp(1.35rem, 2.5vw, 1.85rem); }
@media (max-width: 991px) {
  .blog-card--featured { flex-direction: column; }
  .blog-card--featured .blog-card-media { min-height: 0; aspect-ratio: 16/10; }
}

/* Blog listing featured block */
.blog-featured-wrap .blog-card--featured { margin-bottom: 0; }

/* Blog detail */
.blog-detail-header .lead { font-size: 1.15rem; }
.blog-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.blog-detail-meta i { color: var(--red); margin-right: 0.25rem; }
.blog-detail-hero {
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  overflow: hidden;
}
.blog-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-2);
}
.blog-content h2,
.blog-content h3,
.blog-content h4 {
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.blog-content h2 { font-size: 1.65rem; }
.blog-content h3 { font-size: 1.35rem; }
.blog-content p { margin-bottom: 1.25rem; }
.blog-content ul,
.blog-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.35rem;
}
.blog-content li { margin-bottom: 0.5rem; }
.blog-content a { color: var(--red); text-decoration: underline; }
.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 1.5rem 0;
}
.blog-content blockquote {
  border-left: 4px solid var(--red);
  padding: 0.75rem 0 0.75rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}
.blog-content pre,
.blog-content code {
  background: var(--bg);
  border-radius: 8px;
  font-size: 0.9em;
}
.blog-content pre {
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1.25rem;
}
.blog-tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
}
.blog-author-box .blog-author-avatar {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
}

/* Legacy alias */
.blog-avista-card { display: block; }
.blog-date { font-size: 0.8rem; color: var(--theme-primary, var(--red)); font-weight: 600; }

/* Buttons */
.btn-primary {
  background: var(--theme-primary, var(--red));
  border: none;
  color: #fff !important;
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.75rem;
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--theme-primary, var(--red)) 82%, #000);
  transform: translateY(-2px);
  color: #fff !important;
}
.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  background: transparent;
}
.btn-outline:hover { border-color: var(--text); color: var(--text); }

/* Cards legacy */
.sn-card, .glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.section-padding .glass-card.p-4,
.section-padding .sn-card.p-4 {
  padding: 2.25rem !important;
}
.section-padding .glass-card.p-5,
.section-padding .sn-card.p-5 {
  padding: 2.75rem !important;
}
.section-padding .row.g-4 {
  --bs-gutter-x: 2rem;
  --bs-gutter-y: 2.25rem;
}
.section-padding .row.g-5 {
  --bs-gutter-x: 2.25rem;
  --bs-gutter-y: 2.5rem;
}

/* Footer */
.sn-footer.avista-footer {
  padding-top: 2rem;
}
.avista-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}
.avista-footer .footer-cta-block {
  padding: 5.5rem 0 !important;
}
.avista-footer .footer-cta-block .mb-4 {
  margin-bottom: 2rem !important;
}
.avista-footer > .container > .row.g-4 {
  padding: 3.5rem 0 !important;
}
.avista-footer .footer-bottom {
  padding: 2.25rem 0 !important;
}
.avista-footer .footer-desc {
  margin-bottom: 1.5rem;
  line-height: 1.75;
}
.avista-footer h6 {
  margin-bottom: 1.25rem;
}
.avista-footer .footer-links li {
  margin-bottom: 0.65rem;
}
.avista-footer h6, .avista-footer h4, .avista-footer h5 { color: var(--text); }
.footer-cta-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
}
.footer-links a:hover { color: var(--red); }
.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.social-icon:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* WhatsApp + back top */
.whatsapp-fab {
  position: fixed;
  bottom: 6.5rem;
  right: 1.5rem;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 1040;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}
.whatsapp-fab:hover { color: #fff; transform: scale(1.06); }
.back-top {
  position: fixed;
  bottom: 6.5rem;
  right: 5.5rem;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.back-top.visible { opacity: 1; visibility: visible; }

/* Page inner pages */
.page-hero {
  padding: var(--section-hero-y) 0 var(--section-hero-bottom);
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.page-hero .lead {
  margin-top: 1.25rem;
  margin-bottom: 0;
}
.page-hero .display-4,
.page-hero h1 {
  margin-bottom: 0.5rem;
}
.section-padding.blog-detail,
.blog-detail.section-padding {
  padding-top: 5rem;
}
.text-gradient {
  background: linear-gradient(135deg, var(--theme-primary, var(--red)), var(--theme-accent, var(--blue)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Product / portfolio cards on inner pages */
.product-card, .portfolio-card, .blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.product-card-body, .portfolio-card .card-body { padding: 1.25rem; }
.price-tag { color: var(--theme-primary, var(--red)); font-weight: 800; }
.card-title-link { color: var(--text); }
.badge-featured { background: var(--theme-primary, var(--red)); }

.text-primary { color: var(--theme-primary, var(--red)) !important; }
.text-theme-accent { color: var(--theme-accent, var(--blue)) !important; }
.text-theme-secondary { color: var(--theme-secondary, var(--green)) !important; }
.btn-outline-primary {
  border-color: color-mix(in srgb, var(--theme-primary, var(--red)) 55%, var(--border));
  color: var(--theme-primary, var(--red));
}
.btn-outline-primary:hover {
  background: var(--theme-primary-soft, color-mix(in srgb, var(--theme-primary, var(--red)) 14%, transparent));
  border-color: var(--theme-primary, var(--red));
  color: var(--theme-primary, var(--red));
}

/* Reveal */
[data-reveal] { will-change: transform, opacity; }

/* Equal image sizes */
.img-equal-wrap {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-2);
}
.img-equal {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.team-photo-wrap {
  aspect-ratio: 3 / 4;
  max-width: 320px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* About page — show full portrait without cropping head/feet */
.about-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 1rem;
  min-height: 280px;
  overflow: hidden;
}
.about-hero-image {
  width: 100%;
  height: auto;
  max-height: min(72vh, 620px);
  object-fit: contain;
  object-position: center center;
  display: block;
}
.project-card {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.project-card .project-card-media {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
}
.project-card .project-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.testimonial-avatar {
  width: 52px !important;
  height: 52px !important;
  min-width: 52px;
  border-radius: 50%;
}

.spa-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--theme-primary, var(--red));
  z-index: 10001;
  transition: width 0.3s ease;
  pointer-events: none;
}
.spa-progress.active { width: 70%; animation: spa-load 1s ease infinite alternate; }
@keyframes spa-load { to { width: 95%; } }

.form-alert.success { color: var(--green); font-weight: 600; }
.form-alert.error { color: var(--red); font-weight: 600; }

/* About page — marketing posters (600×800 SVGs) */
.poster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}
.poster-item {
  display: block;
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.poster-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 77, 77, 0.35);
}
.poster-item img {
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #fff;
}
[data-theme="dark"] .poster-item img {
  background: #f8fafc;
}

@media (max-width: 991px) {
  .poster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 520px;
  }
  .poster-item img { max-height: 240px; }
  .avista-hero { min-height: 92vh; padding-bottom: 6.5rem; }
  .section-padding { padding: 5.5rem 0; }
  .section-padding-sm,
  .page-hero { padding-top: 7rem; padding-bottom: 4rem; }
  .section-padding.pt-0 { padding-top: 3rem; }
  .hero-portrait,
  .hero-portrait-inner { max-width: 92vw; max-height: 62vh; }
  .hero-watermark { font-size: 4rem; }
  .service-acc-btn { grid-template-columns: 3rem 1fr auto; }
  .service-acc-body p { padding-left: 3rem; }
  .sn-dock { padding: 0.4rem; gap: 0.25rem; }
  .dock-cta { padding: 0.6rem 1rem; font-size: 0.65rem; }
}

@media (max-width: 575px) {
  .poster-grid {
    grid-template-columns: 1fr;
    max-width: 220px;
  }
  .poster-item img { max-height: 300px; }
}

/* Mobile navigation — larger touch targets, readable menu */
@media (max-width: 991.98px) {
  .sn-top-meta .container-fluid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .sn-top-meta .social-pill,
  .sn-top-meta .btn-search {
    min-height: 40px;
    padding: 0.4rem 0.65rem;
  }
  .sn-dock {
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    left: 0.75rem;
    right: 0.75rem;
    transform: none;
    width: auto;
    max-width: none;
    justify-content: space-between;
    padding: 0.5rem 0.5rem 0.5rem 0.65rem;
    gap: 0.35rem;
  }
  .dock-toggle {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .dock-cta {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.9rem;
    font-size: 0.7rem;
  }
  .dock-mobile-collapse {
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(5rem + env(safe-area-inset-bottom));
    max-height: min(70vh, 520px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .dock-mobile-menu a {
    min-height: 48px;
    display: flex;
    align-items: center;
    font-size: 1rem;
  }
  .dock-mobile-hosting-card {
    min-height: 52px;
    padding: 0.65rem 0.5rem;
  }
  .dock-mobile-hosting-all {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .whatsapp-fab,
  .back-top {
    bottom: calc(6.25rem + env(safe-area-inset-bottom));
  }
  body.site-edit-active .whatsapp-fab,
  body.site-edit-active .back-top {
    bottom: calc(6.25rem + env(safe-area-inset-bottom));
  }
}
