/* ============================================
   ONDIEGI ENTERPRISES — styles.css
   Earthy greens & golds | Corporate Tech
   Founded 2022, Juja Kenya
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --green-deep:  #1a2e1e;
  --green-mid:   #2d4a32;
  --green-light: #4a7a52;
  --green-muted: #8aab8f;
  --gold:        #c9a84c;
  --gold-light:  #e8c96a;
  --gold-pale:   #f5e9c8;
  --cream:       #f8f4eb;
  --cream-dark:  #ede8db;
  --cream-mid:   #e4ddd0;
  --text-dark:   #1a1a16;
  --text-mid:    #4a4a3e;
  --text-muted:  #7a7a6e;
  --white:       #ffffff;
  --transition:  0.3s ease;
  --radius:      2px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: 'DM Sans', sans-serif; cursor: pointer; }

/* ── UTILITIES ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 4rem; }
.section-pad { padding: 7rem 0; }
.text-center { text-align: center; }
.eyebrow {
  font-size: 0.68rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
  display: block; margin-bottom: 1rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block; padding: 0.85rem 2rem;
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: none; transition: var(--transition);
}
.btn-gold { background: var(--gold); color: var(--green-deep); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-outline { background: transparent; border: 1px solid var(--gold); color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--green-deep); }
.btn-ghost {
  background: transparent; color: var(--green-muted);
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; padding: 0; border: none;
}
.btn-ghost .arrow { transition: transform 0.2s; }
.btn-ghost:hover { color: var(--cream); }
.btn-ghost:hover .arrow { transform: translateX(5px); }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; } .d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; } .d4 { transition-delay: 0.4s; }
.d5 { transition-delay: 0.5s; } .d6 { transition-delay: 0.6s; }

/* ── NAV ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 4rem;
  background: rgba(248,244,235,0.95); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201,168,76,0.18);
  transition: padding var(--transition), box-shadow var(--transition);
}
#navbar.scrolled { padding: 0.85rem 4rem; box-shadow: 0 2px 30px rgba(26,46,30,0.08); }
.nav-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 600; color: var(--green-deep); letter-spacing: 0.03em; }
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-mid); transition: color var(--transition); }
.nav-links a:hover { color: var(--gold); }
.nav-cta { background: var(--green-deep) !important; color: var(--gold-pale) !important; padding: 0.55rem 1.4rem; border-radius: var(--radius); }
.nav-cta:hover { background: var(--green-mid) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 1.5px; background: var(--green-deep); transition: var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.mobile-menu { display: none; position: fixed; top: 65px; left: 0; right: 0; z-index: 199; background: var(--cream); border-bottom: 1px solid var(--cream-dark); padding: 1.5rem 2rem; flex-direction: column; gap: 1.25rem; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 0.88rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mid); padding: 0.5rem 0; border-bottom: 1px solid var(--cream-dark); }

.nav-logo img {
  display: inline-block;
  vertical-align: middle;
}
/* ── HERO ── */
#hero { min-height: 100vh; display: grid; grid-template-columns: 55% 45%; }
.hero-left {
  background: var(--green-deep);
  padding: 10rem 5rem 6rem;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.hero-left::before { content: ''; position: absolute; top: -120px; left: -120px; width: 550px; height: 550px; background: radial-gradient(circle, rgba(201,168,76,0.1) 0%, transparent 65%); pointer-events: none; }
.hero-left::after { content: ''; position: absolute; bottom: 0; right: -40px; width: 160px; height: 55%; background: rgba(201,168,76,0.035); transform: skewX(-7deg); }
.hero-eyebrow { animation: fadeUp 0.8s 0.2s both; }
.hero-h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.8rem, 5vw, 4.6rem); font-weight: 300; line-height: 1.1; color: var(--cream); margin-bottom: 1.5rem; animation: fadeUp 0.8s 0.4s both; }
.hero-h1 em { font-style: italic; color: var(--gold-light); }
.hero-sub { font-size: 0.95rem; color: var(--green-muted); max-width: 420px; margin-bottom: 2.5rem; line-height: 1.8; animation: fadeUp 0.8s 0.6s both; }
.hero-actions { display: flex; gap: 1.5rem; align-items: center; animation: fadeUp 0.8s 0.8s both; }
.hero-contact { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid rgba(201,168,76,0.15); display: flex; gap: 2.5rem; flex-wrap: wrap; animation: fadeUp 0.8s 1s both; }
.hero-contact-item { display: flex; flex-direction: column; gap: 3px; }
.hero-contact-label { font-size: 0.63rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(138,171,143,0.65); }
.hero-contact-val { font-size: 0.82rem; color: var(--green-muted); }
.hero-contact-val a { transition: color var(--transition); }
.hero-contact-val a:hover { color: var(--gold); }
.hero-right { background: var(--cream-dark); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero-bg-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-stats { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 1rem; padding: 2rem; animation: fadeIn 1.2s 0.5s both; }
.stat-card { background: var(--white); border: 1px solid rgba(201,168,76,0.22); padding: 1.5rem 2rem; min-width: 240px; box-shadow: 0 4px 24px rgba(26,46,30,0.07); }
.stat-card:nth-child(2) { margin-left: 2.5rem; }
.stat-card:nth-child(3) { margin-left: 1.2rem; }
.stat-num { font-family: 'Cormorant Garamond', serif; font-size: 2.8rem; font-weight: 500; color: var(--green-deep); line-height: 1; margin-bottom: 0.4rem; }
.stat-num sup { font-size: 1.6rem; color: var(--gold); }
.stat-lbl { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }

/* ── MARQUEE ── */
.marquee-bar { background: var(--green-deep); padding: 0.85rem 0; overflow: hidden; white-space: nowrap; }
.marquee-track { display: inline-block; animation: marquee 35s linear infinite; }
.marquee-item { display: inline-block; padding: 0 2.5rem; font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--green-muted); }
.marquee-dot { color: var(--gold); margin: 0 0.5rem; }

