:root {
    /* ── ChemNovate Synergy brand palette ── */
    --navy:      #07347F;   /* "Chem" dark navy — primary dark */
    --blue:      #0743AC;   /* "Novate" blue — arrow, factory */
    --teal:      #078EAC;   /* sweep arc, molecule nodes */
    --green:     #349D43;   /* leaf, "Synergy" text */
    --green2:    #52AC34;   /* leaf highlight */
    --ink:       #07347F;   /* alias: primary dark text */
    --ink2:      #041850;   /* hero / footer dark bg */
    --sage:      #056478;   /* darker teal for muted elements */
    --mint:      #E6F7FA;   /* light teal tint — backgrounds */
    --mint2:     #D0EEF5;   /* slightly deeper */
    --cream:     #F2FAFC;   /* page background */
    --muted:     #2A4A70;   /* body text */
    --border:    #B8DDE8;   /* borders */
    --white:     #FFFFFF;
    --font: 'Plus Jakarta Sans', sans-serif;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body { background: var(--cream); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.65; overflow-x: hidden; }

  /* ─── NAV ─── */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255,255,255,0.97); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }
  .nav-inner {
    max-width: 1280px; margin: 0 auto; padding: .4rem 2.5rem;
    display: flex; align-items: center; justify-content: space-between; gap: 0;
  }
  .nav-logo { display: flex; align-items: center; gap: 1rem; }
  .nav-logo img { display: block; height: 50px; width: auto; }
  .nav-company-name { font-size: 1.1rem; font-weight: 700; color: var(--navy); letter-spacing: .05em; }
  .nav-right { display: flex; align-items: center; gap: 2rem; }
  .nav-links { display: flex; gap: 1.8rem; list-style: none; padding-left: 0; margin: 0; }
  .nav-links a { color: var(--navy); text-decoration: none; font-size: .82rem; font-weight: 600; letter-spacing: .05em; transition: color .2s; }
  .nav-links a:hover { color: var(--teal); }
  .nav-cta {
    background: var(--navy); color: #fff; padding: .55rem 1.4rem;
    font-weight: 700; font-size: .82rem; text-decoration: none;
    border-radius: 4px; transition: background .2s; white-space: nowrap;
  }
  .nav-cta:hover { background: #052060; }
  .hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
  .hamburger span { width: 24px; height: 2px; background: var(--ink); }
  .mobile-nav {
    display: none; position: fixed; inset: 0; background: var(--white);
    z-index: 99; flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem;
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a { color: var(--ink); text-decoration: none; font-size: 1.4rem; font-weight: 700; }
  .close-btn { position: absolute; top: 1.5rem; right: 2rem; background: none; border: none; color: var(--ink); font-size: 1.8rem; cursor: pointer; }

  /* ─── LAYOUT UTILITIES ─── */
  section { padding: 7rem 0; }
  .container { max-width: 1280px; margin: 0 auto; padding: 0 2.5rem; }
  .sec-tag {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--mint); color: var(--navy);
    padding: .3rem .9rem; font-size: .72rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; border-radius: 20px; margin-bottom: 1.2rem;
  }
  .sec-title { font-size: clamp(2rem,4vw,3rem); font-weight: 800; line-height: 1.1; color: var(--ink); margin-bottom: 1rem; }
  .sec-sub { color: var(--muted); max-width: 600px; font-size: 1rem; line-height: 1.8; }

  /* ─── HERO ─── */
  #hero {
    min-height: 100vh;
    background: var(--ink2);
    display: grid; grid-template-columns: 1fr 1fr;
    align-items: center; padding-top: 78px; overflow: hidden; position: relative;
  }
  /* full-width background image overlay */
  #hero::before {
    content: ''; position: absolute; inset: 0;
    background-image: url('images/chemnovate-bg.png');
    background-size: cover; background-position: center center;
    opacity: .3; pointer-events: none;
  }
  /* gradient overlay for readability */
  #hero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, #041850 0%, rgba(4,24,80,.6) 40%, rgba(4,24,80,.2) 100%);
    pointer-events: none;
  }
  .hero-left {
    padding: 5rem 3rem 5rem 2.5rem; max-width: 640px;
    margin: 0 auto; position: relative; z-index: 2;
  }
  .hero-tag {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(7,142,172,.15); color: #5ECFE3;
    padding: .5rem 1.4rem; font-size: 1.05rem; font-weight: 600;
    letter-spacing: .02em; text-transform: none; border-radius: 20px; margin-bottom: 2rem;
    border: 1px solid rgba(7,142,172,.3);
  }
  .hero-headline { font-size: clamp(1.4rem, 2.8vw, 2.2rem); font-weight: 800; line-height: 1.2; color: #fff; margin-bottom: 1.5rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-headline em { font-style: italic; color: var(--teal); }
  .hero-sub { font-size: 1.05rem; color: rgba(255,255,255,.9); line-height: 1.85; margin-bottom: 2.5rem; max-width: 500px; }
  .btn-green {
    background: #1A7A2C; color: #fff; padding: .9rem 2.2rem;
    font-weight: 700; font-size: .9rem; text-decoration: none;
    border-radius: 4px; transition: all .2s; display: inline-block;
  }
  .btn-green:hover { background: #155F23; transform: translateY(-1px); }
  .btn-ghost {
    background: transparent; color: rgba(255,255,255,.92);
    border: 1px solid rgba(255,255,255,.18); padding: .9rem 2.2rem;
    font-weight: 600; font-size: .9rem; text-decoration: none;
    border-radius: 4px; transition: all .2s; display: inline-block;
  }
  .btn-ghost:hover { border-color: var(--green); color: var(--green); background: rgba(52,157,67,.06); }
  .hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

  /* Hero right — hex orbit animation */
  .hero-right { display: flex; align-items: center; justify-content: center; position: relative; z-index: 2; padding-right: 1rem; }
  .hex-wrap { position: relative; width: 360px; height: 360px; }
  .hex-main {
    width: 220px; height: 220px;
    background: linear-gradient(135deg, #078EAC 0%, #07347F 100%);
    clip-path: polygon(50% 0%,97.5% 34.5%,79.4% 90.5%,20.6% 90.5%,2.5% 34.5%);
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    display: flex; align-items: center; justify-content: center; flex-direction: column;
  }
  .hex-main-num { font-size: 1.5rem; font-weight: 800; line-height: 1.15; color: #fff; text-align: center; padding: 0 .6rem; }
  .hex-main-lbl { font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .95; color: rgba(255,255,255,.95); margin-top: .3rem; text-align: center; padding: 0 .5rem; }
  .hex-orbit { position: absolute; width: 100%; height: 100%; top: 0; left: 0; animation: spin 22s linear infinite; }
  .hex-node {
    position: absolute; width: 80px; height: 80px;
    background: rgba(7,142,172,.2); border: 1.5px solid rgba(7,142,172,.5);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: .52rem; font-weight: 700; color: #ffffff; text-transform: uppercase;
    letter-spacing: .04em; text-align: center; line-height: 1.2; padding: .35rem;
    backdrop-filter: blur(4px); box-shadow: 0 0 14px rgba(7,142,172,.15);
  }
  @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
  .hex-node:nth-child(1) { top: -25px; left: 50%; transform: translateX(-50%); }                /* top */
  .hex-node:nth-child(2) { top: 25%; left: 94%; transform: translateX(-50%); }                   /* upper-right */
  .hex-node:nth-child(3) { top: 76%; left: 78%; transform: translateX(-50%); }                   /* lower-right */
  .hex-node:nth-child(4) { top: 76%; left: 24%; transform: translateX(-50%); }                   /* lower-left */
  .hex-node:nth-child(5) { top: 25%; left: 7%; transform: translateX(-50%); }                    /* upper-left */
  .hex-node span { display: block; animation: spin 22s linear infinite reverse; }
 
  /* ─── STATS BAND ─── */
  .stats-band { background: var(--navy); padding: 2.5rem 0; border-top: 3px solid var(--teal); }
  .stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; }
  .stat-box { background: transparent; padding: 2rem 1.5rem; text-align: center; border-right: 1px solid rgba(255,255,255,.12); }
  .stat-box-num { font-size: 2.6rem; font-weight: 800; color: #ffffff; line-height: 1; }
  .stat-box-lbl { font-size: .72rem; color: rgba(255,255,255,.85); letter-spacing: .1em; text-transform: uppercase; margin-top: .6rem; font-weight: 500; }

  /* ─── ABOUT ─── */
  #about { background: var(--white); }
  .about-grid { max-width: 800px; margin: 0 auto; }
  .about-body { color: var(--muted); line-height: 1.85; margin-bottom: 1rem; font-size: .95rem; }
  .badge-pill {
    display: inline-flex; align-items: center;
    background: var(--mint); color: var(--navy);
    padding: .3rem .9rem; font-size: .72rem; font-weight: 700; border-radius: 20px;
  }
  .badge-grid { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.5rem; }

  /* ─── SERVICES ─── */
  #services { background: var(--cream); }
  .svc-grid3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 4rem; }
  .svc3 {
    background: var(--white); border: 1px solid var(--border);
    padding: 2.2rem 1.8rem; border-radius: 8px;
    transition: box-shadow .25s, border-color .25s, transform .25s;
  }
  .svc3:hover { box-shadow: 0 8px 32px rgba(7,52,127,.1); border-color: var(--green); transform: translateY(-2px); }
  .svc3-icon {
    width: 44px; height: 44px; background: var(--mint);
    border-radius: 10px; display: flex; align-items: center;
    justify-content: center; margin-bottom: 1.4rem;
  }
  .svc3 h3 { font-size: .98rem; font-weight: 700; color: var(--ink); margin-bottom: .7rem; }
  .svc3 p { font-size: .86rem; color: var(--muted); line-height: 1.8; }

  /* ─── TEAM ─── */
  #team { background: var(--white); }
  .team-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem; margin-top: 4rem; }
    .team-card { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 2rem; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
  .team-card:hover { box-shadow: 0 8px 32px rgba(7,52,127,.12); transform: translateY(-2px); }
  .team-avatar {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, #078EAC 0%, #07347F 100%);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; color: #ffffff; font-size: 1.05rem; margin-bottom: 1.2rem; flex-shrink: 0;
  }
  img.team-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: 1.2rem;
    flex-shrink: 0;
  }
  .team-name { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: .2rem; }
  .team-role { font-size: .72rem; color: var(--teal); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .15rem; }
  .team-loc { font-size: .75rem; color: var(--muted); margin-bottom: .9rem; }
  .team-bio { font-size: .85rem; color: var(--muted); line-height: 1.75; flex: 1; }
  .team-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
  .team-tag { background: var(--mint); color: var(--navy); padding: .2rem .65rem; font-size: .7rem; font-weight: 600; border-radius: 20px; }

  /* ─── WHY ─── */
  #why { background: var(--ink); }
  .why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 4rem; }
  .why-card {
    background: rgba(52,157,67,.04); border: 1px solid rgba(52,157,67,.1);
    padding: 2rem; border-radius: 8px; transition: background .25s, border-color .25s;
  }
  .why-card:hover { background: rgba(7,142,172,.09); border-color: rgba(7,142,172,.3); }
  .why-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: .5rem; }
  .why-icon svg { width: 30px; height: 30px; stroke: var(--teal); fill: none; stroke-width: 1.6; }
  .why-card h4 { font-size: .95rem; font-weight: 700; color: #ffffff; margin-bottom: .6rem; letter-spacing: .01em; }
  .why-card p { font-size: .85rem; color: rgba(255,255,255,.75); line-height: 1.8; }

  /* ─── CONTACT ─── */
  #contact { background: var(--cream); }
  .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; }
  .cinfo-card { background: var(--ink); border-radius: 10px; padding: 2.5rem; height: 100%; display: flex; flex-direction: column; }
  .cinfo-card h3 { font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: .8rem; }
  .cinfo-card p { color: rgba(255,255,255,.75); font-size: .9rem; line-height: 1.8; margin-bottom: 2rem; flex-shrink: 0; }
  .cinfo-card .cdetail:last-child { border-bottom: none; }
  .cdetail { display: flex; align-items: flex-start; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .cdet-icon { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
  .cdet-text { font-size: .86rem; color: rgba(255,255,255,.75); }
  .cdet-text a { color: #7FD9E8; text-decoration: none; }
  .form-wrap { background: var(--white); border-radius: 10px; padding: 2.5rem; border: 1px solid var(--border); height: 100%; }
  .form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.2rem; }
  .form-group label { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
  .form-group input, .form-group textarea, .form-group select {
    background: #fff; border: 1.5px solid var(--border);
    color: var(--navy); padding: .85rem 1rem; font-family: var(--font);
    font-size: .9rem; outline: none; transition: border-color .2s;
    border-radius: 6px; width: 100%;
  }
  .form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--green); background: var(--white);
    box-shadow: 0 0 0 3px rgba(52,157,67,.12);
  }
  .form-group textarea { min-height: 120px; resize: vertical; }
  .form-error { font-size: .74rem; color: #c53030; }
  .form-success {
    background: var(--mint); border: 1px solid var(--green);
    color: var(--sage); padding: 1rem 1.4rem; font-weight: 600;
    font-size: .88rem; display: none; margin-top: 1rem; border-radius: 6px;
  }

  /* ─── FOOTER ─── */
  footer { background: var(--ink2); padding: 1.5rem 0 2rem 0; border-top: 1px solid rgba(7,142,172,.2); }
  .footer-inner { display: flex; justify-content: center; align-items: center; flex-wrap: nowrap; gap: 1.5rem; }
  .footer-logo img { display: block; height: 36px; width: auto; opacity: .92; }
  .footer-divider { color: rgba(255,255,255,.25); font-size: .82rem; }
  .footer-copy { font-size: .78rem; color: rgba(255,255,255,.8); white-space: nowrap; }
  .footer-links { display: flex; gap: 1.2rem; }
  .footer-links a { font-size: .78rem; color: rgba(255,255,255,.8); text-decoration: none; transition: color .2s; }
  .footer-links a:hover { color: var(--green); }

  /* ─── FAB ─── */
  .fab {
    position: fixed; bottom: 6rem; right: 2rem;
    background: var(--navy); color: #fff;
    padding: .8rem 1.4rem; border-radius: 40px; font-weight: 700;
    font-size: .82rem; text-decoration: none;
    box-shadow: 0 4px 20px rgba(52,157,67,.35); z-index: 50;
    animation: fab-pulse 2.5s infinite; display: none;
  }
  @keyframes fab-pulse {
    0%,100% { box-shadow: 0 4px 20px rgba(52,157,67,.35); }
    50%      { box-shadow: 0 4px 32px rgba(52,157,67,.65); }
  }

  /* ─── REVEAL ─── */
  .reveal { opacity: 1; transform: none; transition: opacity .6s, transform .6s; }
  .reveal.visible { opacity: 1; transform: none; }

  /* ─── RESPONSIVE ─── */
  @media(max-width:960px){
    #hero { grid-template-columns: 1fr; padding-top: 68px; }
    .hero-right { display: none; }
    .svc-grid3 { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .team-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr 1fr; }
    .stats-row { grid-template-columns: repeat(2,1fr); }
  }
  @media(max-width:600px){
    nav .nav-links, .nav-cta { display: none; }
    .hamburger { display: flex; }
    .svc-grid3, .why-grid { grid-template-columns: 1fr; }
    .nav-inner, .container, .hero-left { padding-left: 1.5rem; padding-right: 1.5rem; }
    section { padding: 5rem 0; }
    .fab { display: flex; }
    .footer-inner { flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
    .footer-logo img { height: 28px; }
    .footer-copy { width: 100%; text-align: center; order: 3; }
    .footer-links { width: 100%; justify-content: center; order: 4; }
    .footer-divider { display: none; }
  }