/* Viable Growth — shared brand styles */
:root {
  --vg-blue: #5bbdfd;
  --vg-cyan: #77ddc5;
  --vg-grey: #fcfcfc;
  --vg-muted: #999999;
  --vg-ink: #1a1a1a;
  --vg-shadow: 5px 5px 0 0 #5bbdfd;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Spinnaker", system-ui, sans-serif;
  color: var(--vg-ink);
  background: #fff;
}

/* Signature offset panel */
.vg-panel {
  background: var(--vg-grey);
  box-shadow: var(--vg-shadow);
}

.vg-accent-bar {
  width: 100px;
  height: 5px;
  flex-shrink: 0;
  background: var(--vg-cyan);
}

.vg-accent-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.vg-accent-row .vg-accent-bar {
  width: 72px;
  margin-top: 0;
}

@media (min-width: 768px) {
  .vg-accent-row {
    flex-direction: row;
    gap: 1.5rem;
  }

  .vg-accent-row .vg-accent-bar {
    width: 100px;
    margin-top: 0.5rem;
  }
}

.vg-btn-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--vg-blue);
  color: #fff;
  transition: background 0.25s ease, transform 0.25s ease;
}

.vg-btn-plus:hover {
  background: #3aa8f0;
  transform: translateY(-1px);
}

.vg-btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 175px;
  height: 50px;
  padding: 0 1.25rem;
  background: var(--vg-cyan);
  color: #fff;
  border: 0;
  border-radius: 0;
  font-family: inherit;
  font-size: 1rem;
  transition: background 0.25s ease, transform 0.25s ease;
}

.vg-btn-cta:hover {
  background: #5fd0b5;
  transform: translateY(-1px);
}

.vg-link {
  color: var(--vg-blue);
  transition: color 0.25s ease;
}

.vg-link:hover,
.vg-link[aria-current="page"] {
  color: var(--vg-cyan);
}

/* Hero atmosphere */
.vg-hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.vg-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.vg-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.vg-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.82) 42%, rgba(255, 255, 255, 0.2) 70%, transparent 100%),
    linear-gradient(to top, rgba(91, 189, 253, 0.18), transparent 45%);
}

.vg-hero__content {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

.vg-hero__brand {
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  line-height: 1.05;
  font-weight: 400;
  color: var(--vg-blue);
  margin: 0 0 1.75rem;
  max-width: 14ch;
  animation: vg-rise 0.9s ease both;
}

.vg-hero__lead {
  color: var(--vg-muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 36rem;
  margin: 0;
  animation: vg-rise 0.9s ease 0.12s both;
}

.vg-hero__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  animation: vg-rise 0.9s ease 0.22s both;
}

@media (max-width: 767px) {
  .vg-hero {
    align-items: flex-end;
    min-height: min(88vh, 720px);
  }

  .vg-hero__veil {
    background:
      linear-gradient(
        to top,
        rgba(252, 252, 252, 0.98) 0%,
        rgba(252, 252, 252, 0.75) 38%,
        rgba(255, 255, 255, 0.35) 68%,
        transparent 100%
      ),
      linear-gradient(to top, rgba(91, 189, 253, 0.22), transparent 50%);
  }

  .vg-hero__content {
    margin: 0 1rem 1.25rem;
    padding: 1.75rem 1.25rem 1.5rem;
    background: rgba(252, 252, 252, 0.97);
    box-shadow: var(--vg-shadow);
  }

  .vg-hero__brand {
    max-width: none;
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .vg-hero__lead {
    color: #666;
  }
}

@keyframes vg-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Blue band */
.vg-band {
  height: 20px;
  width: 100%;
  background: var(--vg-blue);
}

/* Mobile menu */
body.menu-open {
  overflow: hidden;
}

.vg-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100vw;
  height: 100dvh;
  pointer-events: none;
  visibility: hidden;
}

.vg-mobile-menu.is-open {
  display: block;
  pointer-events: auto;
  visibility: visible;
}

.vg-mobile-menu__backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.32s ease;
}

.vg-mobile-menu.is-open .vg-mobile-menu__backdrop {
  opacity: 1;
}

.vg-mobile-menu__panel {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100dvh;
  padding: 1.25rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom));
  background: #fff;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.vg-mobile-menu.is-open .vg-mobile-menu__panel {
  transform: translateX(0);
}

.vg-mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.vg-mobile-menu__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--vg-grey);
  color: var(--vg-blue);
  cursor: pointer;
}

