/* ==========================================================================
   Eunoia Tech Limited — site styles
   Single stylesheet. No build step, no framework.
   ========================================================================== */

:root {
  --navy:        #0E2A3F;
  --navy-2:      #14384F;
  --navy-3:      #1B4661;
  --green:       #2E6B41;
  --green-lt:    #7FB58C;
  --green-bg:    #E7F0EA;
  --slate:       #4A5A67;
  --grey:        #7A8C99;
  --line:        #D8E1E8;
  --light:       #F4F7F9;
  --white:       #FFFFFF;
  --amber:       #B26A00;

  --wrap: 1140px;
  --r: 10px;
  --shadow-sm: 0 1px 3px rgba(14,42,63,.07), 0 1px 2px rgba(14,42,63,.05);
  --shadow:    0 4px 16px rgba(14,42,63,.08);
  --shadow-lg: 0 18px 44px rgba(14,42,63,.14);
  --t: .22s cubic-bezier(.4,0,.2,1);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--navy); }
h1,h2,h3,h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.15rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.25rem); letter-spacing: -.015em; }
h3 { font-size: 1.16rem; }
p  { margin: 0 0 1.1em; }
ul { margin: 0 0 1.1em; padding-left: 1.15em; }
li { margin-bottom: .45em; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 3px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--light { background: var(--light); }
.section--navy { background: var(--navy); color: #C6D8E3; }
.section--navy h2, .section--navy h3 { color: var(--white); }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--green);
  color: #fff; padding: 12px 20px; z-index: 200; border-radius: 0 0 6px 0;
}
.skip:focus { left: 0; color: #fff; }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.hdr__in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; transition: opacity var(--t); }
.logo img { height: 38px; width: auto; }
.logo:hover { opacity: .78; }
.ftr .logo img { height: 42px; margin-bottom: 14px; }

.nav { display: flex; align-items: center; gap: 30px; }
/* :not(.btn) keeps these rules from overriding the CTA button —
   .nav a (0,1,1) outranks .btn--primary (0,1,0) without it */
.nav a:not(.btn) {
  color: var(--slate); font-size: .935rem; font-weight: 500;
  position: relative; padding: 4px 0;
}
.nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--green); transition: width var(--t);
}
.nav a:not(.btn):hover,
.nav a:not(.btn)[aria-current="page"] { color: var(--navy); }
.nav a:not(.btn):hover::after,
.nav a:not(.btn)[aria-current="page"]::after { width: 100%; }

