/*
Theme Name: HSM Solutions
Theme URI: https://hsm-solutions.org
Author: Lunexis Labs
Author URI: https://lunexislabs.com
Description: Professional affiliate marketing agency theme for HSM Solutions. Deep navy and electric blue corporate design with smooth animations, scrolling client ticker, contact form, and affiliate survey.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hsm-solutions
Tags: one-page, full-width-template, custom-colors, custom-menu, dark, business, portfolio
*/

/* Base resets & variables */
:root {
  --navy: #07111f;
  --navy-mid: #0d1e35;
  --navy-card: #0f2340;
  --blue: #2D7EFF;
  --blue-light: #5B9EFF;
  --blue-dim: rgba(45,126,255,0.15);
  --blue-glow: rgba(45,126,255,0.35);
  --white: #F0F6FF;
  --gray: #7A96B8;
  --gray-light: #A8BFDA;
  --border: rgba(45,126,255,0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
  cursor: none;
}
a { text-decoration: none; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 2px; }

/* CUSTOM CURSOR */
.hsm-cursor {
  position: fixed; width: 12px; height: 12px;
  background: var(--blue); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  transition: transform 0.1s, width 0.3s, height 0.3s, background 0.3s;
}
.hsm-cursor-ring {
  position: fixed; width: 36px; height: 36px;
  border: 1.5px solid var(--blue-light); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: transform 0.15s ease, width 0.3s, height 0.3s, opacity 0.3s;
  opacity: 0.6;
}

/* NAV */
#hsm-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6%; height: 72px;
  background: rgba(7,17,31,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
#hsm-nav.scrolled { background: rgba(7,17,31,0.97); box-shadow: 0 4px 40px rgba(0,0,0,0.4); }
.hsm-nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 1.4rem;
  letter-spacing: -0.03em; color: var(--white);
}
.hsm-nav-logo span { color: var(--blue); }
.hsm-nav-links { display: flex; gap: 2.5rem; }
.hsm-nav-links a {
  font-size: 0.875rem; font-weight: 500;
  color: var(--gray-light); letter-spacing: 0.02em;
  transition: color 0.2s;
}
.hsm-nav-links a:hover { color: var(--white); }
.hsm-nav-cta {
  background: var(--blue); color: #fff;
  padding: 10px 22px; border-radius: 6px;
  font-size: 0.85rem; font-weight: 500;
  transition: background 0.2s, box-shadow 0.2s;
  cursor: none;
}
.hsm-nav-cta:hover { background: var(--blue-light); box-shadow: 0 0 20px var(--blue-glow); color: #fff; }
.hsm-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: none; background: none; border: none; padding: 4px;
}
.hsm-hamburger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s; display: block; }

/* MOBILE MENU */
.hsm-mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(7,17,31,0.98);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  gap: 32px; opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.hsm-mobile-menu.open { opacity: 1; pointer-events: all; }
.hsm-mobile-menu a {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem; font-weight: 700;
  color: var(--white); transition: color 0.2s;
}
.hsm-mobile-menu a:hover { color: var(--blue-light); }

/* HERO */
#hsm-hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: 120px 6% 80px;
}
.hsm-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(45,126,255,0.12) 0%, transparent 70%),
              radial-gradient(ellipse 40% 40% at 80% 70%, rgba(45,126,255,0.06) 0%, transparent 60%),
              var(--navy);
}
.hsm-grid-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(rgba(45,126,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,126,255,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
}
.hsm-hero-content {
  position: relative; z-index: 1;
  max-width: 860px; text-align: center;
}
.hsm-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-dim); border: 1px solid var(--border);
  border-radius: 100px; padding: 6px 16px;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em;
  color: var(--blue-light); text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease both;
}
.hsm-hero-badge::before {
  content: ''; width: 6px; height: 6px;
  background: var(--blue); border-radius: 50%;
  box-shadow: 0 0 8px var(--blue);
  animation: hsmPulse 2s infinite;
}
@keyframes hsmPulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

.hsm-hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -0.03em; color: var(--white);
  margin-bottom: 20px;
  animation: fadeUp 0.8s 0.15s ease both;
}
.hsm-hero-title .accent {
  color: var(--blue);
  position: relative; display: inline-block;
}
.hsm-hero-title .accent::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  border-radius: 2px;
  animation: lineGrow 1s 0.9s ease both;
  transform-origin: left;
}
@keyframes lineGrow { from{transform:scaleX(0)} to{transform:scaleX(1)} }

