/* ===========================================================
   Homecrete Ltd. — static rebuild
   =========================================================== */

:root {
  --bg:        #f7f5f9;
  --bg-alt:    #ffffff;
  --ink:       #111418;
  --ink-soft:  #4b515c;
  --ink-faint: #8a909c;
  --accent:    #e63950;
  --accent-dk: #c52840;
  --line:      #e7e3ee;
  --dark:      #111418;
  --radius:    14px;
  --maxw:      1180px;
  --pad:       clamp(20px, 5vw, 48px);
  --ease:      cubic-bezier(.22,.61,.36,1);
  --font:      "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Kicker ---------- */
.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 24px; height: 2px;
  background: var(--accent);
  vertical-align: middle;
  margin-right: 10px;
  position: relative; top: -3px;
}
.kicker--center { display: inline-block; }
.kicker--light { color: #ff7488; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dk); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(17,20,24,.18); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

/* ===========================================================
   NAV
   =========================================================== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,245,249,.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  font-size: 22px; font-weight: 800; letter-spacing: -0.03em;
}
.brand::after { content: "."; color: var(--accent); }

.nav__links { display: flex; gap: 34px; }
.nav__link {
  font-size: 15px; font-weight: 600; color: var(--ink-soft);
  position: relative; padding: 6px 0;
  transition: color .2s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link.is-active { color: var(--ink); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent);
}

.nav__toggle {
  display: none;
  width: 46px; height: 46px;
  background: transparent; border: none; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav__toggle span {
  display: block; width: 24px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; top: 72px; right: 0; bottom: 0;
  width: min(82vw, 320px);
  background: var(--bg-alt);
  border-left: 1px solid var(--line);
  transform: translateX(110%);
  transition: transform .3s var(--ease);
  z-index: 99;
  padding: 24px var(--pad);
  box-shadow: -20px 0 50px rgba(17,20,24,.08);
}
.drawer.is-open { transform: translateX(0); }
.drawer__nav { display: flex; flex-direction: column; }
.drawer__link {
  font-size: 19px; font-weight: 700; padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.drawer__link:last-child { border-bottom: none; }
.drawer__scrim {
  position: fixed; inset: 72px 0 0 0; background: rgba(17,20,24,.4);
  z-index: 98; opacity: 0; transition: opacity .3s var(--ease);
}
.drawer__scrim.is-open { opacity: 1; }

/* ===========================================================
   SECTIONS
   =========================================================== */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--alt { background: var(--bg-alt); }

.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__title { font-size: clamp(26px, 4vw, 40px); }
.section__title--center { }
.section__head--center, .intro__head { text-align: center; }
.intro__head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); }

.lead { font-size: clamp(16px, 2vw, 18px); color: var(--ink-soft); margin-top: 18px; }
.lead--center { margin-inline: auto; }

/* ===========================================================
   HERO
   =========================================================== */
.hero { padding-block: clamp(48px, 7vw, 92px); }
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero__title {
  font-size: clamp(34px, 6vw, 64px);
  margin: 6px 0 22px;
}
.hero__sub { font-size: clamp(16px, 2vw, 18px); color: var(--ink-soft); max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(17,20,24,.35);
}
.hero__media img {
  width: 100%; height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(17,20,24,.18));
}

/* ===========================================================
   FEATURE CARDS
   =========================================================== */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.section--alt .card { background: var(--bg); }
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(17,20,24,.3); }
.card__title {
  font-size: 19px; margin-bottom: 12px; position: relative; padding-top: 18px;
}
.card__title::before {
  content: ""; position: absolute; top: 0; left: 0; width: 32px; height: 3px; background: var(--accent);
}
.card__text { color: var(--ink-soft); font-size: 15px; }

/* ===========================================================
   SERVICES
   =========================================================== */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.section--alt .service { background: var(--bg); }