.burger {
  display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; padding: 9px; border-radius: 7px;
}
.burger:hover { background: var(--light); }
.burger span {
  display: block; height: 2px; background: var(--navy); border-radius: 2px;
  margin: 4px 0; transition: transform var(--t), opacity var(--t);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 7px; font-weight: 600; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: all var(--t);
  white-space: nowrap;
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: #1F4A2F; color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn--ghost:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }
.btn--light { background: var(--green-lt); color: var(--navy); }
.btn--light:hover { background: #fff; color: var(--navy); transform: translateY(-2px); }
.btn--outline-lt { border-color: rgba(255,255,255,.28); color: #fff; }
.btn--outline-lt:hover { border-color: var(--green-lt); color: var(--green-lt); }

/* ---------- hero ---------- */
.hero { background: var(--navy); color: #C6D8E3; padding: 92px 0 84px; position: relative; overflow: hidden; }
.hero::after {
  content: ''; position: absolute; inset: auto -10% -45% 55%;
  height: 620px; background: radial-gradient(circle, rgba(46,107,65,.38), transparent 68%);
  pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: .38em; }
.hero h1 em { color: var(--green-lt); font-style: normal; }
.hero__lead { font-size: 1.14rem; line-height: 1.68; color: #B9CFDC; max-width: 46ch; margin-bottom: 1.7em; }
.eyebrow {
  display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--green-lt); margin-bottom: 18px;
}
.section--light .eyebrow, .section:not(.section--navy) .eyebrow { color: var(--green); }
.hero__cta { display: flex; gap: 13px; flex-wrap: wrap; }

.phones { position: relative; display: flex; justify-content: center; gap: 16px; }
.phones img {
  width: 172px; border-radius: 16px; box-shadow: var(--shadow-lg);
  border: 5px solid #1B3A2A;
}
.phones img:first-child { transform: translateY(20px) rotate(-3deg); }
.phones img:last-child  { transform: translateY(-12px) rotate(2deg); }

/* ---------- stat strip ---------- */
.stats { background: var(--navy-3); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding: 34px 0; }
.stat__n { font-size: 1.95rem; font-weight: 800; color: var(--green-lt); line-height: 1.1; }
.stat__l { font-size: .84rem; color: #9FBACB; margin-top: 5px; }

/* ---------- generic grids ---------- */
.grid { display: grid; gap: 26px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.lead { font-size: 1.13rem; line-height: 1.7; color: var(--navy); max-width: 68ch; }
.muted { color: var(--grey); font-size: .92rem; }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.head { max-width: 66ch; margin-bottom: 46px; }
.head.center { margin-left: auto; margin-right: auto; }

/* ---------- cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px; transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #BFD3DE; }
.card h3 { margin-bottom: .45em; }
.card p:last-child { margin-bottom: 0; }
.card__ico {
  width: 44px; height: 44px; border-radius: 9px; background: var(--green-bg);
  display: grid; place-items: center; margin-bottom: 18px; color: var(--green);
}
.card__ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ---------- work / case study cards ---------- */
.work { display: grid; gap: 30px; }
.workcard {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; transition: box-shadow var(--t), transform var(--t);
}
.workcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.workcard__body { padding: 40px; align-self: center; }
.workcard__media { background: var(--light); display: grid; place-items: center; padding: 34px; }
.workcard__media img { border-radius: 7px; box-shadow: var(--shadow); }
.workcard--flip .workcard__body { order: 2; }
.workcard--flip .workcard__media { order: 1; }
.workcard__media--phones { display: flex; gap: 14px; }
.workcard__media--phones img { width: 132px; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.tag {
  font-size: .69rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  background: var(--green-bg); color: var(--navy); padding: 5px 11px; border-radius: 20px;
}
.tag--solid { background: var(--navy); color: #fff; }

.metrics { display: flex; gap: 28px; flex-wrap: wrap; margin: 20px 0 22px; }
.metric__n { font-size: 1.5rem; font-weight: 800; color: var(--navy); line-height: 1; }
.metric__l { font-size: .78rem; color: var(--grey); margin-top: 4px; }

/* ---------- checklist ---------- */
.check { list-style: none; padding: 0; }
.check li { position: relative; padding-left: 28px; margin-bottom: .6em; }
.check li::before {
  content: ''; position: absolute; left: 0; top: .5em;
  width: 15px; height: 8px; border-left: 2.5px solid var(--green);
  border-bottom: 2.5px solid var(--green); transform: rotate(-45deg);
}

/* ---------- process ---------- */
.step { display: grid; grid-template-columns: 58px 1fr; gap: 22px; padding: 24px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; }
.step__n {
  width: 46px; height: 46px; border-radius: 9px; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 1rem;
}
.step h3 { margin-bottom: .3em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.step__dur { font-size: .76rem; font-weight: 700; color: var(--green); background: var(--green-bg); padding: 3px 10px; border-radius: 20px; }
.step p { margin: 0; font-size: .95rem; }

/* ---------- timeline ---------- */
.tl { position: relative; padding-left: 30px; }
.tl::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl__row { position: relative; display: grid; grid-template-columns: 62px 1fr; gap: 18px; padding: 9px 0; }
.tl__row::before {
  content: ''; position: absolute; left: -30px; top: 17px;
  width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--line);
}
.tl__row--on::before { border-color: var(--green); background: var(--green); }
.tl__y { font-weight: 800; color: var(--navy); font-size: .93rem; }
.tl__e { font-size: .93rem; }

/* ---------- gallery ---------- */
.gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gal figure { margin: 0; }
.gal img { border-radius: 7px; aspect-ratio: 4/3; object-fit: cover; width: 100%; box-shadow: var(--shadow-sm); }
.gal figcaption { font-size: .77rem; color: var(--grey); margin-top: 7px; line-height: 1.4; }

/* ---------- shots ---------- */
.shot { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; box-shadow: var(--shadow); }
.shot img { width: 100%; }
.shot__cap { font-size: .8rem; color: var(--grey); padding: 11px 15px; background: var(--light); border-top: 1px solid var(--line); }

/* ---------- domain / pill list ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 9px; padding: 0; list-style: none; margin: 0; }
.pills li {
  font-size: .86rem; background: #fff; border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 20px; color: var(--slate); margin: 0;
}
.section--navy .pills li { background: var(--navy-3); border-color: var(--navy-3); color: #C6D8E3; }

/* ---------- CTA band ---------- */
.cta { background: var(--navy); color: #C6D8E3; text-align: center; padding: 78px 0; }
.cta h2 { color: #fff; }
.cta p { max-width: 58ch; margin: 0 auto 26px; font-size: 1.08rem; }
.cta__row { display: flex; gap: 13px; justify-content: center; flex-wrap: wrap; }

/* ---------- contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; }
.cline { display: flex; gap: 15px; padding: 17px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.cline:last-child { border-bottom: 0; }
.cline__ico { width: 38px; height: 38px; border-radius: 8px; background: var(--green-bg); color: var(--green); display: grid; place-items: center; flex: none; }
.cline__ico svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.cline__l { font-size: .77rem; text-transform: uppercase; letter-spacing: .09em; color: var(--grey); font-weight: 700; }
.cline__v { font-weight: 600; color: var(--navy); }

/* editable placeholder — replace before launch */
.ph { background: #FFF4C2; color: #7A5B00; padding: 1px 7px; border-radius: 4px; font-weight: 600; }

.note {
  background: #FFF4E2; border: 1px solid #F0C989; color: var(--amber);
  border-radius: 8px; padding: 16px 20px; font-size: .9rem;
}
.note strong { color: var(--amber); }

/* ---------- footer ---------- */
.ftr { background: var(--navy); color: #8FA9B8; padding: 58px 0 30px; font-size: .9rem; }
.ftr a { color: #B9CFDC; }
.ftr a:hover { color: var(--green-lt); }
.ftr__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 34px; }
.ftr h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 15px; }
.ftr ul { list-style: none; padding: 0; margin: 0; }
.ftr li { margin-bottom: .55em; }
.ftr__bottom {
  border-top: 1px solid var(--navy-3); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem;
}

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.rv.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .phones { justify-content: flex-start; }
  .workcard, .workcard--flip { grid-template-columns: 1fr; }
  .workcard--flip .workcard__body { order: 2; }
  .workcard--flip .workcard__media { order: 1; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; gap: 32px; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .gal { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .section { padding: 60px 0; }
  .nav {
    position: fixed; inset: 68px 0 auto; background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 10px 24px 24px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .28s ease;
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .nav[data-open="true"] { transform: none; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 16px; justify-content: center; border-bottom: 0; }
  .burger { display: block; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .gal { grid-template-columns: repeat(2, 1fr); }
  .workcard__body { padding: 30px 24px; }
  .workcard__media { padding: 24px; }
  .ftr__grid { grid-template-columns: 1fr; gap: 28px; }
  .metrics { gap: 20px; }
  .phones img { width: 140px; }
  .hero { padding: 62px 0 58px; }
}

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

@media print {
  .hdr, .burger, .cta, .ftr { display: none; }
  body { color: #000; }
  .section { padding: 20px 0; }
}
