/* Decolonise Africa Architecture - Main Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #0d2818;
  --primary-light: #1a3c2a;
  --accent: #c9a227;
  --accent-hover: #dbb43a;
  --terracotta: #b85c38;
  --sand: #f7f3eb;
  --cream: #faf8f4;
  --text: #1c1c1c;
  --text-muted: #5a5a5a;
  --white: #ffffff;
  --black: #0a0a0a;
  --border: rgba(13, 40, 24, 0.12);
  --shadow: 0 20px 50px rgba(13, 40, 24, 0.08);
  --radius: 4px;
  --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Outfit', system-ui, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--primary);
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== HEADER / NAV ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.06);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--accent);
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--primary);
}

.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: 2px;
  font-size: 0.85rem !important;
  letter-spacing: 0.04em;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero:hover .hero-bg {
  transform: scale(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 40, 24, 0.82) 0%,
    rgba(13, 40, 24, 0.55) 50%,
    rgba(13, 40, 24, 0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 900px;
  padding: 0 24px;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  color: var(--white);
  margin-bottom: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.2rem;
  font-weight: 300;
  max-width: 620px;
  margin: 0 auto 40px;
  opacity: 0.92;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: var(--primary);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(201, 162, 39, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.btn-dark {
  background: var(--primary);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline-dark:hover {
  background: var(--primary);
  color: var(--white);
}

/* ========== SECTIONS ========== */
.section {
  padding: 100px 0;
}

.section-sm {
  padding: 70px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-header h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 18px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 300;
}

/* ========== FEATURED PROJECTS ========== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(13, 40, 24, 0.12);
}

.project-img {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.project-card:hover .project-img img {
  transform: scale(1.08);
}

.project-category {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--primary);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 2px;
}

.project-info {
  padding: 24px;
}

.project-info h3 {
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.project-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 300;
}

.project-meta {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========== PHILOSOPHY / ABOUT TEASER ========== */
.philosophy {
  background: var(--primary);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.philosophy::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 50%;
  height: 140%;
  background: radial-gradient(circle, rgba(201,162,39,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.philosophy-content h2 {
  color: var(--white);
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin-bottom: 24px;
}

.philosophy-content p {
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.philosophy-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.stat-item h3 {
  font-size: 2.8rem;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 0.9rem;
  opacity: 0.75;
  margin: 0;
}

.philosophy-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 480px;
}

.philosophy-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== SERVICES PREVIEW ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
  text-align: center;
}

.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: var(--sand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary);
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 300;
}

/* ========== CTA BANNER ========== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #163d2a 100%);
  color: var(--white);
  text-align: center;
  padding: 90px 24px;
  position: relative;
}

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}

.cta-banner p {
  font-weight: 300;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
}

/* ========== PAGE HERO (inner pages) ========== */
.page-hero {
  position: relative;
  height: 420px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
  margin-top: 80px;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,40,24,0.88) 0%, rgba(13,40,24,0.4) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}

.page-hero-content h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  margin-bottom: 12px;
}

.page-hero-content p {
  font-weight: 300;
  opacity: 0.9;
  font-size: 1.15rem;
  max-width: 560px;
}

.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 16px;
  opacity: 0.7;
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* ========== ABOUT PAGE ========== */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-intro img {
  border-radius: var(--radius);
  height: 520px;
  object-fit: cover;
  width: 100%;
}

.about-text h2 {
  font-size: 2.6rem;
  margin-bottom: 24px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-weight: 300;
  font-size: 1.05rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 20px;
}

.value-card {
  text-align: center;
  padding: 36px 24px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.value-card .num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.value-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.value-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 300;
}

/* ========== TEAM ========== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

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

.team-photo {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 20px;
  filter: grayscale(20%);
  transition: var(--transition);
}

.team-card:hover .team-photo {
  filter: grayscale(0%);
}

.team-card h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.team-card .role {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.team-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 300;
}

/* ========== PROJECTS PAGE ========== */
.filters {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.filter-btn {
  padding: 10px 22px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 30px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.projects-full {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.project-full-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  height: 420px;
}

.project-full-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.project-full-card:hover img {
  transform: scale(1.06);
}

.project-full-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,40,24,0.9) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  color: var(--white);
}

.project-full-overlay .cat {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.project-full-overlay h3 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.project-full-overlay p {
  font-weight: 300;
  opacity: 0.85;
  font-size: 0.95rem;
}

/* ========== SERVICES PAGE ========== */
.service-detail {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  color: var(--accent);
  font-weight: 600;
  line-height: 1;
}

.service-detail h3 {
  font-size: 1.7rem;
  margin-bottom: 12px;
}

.service-detail p {
  color: var(--text-muted);
  font-weight: 300;
  max-width: 680px;
}

/* ========== LANDSCAPES & SCHOOLS ========== */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 80px;
}

.feature-split.reverse {
  direction: rtl;
}

.feature-split.reverse > * {
  direction: ltr;
}

.feature-split img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: var(--radius);
}

.feature-text h3 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.feature-text p {
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 16px;
}

.feature-list {
  margin-top: 20px;
}

.feature-list li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--text-muted);
  font-weight: 300;
}

.feature-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

.contact-info h3 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.contact-info p {
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 28px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item .icon {
  width: 44px;
  height: 44px;
  background: var(--sand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-item h4 {
  font-size: 1rem;
  margin-bottom: 2px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
}

.contact-item p {
  margin: 0;
  font-size: 0.95rem;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  background: var(--cream);
  transition: var(--transition);
  color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--primary);
  color: var(--white);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 20px;
}

.footer-brand p {
  font-weight: 300;
  opacity: 0.75;
  font-size: 0.95rem;
  max-width: 280px;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--accent);
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col a {
  font-weight: 300;
  opacity: 0.8;
  font-size: 0.95rem;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  opacity: 0.6;
  font-weight: 300;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .projects-grid,
  .services-grid,
  .values-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .philosophy-grid,
  .about-intro,
  .feature-split,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .feature-split.reverse {
    direction: ltr;
  }
  
  .projects-full {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 30px 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }
  
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .projects-grid,
  .services-grid,
  .values-grid,
  .team-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .philosophy-stats {
    grid-template-columns: 1fr 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .hero {
    min-height: 600px;
  }
  
  .page-hero {
    height: 340px;
  }
  
  .section {
    padding: 70px 0;
  }
}

/* Utility */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.mb-20 { margin-bottom: 20px; }
.accent { color: var(--accent); }