.hsm-hero-sub {
  font-size: 1.1rem; font-weight: 300; line-height: 1.7;	
  color: var(--gray-light); max-width: 600px; margin: 0 auto 40px;
  animation: fadeUp 0.8s 0.3s ease both;
}
.hsm-hero-btns {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  animation: fadeUp 0.8s 0.45s ease both;
}
.hsm-btn-primary {
  background: var(--blue); color: #fff;
  padding: 14px 32px; border-radius: 6px;
  font-size: 0.95rem; font-weight: 500; letter-spacing: 0.01em;
  transition: all 0.25s; border: none; cursor: none; display: inline-block;
}
.hsm-btn-primary:hover {
  background: var(--blue-light); box-shadow: 0 8px 30px var(--blue-glow);
  transform: translateY(-2px); color: #fff;
}
.hsm-btn-outline {
  background: transparent; color: var(--white);
  padding: 14px 32px; border-radius: 6px;
  font-size: 0.95rem; font-weight: 500; letter-spacing: 0.01em;
  border: 1.5px solid var(--border);
  transition: all 0.25s; cursor: none; display: inline-block;
}
.hsm-btn-outline:hover {
  border-color: var(--blue); color: var(--blue-light);
  background: var(--blue-dim); transform: translateY(-2px);
}
.hsm-hero-stats {
  display: flex; gap: 48px; justify-content: center; flex-wrap: wrap;
  margin-top: 72px; padding-top: 48px;
  border-top: 1px solid var(--border);
  animation: fadeUp 0.8s 0.6s ease both;
}
.hsm-hero-stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 2rem; font-weight: 800;
  color: var(--blue-light); letter-spacing: -0.02em;
}
.hsm-hero-stat-label {
  font-size: 0.8rem; color: var(--gray);
  text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* SECTION COMMONS */
.hsm-section { padding: 100px 6%; }
.hsm-section-label {
  display: inline-block;
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 16px;
}
.hsm-section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700; letter-spacing: -0.025em;
  line-height: 1.15; color: var(--white); margin-bottom: 16px;
}
.hsm-section-sub {
  font-size: 1rem; color: var(--gray-light);
  line-height: 1.7; max-width: 540px;
}
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ABOUT */
#hsm-about {
  background: var(--navy-mid);
}

.hsm-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.hsm-about-visual {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--navy-card);
  border: 1px solid var(--border);
  padding: 40px;
  min-height: 360px;
}

.hsm-about-visual::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

.hsm-visual-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
  display: inline-block;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  line-height: 1.2;
  position: relative;
  z-index: 2;
}

/* THIS targets your extra wrapper div */
.hsm-about-visual > div:last-child {
  width: 100%;
}

.hsm-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 180px;
  width: 100%;
  margin-top: 12px;
}

.hsm-bar {
  flex: 1;
  height: 100%;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.hsm-bar::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue-dim);
  border-radius: 999px;
}

.hsm-bar-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  min-height: 8px;
  background: linear-gradient(0deg, var(--blue), var(--blue-light));
  border-radius: 6px 6px 0 0;
  box-shadow: 0 0 12px rgba(45, 126, 255, 0.35);
  transition: height 0.8s ease;
}

.hsm-bar:hover .hsm-bar-fill {
  filter: brightness(1.1);
}

.hsm-chart-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--gray);
  text-align: center;
  margin-top: 8px;
  gap: 10px;
  width: 100%;
}

.hsm-chart-label span {
  flex: 1;
}

.hsm-about-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray-light);
  margin-bottom: 20px;
}

.hsm-about-text p strong {
  color: var(--white);
  font-weight: 500;
}

.hsm-about-pillars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.hsm-pillar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--gray-light);
}

.hsm-pillar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--blue);
}

