/* ==========================================================================
   HOWSPACE TRUST CENTER - MAIN STYLESHEET
   ========================================================================== 
   Requires: styles/tokens.css for global CSS variables.
   Methodology: Component-based architecture with utility layout classes.
   ========================================================================== */

/* ==========================================
   BRAND TYPOGRAPHY (Hotlinked from howspace.com)
   ========================================== */
@font-face {
  font-family: 'GT Walsheim Pro';
  src: url('../assets/fonts/gt_walsheim_pro_regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GT Walsheim Pro';
  src: url('../assets/fonts/gt_walsheim_pro_medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'GT Walsheim Pro';
  src: url('../assets/fonts/gt_walsheim_pro_bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ==========================================
   1. RESET & BASE
   ========================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ==========================================
   2. TYPOGRAPHY HIERARCHY
   ========================================== */
h1, h2 {
  font-weight: var(--font-weight-regular);
  line-height: 1.15;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em; /* Tight tracking for GT Walsheim premium feel */
}

h3, h4 {
  font-weight: var(--font-weight-bold);
  line-height: 1.15;
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--font-size-xxl); }
h2 { font-size: var(--font-size-xl); }
h3 { font-size: var(--font-size-lg); }

p {
  color: var(--text-secondary);
  font-size: var(--font-size-base);
  margin-bottom: var(--space-4);
}

.lead-text {
  font-size: var(--font-size-md);
  color: var(--text-primary);
  max-width: 800px;
}


/* ==========================================
   3. BUTTONS & CALLS TO ACTION
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-pill);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-md);
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--color-dark-purple);
  color: var(--text-inverse);
}

.btn-primary:hover {
  background-color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--color-white);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}


/* ==========================================
   4. LAYOUT CONTAINERS
   ========================================== */
.container {
  width: 100%;
  max-width: 1280px; 
  margin: 0 auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.section {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}


/* ==========================================
   5. BENTO BOX GRID SYSTEM
   ========================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-6);
}

/* Component: Card Base */
.bento-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-10);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-white); /* Invisible border reserves space for hover state */
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--color-light-purple-1);
}

/* Component: Card Header */
.bento-card-header {
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.bento-card-icon {
  width: 48px;
  height: 48px;
  background-color: var(--color-light-purple-1);
  color: var(--brand-primary);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive Grid Utilities */
.bento-col-12 { grid-column: span 12; }
.bento-col-8 { grid-column: span 12; }
.bento-col-6 { grid-column: span 12; }
.bento-col-4 { grid-column: span 12; }

@media (min-width: 768px) {
  .bento-col-6 { grid-column: span 6; }
}

@media (min-width: 1024px) {
  .bento-col-8 { grid-column: span 8; }
  .bento-col-4 { grid-column: span 4; }
}


/* ==========================================
   6. COMPONENT: TRUST METRICS BAR
   ========================================== */
.metrics-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.metric-pill {
  background-color: var(--color-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-6);
  display: flex;
  align-items: center;
  gap: 8px; 
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-sm);
  box-shadow: var(--shadow-sm);
}

.status-dot {
  width: 12px;
  height: 12px;
  background-color: #10B981; /* Standard success green */
  border-radius: 50%;
  display: inline-block;
}


/* ==========================================
   7. COMPONENT: HEADER & FOOTER
   ========================================== */
.site-header {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

.logo svg {
  color: var(--color-black);
  max-width: 100px;
  height: auto;
}

/* Mobile-first header adjustments */
.site-header .btn {
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-sm);
  white-space: nowrap; 
}

@media (min-width: 768px) {
  .logo svg {
    max-width: 130px;
  }
  .site-header .btn {
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-md);
  }
}


/* ==========================================
   8. THIRD-PARTY OVERRIDES: HUBSPOT FORMS
   NOTE: !important tags are utilized here strictly 
   to override HubSpot's injected legacy inline CSS.
   ========================================== */
.hs-form {
  text-align: left;
}

.hs-form-field {
  margin-bottom: var(--space-4);
}

/* HubSpot Multi-column Layout Fixes */
.hs-form fieldset {
  border: none;
  padding: 0;
  margin: 0;
  max-width: 100%;
}

.hs-form fieldset[class*="form-columns"] {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.hs-form fieldset[class*="form-columns"] .hs-form-field {
  margin-bottom: 0;
  width: 100% !important; /* Overrides HS legacy inline % widths */
  float: none !important; /* Overrides HS legacy floats */
}

@media (min-width: 768px) {
  .hs-form fieldset.form-columns-2 {
    grid-template-columns: 1fr 1fr;
  }
  .hs-form fieldset.form-columns-3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Form Labels & Required Asterisks */
.hs-form-field label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-base);
  color: var(--text-primary);
}

.hs-form-required {
  color: #D14343; /* Subdued red for required asterisk */
  margin-left: 4px;
}

/* Standard Inputs */
.hs-input {
  width: 100%;
  padding: 12px var(--space-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: var(--font-size-base);
  color: var(--text-primary);
  background-color: var(--bg-page);
  transition: border-color 0.3s ease;
}

.hs-input:focus {
  outline: none;
  border-color: var(--brand-primary);
}

/* Checkbox & Radio Lists */
.hs-form ul.inputs-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 var(--space-4) 0 !important;
}

.hs-form ul.inputs-list li {
  margin-bottom: 12px;
}

.hs-form ul.inputs-list li::before {
  content: none !important; /* Force remove any browser default list styling */
}

.hs-form ul.inputs-list label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-base);
  margin-bottom: 0;
  cursor: pointer;
}

.hs-form ul.inputs-list input[type="checkbox"],
.hs-form ul.inputs-list input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  margin-top: 3px; /* Align perfectly with text baseline */
  accent-color: var(--color-dark-purple);
  flex-shrink: 0;
  cursor: pointer;
}

/* Select Dropdowns */
select.hs-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg width="12" height="8" viewBox="0 0 12 8" fill="none" stroke="%23333333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L6 6L11 1"/></svg>');
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  background-size: 12px;
  padding-right: var(--space-10);
  cursor: pointer;
}

/* Form Submit Button */
.hs-button.primary {
  width: 100%;
  background-color: var(--color-dark-purple);
  color: var(--color-white);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-md);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: var(--space-4);
}

.hs-button.primary:hover {
  background-color: var(--brand-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}