/* ========================================
   TJM SURVEY SERVICES - DESIGN SYSTEM
   ======================================== */

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

:root {
  /* Brand Colors - Navy/Professional */
  --tjm-navy: #1a365d;
  --tjm-navy-dark: #0f2744;
  --tjm-navy-light: #2c5282;
  --tjm-accent: #3182ce;
  --tjm-gold: #d69e2e;
  
  /* Neutrals */
  --dark: #1e293b;
  --gray: #64748b;
  --gray-light: #94a3b8;
  --light: #f8fafc;
  --border: #e2e8f0;
  --white: #ffffff;
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  
  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  
  /* Layout */
  --max-width: 1100px;
  --header-height: 140px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--tjm-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
svg { flex-shrink: 0; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--tjm-navy);
  height: var(--header-height);
  box-shadow: var(--shadow-md);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  text-decoration: none;
}

.logo:hover { text-decoration: none; }

.logo img {
  height: 120px;
  width: auto;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-desktop a {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: color 0.15s;
}

.nav-desktop a:hover {
  color: var(--white);
  text-decoration: none;
}

.nav-desktop a.active {
  color: var(--white);
  border-bottom: 2px solid var(--tjm-gold);
  padding-bottom: 4px;
}

/* Mobile Nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
  color: var(--white);
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--tjm-navy);
  padding: var(--space-lg);
  overflow-y: auto;
  z-index: 999;
}

.nav-mobile.active { display: block; }

.nav-mobile a {
  display: block;
  padding: var(--space-md) 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
}

/* ========================================
   LAYOUT
   ======================================== */

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

.page-content {
  padding: var(--space-2xl) 0 var(--space-3xl);
}

.section {
  margin-bottom: var(--space-3xl);
}

.section:last-child { margin-bottom: 0; }

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: var(--space-sm);
}

.section-header p {
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: var(--space-md); }
p:last-child { margin-bottom: 0; }

ul, ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

li { margin-bottom: var(--space-sm); }

/* ========================================
   HERO SECTIONS
   ======================================== */

.hero {
  padding: var(--space-3xl) var(--space-2xl) var(--space-3xl) 25px;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--tjm-navy-dark) 0%, var(--tjm-navy) 100%);
  color: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero > * { position: relative; z-index: 1; }

.hero-content {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
}

.hero-text { flex: 1; }

.hero h1 {
  color: var(--white);
  margin-bottom: var(--space-md);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.hero-tagline {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  margin-bottom: var(--space-lg);
  max-width: 600px;
}

.hero-img {
  width: 350px;
  height: 250px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.2);
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
  align-self: flex-end;
  margin-right: 20px;
}

@media (max-width: 768px) {
  .hero-img {
    width: 100%;
    max-width: 400px;
    height: 200px;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.btn:hover { text-decoration: none; transform: translateY(-2px); }

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

.btn--primary:hover { background: #b7891f; }

.btn--secondary {
  background: rgba(255,255,255,0.15);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn--secondary:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.5);
}

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

.btn--outline:hover {
  background: var(--tjm-navy);
  color: var(--white);
}

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  transition: all 0.2s;
}

.card:hover {
  border-color: var(--tjm-accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--tjm-navy) 0%, var(--tjm-navy-light) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--white);
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: var(--space-sm);
}

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

/* Card grids */
.card-grid {
  display: grid;
  gap: var(--space-lg);
}

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

@media (max-width: 900px) {
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .card-grid--2, .card-grid--3 { grid-template-columns: 1fr; }
}

/* ========================================
   SERVICE LIST
   ======================================== */

.service-section {
  margin-bottom: var(--space-2xl);
}

.service-section h4 {
  color: var(--tjm-navy);
  margin-bottom: var(--space-sm);
  font-size: 1.2rem;
}

.service-section p {
  color: var(--gray);
  margin-bottom: var(--space-md);
}

.service-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

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

.service-list li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 2px 0;
  color: var(--dark);
}

.service-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--tjm-gold);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ========================================
   VALUES / PRINCIPLES
   ======================================== */

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

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

.value-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--light);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--tjm-gold);
}

.value-item h4 {
  color: var(--tjm-navy);
  margin-bottom: var(--space-xs);
}

.value-item p {
  color: var(--gray);
  font-size: 0.95rem;
  margin: 0;
}

/* ========================================
   CONTACT INFO
   ======================================== */

.contact-box {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
}

.contact-box h2 {
  margin-bottom: var(--space-md);
  color: var(--tjm-navy);
}

.contact-details {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.contact-item-icon {
  width: 56px;
  height: 56px;
  background: var(--tjm-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item-icon svg {
  width: 24px;
  height: 24px;
  color: var(--white);
}

.contact-item strong {
  color: var(--dark);
  font-size: 1rem;
}

.contact-item a {
  color: var(--tjm-accent);
  font-weight: 500;
}

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

.site-footer {
  background: var(--tjm-navy);
  color: rgba(255,255,255,0.8);
  padding: var(--space-2xl) 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 300px;
}

.footer-brand img {
  height: 40px;
  margin-bottom: var(--space-md);
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.footer-section h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.footer-section a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
  transition: color 0.15s;
}

.footer-section a:hover {
  color: var(--white);
  text-decoration: none;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: var(--space-xl) auto 0;
  padding: var(--space-lg) var(--space-lg) 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-brand { max-width: 100%; }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-gray { color: var(--gray); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.flex { display: flex; }
.flex-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* License badge */
.license-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255,255,255,0.15);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.2);
}

.license-badge svg {
  width: 18px;
  height: 18px;
}
