/* MassHome Compass - Independent Informational Portal */
/* Professional, clean, business style with subtle animations */

:root {
  --primary: #1e3a5f;
  --secondary: #2c5282;
  --accent: #3182ce;
  --light: #f7fafc;
  --dark: #1a202c;
  --text: #2d3748;
  --gray: #718096;
  --white: #ffffff;
  --disclaimer-bg: #fff5f5;
  --disclaimer-border: #feb2b2;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  color: var(--text);
  background: var(--light);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Disclaimer Banner */
.disclaimer-banner {
  background: var(--disclaimer-bg);
  border-bottom: 2px solid var(--disclaimer-border);
  padding: 12px 0;
  text-align: center;
  font-size: 0.9rem;
  color: #c53030;
  font-weight: 500;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Header */
header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 40px;
  z-index: 999;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--accent);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--accent);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, rgba(30,58,95,0.85), rgba(49,130,206,0.7)), url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  color: white;
  padding: 120px 0 100px;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 30px;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.btn:hover {
  background: #2b6cb0;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(49,130,206,0.3);
}

/* Sections */
section {
  padding: 80px 0;
}

section h2 {
  font-size: 2.4rem;
  color: var(--primary);
  margin-bottom: 20px;
  text-align: center;
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: var(--gray);
  font-size: 1.1rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.card {
  background: white;
  padding: 35px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateY(30px);
}

.card.animate {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.card h3 {
  color: var(--secondary);
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.card p {
  color: var(--text);
}

.info-block {
  background: white;
  padding: 40px;
  border-radius: 12px;
  margin: 40px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.info-block h3 {
  color: var(--primary);
  margin-bottom: 15px;
}

.disclaimer-box {
  background: #fffaf0;
  border-left: 4px solid #ed8936;
  padding: 20px;
  margin: 30px 0;
  border-radius: 0 8px 8px 0;
}

/* Footer */
footer {
  background: var(--primary);
  color: white;
  padding: 50px 0 30px;
  text-align: center;
}

footer a {
  color: #90cdf4;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.footer-links {
  margin: 20px 0;
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  nav ul {
    gap: 15px;
    font-size: 0.9rem;
  }
  section {
    padding: 60px 0;
  }
}

/* Scroll animations via JS class */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}