/* ============================================================
   Nyolo Ventures — public stylesheet
   Palette taken from the company brochure: purple, gold, green.
   ============================================================ */

:root {
  --purple:      #8a2a8b;
  --purple-dark: #6b1f6d;
  --gold:        #f4b400;
  --gold-soft:   #ffd24d;
  --green:       #2e9f36;
  --green-dark:  #1f7a2a;
  --ink:         #241f28;
  --muted:       #6b6470;
  --line:        #e7e1ea;
  --paper:       #f6f3f7;
  --white:       #ffffff;

  --maxw: 1120px;
  --radius: 16px;
  --shadow: 0 18px 40px -20px rgba(36, 20, 44, .35);
  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--purple); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---- Eyebrow + section headings (the gold accent is the signature) --- */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin: 0 0 .6rem;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.section { padding: 84px 0; }
.section--tint { background: var(--paper); }
.section__head { max-width: 640px; margin-bottom: 44px; }
.section__head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.section__head p { color: var(--muted); font-size: 1.05rem; }

/* ---- Buttons -------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--gold  { background: var(--gold); color: var(--ink); }
.btn--gold:hover { box-shadow: 0 12px 24px -10px rgba(244,180,0,.7); }
.btn--purple { background: var(--purple); color: #fff; }
.btn--purple:hover { background: var(--purple-dark); }
.btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }

/* ---- Header / nav -------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 14px;
}
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--purple); }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(46,159,54,.25); }
.nav__links { display: flex; align-items: center; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--ink); font-weight: 500; font-size: .95rem; }
.nav__links a:hover { color: var(--purple); text-decoration: none; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; font-size: 1.6rem; color: var(--purple); }

/* ---- Hero ----------------------------------------------------- */
.hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(107,31,109,.92) 0%, rgba(138,42,139,.86) 45%, rgba(31,122,42,.82) 100%),
    url('../img/hero.jpg') center/cover no-repeat;
  padding: 108px 0 120px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244,180,0,.55), transparent 65%);
}
.hero__inner { position: relative; max-width: 720px; }
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 3.5rem); font-weight: 800; }
.hero h1 span { color: var(--gold-soft); }
.hero p { font-size: 1.15rem; opacity: .95; max-width: 560px; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero__stats { display: flex; gap: 2.4rem; margin-top: 2.6rem; flex-wrap: wrap; }
.hero__stats .num { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; color: var(--gold-soft); }
.hero__stats .lbl { font-size: .85rem; opacity: .9; }

/* ---- About ---------------------------------------------------- */
.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.about p { color: var(--muted); }
.feature-list { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .9rem; }
.feature-list li { position: relative; padding-left: 2rem; color: var(--ink); }
.feature-list li::before {
  content: "";
  position: absolute; left: 0; top: .35rem;
  width: 14px; height: 14px;
  background: var(--gold);
  clip-path: polygon(0 0, 100% 50%, 0 100%); /* the gold play-arrow from the brochure */
}
.about__card {
  background: linear-gradient(160deg, var(--purple), var(--purple-dark));
  color: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow);
}
.about__card h3 { color: var(--gold-soft); }
.founder { display: flex; align-items: center; gap: 1rem; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.2); }
.founder .avatar { width: 58px; height: 58px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: var(--purple-dark); }
.founder b { display: block; }
.founder small { opacity: .85; }

/* ---- Vision / Mission ---------------------------------------- */
.vm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.vm-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .2s, box-shadow .2s; }
.vm-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.vm-card .icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1rem; background: rgba(244,180,0,.15); color: var(--gold); }
.vm-card h3 { font-size: 1.25rem; }

