/* ==========================================================================
   Nava's Landscaping LLC - brand lockup + language switcher
   --------------------------------------------------------------------------
   Two concerns share this file because the legal pages load main.css only
   (they do not load redesign.css):

   1. The designer's script-mark + live-text lockup, reproduced from the
      navas-logo-2026-11-18 handoff (navas-lockup.css) without changes. The
      client-approved script path and brand colours are untouched; "Landscaping
      LLC" is live text so it is sharp at every size and can be corrected.

   2. The EN/ES language switcher plus the 1100px header breakpoint it needs.
      The earlier 992px/896px burger breakpoints gave no room for a switcher
      at 1024px (the marketing seat measured the 44px control overflowing by
      38px), so below 1100px the burger menu holds the nav and the switcher,
      and the switcher is inline at 1100px and wider.

   Load after main.css on every page, and after redesign.css where that file
   is loaded. Tokens (--font-body, --terra-600, --amber-400, --line) and the
   Inter webfont come from main.css.
   ========================================================================== */

/* ==========================================================================
   Nava's Landscaping LLC - brand lockup (script mark + live descriptor text)
   --------------------------------------------------------------------------
   Drop-in replacement for the single raster-traced lockup imagery.
   The script mark keeps the client-approved geometry and brand colour; the
   descriptor is live HTML text so it stays sharp at every size and can be
   corrected (title case "Landscaping LLC") without touching the mark.

   Requires the tokens and the Inter webfont already loaded by the site:
     --font-body  Inter, ...
     --terra-600  #8f4518   (descriptor on cream)
     --amber-400  #e0a54e   (descriptor on pine)
   Tested at 320, 390, 768 and 1440 px.
   Mark aspect ratio: 209.669 x 71.083 (2.9496:1). Always set height and let
   width follow, never stretch.
   ========================================================================== */

/* ---------- Cream header: pine script + terra descriptor ---------- */

.nx-brand__lockup {
  --lockup-scale: 1;          /* 1 = production size, raised only for asset export */
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;      /* descriptor right-aligned under the script tail */
  gap: calc(2px * var(--lockup-scale));
  line-height: 1;
}

.nx-brand__mark {
  display: block;
  height: calc(3.2rem * var(--lockup-scale));  /* 51.2px, unchanged from the current header logo */
  width: auto;                /* preserves the 2.9496:1 mark ratio */
}

.nx-brand__descriptor {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: calc(0.875rem * var(--lockup-scale));  /* 14px at 1440 */
  line-height: 1;
  letter-spacing: 0.06em;
  margin-right: -0.06em;      /* cancels the trailing letter-space, keeps optical right edge */
  color: var(--terra-600);    /* #8f4518 */
  white-space: nowrap;
}

/* Mobile header: same lockup, smaller. 30rem is the site's existing logo breakpoint. */
@media (max-width: 30rem) {
  .nx-brand__mark { height: calc(2.65rem * var(--lockup-scale)); }        /* 42.4px, unchanged */
  .nx-brand__descriptor { font-size: calc(0.725rem * var(--lockup-scale)); } /* 11.6px, above the 11px floor */
}

/* ---------- Pine footer: cream script + amber descriptor ---------- */

.footer-brand__lockup {
  --lockup-scale: 1;          /* 1 = production size, raised only for asset export */
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;      /* descriptor right-aligned under the script tail */
  gap: calc(2px * var(--lockup-scale));
  line-height: 1;
  margin-bottom: 1.25rem;     /* replaces the old logo margin-bottom */
}

.footer-brand__mark {
  display: block;
  height: calc(3.4rem * var(--lockup-scale));  /* 54.4px, unchanged from the current footer logo */
  width: auto;
}

.footer-brand__descriptor {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: calc(0.93rem * var(--lockup-scale));  /* 14.88px at 54.4px mark height (same ratio as header) */
  line-height: 1;
  letter-spacing: 0.06em;
  margin-right: -0.06em;
  color: var(--amber-400);    /* #e0a54e */
  white-space: nowrap;
}

/* ==========================================================================
   Optional: hold the header row at its current 70.4px height.
   The lockup adds a descriptor line, so the header row grows from 70.4px to
   84.8px with the site's existing .55rem padding. If a fixed header height
   matters more than breathing room, uncomment this block. It crowds the logo
   to roughly 3px top and bottom, so 84.8px is the recommended default.
   --------------------------------------------------------------------------
   .nx-header__inner { padding: 0.1rem 0; }
   ========================================================================== */

