/* ============================================
   Nomaqaqa.com — Heritage Site Stylesheet
   Palette: Deep browns, rust red, aged gold
   Fonts: Playfair Display (headings), Ubuntu (body)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=Ubuntu:wght@300;400;500;700&display=swap');

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --brown-deep:   #3B2314;
  --brown-mid:    #5C3A1E;
  --brown-light:  #8B6842;
  --rust:         #A0422A;
  --rust-light:   #C2593A;
  --gold:         #C49A3C;
  --gold-light:   #D4B76A;
  --gold-pale:    #F0E0B8;
  --cream:        #FDF6E8;
  --cream-dark:   #F5EBDA;
  --text-dark:    #2A1A0E;
  --text-body:    #4A3728;
  --white:        #FFFFFF;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Ubuntu', sans-serif;
  font-weight: 400;
  color: var(--text-body);
  background-color: var(--cream);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--rust);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--gold);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
  color: var(--brown-deep);
  line-height: 1.3;
}

h1 { font-size: 2.8rem; font-weight: 800; }
h2 { font-size: 2rem;   font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }

p {
  margin-bottom: 1rem;
}

/* ---------- Layout Utilities ---------- */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.section {
  padding: 4rem 0;
}

.section--alt {
  background-color: var(--cream-dark);
}

.text-center {
  text-align: center;
}

/* ---------- Navigation ---------- */
.site-nav {
  background: var(--brown-deep);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
}

.site-nav__logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 1px;
}
.site-nav__logo span {
  color: var(--gold-pale);
  font-weight: 400;
  font-size: 0.85rem;
  display: block;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.site-nav__links {
  list-style: none;
  display: flex;
  gap: 1.8rem;
}

.site-nav__links a {
  color: var(--cream);
  font-family: 'Ubuntu', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.3rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.site-nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.site-nav__links a:hover,
.site-nav__links a.active {
  color: var(--gold-light);
}
.site-nav__links a:hover::after,
.site-nav__links a.active::after {
  width: 100%;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  transition: 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--brown-deep) 0%, var(--brown-mid) 60%, var(--rust) 100%);
  color: var(--cream);
  padding: 5rem 0 4rem;
  text-align: center;
  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' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5 L55 30 L30 55 L5 30Z' fill='none' stroke='%23C49A3C' stroke-width='0.5' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero h1 {
  color: var(--gold-pale);
  font-size: 3.4rem;
  margin-bottom: 0.6rem;
  position: relative;
}

.hero p {
  color: var(--cream-dark);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  position: relative;
}

.hero__subtitle {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.25rem !important;
  color: var(--gold-light) !important;
  margin-bottom: 0.3rem !important;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  font-family: 'Ubuntu', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn--primary {
  background: var(--gold);
  color: var(--brown-deep);
}
.btn--primary:hover {
  background: var(--gold-light);
  color: var(--brown-deep);
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}
.btn--outline:hover {
  background: var(--gold);
  color: var(--brown-deep);
}

/* ---------- Section Headers ---------- */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--brown-light);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-header__line {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(59, 35, 20, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--gold-pale);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(59, 35, 20, 0.12);
}

.card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--cream-dark);
}

.card__body {
  padding: 1.5rem;
}

.card__body h3 {
  margin-bottom: 0.5rem;
}

.card__body p {
  font-size: 0.95rem;
  color: var(--text-body);
}

/* ---------- Timeline (Umlando) ---------- */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}
.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-item__dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--rust);
  border: 3px solid var(--gold);
  border-radius: 50%;
  z-index: 2;
}

.timeline-item__content {
  width: 44%;
  background: var(--white);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(59, 35, 20, 0.06);
  border-left: 4px solid var(--gold);
}

.timeline-item:nth-child(odd) .timeline-item__content {
  margin-right: auto;
}
.timeline-item:nth-child(even) .timeline-item__content {
  margin-left: auto;
}

.timeline-item__year {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--rust);
  margin-bottom: 0.3rem;
}

