/* ===== CSCANA — Modern Redesign ===== */
:root {
  --primary: #1e3a5f;
  --primary-light: #2d5a8e;
  --primary-dark: #0f1f33;
  --accent: #0d9488;
  --accent-light: #14b8a6;
  --accent-dark: #0f766e;
  --gold: #d4a843;
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --text: #1e293b;
  --text-light: #64748b;
  --text-inv: #ffffff;
  --border: #e2e8f0;
  --card: #ffffff;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.04);
  --shadow-lg: 0 4px 12px rgba(0,0,0,.1), 0 16px 40px rgba(0,0,0,.06);
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ===== Typography ===== */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; color: var(--primary); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1rem; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-dark); }

/* ===== Container ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== Navigation ===== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: .75rem 1.5rem;
}
.nav-logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.nav-logo img { height: 44px; width: auto; }
.nav-logo span { font-weight: 700; font-size: 1.1rem; color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; }
.nav-links a {
  padding: .5rem 1rem; border-radius: 8px; font-size: .925rem;
  font-weight: 500; color: var(--text); transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  background: var(--bg-alt); color: var(--accent);
}
.nav-social { display: flex; gap: .5rem; }
.nav-social a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px; color: var(--text-light);
  transition: all var(--transition);
}
.nav-social a:hover { background: var(--bg-alt); color: var(--accent); }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: var(--transition); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    flex-direction: column; background: var(--card); padding: 5rem 2rem 2rem;
    box-shadow: var(--shadow-lg); transition: right var(--transition);
    align-items: flex-start; gap: .5rem;
  }
  .nav-links.open { right: 0; }
  .nav-links a { width: 100%; font-size: 1rem; padding: .75rem 1rem; }
  .nav-social { display: none; }
}

/* ===== Hero ===== */
.hero {
  position: relative; padding: 6rem 0 5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent-dark) 100%);
  color: var(--text-inv); overflow: hidden;
}
.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.04'%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-content { position: relative; text-align: center; max-width: 720px; margin: 0 auto; }
.hero h1 { color: var(--text-inv); margin-bottom: 1rem; font-size: clamp(2.2rem, 5vw, 3.5rem); }
.hero p { font-size: 1.15rem; opacity: .9; margin-bottom: .5rem; }
.hero-sub { font-size: 1rem !important; opacity: .75 !important; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }

/* Page hero (smaller) */
.hero-page { padding: 3.5rem 0 3rem; }
.hero-page h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .5rem; }
.hero-page p { font-size: 1rem; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 2rem; border-radius: 8px; font-weight: 600;
  font-size: .95rem; cursor: pointer; border: 2px solid transparent;
  transition: all var(--transition); text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; color: #fff; }
.btn-secondary { background: var(--primary); color: #fff; }
.btn-secondary:hover { background: var(--primary-dark); color: #fff; }

/* ===== Section ===== */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-header p { color: var(--text-light); margin-top: .5rem; }
.section-label {
  display: inline-block; font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--accent);
  margin-bottom: .5rem;
}

/* ===== Cards ===== */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-body { padding: 1.5rem; }
.card-img { width: 100%; height: 220px; object-fit: cover; }

/* ===== Grid ===== */
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* ===== Feature blocks ===== */
.feature {
  text-align: center; padding: 2.5rem 1.5rem;
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); transition: transform var(--transition);
}
.feature:hover { transform: translateY(-4px); }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 16px; margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--accent), var(--primary-light));
  color: #fff; font-size: 1.5rem;
}
.feature h3 { margin-bottom: .5rem; }
.feature p { color: var(--text-light); font-size: .95rem; }

/* ===== Board member cards ===== */
.member-card { text-align: center; }
.member-card .card-body { padding: 2rem 1.5rem; }
.member-avatar {
  width: 100px; height: 100px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 2rem; font-weight: 700;
  margin: 0 auto 1rem;
}
.member-card h3 { margin-bottom: .25rem; }
.member-role {
  display: inline-block; padding: .25rem .75rem; border-radius: 20px;
  background: var(--bg-alt); color: var(--accent); font-size: .85rem;
  font-weight: 600; margin-bottom: 1rem;
}
.member-bio { font-size: .9rem; color: var(--text-light); text-align: left; }
.member-bio li { margin-bottom: .35rem; }

/* ===== Blog post cards ===== */
.post-card .card-body { padding: 1.5rem; }
.post-meta { display: flex; gap: 1rem; font-size: .85rem; color: var(--text-light); margin-bottom: .75rem; }
.post-tag {
  display: inline-block; padding: .15rem .6rem; border-radius: 4px;
  background: var(--accent); color: #fff; font-size: .75rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
}
.post-card h3 { margin-bottom: .75rem; }
.post-card h3 a { color: var(--primary); }
.post-card h3 a:hover { color: var(--accent); }
.post-excerpt { font-size: .925rem; color: var(--text-light); line-height: 1.6; }

/* ===== Timeline ===== */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: linear-gradient(to bottom, var(--accent), var(--primary));
  border-radius: 3px;
}
.timeline-item { position: relative; padding-bottom: 2rem; }
.timeline-item::before {
  content: ''; position: absolute; left: -2rem; top: .35rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-item h4 { margin-bottom: .25rem; }
.timeline-item p { color: var(--text-light); font-size: .95rem; }

/* ===== Stats ===== */
.stats { display: flex; gap: 3rem; justify-content: center; flex-wrap: wrap; padding: 2rem 0; }
.stat { text-align: center; }
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { font-size: .9rem; color: var(--text-light); margin-top: .25rem; }

/* ===== Contact form ===== */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--text); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: .75rem 1rem; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: .95rem; font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: #fff;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13,148,136,.12);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* ===== Info box ===== */
.info-box {
  display: flex; gap: 1rem; padding: 1.25rem 1.5rem;
  background: var(--bg-alt); border-radius: var(--radius);
  border-left: 4px solid var(--accent); margin-bottom: 1rem;
}
.info-box-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: .15rem; }

/* ===== Breadcrumb ===== */
.breadcrumb {
  display: flex; gap: .5rem; font-size: .85rem; color: rgba(255,255,255,.7);
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: .5; }

/* ===== Footer ===== */
.footer { background: var(--primary-dark); color: rgba(255,255,255,.8); padding: 4rem 0 0; }
.footer h4 { color: #fff; margin-bottom: 1rem; font-size: 1.05rem; }
.footer a { color: rgba(255,255,255,.7); }
.footer a:hover { color: var(--accent-light); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; }
.footer-about p { font-size: .9rem; line-height: 1.6; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { font-size: .9rem; }
.footer-bottom {
  margin-top: 3rem; padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: center;
  font-size: .85rem;
}
.footer-social { display: flex; gap: .75rem; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.7);
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--accent); color: #fff; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ===== Utilities ===== */
.text-center { text-align: center; }
.text-light { color: var(--text-light); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-1 { gap: .5rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.hidden { display: none; }

/* ===== Animations ===== */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== Print ===== */
@media print {
  .nav, .footer, .hero::before { display: none; }
  .hero { background: var(--primary) !important; }
}
