/* ================================
   USCARO - Modular Institutional Composition
   Color System: Slate Gray (#6A7B8C), Soft Sage (#A2B29A), 
   Muted Gold (#CBA352), Deep Teal (#3E606F)
   ================================ */

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

:root {
  --slate-gray: #6A7B8C;
  --soft-sage: #A2B29A;
  --muted-gold: #CBA352;
  --deep-teal: #3E606F;
  --white: #FFFFFF;
  --light-gray: #F5F5F5;
  --dark-gray: #2B2B2B;
  --text-primary: #2B2B2B;
  --text-secondary: #6A7B8C;
  --border-color: #E8E8E8;
}

body {
  font-family: 'Open Sans', 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  background-color: var(--white);
  line-height: 1.6;
  font-size: 18px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Raleway', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
}

h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 32px;
  text-transform: capitalize;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 36px;
  margin-bottom: 24px;
  letter-spacing: -0.3px;
}

h3 {
  font-size: 24px;
  margin-bottom: 16px;
  letter-spacing: -0.2px;
}

h4 {
  font-size: 20px;
  margin-bottom: 12px;
}

p {
  margin-bottom: 20px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 18px;
}

a {
  color: var(--muted-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--deep-teal);
}

/* ================================
   HEADER & NAVIGATION
   ================================ */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--slate-gray);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.logo:hover {
  color: var(--muted-gold);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
  align-items: center;
}

nav a {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 16px;
  position: relative;
  transition: color 0.2s ease;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--muted-gold);
  transition: width 0.3s ease;
}

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

nav a:hover,
nav a.active {
  color: var(--muted-gold);
}

/* ================================
   CONTAINER & LAYOUT
   ================================ */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

.container-full {
  width: 100%;
}

section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border-color);
}

section:last-child {
  border-bottom: none;
}

.section-light {
  background-color: var(--light-gray);
}

.section-slate {
  background-color: var(--slate-gray);
  color: var(--white);
}

.section-slate h2,
.section-slate h3,
.section-slate p {
  color: var(--white);
}

.section-sage {
  background-color: var(--soft-sage);
  opacity: 0.1;
}

/* ================================
   HERO SECTION
   ================================ */

.hero {
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
  text-align: center;
  padding: 120px 40px;
}

.hero-content h1 {
  font-size: 64px;
  margin-bottom: 24px;
  color: var(--slate-gray);
  text-transform: none;
}

.hero-content p {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

/* ================================
   BUTTONS
   ================================ */

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid var(--muted-gold);
  background-color: transparent;
  color: var(--muted-gold);
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 4px;
  text-decoration: none;
  font-family: 'Open Sans', sans-serif;
}

.btn:hover {
  background-color: var(--muted-gold);
  color: var(--white);
}

.btn-primary {
  background-color: var(--muted-gold);
  color: var(--white);
  border-color: var(--muted-gold);
}

.btn-primary:hover {
  background-color: #B89548;
  border-color: #B89548;
}

.btn-secondary {
  border-color: var(--slate-gray);
  color: var(--slate-gray);
}

.btn-secondary:hover {
  background-color: var(--slate-gray);
  color: var(--white);
}

/* ================================
   GRID & COLUMNS
   ================================ */

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  align-items: stretch;
}

.col-6 {
  grid-column: span 6;
}

.col-4 {
  grid-column: span 4;
}

.col-3 {
  grid-column: span 3;
}

.col-12 {
  grid-column: span 12;
}

.col-8 {
  grid-column: span 8;
}

/* ================================
   CARDS
   ================================ */

.card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 40px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.card h3 {
  color: var(--slate-gray);
  margin-bottom: 16px;
}

.card-accent {
  border-left: 4px solid var(--muted-gold);
}

.card-accent-sage {
  border-left: 4px solid var(--soft-sage);
}

.card-accent-teal {
  border-left: 4px solid var(--deep-teal);
}

/* ================================
   IMAGES
   ================================ */

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.img-full-width {
  width: 100%;
  object-fit: cover;
}