/* ==========================================================================
   Language switcher (EN / ES)
   ========================================================================== */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  white-space: nowrap;
}
.lang-switch__item {
  display: inline-block;
  padding: 0.45rem 0.2rem;
  border-radius: 0.25rem;
  color: var(--ink-soft);
  text-decoration: none;
}
a.lang-switch__item:hover { color: var(--terra-600); text-decoration: underline; }
a.lang-switch__item:focus-visible { outline: 2px solid var(--terra-500); outline-offset: 2px; }
.lang-switch__item--current { color: var(--pine-950); cursor: default; }
.lang-switch__sep { color: var(--line); }

/* In the header: inline at 1100px and wider, inside the burger below that. */
@media (max-width: 68.7rem) {
  .lang-switch--inline { display: none; }
}

.lang-switch-menu { display: none; }
@media (max-width: 68.7rem) {
  .lang-switch-menu { display: block; margin-top: 0.5rem; }
  .lang-switch-menu a {
    display: block;
    padding: 0.85rem 0.15rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    border-top: 1px solid var(--line);
    border-bottom: 0;
  }
}

/* ==========================================================================
   Header breakpoint: burger below 1100px (was 992px on the landing pages and
   896px on the legal pages). Below 1100px the nav and switcher live in the
   burger; at 1100px and wider everything is inline. These blocks mirror the
   header rules in redesign.css (62rem) and main.css (56rem) so both page
   families behave identically.
   ========================================================================== */
@media (max-width: 68.7rem) {
  /* landing pages (.nx-header) */
  .nx-header__inner { position: relative; gap: 0.75rem; }
  .nx-burger { display: inline-flex; }
  .nx-cta { display: none; }
  .nx-phone span { display: none; }
  .nx-phone { padding: 0.4rem; }
  .nx-header__actions { gap: 0.6rem; margin-left: 0; }
  .nx-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0.5rem 1.25rem 1rem;
    background: var(--cream-50);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
  }
  .nx-nav.open { display: block; }
  .nx-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nx-nav a {
    display: block;
    padding: 0.85rem 0.15rem;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--line);
  }
  .nx-nav li:last-child a { border-bottom: 0; }
  .nx-nav a::after { display: none; }

  /* legal pages (.site-header) */
  .header-inner { position: relative; flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .header-phone span.phone-num { display: none; }
  .header-phone { padding: 0.4rem; }
  .header-contact { margin-left: auto; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream-50);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1.25rem;
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0.25rem; }
  .main-nav a {
    display: block;
    padding: 0.7rem 0.25rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.02rem;
  }
}

/* ==========================================================================
   Header fit at 1100px and wider
   --------------------------------------------------------------------------
   The lockup is 151px wide where the old 46px legal-page logo was 115px, and
   the inline switcher adds ~56px. The legal pages carry seven nav links and a
   wider Spanish CTA, so at the 1152px .wrap cap the row overflowed and the
   browser squeezed the mark (measured 140.22px wide instead of 150.98px) and
   wrapped the CTA. Only gaps change here; no element is resized below its
   designed size, and no CTA gets wider.
   ========================================================================== */
.header-inner { gap: 1rem; }
.header-contact { gap: 0.7rem; }
.main-nav ul { gap: 1rem; }
.brand { flex: none; }

/* The lockup never shrinks: if a future header runs out of room the row should
   be visibly tight, not silently distort the client-approved mark. */
.nx-brand__lockup,
.footer-brand__lockup { flex: none; }

/* Below 1200px the legal pages' phone keeps its icon only, the same behaviour
   that header already used below 1100px. That is what gives the inline
   switcher room at 1100px next to seven nav links and the wider Spanish CTA,
   without touching the nav labels or either CTA. The landing header keeps its
   phone number: it has the room. */
@media (min-width: 68.75rem) and (max-width: 74.99rem) {
  .header-phone span.phone-num { display: none; }
  .header-phone { padding: 0.4rem; }
  .nx-header__inner { gap: 1.1rem; }
  .nx-nav ul { gap: 1.4rem; }
  .nx-header__actions { gap: 0.8rem; margin-left: 1rem; }
  .header-inner { gap: 0.9rem; }
  .main-nav ul { gap: 0.95rem; }
  .header-contact { gap: 0.6rem; }
}

