/* === SNOW AVALANCHE ARCHIVE - Stylesheet === */

/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #1a3a5c;
  --primary-dark: #0f2440;
  --accent: #4a90d9;
  --accent-light: #6bb3ff;
  --snow: #f0f4f8;
  --white: #ffffff;
  --text: #2c3e50;
  --text-light: #5a6a7a;
  --border: #dce4ec;
  --shadow: rgba(26, 58, 92, 0.12);
  --gradient-start: #1a3a5c;
  --gradient-end: #2c5f8a;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--snow);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-light); }

img { max-width: 100%; height: auto; display: block; }

/* === NAVIGATION === */
.navbar {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px var(--shadow);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar .logo {
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.navbar .logo span { color: var(--accent-light); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.15);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* === HERO === */
.hero {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 50%, #3a7bc8 100%);
  color: var(--white);
  text-align: center;
  padding: 5rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 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");
  opacity: 0.5;
}

.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero h1 { font-size: 2.75rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.5px; }
.hero .tagline { font-size: 1.2rem; color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto; }

/* === MAIN CONTENT === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 3rem 0; }

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* === CARD GRID (Home page) === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px var(--shadow);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body { padding: 1.25rem; }
.card-body h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.card-body p { color: var(--text-light); font-size: 0.95rem; }

/* === CONTENT SECTION (archive pages) === */
.content-section {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px var(--shadow);
  margin-bottom: 2rem;
}

.content-section h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.content-section h3 {
  font-size: 1.2rem;
  color: var(--primary-dark);
  margin: 1.5rem 0 0.75rem;
}

.content-section p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.content-section ul, .content-section ol {
  margin: 0.75rem 0 1rem 1.5rem;
}

.content-section li { margin-bottom: 0.5rem; }

/* PDF links */
.pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: var(--white) !important;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  margin: 0.5rem 0.5rem 0.5rem 0;
  transition: all var(--transition);
  box-shadow: 0 2px 8px var(--shadow);
}

.pdf-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--shadow);
  color: var(--white) !important;
}

/* === PHOTO GALLERY === */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 1rem;
}

.photo-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px var(--shadow);
  transition: transform var(--transition);
}

.photo-item:hover { transform: scale(1.03); }

.photo-item img {
  width: 100%;
  height: 175px;
  object-fit: cover;
}

.photo-caption {
  padding: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-light);
  text-align: center;
  background: var(--white);
}

/* === CLIENT LOGOS === */
.client-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
}

.client-logos img {
  height: 60px;
  width: auto;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.client-logos img:hover { opacity: 1; }

/* === TEAM PHOTOS === */
.team-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}

.team-photos img {
  border-radius: 8px;
  box-shadow: 0 2px 10px var(--shadow);
}

/* === ABOUT / CONTACT === */
.text-block {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px var(--shadow);
  margin-bottom: 2rem;
}

.text-block h2 {
  font-size: 1.75rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* === FOOTER === */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
}

.footer a { color: var(--accent-light); }
.footer p { margin: 0.25rem 0; font-size: 0.9rem; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    transform: translateY(-120%);
    transition: transform var(--transition);
    box-shadow: 0 10px 30px var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 0.75rem 1rem; }
  .hamburger { display: flex; }
  .hero h1 { font-size: 2rem; }
  .hero { padding: 3rem 1.5rem; }
  .card-grid { grid-template-columns: 1fr; }
  .content-section { padding: 1.5rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .hero .tagline { font-size: 1rem; }
  .section-title { font-size: 1.4rem; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 1rem; }
}
