/* =====================================================================
   Urja CRM — landing page styles
   Theme: bright renewable energy — leaf green lead, panel blue + sun amber
   support. Light surfaces throughout, no dark colour combinations.
   Palette taken from the Urja CRM logo (green swoosh, blue panel, gold sun).
   ===================================================================== */

:root {
  /* ---- text / surfaces (all light) ---- */
  --forest:  #14532D;   /* deepest green — headings */
  --pine:    #1E7A3D;   /* green heading / link accent */
  --ink:     #22352B;   /* body copy on light */
  --slate:   #55685E;   /* muted copy */
  --line:    #DCEDE1;   /* hairlines (soft green) */
  --bg:      #F3FAF4;   /* page background — mint white */
  --bg-alt:  #FFFFFF;   /* alternating sections */
  --bg-soft: #E8F6EB;   /* soft green tint bands */
  --bg-sky:  #E5F2FB;   /* soft blue tint */

  /* legacy aliases kept so every old reference resolves to the new greens */
  --navy-900: #123D24;
  --navy-800: #14532D;
  --navy-700: #1E7A3D;

  /* ---- brand accents (from the logo) ---- */
  --leaf:      #2E9E4F;  /* primary — renewable green */
  --leaf-600:  #1F8A3F;
  --leaf-100:  #E1F4E7;
  --sky:       #1E88D6;  /* solar-panel blue */
  --sky-600:   #1567AF;
  --sky-100:   #E1F0FB;
  --amber:     #F9A825;  /* the sun */
  --amber-600: #F97316;
  --amber-100: #FFF1D9;

  --grad-sun:  linear-gradient(120deg, #FFC531 0%, #F97316 100%);
  --grad-leaf: linear-gradient(120deg, #57C97D 0%, #1F8A3F 100%);
  --grad-sky:  linear-gradient(120deg, #3FB4F5 0%, #1E88D6 100%);
  /* bright hero / band wash: sun glow over a green→sky→cream field */
  --grad-light:
    radial-gradient(880px 520px at 82% -12%, rgba(255,208,120,.55) 0%, rgba(255,208,120,0) 60%),
    radial-gradient(700px 480px at 6% 8%, rgba(46,158,79,.16) 0%, rgba(46,158,79,0) 55%),
    linear-gradient(165deg, #E7F6EA 0%, #EFF8FE 48%, #FFF9EE 100%);

  --shadow-sm: 0 2px 10px rgba(20, 83, 45, .06);
  --shadow-md: 0 14px 38px rgba(20, 83, 45, .12);
  --shadow-lg: 0 26px 60px rgba(20, 83, 45, .16);
  --radius: 16px;
  --radius-lg: 22px;

  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-head: "Sora", var(--font-body);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1180px, 92vw); margin-inline: auto; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--forest); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
p { margin: 0 0 1rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--leaf-600);
  margin-bottom: .7rem;
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .98rem;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-sm { padding: .58rem 1.1rem; font-size: .88rem; }
.btn-block { width: 100%; }
/* primary CTA — the sun */
.btn-solid { background: var(--grad-sun); color: #3a1d00; box-shadow: 0 10px 26px rgba(249, 115, 22, .30); }
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(249, 115, 22, .40); }
/* secondary — leaf green outline, works on any light surface */
.btn-ghost { border-color: var(--leaf); color: var(--leaf-600); background: rgba(46,158,79,.06); }
.btn-ghost:hover { background: var(--leaf); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(46,158,79,.28); }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .8rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-logo { height: 79px; width: auto; transition: height .3s ease; }
.site-header.scrolled .brand-logo { height: 55px; }
.f-logo { max-height: 50px; max-width: 180px; width: auto; }
.brand-text { display: flex; flex-direction: column; font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: var(--forest); line-height: 1.1; }
.brand-text small { font-family: var(--font-body); font-weight: 600; font-size: .68rem; letter-spacing: .04em; color: var(--leaf-600); }
.site-nav { display: flex; align-items: center; gap: 1.9rem; }
.site-nav > a { color: var(--slate); font-weight: 600; font-size: .96rem; position: relative; }
.site-nav > a:not(.btn):hover { color: var(--forest); }
.site-nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--grad-leaf); transition: width .25s ease;
}
.site-nav > a:not(.btn):hover::after { width: 100%; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--forest); border-radius: 2px; transition: .25s; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--grad-light); color: var(--ink); overflow: hidden; padding: calc(clamp(3.5rem, 8vw, 6.5rem) + 110px) 0 8rem; }
.hero-sky { position: absolute; inset: 0; pointer-events: none; }
.sun {
  position: absolute; top: -150px; right: -70px; width: 440px; height: 440px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #FFDF8B 0%, #F9A825 40%, rgba(249,168,37,0) 72%);
  filter: blur(4px); opacity: .55; animation: pulse 8s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); opacity: .5; } 50% { transform: scale(1.08); opacity: .66; } }
