/* ============================================================
   SHANGEH — main.css
   Rebuilt from source. No framework. No Semplice. No WP.
   ============================================================ */

/* --- TOKENS (from semplice-custom-css + nav CSS) ----------- */
:root {
  --font-display:  'saffran', sans-serif;
  --font-mono:     'Space Mono', monospace;

  --color-bg:      #ffffff;
  --color-dark:    #000000;
  --color-overlay: rgba(245, 245, 245, 1); /* exact value from nav CSS */
  --color-panel:   #000000;                /* project-panel bg */
  --color-nextprev:#22202d;                /* semplice-next-prev bg */

  --max-width:     1660px;                 /* from .container rule */

  /* type scale — exact rem values from semplice-custom-css */
  --h1-size: 4.111rem; --h1-lh: 4.222rem;
  --h2-size: 3.111rem; --h2-lh: 3.111rem;
  --h3-size: 2.333rem; --h3-lh: 2.444rem;
  --h4-size: 1.778rem;
  --h5-size: 1.222rem; --h5-lh: 1.667rem;
  --h6-size: 1rem;     --h6-lh: 1.222rem;
  --p-size:  1rem;     --p-lh:  1.833rem;

  --logo-width: 20rem; /* from nav CSS .logo img width */
  --nav-h: 4rem;
}

/* --- RESET ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

body {
  font-family: var(--font-mono);
  font-size: var(--p-size);
  line-height: var(--p-lh);
  letter-spacing: -0.011rem;

  color: var(--color-dark);
  background: var(--color-dark);
  overflow-x: hidden;
}

/* --- TYPOGRAPHY -------------------------------------------- */
/* h1/h2 use saffran weight 500 */
h1 { font-family: var(--font-display); font-weight: 700; font-size: var(--h1-size); line-height: var(--h1-lh); letter-spacing: 0.033rem;   margin-bottom: 1rem; }
h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--h2-size); line-height: var(--h2-lh); letter-spacing: 0.033rem;  margin-bottom: 1rem; }
/* h3/h4 use Space Mono bold */
h3 { font-family: var(--font-mono); font-weight: 700; font-size: var(--h3-size); line-height: var(--h3-lh); letter-spacing: -0.056rem;  margin-bottom: 1rem; }
h4 { font-family: var(--font-mono); font-weight: 700; font-size: var(--h4-size); margin-bottom: 1rem;}
/* h5/h6/p use Space Mono regular */
h5 { font-family: var(--font-mono); font-weight: 400; font-size: var(--h5-size); line-height: var(--h5-lh); letter-spacing: -0.056rem;   margin-bottom: 1rem;}
h6 { font-family: var(--font-mono); font-weight: 400; font-size: var(--h6-size); line-height: var(--h6-lh);  margin-bottom: 1rem; }
p  { font-size: var(--p-size); line-height: var(--p-lh);   margin-bottom: 1rem;}

/* Bold display (saffran weight 700) used in several pages */
.display-bold { font-family: var(--font-display); font-weight: 700; }

/* Text color utilities */
.text-white { color: #ffffff; }

/* --- 12-COLUMN GRID --------------------------------------- */
/* Faithful replica of Semplice's fluid grid.
   max-width:1660px container, columns expressed as fractions of 12. */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.667rem;
  padding-right: 1.667rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.833rem;
  margin-right: -0.833rem;
}

.col-center {
  margin-left: auto;
  margin-right: auto;
}

.col {
  padding-left: 0.833rem;
  padding-right: 0.833rem;
  min-width: 0;
}

/* Column width classes — /12 fractions */
.col-1  { flex: 0 0 calc(100% *  1/12); max-width: calc(100% *  1/12); }
.col-2  { flex: 0 0 calc(100% *  2/12); max-width: calc(100% *  2/12); }
.col-3  { flex: 0 0 calc(100% *  3/12); max-width: calc(100% *  3/12); }
.col-4  { flex: 0 0 calc(100% *  4/12); max-width: calc(100% *  4/12); }
.col-5  { flex: 0 0 calc(100% *  5/12); max-width: calc(100% *  5/12); }
.col-6  { flex: 0 0 calc(100% *  6/12); max-width: calc(100% *  6/12); }
.col-7  { flex: 0 0 calc(100% *  7/12); max-width: calc(100% *  7/12); }
.col-8  { flex: 0 0 calc(100% *  8/12); max-width: calc(100% *  8/12); }
.col-9  { flex: 0 0 calc(100% *  9/12); max-width: calc(100% *  9/12); }
.col-10 { flex: 0 0 calc(100% * 10/12); max-width: calc(100% * 10/12); }
.col-11 { flex: 0 0 calc(100% * 11/12); max-width: calc(100% * 11/12); }
.col-12 { flex: 0 0 100%;               max-width: 100%; }

