/* ========================================
   BASE CSS - Reusable Foundation
   Universal styles that DON'T rewrite page CSS
   ======================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables - Base Colors */
:root {
  /* Primary Colors */
  --primary-navy: #21277a;
  --primary-navy-dark: #181d5e;
  --primary-navy-light: #2e35a0;
  --primary-red: #E02020;
  --primary-red-pale: rgba(224,32,32,.09);
  --primary-gold: #ffca70;
  
  /* Neutral Colors */
  --white: #ffffff;
  --off-white: #F5F7FF;
  --off-white-2: #EBEEf9;
  --text-dark: #030303;
  --text-muted: #6B7499;
  
  /* Borders & Shadows */
  --border-light: #dde1f5;
  --border-dark: rgba(33,39,122,.2);
  --shadow-soft: rgba(33,39,122,.12);
  
  /* Typography */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', Arial, sans-serif;
  
  /* Spacing Scale */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0; 
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  color: var(--text-dark);
}

/* ========================================
   TYPOGRAPHY UTILITIES
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }

.text-navy { color: var(--primary-navy); }
.text-red { color: var(--primary-red); }
.text-gold { color: var(--primary-gold); }
.text-muted { color: var(--text-muted); }

/* ========================================
   SPACING UTILITIES
   ======================================== */
.m-0 { margin: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }

.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--space-sm); }
.p-2 { padding: var(--space-md); }
.p-3 { padding: var(--space-lg); }
.p-4 { padding: var(--space-xl); }

/* ========================================
   LAYOUT UTILITIES
   ======================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--space-md);
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--space-sm); }
.gap-2 { gap: var(--space-md); }
.gap-3 { gap: var(--space-lg); }

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ========================================
   BASE BUTTON STYLES (can be extended)
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-red);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(224,32,32,.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224,32,32,.4);
}

.btn-navy {
  background: var(--primary-navy);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-navy);
  color: var(--primary-navy);
}

.btn-outline:hover {
  background: var(--primary-navy);
  color: var(--white);
}

/* ========================================
   BASE CARD STYLES
   ======================================== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(33,39,122,.15);
}

.card-body {
  padding: var(--space-lg);
}

/* ========================================
   BASE SECTION STYLES
   ======================================== */
.section {
  padding: var(--space-xxl) 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--space-lg);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

/* ========================================
   BREADCRUMB COMPONENT
   ======================================== */
.bc {
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}

.bc .w {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 500;
}

.bc a {
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color .2s;
}

.bc a:hover {
  color: var(--primary-gold);
}

.bc .sep {
  color: rgba(255,255,255,.2);
}

.bc .cur {
  color: var(--primary-red);
}

/* ========================================
   SECTION LABEL COMPONENT
   ======================================== */
.s-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--primary-red);
  margin-bottom: 14px;
}

.s-tag::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--primary-red);
  border-radius: 2px;
}

.s-tag.navy {
  color: var(--primary-navy);
}

.s-tag.navy::before {
  background: var(--primary-navy);
}

.s-tag.gold {
  color: var(--primary-gold);
}

.s-tag.gold::before {
  background: var(--primary-gold);
}

/* ========================================
   VISIBILITY UTILITIES
   ======================================== */
.hidden { display: none; }
.visible { display: block; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */
@media (max-width: 768px) {
  .hide-mobile { display: none; }
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .section {
    padding: var(--space-xl) 0;
  }
  .section-title {
    font-size: 1.8rem;
  }
}

@media (min-width: 769px) {
  .hide-desktop { display: none; }
}
#btnTop {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    border: none;
    outline: none;
    background-color:#fe3636;
    color: white;
    cursor: pointer;
    padding: 12px 15px;
    border-radius: 50%;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

#btnTop:hover {
    background-color: #0056b3;
}