.ray-field {
  position: absolute; inset: 0;
  background-image: linear-gradient(115deg, rgba(46,158,79,.06) 1px, transparent 1px);
  background-size: 46px 46px; opacity: .8;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; }
.hero-copy h1 { color: var(--forest); }
.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; border: 1px solid var(--line);
  padding: .5rem 1rem; border-radius: 999px; font-size: .82rem; font-weight: 700; color: var(--leaf-600);
  margin-bottom: 1.4rem; box-shadow: var(--shadow-sm);
}
.pill-icon { width: 16px; height: 16px; color: var(--amber-600); }
.lede { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--slate); max-width: 42ch; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.8rem 0 1.6rem; }
.hero-marks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1.2rem; }
.hero-marks li { display: flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 600; color: var(--slate); }
.hero-marks .m { width: 18px; height: 18px; color: var(--leaf); }

.hero-panel { position: relative; display: flex; flex-direction: column; gap: 1.2rem; }
.glass-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-lg);
}
.pipeline-card .pc-head { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-family: var(--font-head); color: var(--forest); margin-bottom: 1rem; }
.pc-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 4px rgba(46,158,79,.20); }
.pc-steps { list-style: none; padding: 0; margin: 0 0 1.1rem; display: grid; gap: .6rem; }
.pc-steps li { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--slate); }
.pc-steps li svg { width: 16px; height: 16px; }
.pc-steps li.done { color: var(--ink); }
.pc-steps li.done svg { color: var(--leaf); }
.pc-steps li.active { color: var(--forest); font-weight: 700; }
.pc-steps li.active svg { color: var(--amber-600); }
.pc-bar { height: 8px; border-radius: 999px; background: var(--leaf-100); overflow: hidden; }
.pc-bar span { display: block; height: 100%; background: var(--grad-leaf); border-radius: inherit; }
.pc-foot { margin-top: .6rem; font-size: .78rem; color: var(--slate); }
.mini-stat { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.4rem; align-self: flex-start; }
.ms-icon { width: 30px; height: 30px; color: var(--amber-600); }
.mini-stat strong { display: block; font-family: var(--font-head); font-size: 1.35rem; color: var(--forest); }
.mini-stat span { font-size: .8rem; color: var(--slate); }

.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.hero-wave svg { width: 100%; height: 90px; }
.hero-wave path { fill: var(--bg); }

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head p { color: var(--slate); font-size: 1.05rem; }
.section-head.light h2 { color: var(--forest); }
.section-head.light .eyebrow { color: var(--leaf-600); }
.section-head.light p { color: var(--slate); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3.5rem; align-items: center; }
.about-copy p { color: var(--slate); }
.tick-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.tick-list li { display: flex; align-items: flex-start; gap: .7rem; font-weight: 600; color: var(--ink); }
.tick-list .t { width: 20px; height: 20px; color: var(--leaf-600); flex-shrink: 0; margin-top: 3px; }

.about-visual { display: flex; justify-content: center; }
.orbit {
  position: relative; width: min(360px, 80vw); aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #FFF4D6, #E4F5E9 70%);
  border: 1px dashed var(--leaf);
}
.orbit .brand-mark { width: 96px; height: 96px; filter: drop-shadow(0 12px 24px rgba(46,158,79,.25)); }
.orbit .chip {
  position: absolute; display: inline-flex; align-items: center; gap: .4rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .4rem .8rem; font-size: .78rem; font-weight: 700; color: var(--forest);
  box-shadow: var(--shadow-sm); animation: float 6s ease-in-out infinite;
}
.orbit .chip svg { width: 14px; height: 14px; color: var(--leaf-600); }
.orbit .c1 { top: 4%; left: 50%; transform: translateX(-50%); }
.orbit .c2 { top: 44%; right: -8%; animation-delay: 1.5s; }
.orbit .c3 { bottom: 4%; left: 50%; transform: translateX(-50%); animation-delay: 3s; }
.orbit .c4 { top: 44%; left: -8%; animation-delay: 4.5s; }
@keyframes float { 0%,100% { transform: translateY(0) translateX(var(--tx, 0)); } 50% { transform: translateY(-9px) translateX(var(--tx, 0)); } }
.orbit .c1, .orbit .c3 { --tx: -50%; }