.service:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(17,20,24,.3); }
.service__title { font-size: 21px; margin-bottom: 14px; }
.service__text { color: var(--ink-soft); font-size: 15px; }
.service__list {
  list-style: none; padding: 0; margin: 22px 0 0;
  border-top: 1px solid var(--line); padding-top: 22px;
}
.service__list li {
  position: relative; padding-left: 26px; margin-bottom: 12px;
  font-size: 14.5px; color: var(--ink);
}
.service__list li:last-child { margin-bottom: 0; }
.service__list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px; border-radius: 2px; background: var(--accent);
}

/* ===========================================================
   STATS
   =========================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat {
  text-align: left;
  padding: 28px 0;
  border-top: 3px solid var(--ink);
}
.stat__num {
  font-size: clamp(40px, 6vw, 60px); font-weight: 800; line-height: 1;
  letter-spacing: -0.04em; color: var(--ink);
}
.stat__label { font-weight: 700; font-size: 16px; margin-top: 12px; }
.stat__sub { color: var(--ink-soft); font-size: 14px; margin-top: 6px; }

/* ===========================================================
   PROJECTS
   =========================================================== */
.projects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.project {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.section--alt .project { background: var(--bg); }
.project:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(17,20,24,.3); }
.project__media { aspect-ratio: 4 / 3; overflow: hidden; }
.project__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.project:hover .project__media img { transform: scale(1.05); }
.project__body { padding: 20px 22px 24px; }
.tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  background: rgba(230,57,80,.1); padding: 5px 10px; border-radius: 6px; margin-bottom: 12px;
}
.project__title { font-size: 17px; line-height: 1.3; }

/* ===========================================================
   CLIENTS / LOGOS
   =========================================================== */
.clients .section__head { max-width: 820px; }
.logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.logo {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  height: 96px;
  display: flex; align-items: center; justify-content: center;
  padding: 18px 20px;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.logo:hover { box-shadow: 0 16px 32px -20px rgba(17,20,24,.3); transform: translateY(-3px); }
.logo img {
  max-height: 40px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .72;
  transition: filter .3s var(--ease), opacity .3s var(--ease);
}
.logo:hover img { filter: grayscale(0); opacity: 1; }
.clients__note {
  margin-top: 28px; font-size: 13px; font-style: italic; color: var(--ink-faint); text-align: center;
}

/* ===========================================================
   VALUES
   =========================================================== */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value {
  padding: 30px 26px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.section--alt .value { background: var(--bg); }
.value__index { font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: 0.1em; }
.value__title { font-size: 20px; margin: 14px 0 12px; }
.value__text { color: var(--ink-soft); font-size: 14.5px; }

/* ===========================================================
   CONTACT / FOOTER
   =========================================================== */
.contact {
  background: var(--dark);
  color: #fff;
  padding-block: clamp(64px, 9vw, 110px) 0;
}
.contact__head { max-width: 680px; }
.contact__title { font-size: clamp(30px, 5vw, 48px); margin-bottom: 18px; }
.contact__sub { color: #b6bcc8; font-size: clamp(16px, 2vw, 18px); margin-bottom: 30px; }

.contact__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid rgba(255,255,255,.12);
}
.contact__label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: #ff7488; margin-bottom: 10px;
}
.contact__value { color: #e8eaef; font-size: 15.5px; line-height: 1.6; }
.contact__value a { transition: color .2s var(--ease); }
.contact__value a:hover { color: #fff; text-decoration: underline; }

.footer__bar {
  margin-top: clamp(48px, 6vw, 72px);
  padding: 26px 0;
  border-top: 1px solid rgba(255,255,255,.12);
  text-align: center;
}
.footer__bar p { color: #8b91a0; font-size: 13.5px; }

/* ===========================================================
   REVEAL (progressive enhancement — visible by default)
   =========================================================== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

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

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__media img { aspect-ratio: 16 / 10; }

  .features, .services { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .logos { grid-template-columns: repeat(4, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  html { scroll-padding-top: 76px; }
  .nav__inner { height: 64px; }
  .drawer, .drawer__scrim { top: 64px; }
  .drawer__scrim { inset: 64px 0 0 0; }

  .stats { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }

  .hero__actions .btn { flex: 1 1 auto; }
}
