/* ==========================================================
   ESG Awards Pakistan — Coming Soon
   ========================================================== */

:root {
  --green-950: #04261a;
  --green-900: #06331f;
  --green-800: #0a4a2a;
  --green-700: #0e5c34;
  --green-600: #1a7a43;
  --green-100: #e6f2ea;
  --green-50: #f3f8f5;
  --gold: #c49a3c;
  --gold-light: #e2c27a;
  --teal: #13777d;
  --ink: #10261b;
  --muted: #4d6357;
  --line: #dde8e1;
  --white: #ffffff;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --success-bg: #ecfdf3;

  --font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(6, 51, 31, .06);
  --shadow: 0 20px 50px -20px rgba(6, 51, 31, .28);
  --shadow-lg: 0 40px 80px -30px rgba(6, 51, 31, .35);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-600); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .6em; color: var(--green-900); letter-spacing: -.02em; }
p { margin: 0 0 1em; }
address { font-style: normal; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--green-800); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 16px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--green-700), var(--green-800));
  color: #fff; box-shadow: 0 10px 24px -10px rgba(10, 74, 42, .6);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(10, 74, 42, .65); }
.btn-primary svg { transition: transform .25s var(--ease); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--green-800); border-color: rgba(10, 74, 42, .25); }
.btn-ghost:hover { border-color: var(--green-700); background: var(--green-50); color: var(--green-800); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green-900); }
.brand-mark svg { display: block; }
.brand-text { font-family: var(--font-head); font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.brand-text strong { color: var(--green-700); font-weight: 800; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-link {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  color: var(--green-800); border: 1px solid var(--line); transition: background .25s, color .25s, border-color .25s;
}
.icon-link:hover { background: var(--green-800); color: #fff; border-color: var(--green-800); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 96px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(10, 74, 42, .09) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 30%, transparent 75%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; animation: drift 18s ease-in-out infinite alternate; }
.blob-1 { width: 460px; height: 460px; background: #cfe8d8; top: -120px; right: 4%; }
.blob-2 { width: 340px; height: 340px; background: #f3e3bb; bottom: -80px; right: 30%; animation-delay: -6s; opacity: .45; }
.blob-3 { width: 300px; height: 300px; background: #cde7e8; top: 30%; left: -120px; animation-delay: -12s; opacity: .4; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(30px, 40px, 0) scale(1.08); }
}

.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--green-700);
  background: var(--green-100); padding: 8px 16px; border-radius: 999px; margin-bottom: 24px;
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green-600); }
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green-600);
  animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3); opacity: 0; } }

.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); font-weight: 800; margin-bottom: 22px; }
.accent {
  background: linear-gradient(100deg, var(--green-600) 0%, var(--teal) 55%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--muted); max-width: 560px; margin-bottom: 28px; }

.pillar-chips { list-style: none; padding: 0; margin: 0 0 34px; display: flex; flex-wrap: wrap; gap: 10px; }
.pillar-chips li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--green-900);
  background: #fff; border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.chip-dot { width: 9px; height: 9px; border-radius: 50%; }
