/* === SummitPro - Mountaineering Tools & Guide === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:wght@400;500;600&display=swap');

:root {
  --primary: #1a3a2f;
  --primary-light: #2d5a47;
  --accent: #e67e22;
  --accent-hover: #d35400;
  --snow: #f0f4f8;
  --dark: #0d1f17;
  --text: #2c3e35;
  --text-light: #5a6b62;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: var(--snow);
  line-height: 1.7;
}

h1,h2,h3,h4 {
  font-family: 'Montserrat', sans-serif;
  color: var(--primary);
  line-height: 1.3;
}

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: var(--primary);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--white);
}

.logo-icon { font-size: 1.6rem; }

.main-nav { display: flex; gap: 0; }
.main-nav a {
  color: rgba(255,255,255,0.85);
  padding: 21px 18px;
  font-weight: 600;
  font-size: 0.92rem;
  display: block;
  border-bottom: 3px solid transparent;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--white);
  background: var(--primary-light);
  border-bottom-color: var(--accent);
}

.mobile-toggle { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; padding: 10px; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 60%, #3a6a5a 100%);
  color: white;
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?w=1600&q=80') center/cover;
  opacity: 0.15;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.hero h1 {
  font-size: 2.4rem;
  color: var(--white);
  margin-bottom: 16px;
}

.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.85); margin-bottom: 24px; }

.hero-stats { display: flex; gap: 30px; margin-top: 30px; }
.hero-stats .stat { text-align: center; }
.hero-stats .stat-num { font-size: 2rem; font-weight: 800; color: var(--accent); font-family: 'Montserrat', sans-serif; }
.hero-stats .stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 1px; }

.hero-search {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.hero-search h3 { margin-bottom: 14px; font-size: 1.1rem; }
.search-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.search-tools a {
  background: var(--snow);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.search-tools a:hover { background: var(--accent); color: white; }

/* Section */
.section { padding: 50px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 2rem; margin-bottom: 10px; }
.section-title p { color: var(--text-light); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.tool-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: 0.3s;
  border: 1px solid #e8eee9;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border-color: var(--accent);
}

.tool-icon { font-size: 2.2rem; margin-bottom: 12px; }
.tool-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.tool-card p { font-size: 0.88rem; color: var(--text-light); margin-bottom: 14px; }
.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.88rem;
}
.tool-link:hover { gap: 9px; }

/* Articles */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: 0.3s;
}

.article-card:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.12); }

.article-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.article-body { padding: 20px; }
.article-category {
  background: var(--accent);
  color: white;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 10px;
}
.article-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.article-card h3 a:hover { color: var(--accent); }
.article-meta { font-size: 0.8rem; color: var(--text-light); margin-bottom: 10px; }
.article-card p { font-size: 0.88rem; color: var(--text-light); }

/* Breadcrumb */
.breadcrumb {
  padding: 14px 0;
  font-size: 0.85rem;
  color: var(--text-light);
  background: var(--snow);
  border-bottom: 1px solid #e0e5e2;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 8px; color: #bbb; }

/* Tool Detail */
.tool-detail { background: var(--white); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); margin-top: 30px; }
.tool-header { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 2px solid var(--snow); }
.tool-header .tool-icon { font-size: 3rem; margin-bottom: 0; }
.tool-category { background: var(--primary); color: white; padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; display: inline-block; margin-bottom: 6px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--primary); font-size: 0.92rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #dde5e0;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Open Sans', sans-serif;
  transition: 0.3s;
  background: var(--snow);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
}

.btn-primary {
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
  font-family: 'Montserrat', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-secondary { background: var(--primary); color: white; border: none; padding: 10px 24px; border-radius: 8px; font-size: 0.92rem; font-weight: 600; cursor: pointer; transition: 0.3s; }
.btn-secondary:hover { background: var(--primary-light); }

.result-box { background: var(--snow); border-left: 4px solid var(--accent); padding: 16px 20px; border-radius: 8px; margin-top: 16px; font-size: 1.05rem; font-weight: 600; color: var(--primary); }
.result-box small { display: block; font-weight: 400; font-size: 0.85rem; color: var(--text-light); margin-top: 4px; }

/* Article Page */
.article-detail { background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.article-detail h1 { font-size: 2rem; margin-bottom: 14px; }
.article-detail .article-meta { margin-bottom: 20px; }
.article-detail .featured-img { width: 100%; height: 380px; object-fit: cover; border-radius: var(--radius); margin-bottom: 30px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); }
.article-content { font-size: 1.05rem; line-height: 1.85; }
.article-content h2 { font-size: 1.4rem; margin: 28px 0 12px; }
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol { margin: 16px 0 20px 24px; }
.article-content li { margin-bottom: 8px; }
.article-content strong { color: var(--primary); }
.article-content .tip-box { background: var(--snow); border: 2px solid var(--primary); border-radius: var(--radius); padding: 18px 22px; margin: 24px 0; }
.article-content .tip-box strong { display: block; margin-bottom: 6px; color: var(--accent); }

/* Info Grid */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin: 30px 0; }
.info-card { background: var(--snow); border-radius: var(--radius); padding: 22px; border-left: 4px solid var(--accent); }

/* Footer */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 50px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-col h4 { color: var(--white); margin-bottom: 16px; font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.9rem; color: rgba(255,255,255,0.6); }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px; text-align: center; margin-top: 40px; font-size: 0.85rem; max-width: 1200px; margin-left: auto; margin-right: auto; }

/* About / Contact / Policy pages */
.page-content { background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); margin-top: 30px; }
.page-content h1 { font-size: 2.2rem; margin-bottom: 12px; }
.page-content h2 { font-size: 1.4rem; margin: 28px 0 12px; }
.page-content p { margin-bottom: 16px; color: var(--text); }
.page-content ul { margin: 16px 0 20px 24px; }
.page-content li { margin-bottom: 8px; }

/* Responsive */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { font-size: 1.8rem; }
  .search-tools { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .main-nav { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--primary); }
  .main-nav.active { display: flex; }
  .main-nav a { padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .mobile-toggle { display: block; }
  .article-detail { padding: 24px; }
  .article-detail .featured-img { height: 220px; }
  .tool-detail { padding: 20px; }
  .hero-stats { gap: 16px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; }
}