/* ---------- feature cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; }
.feature-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.6rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.section-alt .feature-card { background: #fff; }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--leaf); }
.fc-icon {
  display: inline-flex; padding: .8rem; border-radius: 14px;
  background: linear-gradient(135deg, #E1F4E7, #CFEEDA); color: var(--leaf-600); margin-bottom: 1rem;
}
.fc-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.12rem; }
.feature-card p { color: var(--slate); font-size: .95rem; margin: 0; }

/* ---------- usp ---------- */
.usp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.4rem; }
.usp-card {
  display: flex; gap: 1.1rem; padding: 1.6rem; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--leaf);
  transition: transform .2s ease, box-shadow .2s ease;
}
.usp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.uc-icon {
  flex-shrink: 0; display: inline-flex; height: fit-content; padding: .7rem; border-radius: 12px;
  background: linear-gradient(135deg, #E1F0FB, #D3E8F8); color: var(--sky-600);
}
.uc-icon svg { width: 22px; height: 22px; }
.usp-card h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.usp-card p { color: var(--slate); font-size: .93rem; margin: 0; }

/* ---------- stats band ---------- */
.stats-band { background: linear-gradient(160deg, #E5F5E9 0%, #E3F1FB 100%); color: var(--ink); position: relative; overflow: hidden; }
.stats-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(115deg, rgba(46,158,79,.06) 1px, transparent 1px);
  background-size: 44px 44px;
}
.stat-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.5rem; }
.stat {
  text-align: center; padding: 2rem 1.4rem; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.stat-icon { display: inline-flex; padding: .8rem; border-radius: 14px; background: var(--leaf-100); color: var(--leaf-600); margin-bottom: .9rem; }
.stat-icon svg { width: 26px; height: 26px; }
.stat-num { font-family: var(--font-head); font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 800; line-height: 1; background: var(--grad-leaf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { margin-top: .6rem; font-size: .92rem; color: var(--slate); }

/* ---------- clients ---------- */
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.2rem; }
.client-tile {
  display: flex; align-items: center; justify-content: center;
  min-height: 110px; padding: 1.4rem; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.client-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--leaf); }
.client-tile img { max-height: 60px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .78; transition: .2s; }
.client-tile:hover img { filter: none; opacity: 1; }
.client-fallback { display: flex; align-items: center; gap: .5rem; font-family: var(--font-head); font-weight: 700; color: var(--forest); text-align: center; font-size: .95rem; }
.client-fallback svg { width: 18px; height: 18px; color: var(--amber-600); flex-shrink: 0; }

/* ---------- enquiry ---------- */
.enquiry { background: linear-gradient(180deg, var(--bg) 0%, #E3F4E7 100%); }
.enquiry-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3rem; align-items: start; }
.enquiry-copy p { color: var(--slate); }
.contact-list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; align-items: center; gap: .7rem; font-weight: 600; color: var(--ink); }
.contact-list .t { width: 20px; height: 20px; color: var(--leaf-600); flex-shrink: 0; }
.contact-list a:hover { color: var(--leaf-600); }

.enquiry-form-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow-md);
}
.enquiry-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; display: flex; flex-direction: column; }
.field label { font-size: .85rem; font-weight: 700; color: var(--forest); margin-bottom: .4rem; }
.field label span { color: var(--amber-600); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; color: var(--ink);
  padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 11px;
  background: var(--bg); transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(46,158,79,.16); background: #fff;
}
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { font-size: .78rem; color: var(--slate); margin: .9rem 0 0; text-align: center; }

.alert { display: flex; gap: .7rem; padding: 1rem 1.1rem; border-radius: 12px; margin-bottom: 1.2rem; font-size: .92rem; }
.alert svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.alert p { margin: 0; font-weight: 600; }
.alert.success { background: #E7F8EE; color: #157347; border: 1px solid #B8E6CA; }
.alert.success svg { color: var(--leaf-600); }
.alert.error { background: #FDECEC; color: #B02A2A; border: 1px solid #F3C6C6; }
.alert.error ul { margin: .4rem 0 0; padding-left: 1.1rem; font-weight: 500; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-soft); color: var(--slate); padding: 3.5rem 0 1.5rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.f-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.f-lockup { display: flex; align-items: center; gap: .9rem; }
.f-brand .f-logo { max-height: 100px; max-width: 343px; }
/* favicon matches the footer logo's capped height (100px), kept square */
.f-favicon { height: 100px; width: auto; object-fit: contain; }
.f-blurb { margin: 0; font-size: .9rem; }
.site-footer h4 { color: var(--forest); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.f-links { display: flex; flex-direction: column; gap: .5rem; }
.f-links a:hover { color: var(--leaf-600); }
.f-contact p { margin: 0 0 .5rem; font-size: .92rem; }
.f-contact a:hover { color: var(--leaf-600); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; font-size: .82rem; color: var(--slate); }

/* ---------- floating WhatsApp button ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: inline-flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  box-shadow: 0 12px 30px rgba(37, 211, 102, .40);
  transition: transform .18s ease, box-shadow .2s ease;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(37, 211, 102, .52); color: #fff; }
.wa-float svg { width: 32px; height: 32px; }
@media (max-width: 560px) {
  .wa-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) { .wa-float { transition: none; } }

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .enquiry-grid { grid-template-columns: 1fr; }
  .hero-panel { order: -1; }
  .about-visual { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .site-nav {
    position: fixed; inset: 104px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 1rem 6vw 1.5rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-140%); transition: transform .3s ease;
  }
  .site-nav.open { transform: none; }
  .site-nav > a { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .site-nav > a.btn { margin-top: 1rem; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .enquiry-form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .sun, .orbit .chip { animation: none; }
  html { scroll-behavior: auto; }
}
