/* ==========================================================================
   Spenomatic Group - Exact Brand Design System & Color Tokens
   ========================================================================== */

/* Local body typeface supplied with the project. */
@font-face {
  font-family: 'Montserrat';
  src: url('../fonts/Montserrat-500-800-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
}

@font-face {
  font-family: 'Spenomatic Optima';
  src: url('../fonts/OPTIMA.TTF') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Spenomatic Optima';
  src: url('../fonts/Optima%20Medium.ttf') format('truetype');
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
}

@font-face {
  font-family: 'Spenomatic Optima';
  src: url('../fonts/OPTIMA_B.TTF') format('truetype');
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}

@font-face {
  font-family: 'Spenomatic Optima';
  src: url('../fonts/Optima_Italic.ttf') format('truetype');
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
}

:root {
  /* Brand Color Palette - Exact Spenomatic Signature Colors */
  --purple-dark: #281E48;
  --purple-navy: #31275C;
  --purple-main: #382B73;
  --purple-light: #5B48A0;
  --accent-red: #E11D48;
  --accent-red-hover: #BE123C;
  --blue-bright: #2563EB;
  --blue-hover: #1D4ED8;
  --accent-gold: #97caeb;
  
  --dark-slate: #1E1B4B;
  --slate-body: #475569;
  --muted-gray: #64748B;
  --border-light: #E2E8F0;
  --bg-tint: #F1F3F9;
  --bg-white: #FFFFFF;
  
  --card-shadow: 0 10px 25px -5px rgba(56, 43, 115, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  --card-shadow-hover: 0 20px 35px -10px rgba(56, 43, 115, 0.2), 0 10px 15px -5px rgba(0, 0, 0, 0.05);
  
  /* Fonts */
  --font-heading: 'Montserrat', 'Avenir Next', 'Segoe UI', sans-serif;
  --font-body: 'Spenomatic Optima', Optima, Candara, 'Segoe UI', sans-serif;
  
  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

/* Responsive media wrappers preserve each source image's intrinsic ratio. */
.responsive-picture { display: contents; }
.responsive-image { max-width: 100%; height: auto; }

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--slate-body);
  background-color: #FFFFFF;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--purple-navy);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--purple-main);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--accent-red);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Interlink Styling */
.interlink-keyword {
  color: var(--purple-main);
  font-weight: 600;
  border-bottom: 2px dotted var(--accent-red);
  padding-bottom: 1px;
}

.interlink-keyword:hover {
  color: var(--accent-red);
  border-bottom-style: solid;
}

/* Article Rich Content Typography & Heading Top Spacing */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
  font-family: var(--font-heading);
  color: var(--purple-navy);
  font-weight: 800;
  margin-top: 2.5rem !important;
  margin-bottom: 1rem !important;
  line-height: 1.35;
}

.article-content h2 {
  font-size: 1.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--bg-tint);
}

.article-content h3 {
  font-size: 1.45rem;
  margin-top: 2.25rem !important;
}

.article-content h4 {
  font-size: 1.25rem;
  margin-top: 2rem !important;
}

/* Preserve imported heading appearance when semantic levels are repaired. */
.article-content .semantic-original-h3 {
  font-size: 1.45rem;
  margin-top: 2.25rem !important;
  padding-bottom: 0;
  border-bottom: 0;
}

.article-content .semantic-original-h4 {
  font-size: 1.25rem;
  margin-top: 2rem !important;
  padding-bottom: 0;
  border-bottom: 0;
}

.article-content .semantic-original-h5 { font-size: 1rem; padding-bottom: 0; border-bottom: 0; }
.article-content .semantic-original-h6 { font-size: 0.85rem; padding-bottom: 0; border-bottom: 0; }

.article-content p {
  margin-bottom: 1.4rem;
}

.article-content ul,
.article-content ol {
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

/* Bulletproof Responsive Rich Content Images, Figures, Tables & Media Embeds */
.article-content img,
.article-content figure,
.article-content iframe,
.article-content video,
.article-content embed,
.article-content object,
.article-content table {
  max-width: 100% !important;
  height: auto !important;
  box-sizing: border-box !important;
}

.article-content figure {
  margin: 1.75rem 0 !important;
}

.article-content figure img {
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.article-content {
  max-width: 100% !important;
  overflow-x: hidden !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

/* Global Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-red {
  background-color: var(--accent-red);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.3);
}

.btn-red:hover {
  background-color: var(--accent-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.4);
}

.btn-blue {
  background-color: var(--blue-bright);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-blue:hover {
  background-color: var(--blue-hover);
  transform: translateY(-2px);
}

.btn-purple {
  background-color: var(--purple-main);
  color: #ffffff !important;
}

.btn-purple:hover {
  background-color: var(--purple-navy);
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: transparent;
  color: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline-white:hover {
  background-color: #ffffff;
  color: var(--purple-navy) !important;
}

/* Badges */
.badge-red {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-red);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

/* Section Styling */
.section-padding {
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}

.bg-tint { background-color: var(--bg-tint); }
.bg-white { background-color: var(--bg-white); }
.bg-purple { background-color: var(--purple-navy); color: #ffffff; }

.section-title-wrap {
  margin-bottom: 3.5rem;
}

.section-title-wrap h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-top: 0.25rem;
}

.section-title-wrap p {
  color: var(--muted-gray);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}