.vg-mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.vg-mobile-menu__links a {
  display: block;
  padding: 0.9rem 0;
  font-size: 1.125rem;
  color: var(--vg-ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(91, 189, 253, 0.15);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.vg-mobile-menu__links a:hover,
.vg-mobile-menu__links a[aria-current="page"] {
  color: var(--vg-blue);
  padding-left: 0.35rem;
}

.vg-mobile-menu__cta-wrap {
  margin-top: auto;
  padding-top: 1.5rem;
}

.vg-mobile-menu__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 54px;
  padding: 0 1.25rem;
  background: var(--vg-cyan);
  color: #fff;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 4px 4px 0 0 var(--vg-blue);
  transition: transform 0.2s ease, background 0.2s ease;
}

.vg-mobile-menu__cta:hover {
  background: #5fd0b5;
  transform: translateY(-1px);
}

.vg-mobile-menu__cta svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .vg-mobile-menu {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vg-mobile-menu__backdrop,
  .vg-mobile-menu__panel {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vg-hero__brand,
  .vg-hero__lead,
  .vg-hero__actions {
    animation: none;
  }
}

/* Contact section */
.vg-contact {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    165deg,
    var(--vg-grey) 0%,
    #fff 45%,
    rgba(119, 221, 197, 0.12) 100%
  );
}

.vg-contact__decor {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.vg-contact__decor::before,
.vg-contact__decor::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(0);
}

.vg-contact__decor::before {
  right: -6rem;
  top: 10%;
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  background: radial-gradient(
    circle at 30% 30%,
    rgba(91, 189, 253, 0.28) 0%,
    rgba(91, 189, 253, 0.08) 55%,
    transparent 72%
  );
}

.vg-contact__decor::after {
  right: 4%;
  bottom: -4rem;
  width: min(36vw, 360px);
  height: min(36vw, 360px);
  background: radial-gradient(
    circle at 60% 40%,
    rgba(119, 221, 197, 0.32) 0%,
    rgba(119, 221, 197, 0.1) 50%,
    transparent 70%
  );
}

@media (min-width: 768px) {
  .vg-contact__decor {
    background:
      radial-gradient(ellipse 80% 60% at 92% 48%, rgba(91, 189, 253, 0.14), transparent 70%),
      radial-gradient(ellipse 55% 45% at 78% 72%, rgba(119, 221, 197, 0.16), transparent 68%);
  }
}

.vg-contact__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

.vg-contact__panel {
  display: grid;
  gap: 0;
  background: var(--vg-grey);
  box-shadow: var(--vg-shadow);
}

@media (min-width: 1024px) {
  .vg-contact__panel {
    grid-template-columns: 1fr 1.05fr;
  }
}

.vg-contact__intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 2rem;
  border-bottom: 1px solid rgba(91, 189, 253, 0.15);
}

@media (min-width: 1024px) {
  .vg-contact__intro {
    padding: 3rem 2.75rem;
    border-bottom: 0;
    border-right: 1px solid rgba(91, 189, 253, 0.15);
  }
}

.vg-contact__title {
  margin: 0 0 1.5rem;
  font-size: clamp(2.25rem, 4vw, 3rem);
  line-height: 1.1;
  color: var(--vg-blue);
  font-weight: 400;
}

.vg-contact__lead {
  margin: 0;
  color: var(--vg-muted);
  line-height: 1.6;
  font-size: 1.05rem;
}

.vg-contact__details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.vg-contact__detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.vg-contact__detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--vg-blue);
  color: #fff;
}

.vg-contact__detail-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.vg-contact__detail-label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vg-cyan);
}

.vg-contact__detail-text {
  margin: 0;
  color: var(--vg-ink);
  line-height: 1.5;
  font-style: normal;
}

.vg-contact__detail-link {
  color: var(--vg-blue);
  text-decoration: none;
  transition: color 0.25s ease;
}

.vg-contact__detail-link:hover {
  color: var(--vg-cyan);
}

.vg-contact__form-wrap {
  padding: 2.5rem 2rem;
  background: #fff;
}

@media (min-width: 1024px) {
  .vg-contact__form-wrap {
    padding: 3rem 2.75rem;
  }
}

.vg-contact__form-title {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  color: var(--vg-ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vg-contact__fields {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .vg-contact__fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

.vg-field {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(91, 189, 253, 0.35);
  border-radius: 0;
  background: var(--vg-grey);
  color: var(--vg-ink);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.vg-field::placeholder {
  color: #aaa;
}

.vg-field:hover {
  border-color: rgba(91, 189, 253, 0.6);
}

.vg-field:focus {
  outline: none;
  border-color: var(--vg-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(119, 221, 197, 0.35);
}

.vg-textarea {
  min-height: 148px;
  resize: vertical;
}

.vg-contact__submit {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.vg-contact__submit .vg-btn-plus {
  pointer-events: none;
}

.vg-contact__submit .vg-btn-cta {
  flex: 1;
  min-width: 0;
}

@media (min-width: 640px) {
  .vg-contact__submit .vg-btn-cta {
    flex: 0 1 auto;
    min-width: 175px;
  }
}

.vg-form-success {
  display: none;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: rgba(119, 221, 197, 0.2);
  border-left: 4px solid var(--vg-cyan);
  color: var(--vg-ink);
  line-height: 1.5;
}

.vg-form-success.is-visible {
  display: flex;
}

.vg-form-success svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: var(--vg-cyan);
}

.vg-form.is-sent .vg-contact__fields,
.vg-form.is-sent .vg-contact__submit {
  display: none;
}

/* Scroll reveal animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal="left"] {
  transform: translateX(-40px);
}

[data-reveal="right"] {
  transform: translateX(40px);
}

[data-reveal="scale"] {
  transform: scale(0.94);
}

[data-reveal="fade"] {
  transform: none;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* Header subtle shadow on scroll */
.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(91, 189, 253, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .vg-hero__brand,
  .vg-hero__lead,
  .vg-hero__actions {
    animation: none;
  }
}
