/* ===== SAFETRUST CONSULTING - Global Styles ===== */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --purple-dark: #3A1078;
  --purple-mid: #5B2D8E;
  --purple-light: #7B4FB0;
  --purple-pale: #E8D5F5;
  --purple-faint: #F5EEFA;
  --gold: #F4C430;
  --gold-light: #FFF3C4;
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #E8E8E8;
  --gray-400: #9E9E9E;
  --gray-600: #616161;
  --gray-800: #333333;
  --dark: #1A1A2E;
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

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

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; }

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--purple-mid);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1.25rem;
}

.section-subtitle {
  color: var(--gray-600);
  font-size: 1.1rem;
  max-width: 640px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--purple-mid);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(91, 45, 142, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--purple-mid);
  border: 2px solid var(--purple-mid);
}

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

.btn-gold {
  background: var(--gold);
  color: var(--dark);
}

.btn-gold:hover {
  background: #e0b020;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 196, 48, 0.4);
}

.btn-white {
  background: var(--white);
  color: var(--purple-mid);
}

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

.btn svg {
  width: 18px;
  height: 18px;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--dark);
}

.nav-logo .logo-icon {
  width: 42px;
  height: 42px;
  background: var(--purple-mid);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -1px;
}

.nav-logo span.highlight {
  color: var(--purple-mid);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--gray-600);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--purple-mid);
  border-radius: 2px;
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--purple-mid);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px !important;
  font-size: 0.88rem !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: all var(--transition);
}

/* --- Hero Sections --- */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, var(--purple-faint) 0%, var(--white) 50%, var(--gold-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(91, 45, 142, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content { position: relative; z-index: 2; }

.hero-content h1 {
  margin-bottom: 1.25rem;
  font-size: 3.2rem;
  line-height: 1.15;
}

.hero-content h1 .accent {
  color: var(--purple-mid);
}

.hero-content h1 .gold-accent {
  color: #D4A017;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-graphic {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--purple-mid) 0%, var(--purple-dark) 100%);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-graphic::before {
  content: '';
  position: absolute;
  width: 120%;
  height: 120%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Ccircle cx='100' cy='100' r='80' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='1'/%3E%3Ccircle cx='100' cy='100' r='60' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3Ccircle cx='100' cy='100' r='40' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E") center/contain no-repeat;
}

.hero-graphic-content {
  text-align: center;
  color: var(--white);
  position: relative;
  z-index: 1;
  padding: 40px;
}

.hero-graphic-content .big-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero-graphic-content h3 {
  color: var(--white);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.hero-graphic-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
}

.hero-stat-badges {
  display: flex;
  gap: 16px;
  margin-top: 2.5rem;
}

.stat-badge {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 14px 20px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.stat-badge .number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--purple-mid);
  display: block;
}

.stat-badge .label {
  font-size: 0.78rem;
  color: var(--gray-600);
  margin-top: 2px;
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding: 140px 0 70px;
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-mid) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(244, 196, 48, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 0.75rem;
  position: relative;
}

.page-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

.page-header .breadcrumb {
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
}

.page-header .breadcrumb a {
  color: var(--gold);
}

.page-header .breadcrumb a:hover {
  text-decoration: underline;
}

/* --- Sections --- */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--gray-100);
}

.section-purple {
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-mid) 100%);
  color: var(--white);
}

.section-purple h2,
.section-purple h3,
.section-purple h4 {
  color: var(--white);
}

.section-purple .section-label {
  color: var(--gold);
}

.section-purple .section-subtitle {
  color: rgba(255, 255, 255, 0.75);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--purple-pale);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.card-icon.purple {
  background: var(--purple-pale);
  color: var(--purple-mid);
}

.card-icon.gold {
  background: var(--gold-light);
  color: #B8860B;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* --- Grid Layouts --- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* --- Values / Pillars --- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.pillar-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 36px;
  text-align: center;
  transition: all var(--transition);
}

.pillar-card:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-4px);
}

.pillar-card .icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.pillar-card h4 {
  margin-bottom: 0.5rem;
}

.pillar-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

/* --- Team --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
}

.team-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.team-card .avatar {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, var(--purple-pale), var(--purple-faint));
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-card .avatar .initials {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--purple-mid);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
}

.team-card .info {
  padding: 24px;
}

.team-card .info h4 {
  margin-bottom: 4px;
}

.team-card .info .role {
  font-size: 0.88rem;
  color: var(--purple-mid);
  font-weight: 500;
  margin-bottom: 10px;
}

.team-card .info p {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* --- Methodology --- */
.method-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.method-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.method-step .step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--purple-mid);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

.method-step h4 {
  margin-bottom: 6px;
}

.method-step p {
  font-size: 0.92rem;
  color: var(--gray-600);
}

/* --- CTA Banner --- */
.cta-banner {
  padding: 80px 0;
  text-align: center;
}

.cta-banner h2 {
  margin-bottom: 1rem;
}

.cta-banner p {
  margin-bottom: 2rem;
}

.cta-banner .btn {
  margin: 0 8px;
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-block {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-info-block .icon-circle {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--purple-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-mid);
  font-size: 1.2rem;
}

.contact-info-block h4 {
  margin-bottom: 4px;
}

.contact-info-block p,
.contact-info-block a {
  font-size: 0.95rem;
  color: var(--gray-600);
}

.contact-info-block a:hover {
  color: var(--purple-mid);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--gray-800);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--purple-mid);
  box-shadow: 0 0 0 3px rgba(91, 45, 142, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* --- Footer --- */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.7;
}

.footer-tagline {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--gold) !important;
  font-size: 0.85rem !important;
  letter-spacing: 1px;
}

.footer-links a {
  display: block;
  padding: 5px 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.85rem; }
  .hero-inner { gap: 40px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  .hero { padding: 120px 0 60px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content p { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-visual { display: none; }
  .hero-stat-badges { justify-content: center; }

  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .pillar-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .method-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .page-header { padding: 120px 0 50px; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.75rem; }
  .hero-content h1 { font-size: 2rem; }
  .grid-4 { grid-template-columns: 1fr; }
  .stat-badge { padding: 10px 14px; }
  .stat-badge .number { font-size: 1.25rem; }
  .btn { padding: 12px 24px; font-size: 0.9rem; }
}