/* SERVICES */
#hsm-services { background: var(--navy); }
.hsm-services-header { max-width: 1100px; margin: 0 auto 60px; }
.hsm-services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 1100px; margin: 0 auto;
}
.hsm-service-card {
  background: var(--navy-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 36px 30px;
  transition: all 0.3s ease; position: relative; overflow: hidden;
}
.hsm-service-card::after {
  content: ''; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(circle at 50% 0%, rgba(45,126,255,0.1) 0%, transparent 60%);
  transition: opacity 0.3s;
}
.hsm-service-card:hover {
  border-color: rgba(45,126,255,0.5); transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 30px rgba(45,126,255,0.1);
}
.hsm-service-card:hover::after { opacity: 1; }
.hsm-service-icon {
  width: 48px; height: 48px; margin-bottom: 20px;
  background: var(--blue-dim); border-radius: 10px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.hsm-service-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem; font-weight: 700; color: var(--white);
  margin-bottom: 10px; letter-spacing: -0.01em;
}
.hsm-service-desc { font-size: 0.88rem; line-height: 1.65; color: var(--gray); }
.hsm-service-arrow {
  margin-top: 20px; font-size: 0.82rem; color: var(--blue);
  display: flex; align-items: center; gap: 6px;
  opacity: 0; transition: opacity 0.3s, gap 0.3s;
}
.hsm-service-card:hover .hsm-service-arrow { opacity: 1; gap: 10px; }

/* CLIENTS TICKER */
#hsm-clients { background: var(--navy-mid); padding: 70px 0; overflow: hidden; }
.hsm-clients-header { text-align: center; margin-bottom: 50px; padding: 0 6%; }
.hsm-ticker-wrapper {
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
}
.hsm-ticker-track {
  display: flex; gap: 24px;
  animation: hsmTicker 25s linear infinite;
  width: max-content;
}
.hsm-ticker-track:hover { animation-play-state: paused; }
@keyframes hsmTicker { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.hsm-client-logo {
  background: var(--navy-card); border: 1px solid var(--border); border-radius: 8px;
  padding: 16px 32px; display: flex; align-items: center; gap: 10px;
  white-space: nowrap; flex-shrink: 0; transition: border-color 0.2s, box-shadow 0.2s;
}
.hsm-client-logo:hover { border-color: rgba(45,126,255,0.4); box-shadow: 0 4px 20px rgba(45,126,255,0.1); }
.hsm-client-logo-icon {
  width: 32px; height: 32px; border-radius: 6px;
  background: var(--blue-dim); display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; color: var(--blue-light);
  font-family: 'Syne', sans-serif;
}
.hsm-client-logo-name {
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem; font-weight: 600; color: var(--gray-light); letter-spacing: 0.02em;
}

/* STATS */
#hsm-stats { background: var(--navy); }
.hsm-stats-container { max-width: 1100px; margin: 0 auto; }
.hsm-stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
  background: var(--border); border-radius: 12px; overflow: hidden; margin-top: 60px;
}
.hsm-stat-block {
  background: var(--navy-card); padding: 56px 40px;
  text-align: center; position: relative;
}
.hsm-stat-block::before {
  content: ''; position: absolute; top: 0; left: 50%;
  transform: translateX(-50%); width: 40px; height: 2px; background: var(--blue);
}
.hsm-stat-number {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  font-weight: 800; color: var(--white); letter-spacing: -0.04em; line-height: 1; margin-bottom: 10px;
}
.hsm-stat-number span { color: var(--blue-light); }
.hsm-stat-label { font-size: 0.85rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.1em; }
.hsm-stat-desc { font-size: 0.85rem; color: var(--gray); margin-top: 6px; line-height: 1.5; }

/* WHY CHOOSE US */
#hsm-why { background: var(--navy-mid); }
.hsm-why-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  max-width: 1100px; margin: 0 auto; align-items: start;
}
.hsm-why-list { display: flex; flex-direction: column; }
.hsm-why-item {
  padding: 28px 0; border-bottom: 1px solid var(--border);
  display: grid; grid-template-columns: 48px 1fr; gap: 20px; align-items: start; cursor: none;
}
.hsm-why-item:first-child { border-top: 1px solid var(--border); }
.hsm-why-num {
  font-family: 'Syne', sans-serif; font-size: 0.8rem; font-weight: 700;
  color: var(--blue); letter-spacing: 0.05em; padding-top: 3px;
}
.hsm-why-title {
  font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700;
  color: var(--white); margin-bottom: 6px; letter-spacing: -0.01em;
}
.hsm-why-desc { font-size: 0.875rem; color: var(--gray); line-height: 1.65; }
.hsm-why-visual {
  background: var(--navy-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 36px; position: sticky; top: 120px;
}
.hsm-why-visual::before {
  content: ''; display: block; height: 2px;
  background: linear-gradient(90deg, var(--blue), transparent);
  margin-bottom: 28px; border-radius: 2px;
}
.hsm-why-metric { margin-bottom: 28px; }
.hsm-why-metric-label {
  font-size: 0.78rem; color: var(--gray); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px;
}
.hsm-why-metric-bar { height: 6px; background: var(--blue-dim); border-radius: 3px; overflow: hidden; }
.hsm-why-metric-fill {
  height: 100%; background: linear-gradient(90deg, var(--blue), var(--blue-light));
  border-radius: 3px; animation: hsmFillBar 1.5s ease both;
}
@keyframes hsmFillBar { from{width:0!important} }
.hsm-why-metric-value {
  font-family: 'Syne', sans-serif; font-size: 0.9rem; font-weight: 700;
  color: var(--blue-light); text-align: right; margin-top: 6px;
}

/* CONTACT */
#hsm-contact { background: var(--navy); }
.hsm-contact-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px;
  max-width: 1100px; margin: 0 auto; align-items: start;
}
.hsm-contact-info { padding-top: 8px; }
.hsm-contact-info p { font-size: 1rem; color: var(--gray-light); line-height: 1.7; margin-bottom: 32px; }
.hsm-contact-detail { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; font-size: 0.9rem; color: var(--gray-light); }
.hsm-contact-detail-icon {
  width: 36px; height: 36px; background: var(--blue-dim); border: 1px solid var(--border);
  border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.hsm-contact-detail strong { color: var(--white); display: block; margin-bottom: 2px; }
.hsm-form-wrap {
  background: var(--navy-card); border: 1px solid var(--border); border-radius: 12px; padding: 40px;
}
.hsm-form-title {
  font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 700;
  color: var(--white); margin-bottom: 28px; letter-spacing: -0.01em;
}
.hsm-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hsm-form-group { display: flex; flex-direction: column; gap: 6px; }
.hsm-form-group.full { grid-column: 1 / -1; }
.hsm-form-group label {
  font-size: 0.78rem; font-weight: 500; color: var(--gray);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.hsm-form-group input,
.hsm-form-group select,
.hsm-form-group textarea {
  background: var(--navy-mid); border: 1px solid var(--border);
  color: var(--white); border-radius: 6px; padding: 12px 14px;
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%; cursor: none;
}
.hsm-form-group input:focus,
.hsm-form-group select:focus,
.hsm-form-group textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(45,126,255,0.12); }
.hsm-form-group select option { background: var(--navy-mid); }
.hsm-form-group textarea { resize: vertical; min-height: 100px; }

/* SURVEY */
.hsm-survey-section {
  background: var(--navy-mid); border: 1px solid var(--border);
  border-radius: 10px; padding: 28px; margin: 20px 0;
}
.hsm-survey-title {
  font-family: 'Syne', sans-serif; font-size: 0.9rem; font-weight: 700;
  color: var(--blue-light); margin-bottom: 18px; letter-spacing: 0.02em;
}
.hsm-survey-q { margin-bottom: 16px; }
.hsm-survey-q label { font-size: 0.83rem; color: var(--gray-light); display: block; margin-bottom: 8px; }
.hsm-radio-group { display: flex; flex-wrap: wrap; gap: 8px; }
.hsm-radio-btn {
  background: var(--navy); border: 1px solid var(--border);
  color: var(--gray-light); border-radius: 4px;
  padding: 6px 14px; font-size: 0.8rem; cursor: none;
  transition: all 0.2s; font-family: 'DM Sans', sans-serif;
}
.hsm-radio-btn:hover, .hsm-radio-btn.active {
  border-color: var(--blue); color: var(--blue-light); background: var(--blue-dim);
}
.hsm-btn-submit {
  width: 100%; padding: 14px; border-radius: 6px;
  background: var(--blue); color: #fff; border: none;
  font-family: 'Syne', sans-serif; font-size: 0.95rem; font-weight: 700;
  letter-spacing: 0.02em; cursor: none; transition: all 0.25s; margin-top: 8px;
}
.hsm-btn-submit:hover {
  background: var(--blue-light); box-shadow: 0 8px 30px var(--blue-glow); transform: translateY(-2px);
}
.hsm-form-note { font-size: 0.75rem; color: var(--gray); text-align: center; margin-top: 14px; line-height: 1.5; }
.hsm-success-msg {
  display: none; background: var(--blue-dim); border: 1px solid var(--blue);
  border-radius: 8px; padding: 16px; text-align: center;
  color: var(--blue-light); font-size: 0.9rem; margin-top: 12px;
}
.hsm-success-msg.show { display: block; }

/* FOOTER */
#hsm-footer {
  background: var(--navy-mid); border-top: 1px solid var(--border); padding: 70px 6% 30px;
}
.hsm-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px;
  max-width: 1100px; margin: 0 auto 50px;
}
.hsm-footer-brand-logo {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.3rem;
  letter-spacing: -0.03em; color: var(--white);
}
.hsm-footer-brand-logo span { color: var(--blue); }
.hsm-footer-brand p {
  font-size: 0.875rem; color: var(--gray); line-height: 1.7;
  margin: 14px 0 24px; max-width: 260px;
}
.hsm-social-links { display: flex; gap: 10px; }
.hsm-social-link {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--navy-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray); font-size: 0.9rem; text-decoration: none; transition: all 0.2s;
  font-weight: 700;
}
.hsm-social-link:hover { border-color: var(--blue); color: var(--blue-light); background: var(--blue-dim); }
.hsm-footer-col h4 {
  font-family: 'Syne', sans-serif; font-size: 0.8rem; font-weight: 700; color: var(--white);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 18px;
}
.hsm-footer-col a {
  display: block; font-size: 0.875rem; color: var(--gray);
  margin-bottom: 10px; transition: color 0.2s;
}
.hsm-footer-col a:hover { color: var(--blue-light); }
.hsm-footer-bottom {
  max-width: 1100px; margin: 0 auto; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; font-size: 0.8rem; color: var(--gray);
}
.hsm-footer-bottom span { color: var(--blue-light); }