.chip-dot.e, .card-icon.e { --c: var(--green-600); }
.chip-dot.s, .card-icon.s { --c: var(--gold); }
.chip-dot.g, .card-icon.g { --c: var(--teal); }
.chip-dot { background: var(--c); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { position: relative; display: grid; place-items: center; }
.visual-ring {
  position: absolute; width: 88%; aspect-ratio: 1; border-radius: 50%;
  border: 1.5px dashed rgba(196, 154, 60, .45);
  animation: spin 60s linear infinite;
}
.visual-ring::before {
  content: ""; position: absolute; top: 8%; left: 8%; width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 6px rgba(196, 154, 60, .18);
}
@keyframes spin { to { transform: rotate(360deg); } }

.visual-card {
  position: relative; margin: 0; width: 100%; max-width: 520px;
  background: #fff; border-radius: 28px; padding: clamp(10px, 2vw, 18px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(10, 74, 42, .06);
  animation: float 7s ease-in-out infinite;
}
.visual-card img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 18px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; }
.section-head p:last-child { color: var(--muted); }
.kicker {
  font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.kicker.light { color: var(--gold-light); }

.about { background: linear-gradient(180deg, var(--green-50), #fff); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--c, var(--green-600)); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.card:nth-child(1) { --c: var(--green-600); }
.card:nth-child(2) { --c: var(--gold); }
.card:nth-child(3) { --c: var(--teal); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; }
.card-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  color: var(--c); background: var(--green-50); background: color-mix(in srgb, var(--c) 12%, #fff);
}

/* ---------- Contact ---------- */
.contact {
  position: relative; color: #e7f1eb; overflow: hidden;
  background:
    radial-gradient(800px 400px at 0% 0%, rgba(26, 122, 67, .45), transparent 60%),
    radial-gradient(600px 400px at 100% 100%, rgba(19, 119, 125, .35), transparent 60%),
    var(--green-900);
}
.contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 24px 24px;
}
.contact-grid { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.contact-intro h2 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; }
.contact-intro > p { color: #c4d8cc; font-size: 1.05rem; max-width: 440px; }
.contact-points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.contact-points li { display: flex; align-items: center; gap: 12px; color: var(--gold-light); }
.contact-points a { color: #fff; text-decoration: none; font-weight: 500; word-break: break-word; }
.contact-points a:hover { text-decoration: underline; color: #fff; }

.form-card {
  background: #fff; color: var(--ink); border-radius: 24px; padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 8px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--green-900); }
.req { color: var(--danger); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--green-50); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder { color: #93a69b; }
.field input:hover, .field textarea:hover { border-color: #c3d6ca; }
.field input:focus, .field textarea:focus {
  outline: none; background: #fff; border-color: var(--green-600); box-shadow: 0 0 0 4px rgba(26, 122, 67, .14);
}
.field [aria-invalid="true"] { border-color: var(--danger); background: var(--danger-bg); }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, .12); }
.error { min-height: 1.3em; margin: 4px 0 6px; font-size: 13px; color: var(--danger); }

.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

#submit-btn { margin-top: 6px; position: relative; }
.spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .8s linear infinite;
}
#submit-btn.loading { pointer-events: none; opacity: .85; }
#submit-btn.loading .spinner { display: inline-block; }

.form-status {
  margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14.5px; font-weight: 500;
  display: flex; gap: 10px; align-items: flex-start; animation: fadeIn .4s var(--ease);
}
.form-status.success { background: var(--success-bg); color: #05603a; border: 1px solid #abefc6; }
.form-status.error { background: var(--danger-bg); color: var(--danger); border: 1px solid #fecdca; }
.form-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: #b5c9bd; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.footer-title { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: #fff; margin-bottom: 6px; }
.footer-tag { color: var(--gold-light); font-size: 14px; }
.office-city {
  font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 14px;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px;
  padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.office p { margin-bottom: 8px; }
.office .lbl { color: var(--gold-light); font-weight: 500; }
.site-footer a { color: #e7f1eb; text-decoration: none; word-break: break-word; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.social {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 8px;
  padding: 9px 16px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; font-size: 14px;
  transition: background .25s, border-color .25s;
}
.site-footer .social:hover { background: #0a66c2; border-color: #0a66c2; text-decoration: none; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 22px; padding-bottom: 28px; font-size: 13.5px;
}
.footer-bottom p { margin: 0; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero { padding: 40px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-copy { order: 2; }
  .hero-visual { order: 1; }
  .lead { margin-left: auto; margin-right: auto; }
  .pillar-chips, .hero-cta { justify-content: center; }
  .visual-card { max-width: 440px; }
  .cards { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 72px 0; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .header-inner { height: 64px; }
  .brand-text { font-size: 15px; }
  .header-actions .btn { display: none; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .hero-cta .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
