/* ==========================================================================
   V&G Group — vggroupnj.com
   Quiet-luxury, Sarway-style minimalism. Navy #020c45 + white only.
   All values reference tokens.css.
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Two page moods: navy field (Home, Difference) and white field (Contact) */
body.page-navy {
  background: var(--vg-navy);
  color: var(--vg-white);
}

body.page-white {
  background: var(--vg-white);
  color: var(--vg-navy);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--vg-navy-90);
  color: var(--vg-white);
}

body.page-white ::selection {
  background: var(--vg-navy);
  color: var(--vg-white);
}

:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 4px;
}

/* ==========================================================================
   Menu button (top-right, every page)
   ========================================================================== */

.menu-button {
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 60;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.32em;
  color: inherit;
  padding: var(--space-2) 0 var(--space-2) var(--space-2);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}

/* two thin rules beside the word — quiet nod to a burger icon */
.menu-button::after {
  content: "";
  width: 1.6em;
  height: 7px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transition: transform 0.4s ease;
}

.menu-button:hover::after {
  transform: scaleX(0.7);
  transform-origin: right;
}

/* ==========================================================================
   Full-screen menu overlay
   ========================================================================== */

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--vg-navy);
  color: var(--vg-white);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: clamp(2rem, 8vw, 7rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}

.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease;
}

.menu-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  padding: var(--space-2);
}

.menu-close:hover {
  opacity: 0.7;
}

.menu-index {
  list-style: none;
  display: grid;
  gap: clamp(1.2rem, 4vh, 2.6rem);
}

.menu-index a {
  display: inline-flex;
  align-items: baseline;
  gap: 1.4em;
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 4.5vw, 2.6rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  opacity: 0.85;
  transition: opacity 0.3s ease, letter-spacing 0.3s ease;
}

.menu-index a:hover {
  opacity: 1;
  letter-spacing: 0.16em;
}

.menu-index .index-num {
  font-size: 0.45em;
  font-weight: 600;
  letter-spacing: 0.3em;
  opacity: 0.6;
}

.menu-index a[aria-current="page"] {
  opacity: 1;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.35em;
  text-decoration-thickness: 1px;
}

.menu-logo {
  width: clamp(120px, 22vw, 260px);
  justify-self: end;
}

/* ==========================================================================
   Page-index sidebar (three vertical lines, fixed right edge)
   ========================================================================== */

.page-index {
  position: fixed;
  right: clamp(0.9rem, 2.5vw, 1.6rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: grid;
  gap: 1.1rem;
  justify-items: center;
  transition: opacity 0.3s ease;
}

body.menu-open .page-index {
  opacity: 0;
  pointer-events: none;
}

.page-index a {
  display: block;
  padding: 0.35rem 0.6rem; /* generous hit area around a hairline mark */
}

.page-index a span {
  display: block;
  width: 2px;
  height: 26px;
  background: currentColor;
  opacity: 0.32;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.page-index a:hover span {
  opacity: 0.7;
  transform: scaleY(1.15);
}

.page-index a[aria-current="page"] span {
  opacity: 1;
  width: 3px;
}

/* ==========================================================================
   Home — hero
   ========================================================================== */

.hero {
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding: var(--space-5);
}

.hero-logo {
  width: clamp(220px, 34vw, 340px);
  height: auto;
  overflow: visible;
}

/* Border reveal: rect path begins at the top-left corner and travels
   clockwise, so animating dash offset gives the deliberate clockwise draw */
.hero-logo .logo-border {
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: border-draw 2s ease-in-out 0.4s forwards;
}

.hero-logo .logo-letters {
  fill: currentColor;
  font-family: var(--font-heading);
  font-size: 118px;
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: quiet-fade 1.4s ease 2s forwards;
}

.hero-sub {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.42em;
  text-indent: 0.42em; /* balances the trailing tracking so text centers true */
  opacity: 0;
  animation: quiet-rise 1.2s ease 2.6s forwards;
}

@keyframes border-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes quiet-fade {
  to {
    opacity: 1;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-logo .logo-border,
  .hero-logo .logo-letters,
  .hero-sub {
    animation: none;
    stroke-dashoffset: 0;
    opacity: 1;
    transform: none;
  }

  .menu-overlay,
  .menu-index a,
  .page-index a span {
    transition: none;
  }
}

/* ==========================================================================
   Home — tagline band
   ========================================================================== */

.tagline {
  min-height: 62svh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: var(--space-6) var(--space-5) var(--space-7);
}

.tagline p {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  letter-spacing: 0.06em;
  opacity: 0.92;
}

/* ==========================================================================
   Interior pages (Difference, Contact) — shared shell
   ========================================================================== */

.page {
  min-height: 100svh;
  display: grid;
  align-content: center;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: clamp(6rem, 14vh, 9rem) clamp(1.5rem, 6vw, 4rem);
}

.page-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4.5vw, var(--text-3xl));
  font-weight: 400;
  letter-spacing: 0.14em;
  line-height: 1.25;
}

.rule {
  border: none;
  border-top: 1px solid currentColor;
  opacity: 0.25;
  width: 72px;
  margin: var(--space-4) 0;
}

/* ----- The V&G Difference ----- */

.difference {
  text-align: center;
  justify-items: center;
  max-width: 54rem;
}

.difference .rule {
  margin-inline: auto;
}

.difference-blurb {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 2.1;
  opacity: 0.92;
}

.quiet-link {
  display: inline-block;
  margin-top: var(--space-5);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.3em;
  padding: 0.9em 2.2em;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  transition: background 0.35s ease, color 0.35s ease;
}

body.page-navy .quiet-link:hover {
  background: var(--vg-white);
  color: var(--vg-navy);
}

body.page-white .quiet-link:hover {
  background: var(--vg-navy);
  color: var(--vg-white);
}

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 7vw, 6rem);
  margin-top: var(--space-5);
}