/* Vertical alignment helpers (data-valign on Semplice columns) */
.row-valign-center { align-items: center; }
.row-valign-bottom { align-items: flex-end; }
.row-valign-stretch { align-items: stretch; }
.row-valign-top { align-items: flex-start; }

/* --- NAV -------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent; /* default; overridden per-page */
}
.site-nav.nav-white { background: var(--color-bg); }
.site-nav.nav-transparent { background: transparent; }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 1.667rem;
}

.nav-logo {
  margin-left: auto;
}

.nav-logo img {
  width: 140px;
  height: auto;
}

/* Hamburger — exact dimensions from nav CSS:
   height:14px, span height:2px, gap translateY(±6px) */
.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  width: 24px;
  height: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-dark);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.is-open span:first-child  { transform: translateY(6px)  rotate(45deg); }
.nav-toggle.is-open span:last-child   { transform: translateY(-6px) rotate(-45deg); }

/* White hamburger for dark backgrounds (homepage) */
.nav-toggle-white span { background: #ffffff; }

/* --- OVERLAY MENU ----------------------------------------- */
/* background: rgba(245,245,245,1) — exact from nav CSS */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--color-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.nav-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}
.nav-overlay nav a {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1.4;
  text-align: center;
  margin-bottom: 1rem;
  transition: opacity 0.2s;
}
.nav-overlay nav a:hover { opacity: 0.5; }

/* --- HOMEPAGE ---------------------------------------------- */
/* Full-screen cover with background image set per-page inline style */
.cover {
  height: 100svh;

  display: flex;
  align-items: flex-end;   /* Semplice data-valign="bottom" */
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.cover-bg {
  position: absolute;
  inset: 0;
  background-size: cover;   /* data-size="auto" on original */

  background-image:url('../images/shangeh-header_v1A-scaled.jpg'); 
  background-repeat: no-repeat;
  background-position: top center;
}
.cover-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.667rem 6rem;
}
.cover-logo {
  
  margin: 0 auto 1.333rem;
}
.cover-subtitle {
  /* exact: font-size:1.667rem line-height:2.222rem color:#fff Space Mono */
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 1.667rem;
  line-height: 2.222rem;
  color: #ffffff;
}

/* Portfolio grid — the actual grid is rows of columns matching source widths */
/* Each entry is a col inside a .row inside .container */
.portfolio-section {
  background: var(--color-dark);
  padding: 5rem 0 8rem;
}
.portfolio-item-title {
  font-family: var(--font-mono);
  font-size: var(--h5-size);
  line-height: var(--h5-lh);
  letter-spacing: -0.056rem;
  color: #ffffff;
  margin-top: 1rem;
}
.portfolio-item a:hover {
  color:#fff4e0;
    text-decoration: underline;
}
.portfolio-item a img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}
.portfolio-item a:hover img { transform: scale(1.03); }