/* ---------- Profile Cards (Abantu) ---------- */
.profile-card {
  background: var(--white);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(59, 35, 20, 0.08);
  border-top: 4px solid var(--gold);
  transition: transform 0.3s ease;
}
.profile-card:hover {
  transform: translateY(-3px);
}

.profile-card__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--brown-light), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--white);
  font-weight: 700;
}

.profile-card h3 {
  margin-bottom: 0.3rem;
}

.profile-card__role {
  color: var(--rust);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.profile-card p:last-child {
  font-size: 0.92rem;
  color: var(--brown-light);
}

/* ---------- Gallery Grid (Izithombe) ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--cream-dark);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}
.gallery-item:hover {
  border-color: var(--gold);
}

.gallery-item__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brown-mid), var(--brown-light));
  color: var(--gold-pale);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  text-align: center;
  padding: 1rem;
}

.gallery-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover .gallery-item__img {
  transform: scale(1.05);
}

.gallery-item__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(42, 26, 14, 0.85));
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 500;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.gallery-item:hover .gallery-item__caption {
  transform: translateY(0);
}

/* ---------- Form (Xhasa) ---------- */
.form-wrap {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 8px;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 2px 16px rgba(59, 35, 20, 0.08);
  border-top: 4px solid var(--gold);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--brown-deep);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--gold-pale);
  border-radius: 4px;
  font-family: 'Ubuntu', sans-serif;
  font-size: 0.95rem;
  color: var(--text-body);
  background: var(--cream);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 154, 60, 0.15);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brown-deep);
  color: var(--cream-dark);
  padding: 2.5rem 0 1.5rem;
  border-top: 3px solid var(--gold);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-col h4 {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.footer-col p,
.footer-col a {
  font-size: 0.9rem;
  color: var(--cream-dark);
  line-height: 1.8;
}
.footer-col a:hover {
  color: var(--gold-light);
}

.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 0.3rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--brown-mid);
  font-size: 0.85rem;
  color: var(--brown-light);
}

/* ---------- Info Blocks ---------- */
.info-block {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.info-block__icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--brown-deep);
}

.info-block__text h3 {
  margin-bottom: 0.3rem;
}

/* ---------- Intro Block ---------- */
.intro-text {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.08rem;
  line-height: 1.85;
}

/* ---------- Izithakazelo Block ---------- */
.izithakazelo-block {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, var(--brown-deep) 0%, var(--brown-mid) 100%);
  border-radius: 12px;
  border: 2px solid var(--gold);
  position: relative;
  overflow: hidden;
}

.izithakazelo-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 2 L38 20 L20 38 L2 20Z' fill='none' stroke='%23C49A3C' stroke-width='0.4' opacity='0.1'/%3E%3C/svg%3E");
  pointer-events: none;
}

.izithakazelo-block h2 {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 1.8rem;
  position: relative;
}

.izithakazelo-lines {
  position: relative;
}

.izithakazelo-lines p {
  font-family: 'Playfair Display', serif;
  color: var(--cream);
  font-size: 1.15rem;
  line-height: 2;
  margin-bottom: 0.2rem;
  letter-spacing: 0.3px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 2.4rem; }

  /* Nav mobile */
  .nav-toggle { display: flex; }
  .site-nav__links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--brown-deep);
    padding: 1rem 5%;
    border-top: 1px solid var(--brown-mid);
    gap: 0.5rem;
  }
  .site-nav__links.open { display: flex; }

  /* Timeline */
  .timeline::before { left: 20px; }
  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: column;
    padding-left: 50px;
  }
  .timeline-item__dot {
    left: 20px;
  }
  .timeline-item__content,
  .timeline-item:nth-child(odd) .timeline-item__content,
  .timeline-item:nth-child(even) .timeline-item__content {
    width: 100%;
    margin: 0;
  }

  /* Footer */
  .site-footer .container {
    flex-direction: column;
  }

  .info-block {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}
