/* ═══════════════════════════════════════════
   Ikaya Africa Homes — Main Stylesheet
   ═══════════════════════════════════════════ */

:root {
  --bg: hsl(35, 30%, 97%);
  --fg: hsl(20, 15%, 15%);
  --card: hsl(35, 25%, 95%);
  --primary: hsl(18, 65%, 42%);
  --primary-fg: hsl(35, 30%, 97%);
  --secondary: hsl(38, 45%, 88%);
  --secondary-fg: hsl(20, 15%, 15%);
  --muted: hsl(35, 20%, 92%);
  --muted-fg: hsl(20, 10%, 45%);
  --accent: hsl(150, 35%, 28%);
  --accent-fg: hsl(35, 30%, 97%);
  --border: hsl(35, 20%, 85%);
  --gold: hsl(42, 75%, 52%);
  --gold-fg: hsl(20, 15%, 15%);
  --earth: hsl(20, 30%, 25%);
  --radius: 0.5rem;
  --font-display: 'Playfair Display', serif;
  --font-sans: 'DM Sans', sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); line-height: 1.2; }

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

a { color: inherit; text-decoration: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 2rem; border-radius: var(--radius); font-size: 0.875rem;
  font-weight: 600; cursor: pointer; border: none; transition: opacity 0.2s, background 0.2s;
}
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { opacity: 0.9; }
.btn-outline { border: 1px solid rgba(255,255,255,0.4); color: var(--primary-fg); background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-outline-dark { border: 1px solid var(--border); color: var(--fg); background: var(--card); }
.btn-outline-dark:hover { background: var(--secondary); }
.btn-accent { background: var(--accent); color: var(--accent-fg); }
.btn-accent:hover { opacity: 0.9; }
.btn-full { width: 100%; }

.link-arrow { color: var(--primary); font-size: 0.875rem; font-weight: 600; transition: letter-spacing 0.2s; }
.link-arrow:hover { letter-spacing: 0.05em; }

/* ── Navigation ── */
.ikaya-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,0.8); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem; }
.nav-logo img { height: 120px; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--muted-fg); transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--fg); transition: 0.3s; }

@media (max-width: 1023px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); flex-direction: column; padding: 1rem;
    border-top: 1px solid var(--border); gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.75rem 0; border-bottom: 1px solid rgba(0,0,0,0.05); width: 100%; }
  .nav-toggle { display: flex; }
}

/* ── Hero ── */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  justify-content: center; overflow: hidden; text-align: center;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(30,22,18,0.7), rgba(30,22,18,0.4)); }
.hero-content { position: relative; z-index: 2; }
.hero-label { color: var(--gold); font-size: 0.875rem; letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 1rem; }
.hero-title { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; color: var(--primary-fg); margin-bottom: 1.5rem; }
.hero-title em { font-style: italic; }
.hero-tagline { max-width: 540px; margin: 0 auto 2.5rem; color: rgba(255,255,255,0.8); font-size: 1.125rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.scroll-indicator { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); animation: bounce 2s infinite; }
.scroll-mouse { width: 20px; height: 32px; border: 2px solid rgba(255,255,255,0.4); border-radius: 999px; display: flex; align-items: flex-start; justify-content: center; padding-top: 4px; }
.scroll-dot { width: 4px; height: 8px; background: rgba(255,255,255,0.6); border-radius: 999px; }
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-10px); } }

/* ── Sections ── */
.section { padding: 6rem 0; }
.section-alt { background: rgba(38,45,88,0.03); background: hsl(38, 45%, 88%, 0.5); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-label { color: var(--primary); font-weight: 600; font-size: 0.875rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 0.75rem; }
.section-header h2 { font-size: clamp(1.875rem, 4vw, 2.5rem); font-weight: 700; }

.about-text { max-width: 700px; margin: 0 auto 4rem; text-align: center; color: var(--muted-fg); font-size: 1.125rem; line-height: 1.7; }

/* ── Cards ── */
.card-grid { display: grid; gap: 1.5rem; }
.two-col { grid-template-columns: repeat(2, 1fr); max-width: 800px; margin: 0 auto 4rem; }
.three-col { grid-template-columns: repeat(3, 1fr); max-width: 1000px; margin: 0 auto; }
@media (max-width: 768px) { .two-col, .three-col { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border-radius: 0.75rem; padding: 1.75rem;
  border: 1px solid var(--border); transition: box-shadow 0.3s;
}
.card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.card h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
.card p { color: var(--muted-fg); font-size: 0.875rem; line-height: 1.6; margin-bottom: 1rem; }

.card-icon { width: 48px; height: 48px; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.icon-primary { background: rgba(180,80,40,0.1); color: var(--primary); }
.icon-accent { background: rgba(40,120,80,0.1); color: var(--accent); }

.service-card { transition: border-color 0.3s, box-shadow 0.3s; }
.service-card:hover { border-color: rgba(180,80,40,0.3); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }

/* ── Values ── */
.values-section { text-align: center; margin-top: 4rem; }
.values-section h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.values-subtitle { color: var(--muted-fg); margin-bottom: 2rem; }
.values-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; max-width: 700px; margin: 0 auto; }
.pill {
  background: var(--secondary); color: var(--secondary-fg); padding: 0.625rem 1.25rem;
  border-radius: 999px; font-size: 0.875rem; font-weight: 500; border: 1px solid var(--border);
  transition: background 0.2s, color 0.2s; cursor: default;
}
.pill:hover { background: var(--primary); color: var(--primary-fg); }

/* ── Projects ── */
.filter-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 3rem; }
.filter-tab {
  padding: 0.5rem 1.25rem; border-radius: 999px; font-size: 0.875rem; font-weight: 500;
  border: none; cursor: pointer; background: var(--secondary); color: var(--secondary-fg); transition: 0.2s;
}
.filter-tab.active, .filter-tab:hover { background: var(--primary); color: var(--primary-fg); }

.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 900px; margin: 0 auto; }
@media (max-width: 640px) { .projects-grid { grid-template-columns: 1fr; } }