/* ---- Services ------------------------------------------------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  background: linear-gradient(165deg, var(--purple), var(--purple-dark));
  color: #fff; border-radius: var(--radius); padding: 30px; text-align: center;
}
.service .icon { font-size: 2.2rem; color: var(--gold-soft); margin-bottom: .6rem; }
.service h3 { font-size: 1.15rem; }
.service p { opacity: .9; font-size: .95rem; }

/* ---- Achievement banner -------------------------------------- */
.achievement { background: linear-gradient(120deg, var(--green-dark), var(--green)); color: #fff; }
.achievement .container { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; }
.stat-badge { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); padding: 26px 30px; display: flex; align-items: center; gap: 1rem; }
.stat-badge .big { font-family: var(--font-display); font-weight: 800; font-size: 3rem; color: var(--gold-soft); line-height: 1; }

/* ---- Property cards ------------------------------------------ */
.prop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.prop {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.prop:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.prop__img { aspect-ratio: 4/3; background: var(--paper) center/cover no-repeat; position: relative; }
.prop__tag { position: absolute; top: 12px; left: 12px; background: var(--gold); color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; }
.prop__tag--sold { background: var(--ink); color: #fff; }
.prop__body { padding: 22px; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.prop__body h3 { font-size: 1.2rem; margin: 0; }
.prop__meta { display: flex; gap: 1rem; font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
.prop__price { font-family: var(--font-display); font-weight: 700; color: var(--green-dark); font-size: 1.05rem; }
.prop__body .btn { margin-top: auto; }

/* ---- Gallery -------------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-grid figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1; cursor: pointer; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-grid figure:hover img { transform: scale(1.08); }
.gallery-grid figcaption {
  position: absolute; inset: auto 0 0 0; padding: 12px;
  background: linear-gradient(transparent, rgba(36,20,44,.85));
  color: #fff; font-size: .8rem; opacity: 0; transition: opacity .25s;
}
.gallery-grid figure:hover figcaption { opacity: 1; }
.empty-note { color: var(--muted); font-style: italic; }

/* ---- Forms (contact + newsletter) ---------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%; padding: .8rem 1rem; border: 1px solid var(--line);
  border-radius: 12px; font: inherit; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: 3px solid rgba(138,42,139,.25); border-color: var(--purple); }
.field textarea { min-height: 130px; resize: vertical; }

.contact-info li { list-style: none; display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; }
.contact-info .ico { color: var(--gold); font-size: 1.2rem; }

.newsletter { background: linear-gradient(120deg, var(--purple-dark), var(--purple)); color: #fff; border-radius: var(--radius); padding: 40px; }
.newsletter form { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1rem; }
.newsletter input { flex: 1 1 220px; padding: .85rem 1rem; border: 0; border-radius: 999px; font: inherit; }

.alert { padding: .8rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-size: .92rem; }
.alert--ok  { background: rgba(46,159,54,.12);  color: var(--green-dark); border: 1px solid rgba(46,159,54,.3); }
.alert--err { background: rgba(214,40,40,.1);    color: #b3261e;          border: 1px solid rgba(214,40,40,.3); }

/* ---- Footer --------------------------------------------------- */
.site-footer { background: var(--ink); color: #cfc7d4; padding: 60px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; }
.site-footer a { color: #cfc7d4; }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; }

/* ---- Floating WhatsApp --------------------------------------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  font-size: 1.7rem; box-shadow: 0 10px 24px -8px rgba(37,211,102,.8);
}
.wa-float:hover { text-decoration: none; transform: scale(1.06); }

/* ---- Cookie consent ------------------------------------------ */
.cookie-bar {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 70;
  max-width: 620px; margin-inline: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 22px;
  display: none;
}
.cookie-bar.show { display: block; }
.cookie-bar p { margin: 0 0 .8rem; font-size: .9rem; color: var(--muted); }
.cookie-bar .row { display: flex; gap: .6rem; flex-wrap: wrap; }
.cookie-bar .btn { padding: .55rem 1.1rem; font-size: .85rem; }
.link-plain { color: var(--purple); text-decoration: underline; }

/* ---- Responsive ---------------------------------------------- */
@media (max-width: 900px) {
  .about, .contact-grid, .achievement .container { grid-template-columns: 1fr; }
  .services-grid, .prop-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 10px 20px; display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: .6rem 0; width: 100%; }
  .nav__toggle { display: block; }
  .vm-grid, .services-grid, .prop-grid, .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