/* FOOTER LOGO CUSTOMIZATION */

/* Make all footer columns start from top */
#hsm-footer .hsm-footer-grid {
    align-items: start;
}

/* Brand column: left align everything */
#hsm-footer .hsm-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    margin-top: 0;
    padding-top: 0;
}

/* Logo wrapper */
#hsm-footer .hsm-footer-brand-logo {
    display: block;
	margin: -6px 0 20px 0;
/*    margin: 0 0 20px 0;/*   /* no top gap, spacing below logo */
    padding: 0;
    line-height: 0;
    align-self: flex-start;
}

/* Actual logo image */
#hsm-footer .hsm-footer-brand-logo img {
    display: block;
    width: 300px;         /* change if you want bigger/smaller */
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    vertical-align: top;
    opacity: 1;
    transition: all 0.3s ease;
}

/* Hover effect */
#hsm-footer .hsm-footer-brand-logo img:hover {
    filter: drop-shadow(0 0 12px var(--blue));
    transform: scale(1.03);
}

/* Paragraph exactly left aligned with logo */
#hsm-footer .hsm-footer-brand p {
    margin: 0 0 24px 0;
    padding: 0;
    text-align: left;
    max-width: 320px;
}

/* Social icons aligned left under text */
#hsm-footer .hsm-social-links {
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 0;
    justify-content: flex-start;
    align-items: center;
}
/* RESPONSIVE */
@media (max-width: 1024px) {
  .hsm-services-grid { grid-template-columns: repeat(2, 1fr); }
  .hsm-stats-grid { grid-template-columns: repeat(3, 1fr); }
  .hsm-about-grid, .hsm-why-grid, .hsm-contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .hsm-footer-grid { grid-template-columns: 1fr 1fr; }
  .hsm-why-visual { position: static; }
}
@media (max-width: 768px) {
  .hsm-nav-links, .hsm-nav-cta { display: none; }
  .hsm-hamburger { display: flex; }
  .hsm-services-grid { grid-template-columns: 1fr; }
  .hsm-stats-grid { grid-template-columns: 1fr; }
  .hsm-form-grid { grid-template-columns: 1fr; }
  .hsm-footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .hsm-hero-stats { gap: 28px; }
  .hsm-section { padding: 70px 5%; }
}
#hsm-hero .hsm-hero-title {
    font-size: 2.4rem !important;
}
