/* =============================================
   UTC Agents — Complete Stylesheet
   Deep purple #2d1b4e, Warm beige #f5edd6, Gold #e8b830
   Magazine/masonry grid layout. Bottom tab bar.
   ============================================= */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: #2d1b4e;
  background: #f5edd6;
  padding-bottom: 100px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #e8b830; text-decoration: none; transition: color 0.2s; }
a:hover { color: #c9a129; }
ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: #2d1b4e;
}

h1 { font-size: 2.8rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 1.2rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.8rem; }
h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1.2rem; color: #3d2b5e; }

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Page Header (for interior pages) --- */
.page-header {
  padding: 60px 0 40px;
  text-align: center;
  background: #2d1b4e;
  color: #f5edd6;
  margin-bottom: 40px;
}

.page-header h1 {
  color: #f5edd6;
}

.page-header p {
  color: #d4c8a0;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Magazine Masonry Grid --- */
.magazine-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px 0;
}

@media (max-width: 900px) {
  .magazine-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.magazine-article {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(45, 27, 78, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}

.magazine-article:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(45, 27, 78, 0.12);
}

.magazine-article .article-body {
  padding: 32px;
}

.magazine-article .article-tag {
  display: inline-block;
  background: #e8b830;
  color: #2d1b4e;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.magazine-article .article-title {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.magazine-article .article-meta {
  font-size: 0.85rem;
  color: #7a6a9a;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.magazine-article .article-meta .meta-dot {
  width: 4px;
  height: 4px;
  background: #d4c8a0;
  border-radius: 50%;
}

.magazine-article .article-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #4a3a6a;
}

.magazine-article .read-more {
  display: inline-block;
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #e8b830;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}

.magazine-article .read-more:hover {
  border-bottom-color: #e8b830;
}

/* Full-width article (spans both columns) */
.magazine-article.full-width {
  grid-column: 1 / -1;
}

/* Tall article (2 rows) */
.magazine-article.tall {
  grid-row: span 2;
}

/* --- Stat cards within articles --- */
.stat-row {
  display: flex;
  gap: 24px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.stat-card {
  background: #f5edd6;
  border-radius: 12px;
  padding: 20px 24px;
  flex: 1;
  min-width: 120px;
}

.stat-card .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: #2d1b4e;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: #7a6a9a;
  font-weight: 500;
}

/* --- Knowledge Card List --- */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #ebe3c8;
}

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

.card-list-icon {
  width: 32px;
  height: 32px;
  background: #e8b830;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.card-list-text { font-size: 0.95rem; color: #4a3a6a; flex: 1; }

/* --- Insight Block (highlighted) --- */
.insight-block {
  background: #2d1b4e;
  color: #f5edd6;
  border-radius: 12px;
  padding: 28px;
  margin: 20px 0;
}

.insight-block p { color: #d4c8a0; }
.insight-block strong { color: #e8b830; }

/* --- About Page Specific --- */
.about-hero-section {
  padding: 80px 0;
  background: #2d1b4e;
  color: #f5edd6;
  text-align: center;
}

.about-hero-section h1 { color: #f5edd6; font-size: 3rem; }
.about-hero-section p { color: #d4c8a0; font-size: 1.15rem; margin: 0 auto; }

.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 60px 0;
}

@media (max-width: 768px) {
  .about-story-grid { grid-template-columns: 1fr; gap: 32px; }
}

.about-story-text h2 {
  border-left: 4px solid #e8b830;
  padding-left: 16px;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

@media (max-width: 600px) { .values-grid { grid-template-columns: 1fr; } }

.value-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(45, 27, 78, 0.05);
}

.value-card .value-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.value-card h3 { color: #2d1b4e; margin-bottom: 8px; }
.value-card p { font-size: 0.9rem; color: #4a3a6a; }

/* --- Services Page --- */
.services-hero {
  background: #2d1b4e;
  padding: 80px 0;
  text-align: center;
}

.services-hero h1 { color: #f5edd6; }
.services-hero p { color: #d4c8a0; }

.service-spread-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 60px 0;
}

.service-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  padding: 32px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(45, 27, 78, 0.06);
}

@media (max-width: 640px) {
  .service-card { grid-template-columns: 1fr; gap: 16px; }
}

.service-card .sc-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #e8b830;
  line-height: 1;
}

.service-card .sc-content h2 { font-size: 1.4rem; margin-bottom: 8px; }
.service-card .sc-content p { font-size: 0.95rem; color: #4a3a6a; }

.service-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.capability-tag {
  background: #f5edd6;
  color: #2d1b4e;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 500;
}

/* --- Contact Page --- */
.contact-page-wrap {
  padding: 60px 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

@media (max-width: 768px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-info-panel {
  background: #2d1b4e;
  border-radius: 16px;
  padding: 40px;
  color: #f5edd6;
}

.contact-info-panel h2 { color: #f5edd6; }
.contact-info-panel p { color: #d4c8a0; }

.contact-detail-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  align-items: flex-start;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: #e8b830;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-detail-text h4 { color: #f5edd6; margin-bottom: 2px; }
.contact-detail-text p { font-size: 0.9rem; color: #d4c8a0; }

.contact-form-panel {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 2px 12px rgba(45, 27, 78, 0.06);
}

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

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: #2d1b4e;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #ebe3c8;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  background: #fdfaf0;
  color: #2d1b4e;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #e8b830;
}

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

.btn-primary {
  display: inline-block;
  background: #e8b830;
  color: #2d1b4e;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 36px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: 'Inter', sans-serif;
}

.btn-primary:hover {
  background: #c9a129;
  transform: translateY(-1px);
}

/* --- Legal Pages --- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px;
}

.legal-content section {
  margin-bottom: 48px;
}

.legal-content h2 {
  font-size: 1.5rem;
  border-bottom: 2px solid #ebe3c8;
  padding-bottom: 8px;
  margin-bottom: 20px;
  color: #2d1b4e;
}

.legal-content p {
  font-size: 0.95rem;
  color: #4a3a6a;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 1rem;
}

.legal-content ul li {
  font-size: 0.95rem;
  color: #4a3a6a;
  margin-bottom: 6px;
  line-height: 1.7;
}

/* --- Bottom Tab Bar --- */
.bottom-tab-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  background: #2d1b4e;
  border-radius: 50px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 24px rgba(45, 27, 78, 0.3);
}

.bottom-tab-bar a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #9a8aba;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
}

.bottom-tab-bar a:hover,
.bottom-tab-bar a.active {
  background: rgba(232, 184, 48, 0.15);
  color: #e8b830;
}

.bottom-tab-bar a .tab-icon {
  font-size: 1.1rem;
}

@media (max-width: 640px) {
  .bottom-tab-bar {
    bottom: 12px;
    padding: 6px 8px;
    gap: 2px;
    border-radius: 40px;
  }
  .bottom-tab-bar a {
    padding: 8px 12px;
    font-size: 0.75rem;
  }
  .bottom-tab-bar a .tab-label {
    display: none;
  }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  body { font-size: 16px; padding-bottom: 80px; }
  .page-header { padding: 40px 0 30px; }
}

/* --- SVG Favicon Link --- */
link[rel="icon"][type="image/svg+xml"] {
  /* no-op, for reference */
}

/* --- Accessibility --- */
:focus-visible {
  outline: 2px solid #e8b830;
  outline-offset: 2px;
}

.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;
}