/* Newsletter section (purple/dark section at bottom of homepage) */
.newsletter-section {
  background: #161438; /* exact from page-specific CSS */
  padding: 3rem 1.667rem;
}
.newsletter-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.833rem;
  flex-wrap: wrap;
}
.newsletter-input {
  font-family: var(--font-mono);
  font-size: 0.944rem;
  color: #ffffff;
  background: #f2f1f2;
  border: none;
  border-radius: 0;
  padding: 1.056rem 1.222rem;
  width: 19rem;
  color: #000;
}
.newsletter-input::placeholder { color: #9e9e9e; }
.newsletter-input:hover { background: #e9e9e9; }
.newsletter-btn {
  font-family: var(--font-mono);
  font-weight: 700;
  background: #ffffff;
  color: var(--color-dark);
  border: none;
  padding: 1.056rem 1.5rem;
  cursor: pointer;
  font-size: 0.944rem;
  transition: background 0.2s;
}
.newsletter-btn:hover { background: #e9e9e9; }

/* Footer section (Pixel Fable logo + 3-col about text) */
.site-footer-section {
  background: var(--color-dark);
  padding: 3rem 0 4rem;
}
.footer-logo { margin-bottom: 3rem; }
.footer-logo img { height: 2.5rem; width: auto; }
.footer-text-col h4 {
  /* exact: line-height:2.278rem color:#fff */
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--h4-size);
  line-height: 2.278rem;
  color: #ffffff;
}
.footer-text-col p {
  color: #ffffff;
  font-size: var(--p-size);
  line-height: var(--p-lh);
}
.footer-links p {
  /* exact: font-size:0.778rem line-height:1.111rem text-align:right */
  font-size: 0.778rem;
  line-height: 1.111rem;
  text-align: right;
  color: #ffffff;
  margin-bottom: 0.5rem;
}
.footer-text-col a { color: #ffffff; 
text-decoration: underline;
text-decoration-line: underline;
}

.footer-text-col a:hover {
  color:#fff4e0;
    text-decoration: underline;
}


/* --- MESSAGE PAGES ----------------------------------------- */
/* Pages sit below the sticky nav */
.message-page { background: var(--color-dark); min-height: 100vh; }

.alaba{background: #00302f;
color:#fff;
}
.aondohimba{
color:#fff;
}
.berhanu{background: #ffffff;}
.efe{background:#260100;
color:#fff;
}
.enu {
  background-color: #000000;
  background-image: url('../images/purple-ship-V02.jpg');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: top center;
  color: #fff;
}
.eshe { background-color:#002323 ;

color:#fff;

}
.faraji { 
   background-color: #000000;
  background-image: url('../images/desert-fortress-bg_v04-scaled.jpg');
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: top center;
  color: #fff;
}
.folami { background-color:#fff ; }
.kirabo { background-color:#366e80 ;
color:#ffbfbf;
 }
.kukiigh { background-color:#ffd401; }
.kwesi { background-color:#fff4e0; }
.lerato {  }
.lindiwe { background-color:#366e80;
font-size:1.111rem;
line-height:1.556rem;
color:#fff;
margin-top:1.833rem;
}
.makena { background-color:#e3fff6; }
.mavuto { background-color:#00245e; ; }
.nsonowa { background-color:#fff4e0; }
.tendaji { background-color: #ffd7ac;
}


.tendaji h1 {
  font-size: 3.722rem;
  line-height: 3.722rem;
  font-weight: 700;
  color: #a01445;
}
.tendaji h2 {
  font-size: 2.222rem;
  line-height: 2.778rem;
   font-weight: 700;
  color: #a01445;
}
.tendaji h6 {
  font-size: 1rem;
  letter-spacing: 0.033rem;
  margin-top: 1rem;
}
.tendaji p {
  font-size: 1.444rem;
  line-height: 1.778rem;
  margin-top: 2rem;
}

.wekesa { background-color: #6c0028; 
color: #fff;
}

.wekesa h1 {
  font-size: 3.722rem;
  line-height: 3.722rem;
  font-weight: 700;
  
}
.wekesa h4 {
  font-size: 1.8rem;
  line-height: 2.4rem;
   font-weight: 200;
    margin-top: 1rem;
  
}
.wekesa h6 {
  font-size: 1rem;
  letter-spacing: 0.033rem;
  margin-top: 1rem;
}


.xolani { background-color:#fed0df; }

.xolani h1 {
  font-size: 3.722rem;
  line-height: 3.722rem;
  font-weight: 700;
  
}
.xolani h4 {
  font-size: 1.8rem;
  line-height: 2.4rem;
   font-weight: 200;
    margin-top: 1rem;
  
}
.xolani p{

  font-size:1.8rem;
  line-height:2rem;
  color:#000000;
  font-weight:500;
  margin-top:2rem;
}
.xolani h6 {
  font-size: 1rem;
  letter-spacing: 0.033rem;
  margin-top: 1rem;
}

/* Generic content section for message pages */
.content-section { padding: 5rem 0; }

/* project-panel — exact from CSS:
   background:#000 padding:4.333rem 0
   panel-label: color:#fff font-size:2.111rem
   pp-title a: color:#86839e font-size:1rem */
.project-panel {
  background: var(--color-panel);
  padding: 4.333rem 0;
}
.panel-label {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 2.111rem;
  line-height: 1;
  color: #ffffff;
  padding-bottom: 1.167rem;
}
.pp-thumbs { margin-bottom: -1.667rem; }
.pp-thumb {
  padding-bottom: 1.667rem;
}
.pp-thumb a img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}
.pp-thumb a:hover img { transform: scale(1.03); }
.pp-title {
  padding: 0.333rem 0 0;
}
.pp-title a {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 1rem;
  color: #fff;
  line-height: 1.4;
}
.pp-title span {
  /* "Project type" — transparent in original */
  display: none;
}

/* --- RESPONSIVE ------------------------------------------- */
@media (max-width: 991px) {
  :root {
    --h1-size: 3rem;   --h1-lh: 3.2rem;
    --h2-size: 2.4rem; --h2-lh: 2.6rem;
  }
  /* Collapse all columns to full-width on mobile (matches
     Semplice data-column-mode-sm="single") */
  .col-1, .col-2, .col-3, .col-4, .col-5,
  .col-6, .col-7, .col-8, .col-9, .col-10,
  .col-11 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  /* But hide spacer cols on mobile — they're just visual offset */
  .spacer { display: none; }

  .cover-subtitle { font-size: 1.2rem; line-height: 1.6rem; }
  .panel-label { font-size: 1.5rem; }
  .footer-links p { text-align: left; }
}

@media (max-width: 543px) {
  :root { --h1-size: 2rem; --h1-lh: 2.3rem; }
  .newsletter-input { width: 100%; }
  .newsletter-form { flex-direction: column; }
}

/* --- SCROLL REVEAL ---------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].visible { opacity: 1; transform: none; }