/* ── SECTION HEADER ── */
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--cream-dark); }
.section-header h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 400; color: var(--green-deep); line-height: 1.2; }
.section-header h2 em { font-style: italic; color: var(--green-light); }
.section-header-right { max-width: 300px; text-align: right; font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

/* ── SERVICES ── */
#services { background: var(--cream); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; background: var(--cream-mid); }
.service-card { background: var(--cream); padding: 2.5rem 2rem; transition: background var(--transition); position: relative; overflow: hidden; }
.service-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform var(--transition); }
.service-card:hover { background: var(--green-deep); }
.service-card:hover::after { transform: scaleX(1); }
.service-icon { width: 46px; height: 46px; border: 1px solid var(--gold); display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; transition: background var(--transition); }
.service-card:hover .service-icon { background: var(--gold); }
.service-icon svg { width: 20px; height: 20px; stroke: var(--gold); fill: none; transition: stroke var(--transition); }
.service-card:hover .service-icon svg { stroke: var(--green-deep); }
.service-name { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 500; color: var(--green-deep); margin-bottom: 0.75rem; transition: color var(--transition); }
.service-card:hover .service-name { color: var(--cream); }
.service-text { font-size: 0.83rem; line-height: 1.75; color: var(--text-muted); transition: color var(--transition); }
.service-card:hover .service-text { color: var(--green-muted); }

/* ── PORTFOLIO ── */
#portfolio { background: var(--cream-dark); }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.portfolio-card { background: var(--white); border: 1px solid rgba(201,168,76,0.18); padding: 2.5rem; position: relative; overflow: hidden; transition: box-shadow var(--transition), transform var(--transition); }
.portfolio-card:hover { box-shadow: 0 8px 40px rgba(26,46,30,0.1); transform: translateY(-3px); }
.portfolio-card::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%; background: var(--gold); transform: scaleY(0); transform-origin: top; transition: transform 0.4s ease; }
.portfolio-card:hover::before { transform: scaleY(1); }
.portfolio-tag { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); background: rgba(201,168,76,0.1); padding: 4px 10px; display: inline-block; margin-bottom: 1.25rem; }
.portfolio-title { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 500; color: var(--green-deep); margin-bottom: 0.75rem; }
.portfolio-desc { font-size: 0.85rem; line-height: 1.75; color: var(--text-muted); margin-bottom: 1.5rem; }
.portfolio-result { display: flex; align-items: flex-start; gap: 10px; padding: 1rem; background: rgba(26,46,30,0.04); }
.portfolio-result-icon { color: var(--gold); font-size: 1rem; margin-top: 1px; flex-shrink: 0; }
.portfolio-result-text { font-size: 0.8rem; color: var(--text-mid); line-height: 1.6; }
.portfolio-result strong { color: var(--green-deep); font-weight: 500; }

/* ── TESTIMONIALS ── */
#testimonials { background: var(--green-deep); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(201,168,76,0.12); padding: 2rem; transition: background var(--transition), border-color var(--transition); }
.testimonial-card:hover { background: rgba(201,168,76,0.06); border-color: rgba(201,168,76,0.25); }
.quote-mark { font-family: 'Cormorant Garamond', serif; font-size: 5rem; font-weight: 300; color: var(--gold); opacity: 0.25; line-height: 1; margin-bottom: -1rem; }
.testimonial-text { font-size: 0.88rem; line-height: 1.8; color: var(--green-muted); font-style: italic; margin-bottom: 1.5rem; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(201,168,76,0.15); border: 1px solid rgba(201,168,76,0.3); display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', serif; font-size: 1rem; font-weight: 500; color: var(--gold); flex-shrink: 0; }
.author-name { font-size: 0.85rem; font-weight: 500; color: var(--cream); }
.author-role { font-size: 0.72rem; color: var(--green-muted); }
.stars { color: var(--gold); font-size: 0.75rem; letter-spacing: 2px; margin-bottom: 0.5rem; }

/* ── PROCESS ── */
#process { background: var(--cream); }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; margin-top: 4rem; }
.process-steps::before { content: ''; position: absolute; top: 27px; left: 8%; width: 84%; height: 1px; background: linear-gradient(to right, transparent, var(--gold), var(--green-muted), var(--gold), transparent); }
.process-step { padding: 0 1.5rem; position: relative; z-index: 1; }
.step-num { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--gold); display: flex; align-items: center; justify-content: center; background: var(--cream); font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 500; color: var(--gold); margin-bottom: 1.5rem; transition: background var(--transition), color var(--transition); }
.process-step:hover .step-num { background: var(--gold); color: var(--green-deep); }
.step-title { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 500; color: var(--green-deep); margin-bottom: 0.75rem; }
.step-text { font-size: 0.82rem; line-height: 1.75; color: var(--text-muted); }

