
/* ============================================
   MAXIMUS ME - CLONE STYLES
   Based on maximusuae.ae design system
   ============================================ */

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

:root {
  --primary: #502e91;
  --primary-light: #6c489c;
  --primary-dark: #200649;
  --accent: #ca5c28;
  --bg-light: #f0f0f4;
  --text: #4a4a4a;
  --text-light: #767676;
  --white: #ffffff;
  --purple-light: #8e8ecb;
  --purple-ultra-light: #e8e2f2;
  --border: #c8c8ce;
  --font-heavy: 'AvenirLTPro-Heavy', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
  --font-medium: 'AvenirLTPro-Medium', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
  --font-roman: 'AvenirLTPro-Roman', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
  --font-book: 'AvenirLTPro-Book', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-roman);
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heavy);
  color: var(--primary);
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

a { color: var(--primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--primary-light); }

.eyebrow {
  font-family: var(--font-medium);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* --- Layout --- */
.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  padding: 3rem 0;
}

/* --- Header --- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
}

@media (max-width: 900px) {
  .site-header-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }
  .main-nav ul {
    justify-content: center;
  }
}

.maximus-logo img {
  height: 48px;
  width: auto;
  display: block;
}

.main-nav,
.secondary-nav ul {
  display: flex !important;
  flex-direction: row !important;
  list-style: none;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-family: var(--font-medium);
  font-size: 0.9375rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  border-bottom-color: var(--accent);
  color: var(--primary-light);
}

.secondary-nav {
  display: flex;
  align-items: center;
}

.secondary-nav a {
  font-size: 0.875rem;
  color: var(--text-light);
  white-space: nowrap;
}

/* --- Hero Section --- */
.home-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}

.home-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.home-hero h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.home-hero p {
  font-size: 1.25rem;
  color: var(--purple-light);
  margin-bottom: 2rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-medium);
  font-size: 1rem;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: #b55222;
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

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

/* --- Panels --- */
.panel {
  padding: 4rem 0;
}

.panel-light {
  background: var(--bg-light);
}

.panel-header {
  text-align: center;
  margin-bottom: 3rem;
}

.panel-header h2 {
  margin-bottom: 1rem;
}

.panel-header p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Grid --- */
.panel-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.panel-column-item {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.panel-column-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.panel-column-item h3 {
  margin-bottom: 1rem;
  color: var(--primary);
}

.panel-column-item p {
  color: var(--text-light);
}

/* --- Bubbles (Stat Circles) --- */
.bubble-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 3rem 0;
}

.bubble-outer {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding: 1rem;
}

.bubble-inner {
  font-family: var(--font-heavy);
}

.bubble-inner .statistic {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.25rem;
}

.bubble-inner .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--purple-light);
}

/* --- Leadership --- */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.leadership-card {
  text-align: center;
  padding: 2rem;
}

.leadership-card .photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--purple-ultra-light);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary-light);
  overflow: hidden;
}

.leadership-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leadership-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.leadership-card .title {
  font-size: 0.875rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Contact Form --- */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-medium);
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-roman);
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

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

/* --- Footer --- */
.site-footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.site-footer h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.site-footer ul li {
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: var(--purple-light);
  font-size: 0.875rem;
}

.site-footer a:hover {
  color: var(--white);
}

.site-footer p {
  color: var(--purple-light);
  font-size: 0.875rem;
}

.site-footer-cap {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--purple-light);
  font-size: 0.75rem;
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 15px 20px;
  font-size: 14px;
  font-family: var(--font-roman);
  color: #979797;
  background: var(--white);
  border-bottom: 1px solid #e0e0e4;
}

.breadcrumb a {
  color: #979797;
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.breadcrumb strong {
  color: var(--primary);
  font-weight: 600;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 3rem 0;
}

.page-hero h1 {
  color: var(--white);
  font-size: 2.5rem;
}

/* --- Leadership cards (matching real site) --- */
.leadership-landing {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.leadership-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s;
}

.leadership-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.leadership-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--purple-ultra-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.leadership-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  font-size: 3rem;
  color: var(--primary-light);
}

.leadership-info h5 {
  font-family: var(--font-heavy);
  font-size: 1.125rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.leadership-title {
  font-size: 0.8125rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  font-family: var(--font-medium);
}

.leadership-bio {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* --- Statistic blocks --- */
.statistic-block {
  text-align: center;
  padding: 1.5rem;
}

.statistic-block .statistic {
  display: block;
  font-family: var(--font-heavy);
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.statistic-block .label {
  font-size: 0.875rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- 2-col and 3-col grid helpers --- */
.panel-columns.-2-col {
  grid-template-columns: repeat(2, 1fr);
}

.panel-columns.-3-col {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .panel-columns.-2-col,
  .panel-columns.-3-col {
    grid-template-columns: 1fr;
  }
  .leadership-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .leadership-photo {
    margin: 0 auto;
  }
}

/* --- Link text style --- */
.link-text {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--font-medium);
  color: var(--accent);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.link-text:hover {
  color: var(--primary);
}

/* --- Staging badge --- */
.accordion {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  padding: 1rem 1.5rem;
  background: var(--bg-light);
  cursor: pointer;
  font-family: var(--font-medium);
  font-size: 1rem;
  color: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}

.accordion-header:hover {
  background: var(--purple-ultra-light);
}

.accordion-header::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.3s;
}

.accordion-item.active .accordion-header::after {
  transform: rotate(45deg);
}

.accordion-content {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s, padding 0.3s;
}

.accordion-item.active .accordion-content {
  padding: 1rem 1.5rem;
  max-height: 500px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .site-header-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }
  
  .main-nav {
    flex-direction: column !important;
    gap: 0.5rem;
    text-align: center;
    justify-content: center;
  }
  
  .secondary-nav {
    justify-content: center;
  }
  
  .home-hero h1 {
    font-size: 2rem;
  }
  
  .home-hero p {
    font-size: 1rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  
  .bubble-row {
    gap: 1.5rem;
  }
  
  .bubble-outer {
    width: 140px;
    height: 140px;
  }
  
  .bubble-inner .statistic {
    font-size: 2rem;
  }
}

/* --- Print (for reference letter) --- */
@media print {
  .site-header, .site-footer, .breadcrumb { display: none; }
  .main-content { padding: 0; }
  body { font-size: 12pt; }
}

/* --- Staging badge --- */
.staging-badge {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: var(--accent);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: var(--font-medium);
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