.img-fade {
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.img-fade:hover {
  opacity: 1;
}

/* ================================
   TYPOGRAPHY UTILITIES
   ================================ */

.text-center {
  text-align: center;
}

.text-balance {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.text-muted {
  color: var(--text-secondary);
  font-size: 14px;
}

.accent-gold {
  color: var(--muted-gold);
}

.accent-sage {
  color: var(--soft-sage);
}

.accent-teal {
  color: var(--deep-teal);
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

/* ================================
   SPACING UTILITIES
   ================================ */

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 40px; }
.mb-6 { margin-bottom: 48px; }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 40px; }
.mt-6 { margin-top: 48px; }

.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }
.p-5 { padding: 40px; }

.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }

/* ================================
   FOOTER
   ================================ */

footer {
  background-color: var(--slate-gray);
  color: var(--white);
  padding: 80px 40px;
  border-top: 1px solid var(--border-color);
}

footer .container {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer-section h4 {
  color: var(--muted-gold);
  margin-bottom: 16px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 12px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

/* ================================
   CONTENT SECTIONS
   ================================ */

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

.section-title h2 {
  color: var(--slate-gray);
  margin-bottom: 16px;
}

.section-title p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.content-block {
  margin-bottom: 40px;
}

.content-block h3 {
  color: var(--slate-gray);
  margin-bottom: 16px;
}

.content-block p {
  line-height: 1.8;
  color: var(--text-secondary);
}

.divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 60px 0;
}

/* ================================
   LIST STYLES
   ================================ */

ul.styled-list {
  list-style: none;
  padding: 0;
}

ul.styled-list li {
  margin-bottom: 16px;
  padding-left: 28px;
  position: relative;
  color: var(--text-secondary);
}

ul.styled-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--muted-gold);
  font-weight: bold;
  font-size: 20px;
}

ol.styled-list {
  list-style: none;
  padding: 0;
  counter-reset: section;
}

ol.styled-list li {
  margin-bottom: 16px;
  padding-left: 40px;
  position: relative;
  color: var(--text-secondary);
  counter-increment: section;
}

ol.styled-list li::before {
  content: counter(section);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  background-color: var(--muted-gold);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

/* ================================
   TABLE STYLES
   ================================ */

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
}

th {
  background-color: var(--slate-gray);
  color: var(--white);
  padding: 16px;
  text-align: left;
  font-weight: 600;
  border: 1px solid var(--border-color);
}

td {
  padding: 16px;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

tr:nth-child(even) {
  background-color: var(--light-gray);
}

tr:hover {
  background-color: rgba(203, 163, 82, 0.05);
}

/* ================================
   FORMS
   ================================ */

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

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 16px;
}

input[type="text"],
input[type="email"],
input[type="phone"],
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  color: var(--text-primary);
  transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--muted-gold);
  box-shadow: 0 0 0 3px rgba(203, 163, 82, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.form-note {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ================================
   BREADCRUMBS
   ================================ */

.breadcrumb {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  font-size: 14px;
}

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

.breadcrumb span {
  color: var(--text-secondary);
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (max-width: 1024px) {
  .header-container {
    padding: 16px 24px;
  }

  nav ul {
    gap: 24px;
  }

  nav a {
    font-size: 14px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 20px;
  }

  section {
    padding: 80px 0;
  }

  .hero {
    min-height: 500px;
    padding: 80px 24px;
  }

  .hero-content h1 {
    font-size: 48px;
  }

  .grid {
    gap: 24px;
  }

  .col-6 {
    grid-column: span 12;
  }

  .col-4 {
    grid-column: span 6;
  }

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

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 16px;
  }

  .header-container {
    padding: 12px 16px;
    gap: 16px;
  }

  nav ul {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  h1 {
    font-size: 32px;
    margin-bottom: 16px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 18px;
  }

  p {
    font-size: 16px;
  }

  section {
    padding: 60px 0;
  }

  .hero {
    min-height: 400px;
    padding: 60px 16px;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .card {
    padding: 24px;
  }

  .col-3,
  .col-4,
  .col-6,
  .col-8,
  .col-12 {
    grid-column: span 12;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .footer-links {
    flex-direction: column;
    gap: 8px;
  }
}
