/* ════════════════════════════════════════════════════════════════════
   HUMA INTERIORS — GLOBAL STYLESHEET
   Header + Footer + base tokens for the WHOLE site.
   Location: /public_html/css/huma-global.css
   Brand: Orange #E97724 · Blue #2C358B
   Fonts: Cormorant Garamond (display) · DM Sans (body) · Bebas Neue (accent)
   ════════════════════════════════════════════════════════════════════ */

:root {
  --orange: #E97724;
  --orange-dk: #C85E12;
  --orange-glow: rgba(233,119,36,.10);
  --blue: #2C358B;
  --blue-dk: #1E2666;
  --blue-glow: rgba(44,53,139,.08);
  --ink: #1A1A1A;
  --text: #2A2A2A;
  --muted: #6A6A6A;
  --line: #E6E6E6;
  --g50: #FAFAFA;
  --g100: #F4F4F4;
  --white: #FFFFFF;
  --wa: #25D366;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Bebas Neue', sans-serif;

  --radius: 8px;
  --shadow-sm: 0 2px 12px rgba(0,0,0,.06);
  --shadow-md: 0 8px 30px rgba(0,0,0,.10);
  --transition: .25s cubic-bezier(.4,0,.2,1);
  --header-h: 72px;

  /* ── Aliases used by developer page templates (blog, listings, etc.) ──
     These point at the same brand values so any page written with the
     --huma-* naming renders correctly against this one stylesheet. */
  --huma-orange: var(--orange);
  --huma-orange-dark: var(--orange-dk);
  --huma-blue: var(--blue);
  --huma-dark: var(--ink);
  --huma-title: #1F1F1F;
  --huma-subtitle: #6A6A6A;
  --huma-excerpt: #555555;
  --huma-bg: #FAFAFA;
  --huma-line: var(--line);
  --shadow-card: 0 2px 14px rgba(0,0,0,.07);
  --shadow-card-hover: 0 14px 34px rgba(0,0,0,.13);
}

/* ---- Reset scoped to Huma header/footer to avoid clobbering page CSS ---- */
.hi-header *, .hi-header *::before, .hi-header *::after,
.hi-footer *, .hi-footer *::before, .hi-footer *::after {
  box-sizing: border-box; margin: 0; padding: 0;
}

/* ═══════════════════ HEADER ═══════════════════ */
.hi-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--line);
  transition: var(--transition);
  font-family: var(--font-body);
}
.hi-header.scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.hi-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hi-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.hi-logo img { display: block; height: 44px; width: auto; }

.hi-nav { display: flex; align-items: center; gap: 32px; }
.hi-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.hi-nav > ul > li > a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
}
.hi-nav > ul > li > a:hover { color: var(--orange); background: var(--orange-glow); }
.hi-nav > ul > li > a.active { color: var(--blue); font-weight: 600; }

.hi-nav-actions { display: flex; align-items: center; gap: 12px; }
.hi-social {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--muted);
  border: 1px solid var(--line);
  transition: var(--transition);
}
.hi-social svg { width: 16px; height: 16px; }
.hi-social.ig:hover { color: var(--white); background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); border-color: transparent; }
.hi-social.fb:hover { color: var(--white); background: #1877F2; border-color: transparent; }
.hi-social.wa:hover { color: var(--white); background: var(--wa); border-color: transparent; }

.hi-phone {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .88rem; font-weight: 600; color: var(--blue);
  text-decoration: none; transition: var(--transition);
  white-space: nowrap;
}
.hi-phone:hover { color: var(--orange); }
.hi-phone svg { flex-shrink: 0; }

.hi-cta-btn {
  background: var(--orange);
  color: var(--white);
  font-size: .84rem; font-weight: 600;
  padding: 11px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.hi-cta-btn:hover { background: var(--orange-dk); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* Burger */
.hi-burger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px;
}
.hi-burger span {
  width: 24px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: var(--transition);
}
.hi-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hi-burger.open span:nth-child(2) { opacity: 0; }
.hi-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Spacer so fixed header doesn't cover content.
   Add class="hi-has-fixed-header" to <body> OR rely on this default. */
body { padding-top: var(--header-h); }

/* ---- Mobile ---- */
@media (max-width: 940px) {
  .hi-burger { display: flex; }
  .hi-nav {
    position: fixed;
    top: var(--header-h); right: 0;
    width: min(320px, 85vw);
    height: calc(100vh - var(--header-h));
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px;
    box-shadow: -8px 0 30px rgba(0,0,0,.12);
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
  }
  .hi-nav.open { transform: translateX(0); }
  .hi-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  .hi-nav > ul > li > a { display: block; padding: 14px 12px; font-size: 1rem; border-radius: var(--radius); }
  .hi-nav-actions { flex-wrap: wrap; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
  .hi-phone { width: 100%; justify-content: center; padding: 12px; background: var(--blue-glow); border-radius: var(--radius); }
  .hi-cta-btn { width: 100%; text-align: center; }
}

/* ═══════════════════ FOOTER ═══════════════════ */
.hi-footer {
  background: var(--ink);
  color: rgba(255,255,255,.72);
  font-family: var(--font-body);
  margin-top: 60px;
}
.hi-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.hi-foot-brand p { font-size: .9rem; line-height: 1.7; margin: 16px 0; color: rgba(255,255,255,.6); }
.hi-foot-logo { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--white); }
.hi-foot-logo span { color: var(--orange); }

.hi-foot-contact { list-style: none; }
.hi-foot-contact li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: .88rem; }
.hi-foot-contact .ic { width: 20px; text-align: center; opacity: .8; }
.hi-foot-contact a { color: rgba(255,255,255,.72); text-decoration: none; transition: var(--transition); }
.hi-foot-contact a:hover { color: var(--orange); }

.hi-foot-social { display: flex; gap: 10px; margin-top: 18px; }
.hi-foot-social a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.8);
  transition: var(--transition);
}
.hi-foot-social a svg { width: 18px; height: 18px; }
.hi-foot-social a:hover { background: var(--orange); color: var(--white); transform: translateY(-2px); }

.hi-foot-col h4 {
  font-family: var(--font-body);
  font-size: .82rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--white); margin-bottom: 18px;
}
.hi-foot-col ul { list-style: none; }
.hi-foot-col li { margin-bottom: 11px; }
.hi-foot-col a { color: rgba(255,255,255,.62); text-decoration: none; font-size: .88rem; transition: var(--transition); }
.hi-foot-col a:hover { color: var(--orange); padding-left: 3px; }

.hi-foot-bar {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 24px;
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.hi-foot-bar p { font-size: .8rem; color: rgba(255,255,255,.5); }
.hi-foot-bar a { color: rgba(255,255,255,.6); text-decoration: none; }
.hi-foot-bar a:hover { color: var(--orange); }

@media (max-width: 860px) {
  .hi-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hi-foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .hi-footer-inner { grid-template-columns: 1fr; }
  .hi-foot-bar { flex-direction: column; text-align: center; }
}