/*
Theme Name: Hello Elementor SWAM
Description: Child theme of Hello Elementor for Southwestern Asset Management. Header and footer chrome only - type and layout tokens live in the SWAM token layer.
Template: hello-elementor
Version: 1.0.0
Text Domain: swam
*/

.swam-skip{position:absolute;left:-9999px;top:auto}
.swam-skip:focus{left:16px;top:16px;z-index:1000;background:#fff;color:#2F3146;padding:8px 16px}

.swam-header{
  display:flex;align-items:center;justify-content:space-between;gap:24px;
  background:#fff;
  min-height:clamp(64px,8.7vw,167px);
  padding-inline:clamp(20px,8.07vw,155px);
  border-bottom:1px solid var(--OffWhite,#F2F1EF);
}
.swam-header__logo{display:block;line-height:0;flex:0 0 auto}
.swam-logo{width:clamp(150px,17.75vw,341px);height:auto;display:block}
.swam-header__nav{display:flex;align-items:center;flex-wrap:wrap;gap:clamp(12px,1.46vw,28px);justify-content:flex-end}
.swam-nav__login{margin-left:clamp(8px,2.55vw,49px)}

.swam-footer{
  background:var(--Navy,#2F3146);
  padding-block:clamp(40px,3.65vw,70px);
  padding-inline:clamp(20px,8.07vw,155px);
}
.swam-footer__top{display:flex;align-items:flex-start;gap:clamp(24px,5vw,96px)}
.swam-footer__brand{flex:0 0 auto;width:clamp(170px,16.1vw,309px)}
.swam-footer__logo{width:100%;height:auto;display:block;margin:0 0 10px}
.swam-footer__legal{flex:1 1 auto}
.swam-footer__rule{border:0;border-top:1px solid var(--OffWhite,#F2F1EF);opacity:.55;margin:clamp(20px,2.2vw,42px) 0 clamp(14px,1.4vw,27px)}
.swam-footer__copy{text-align:center;letter-spacing:.095em;text-transform:uppercase}

@media (max-width:900px){
  .swam-footer__top{flex-direction:column}
  .swam-footer__brand{width:clamp(170px,40vw,240px)}
}
@media (max-width:767px){
  .swam-header{flex-wrap:wrap;justify-content:center}
  .swam-header__nav{width:100%;justify-content:center}
}

/* ---- Header sizing corrections (measured against Figma at 1440) ----
   Header height = 167/1920; LOGIN pill = 115x47.7 at 1920. Padding is inside
   the min-height, not added to it, or the bar ends up ~26px too tall. */
.swam-header{min-height:clamp(64px,8.7vw,167px)}
.swam-nav__login{
  width:clamp(76px,5.99vw,115px);
  height:clamp(32px,2.48vw,48px);
  padding:0;
  display:inline-flex;align-items:center;justify-content:center;
}

/* ---- Mint accent heading indents ----
   Figma steps each accent line to the right of the line above. Values are em
   so they track the heading size: 1.8em / 2.7em / 4.5em of a 40px H2 at 1920. */

/* ---- Mobile menu ---- */
.swam-nav-toggle{
  display:none;
  width:44px;height:44px;padding:10px;
  background:none;border:0;cursor:pointer;
  flex-direction:column;justify-content:space-between;
}
.swam-nav-toggle__bar{
  display:block;height:2px;width:100%;
  background:var(--Navy,#2F3146);
  transition:transform .25s ease, opacity .2s ease;
}
.swam-nav-toggle:focus-visible{outline:2px solid var(--Mint,#6FC7B3);outline-offset:2px}

@media (prefers-reduced-motion:reduce){
  .swam-nav-toggle__bar{transition:none}
}

@media (max-width:1024px){
  .swam-header{flex-wrap:nowrap;justify-content:space-between;position:relative}
  .swam-nav-toggle{display:flex}
  .swam-header__nav{
    position:absolute;left:0;right:0;top:100%;
    background:#fff;
    border-bottom:1px solid var(--OffWhite,#F2F1EF);
    flex-direction:column;align-items:flex-start;
    gap:0;
    padding:0 clamp(20px,8.07vw,155px);
    max-height:0;overflow:hidden;visibility:hidden;
    transition:max-height .28s ease, visibility .28s ease;
    z-index:60;
  }
  .swam-header.is-open .swam-header__nav{
    max-height:70vh;overflow:auto;visibility:visible;
    padding-block:8px 20px;
  }
  .swam-header__nav > a{padding-block:14px}
  .swam-nav__login{margin-left:0;margin-top:10px;width:auto;min-width:clamp(96px,30vw,140px)}
  body.swam-nav-locked{overflow:hidden}
}
@media (max-width:1024px) and (prefers-reduced-motion:reduce){
  .swam-header__nav{transition:none}
}

@media (max-width:767px){
  .g-indent-1,.g-indent-2,.g-indent-3{margin-left:0}
}

/* ---- Mobile menu fixes ----
   The theme paints bare <button> elements #CC3366, and the burger bars are
   addressed by modifier class rather than :nth-child because the visually
   hidden label is the button's first child. */
.swam-header .swam-nav-toggle{background-color:transparent;border:0;-webkit-appearance:none;appearance:none}
.swam-header.is-open .swam-nav-toggle__bar--top{transform:translateY(9px) rotate(45deg)}
.swam-header.is-open .swam-nav-toggle__bar--mid{opacity:0}
.swam-header.is-open .swam-nav-toggle__bar--bot{transform:translateY(-9px) rotate(-45deg)}

@media (max-width:1024px){
  .swam-header__nav > a:not(.swam-nav__login){width:100%}
  .swam-header__nav > a.swam-nav__login{align-self:flex-start;width:auto;min-width:clamp(96px,30vw,140px);height:clamp(36px,10vw,44px)}
}


/* ---- Accent indents (compound selectors: the g-h* token rules set margin:0
   and load after this file, so a single-class rule loses) ---- */
.g-h1.g-indent-1,.g-h2.g-indent-1{margin-left:1.8em}
.g-h1.g-indent-2,.g-h2.g-indent-2{margin-left:2.7em}
.g-h1.g-indent-3,.g-h2.g-indent-3{margin-left:4.5em}
@media (max-width:767px){
  .g-h1.g-indent-1,.g-h2.g-indent-1,
  .g-h1.g-indent-2,.g-h2.g-indent-2,
  .g-h1.g-indent-3,.g-h2.g-indent-3{margin-left:0}
}

/* ---- Split gutters: text column aligns to the Figma columns, and the
   reversed variant starts at the page gutter (155/1920) ---- */
.swam-split__body{padding-left:clamp(20px,6.13vw,118px)}
.swam-split--reverse .swam-split__body{padding-left:clamp(20px,8.07vw,155px)}
@media (max-width:767px){
  .swam-split__body,.swam-split--reverse .swam-split__body{padding-left:clamp(20px,8.07vw,155px)}
}