.contact-info {
  display: grid;
  gap: var(--space-4);
  align-content: start;
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
}

.contact-info h2 {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.3em;
  opacity: 0.55;
  margin-bottom: 0.5em;
}

.contact-info a:hover {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.contact-block p {
  line-height: 2;
}

/* ----- Forms ----- */

.inquiry-form {
  display: grid;
  gap: var(--space-4);
  align-content: start;
}

.field label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.3em;
  opacity: 0.55;
  margin-bottom: 0.7em;
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--vg-navy);
  border-radius: 0;
  padding: 0.6em 0;
  font-family: var(--font-accent);
  font-size: 1.05rem;
  color: var(--vg-navy);
  transition: border-color 0.3s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-width: 2px;
}

.field textarea {
  resize: vertical;
  min-height: 7.5rem;
}

.submit-button {
  justify-self: start;
  cursor: pointer;
  background: var(--vg-navy);
  color: var(--vg-white);
  border: 1px solid var(--vg-navy);
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.3em;
  padding: 1em 2.4em;
  transition: background 0.35s ease, color 0.35s ease;
}

.submit-button:hover {
  background: transparent;
  color: var(--vg-navy);
}

/* ----- Subscribe band ----- */

.subscribe {
  margin-top: clamp(3.5rem, 9vh, 6rem);
  padding-top: clamp(2.5rem, 6vh, 4rem);
  border-top: 1px solid var(--vg-navy-10);
  text-align: center;
}

.subscribe h2 {
  font-size: var(--text-lg);
  font-weight: 400;
  letter-spacing: 0.18em;
}

.subscribe-form {
  margin: var(--space-4) auto 0;
  display: flex;
  gap: var(--space-3);
  max-width: 30rem;
}

.subscribe-form input {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--vg-navy);
  border-radius: 0;
  padding: 0.6em 0;
  font-family: var(--font-accent);
  font-size: 1.05rem;
  color: var(--vg-navy);
}

.subscribe-form input:focus {
  outline: none;
  border-bottom-width: 2px;
}

.form-note {
  margin-top: var(--space-3);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  opacity: 0.6;
}

.form-note[hidden] {
  display: none;
}

/* ----- Instagram + footer ----- */

.contact-footer {
  margin-top: clamp(3rem, 8vh, 5rem);
  display: grid;
  justify-items: center;
  gap: var(--space-3);
}

.instagram-link svg {
  width: 26px;
  height: 26px;
  display: block;
  transition: opacity 0.3s ease;
}

.instagram-link:hover svg {
  opacity: 0.6;
}

.colophon {
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  opacity: 0.5;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 760px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .menu-overlay {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .menu-logo {
    display: none;
  }

  .subscribe-form {
    flex-direction: column;
    align-items: stretch;
  }

  .subscribe-form .submit-button {
    justify-self: center;
  }
}