/* ── CTA ── */
#contact { background: var(--cream-dark); text-align: center; position: relative; overflow: hidden; }
#contact::before { content: 'ONDIEGI'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-family: 'Cormorant Garamond', serif; font-size: clamp(8rem, 18vw, 16rem); font-weight: 300; color: rgba(201,168,76,0.05); white-space: nowrap; pointer-events: none; letter-spacing: 0.1em; }
.cta-inner { position: relative; max-width: 680px; margin: 0 auto; }
.cta-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.2rem, 4vw, 4rem); font-weight: 300; color: var(--green-deep); margin-bottom: 1.25rem; line-height: 1.15; }
.cta-title em { font-style: italic; color: var(--green-light); }
.cta-sub { max-width: 460px; margin: 0 auto 2.5rem; font-size: 0.92rem; color: var(--text-muted); }
.cta-form { display: flex; max-width: 500px; margin: 0 auto 1.5rem; }
.cta-input { flex: 1; padding: 1rem 1.25rem; border: 1px solid rgba(201,168,76,0.35); border-right: none; background: var(--white); font-size: 0.88rem; color: var(--text-dark); outline: none; font-family: 'DM Sans', sans-serif; transition: border-color var(--transition); }
.cta-input:focus { border-color: var(--gold); }
.cta-input::placeholder { color: var(--text-muted); }
.cta-btn { background: var(--green-deep); color: var(--gold-pale); border: none; padding: 1rem 1.75rem; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; transition: background var(--transition); }
.cta-btn:hover { background: var(--green-mid); }
.cta-info { display: flex; justify-content: center; gap: 3rem; margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--cream-mid); flex-wrap: wrap; }
.cta-info-item { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.cta-info-label { font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); }
.cta-info-val { font-size: 0.88rem; color: var(--text-mid); }
.cta-info-val a { color: var(--green-light); transition: color var(--transition); }
.cta-info-val a:hover { color: var(--gold); }

/* ── FOOTER ── */
footer { background: var(--green-deep); border-top: 1px solid rgba(201,168,76,0.12); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding: 4rem; }
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 600; color: var(--cream); margin-bottom: 1rem; }
.footer-logo span { color: var(--gold); }
.footer-brand p { font-size: 0.82rem; color: var(--green-muted); line-height: 1.8; max-width: 280px; }
.footer-col h4 { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.25rem; font-weight: 500; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col ul li a { font-size: 0.82rem; color: var(--green-muted); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 4rem; border-top: 1px solid rgba(201,168,76,0.08); }
.footer-copy { font-size: 0.75rem; color: rgba(138,171,143,0.6); }
.footer-legal { display: flex; gap: 2rem; }
.footer-legal a { font-size: 0.75rem; color: rgba(138,171,143,0.5); transition: color var(--transition); }
.footer-legal a:hover { color: var(--gold); }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .container { padding: 0 2.5rem; }
  #navbar, #navbar.scrolled { padding: 1.1rem 2.5rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; padding: 3rem 2.5rem; }
  .footer-bottom { padding: 1.25rem 2.5rem; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .process-steps::before { display: none; }
}
@media (max-width: 768px) {
  .container { padding: 0 1.5rem; }
  #navbar, #navbar.scrolled { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  #hero { grid-template-columns: 1fr; }
  .hero-left { padding: 8rem 1.5rem 4rem; }
  .hero-right { display: none; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .section-header-right { text-align: left; max-width: 100%; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; gap: 2rem; }
  .cta-form { flex-direction: column; }
  .cta-input { border-right: 1px solid rgba(201,168,76,0.35); border-bottom: none; }
  .cta-info { flex-direction: column; gap: 1.5rem; }
  .footer-top { grid-template-columns: 1fr; padding: 2.5rem 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; padding: 1.25rem 1.5rem; }
  .section-pad { padding: 5rem 0; }
  .hero-contact { flex-direction: column; gap: 1rem; }
}