.project-card {
  position: relative; border-radius: 0.75rem; overflow: hidden; border: 1px solid var(--border);
}
.project-card img { width: 100%; height: 256px; object-fit: cover; transition: transform 0.5s; }
.project-card:hover img { transform: scale(1.05); }
.project-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(30,22,18,0.8) 0%, rgba(30,22,18,0.2) 40%, transparent 100%); }
.project-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.5rem; }
.project-info h3 { font-size: 1.125rem; font-weight: 700; color: var(--primary-fg); }
.project-info p { color: rgba(255,255,255,0.7); font-size: 0.875rem; }
.status-badge { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; margin-bottom: 0.5rem; }
.status-completed { background: var(--accent); color: var(--accent-fg); }
.status-ongoing { background: var(--gold); color: var(--gold-fg); }
.status-available { background: var(--primary); color: var(--primary-fg); }

/* ── Partner ── */
.partner-card { max-width: 800px; margin: 0 auto; border-radius: 1rem; overflow: hidden; border: 1px solid var(--border); display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 768px) { .partner-card { grid-template-columns: 1fr; } }
.partner-left { background: linear-gradient(135deg, var(--primary), var(--accent)); padding: 2.5rem 3rem; color: var(--primary-fg); display: flex; flex-direction: column; justify-content: center; }
.partner-left h2 { font-size: 1.75rem; margin: 1rem 0; }
.partner-left p { opacity: 0.8; line-height: 1.7; }
.partner-right { background: var(--card); padding: 2.5rem 3rem; display: flex; flex-direction: column; justify-content: center; }
.partner-right h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.75rem; }
.partner-right ul { list-style: none; margin-bottom: 2rem; }
.partner-right li { padding: 0.375rem 0; font-size: 0.875rem; color: var(--muted-fg); display: flex; align-items: flex-start; gap: 0.5rem; }
.partner-right li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); margin-top: 0.5rem; flex-shrink: 0; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; max-width: 900px; margin: 0 auto; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form { background: var(--card); border-radius: 0.75rem; padding: 2rem; border: 1px solid var(--border); }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.375rem; }
.form-group input, .form-group textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.625rem 1rem; font-size: 0.875rem; color: var(--fg); font-family: var(--font-sans);
  transition: border-color 0.2s; resize: none;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(180,80,40,0.15); }

.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.info-card { background: var(--card); border-radius: 0.75rem; padding: 1.5rem; border: 1px solid var(--border); }
.info-card h4 { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.25rem; }
.info-card p { color: var(--muted-fg); font-size: 0.875rem; }
.contact-buttons { display: flex; gap: 0.75rem; }
.contact-buttons .btn { flex: 1; }

.alert-success { background: rgba(40,120,80,0.1); color: var(--accent); padding: 1rem; border-radius: var(--radius); text-align: center; margin-bottom: 2rem; font-weight: 500; }

/* ── Footer ── */
.site-footer { background: var(--earth); color: var(--primary-fg); padding: 3.5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 48px; margin-bottom: 0.75rem; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.875rem; line-height: 1.6; }
.footer-links h4, .footer-social h4 { font-size: 0.875rem; font-weight: 600; color: rgba(255,255,255,0.8); margin-bottom: 1rem; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.875rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.social-icons { display: flex; gap: 0.75rem; }
.social-icons a {
  width: 40px; height: 40px; border-radius: 0.5rem; background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.8);
  transition: background 0.2s, color 0.2s;
}
.social-icons a:hover { background: var(--gold); color: var(--gold-fg); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); margin-top: 2.5rem; padding: 1.5rem 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 0.75rem; }
.footer-bottom .tagline { font-family: var(--font-display); font-style: italic; }

/* ── Utilities ── */
.text-center { text-align: center; }
.mt-lg { margin-top: 3rem; }

/* ── Smooth Scroll ── */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
