/* Układ sekcji tej podstrony. Typografia i nawigacja: site.css. */

:root {
  --clay: #c67a5c;
  --earth: #8b5a2b;
  --gold: #d4a017;
  --cream: #fcf9f2;
  --charcoal: #2b2b28;
  --soft-brown: #4a3c31;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0,0,0,0.08);
  --radius: 18px;
}

* { box-sizing: border-box; margin:0; padding:0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  
  background: var(--cream);
  color: var(--soft-brown);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3 {
  
  color: var(--charcoal);
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 2.5rem 0 1.2rem;
  position: relative;
  padding-bottom: 0.4rem;
}
h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--gold);
  margin-top: 0.5rem;
  border-radius: 3px;
}
h3 { font-size: 1.4rem; margin: 1.5rem 0 0.8rem; color: #5a3e2b; }

a {
  color: var(--earth);
  text-decoration: none;
  border-bottom: 1px dotted var(--earth);
  transition: all 0.2s ease;
}
a:hover {
  color: var(--clay);
  border-bottom-color: var(--clay);
}

hr {
  border: none;
  border-top: 2px dashed #e7dcc8;
  margin: 3rem 0;
}

p { margin-bottom: 1.2rem; }
img { max-width: 100%; height: auto; display: block; }

.wrapper {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header classes (from include) */
.main-header { background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); position: sticky; top:0; z-index:1000; padding:0.8rem 0; box-shadow:0 2px 15px rgba(0,0,0,0.04); }
.main-header .wrapper { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; }
.logo-area {  font-size:1.5rem; color:var(--earth); }
.logo-area span { font-weight:700; }
.nav-toggle { display:none; background:none; border:none; font-size:1.8rem; cursor:pointer; color:var(--earth); }
.main-nav a { margin-left:2rem; font-weight:500; border-bottom:none; color:var(--soft-brown); }
.main-nav a:hover { color:var(--clay); }
@media (max-width:768px) {
  .nav-toggle { display:block; }
  .main-nav { display:none; width:100%; flex-direction:column; gap:0.8rem; padding:1rem 0; }
  .main-nav.visible { display:flex; }
}

/* Page hero */
.page-hero {
  background: linear-gradient(135deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.1) 100%), url('../photos/africabg.jpg') center/cover no-repeat;
  min-height: 45vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  border-radius: 0 0 40px 40px;
  margin-bottom: 3rem;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
  color: #ffd700; 
}

/* Summary cards */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.stat-card {
  background: var(--white);
  padding: 1.8rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.stat-card .number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--earth);
}
.stat-card .label {
  font-size: 0.95rem;
  color: var(--soft-brown);
}

/* Table styles */
.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
th {
  background: var(--earth);
  color: white;
  padding: 1rem;
  text-align: left;
}
td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #e7dcc8;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #fff9f0; }

/* Highlight box */
.highlight-box {
  background: linear-gradient(145deg, #fff6e6, #ffecd2);
  border-left: 6px solid var(--clay);
  padding: 1.8rem 2rem;
  border-radius: 0 20px 20px 0;
  margin: 2rem 0;
  font-weight: 500;
}

/* Project report card */
.project-report {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin: 2rem 0;
}
.project-report img {
  border-radius: 12px;
  margin: 1rem 0;
}

/* Footer */
.site-footer {
  background: #2b2b28;
  color: #c9b896;
  padding: 2.5rem 2rem;
  margin-top: 4rem;
  border-radius: 40px 40px 0 0;
}
.site-footer h3 { color: #ffd966; font-size:1.2rem; margin-top:0; }
.site-footer a { color:#c9b896; border-bottom-color:#c9b896; }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--clay);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top.show { opacity: 1; }
.back-to-top:hover { transform: translateY(-3px); background: var(--earth); }

@media (max-width:600px) {
  .page-hero { min-height:35vh; border-radius:0 0 30px 30px; }
  .wrapper { padding:0 1rem; }
}

[data-style="detail-1"]{font-size:1.2rem;}
[data-style="detail-2"]{display:grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap:1rem; margin-top:1.5rem;}
[data-style="detail-3"]{text-align:center; font-size:0.9rem;}
[data-style="detail-4"]{margin-top:1.5rem;}
[data-style="detail-5"]{margin-top:1.5rem; font-style:italic;}
[data-style="detail-6"]{text-align:center; margin-top:2rem;}
[data-style="detail-7"]{display:inline-block; padding:0.7rem 2rem; background:var(--clay); color:white; border-radius:30px; font-weight:600; border-bottom:none;}