/* =================================================================
   header css
   ================================================================= */


/* HEADER SHELL */
.header {
  position: fixed; top:0; left:0; right:0;
  z-index: 200;
  height: 88px;
  display: flex; align-items: center;
  background: rgba(242,242,230,0.94);
  border-bottom: 1px solid rgba(194,165,107,.22);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: box-shadow var(--ease);
}

/* Shadow appears when the user scrolls — toggled by header.js */
.header.scrolled {
  box-shadow: 0 4px 32px rgba(31,42,55,.08);
}


/* HEADER INNER */
.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-top: 0.5rem;
  padding-left:  clamp(1.5rem, 16vw, 15rem); 
  padding-right: clamp(2rem,  8vw, 10rem); 
}


/* BRAND */
.brand {
  display: flex; align-items:center;
  gap: 1.1rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  height: 60px; width: 60px;
  object-fit: contain;
  flex-shrink: 0;
  min-width: 0;
  max-height: 60px;
  overflow: hidden;
}

.brand-text {
  display: flex; flex-direction:column;
  gap: 5px;
}

.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.40rem;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: var(--gold-d);
  line-height: 1;
}

.brand-sub {
  font-family: var(--sans);
  font-size: .90rem;
  color: var(--gold-d);
  letter-spacing: .09em;
  opacity: .65;
}


/* CTA BUTTON */
.header-cta {
  padding: .62rem 1.8rem;
  border: 1px solid rgba(194,165,107,.55);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .83rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--gold-d);
  white-space: nowrap;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}

.header-cta:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--cream);
}


/* RESPONSIVE HEADER */

/* -----------------------------------------------------------------
   ≤ 900px  Tablet
   ----------------------------------------------------------------- */
@media (max-width: 900px) {

  .header-inner {
    padding-left:  clamp(1rem, 4vw, 2rem);
    padding-right: clamp(1rem, 4vw, 2rem);
    padding-top: 0;
  }

  /* Slightly smaller CTA so it fits without wrapping */
  .header-cta {
    padding: .45rem 1.1rem;
    font-size: .72rem;
    letter-spacing: .10em;
  }

  /* Slightly smaller logo on tablet */
  .brand-logo {
    height: 48px;
    width:  48px;
  }

  /* Slightly smaller brand name on tablet */
  .brand-name { font-size: 1.15rem; }
  .brand-sub  { font-size: .78rem; }
}


/* -----------------------------------------------------------------
   ≤ 600px  Mobile
   ----------------------------------------------------------------- */
@media (max-width: 600px) {

  /* Taller header on mobile */
  .header {
    height: 72px;
  }

  /* Hide CTA */
  .header-cta {
    display: none !important;
  }

  .header-inner {
    height: 72px;
    padding-left:  1rem;
    padding-right: 1rem;
    padding-top: 0;
    justify-content: flex-start;
    align-items: center;
  }

  .brand {
    gap: .75rem;
    align-items: center;
  }

  /* Logo */
  .brand-logo {
    height: 46px;
    width:  46px;
    flex-shrink: 0;
    min-width: 46px;
  }

  /* to keep brand-text stacked vertically with consistent gap */
  .brand-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .brand-name {
    font-size: 1rem;
    letter-spacing: .08em;
    line-height: 1.1;
  }

  /* BRAND SUB */
  .brand-sub {
    display: block !important;
    visibility: visible !important;
    opacity: .72 !important;
    font-size: .70rem !important;
    letter-spacing: .08em;
    line-height: 1.2;
    white-space: nowrap;
  }
}


/* -----------------------------------------------------------------
   ≤ 480px  Small mobile
   ----------------------------------------------------------------- */
@media (max-width: 480px) {
  .header      { height: 68px; }
  .header-inner{ height: 68px; }
  .brand       { gap: .6rem; }
  .brand-logo  { height: 42px; width: 42px; min-width: 42px; }
  .brand-name  { font-size: .92rem; }
  .brand-sub   {
    display: block !important;
    visibility: visible !important;
    opacity: .72 !important;
    font-size: .66rem !important;
  }
}


/* -----------------------------------------------------------------
   ≤ 420px  Very small mobile
   ----------------------------------------------------------------- */
@media (max-width: 420px) {
  .header      { height: 64px; }
  .header-inner{ height: 64px; }
  .brand-logo  { height: 38px; width: 38px; min-width: 38px; }
  .brand-name  { font-size: .85rem; }
  .brand-sub   {
    display: block !important;
    visibility: visible !important;
    opacity: .72 !important;
    font-size: .62rem !important;
  }
}